Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: remove further remnants of ansi2knr support from AIX specific code
- X-seq: zsh-workers 53999
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: remove further remnants of ansi2knr support from AIX specific code
- Date: Wed, 22 Oct 2025 20:54:21 +0200
- Archived-at: <https://zsh.org/workers/53999>
- List-id: <zsh-workers.zsh.org>
When I removed the support for old-style function prototypes in 52750,
it seems I missed a few instances hidden in AIX specific support code.
Presumably the unusual use with function pointer syntax meant this was
missed by whatever regex search pattern I used.
Oliver
diff --git a/Src/module.c b/Src/module.c
index b4b5d0a2c..af0251f4e 100644
--- a/Src/module.c
+++ b/Src/module.c
@@ -1724,42 +1724,42 @@ module_loaded(const char *name)
static int
dyn_setup_module(Module m)
{
- return ((int (*)_((int,Module, void*))) m->u.handle)(0, m, NULL);
+ return ((int (*)(int,Module, void*)) m->u.handle)(0, m, NULL);
}
/**/
static int
dyn_features_module(Module m, char ***features)
{
- return ((int (*)_((int,Module, void*))) m->u.handle)(4, m, features);
+ return ((int (*)(int,Module, void*)) m->u.handle)(4, m, features);
}
/**/
static int
dyn_enables_module(Module m, int **enables)
{
- return ((int (*)_((int,Module, void*))) m->u.handle)(5, m, enables);
+ return ((int (*)(int,Module, void*)) m->u.handle)(5, m, enables);
}
/**/
static int
dyn_boot_module(Module m)
{
- return ((int (*)_((int,Module, void*))) m->u.handle)(1, m, NULL);
+ return ((int (*)(int,Module, void*)) m->u.handle)(1, m, NULL);
}
/**/
static int
dyn_cleanup_module(Module m)
{
- return ((int (*)_((int,Module, void*))) m->u.handle)(2, m, NULL);
+ return ((int (*)(int,Module, void*)) m->u.handle)(2, m, NULL);
}
/**/
static int
dyn_finish_module(Module m)
{
- return ((int (*)_((int,Module,void *))) m->u.handle)(3, m, NULL);
+ return ((int (*)(int,Module,void *)) m->u.handle)(3, m, NULL);
}
/**/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author