chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disobedience/disobedience.h: Declare variables as `extern'.
[disorder]
/
lib
/
macros.c
diff --git
a/lib/macros.c
b/lib/macros.c
index e11c264a6529e92dc8e6eb3287607c1b4c211364..3639bcbe54c665ce1dca01a85914d3f1e825e369 100644
(file)
--- a/
lib/macros.c
+++ b/
lib/macros.c
@@
-63,7
+63,7
@@
struct expansion {
/** @brief Callback (cast to appropriate type)
*
* Cast to @ref mx_simple_callback or @ref mx_magic_callback as required. */
/** @brief Callback (cast to appropriate type)
*
* Cast to @ref mx_simple_callback or @ref mx_magic_callback as required. */
- void (*callback)();
+ void (*callback)(
void
);
/** @brief Macro definition
*
/** @brief Macro definition
*
@@
-332,7
+332,7
@@
static int mx__register(unsigned flags,
int min,
int max,
char **args,
int min,
int max,
char **args,
- void (*callback)(),
+ void (*callback)(
void
),
const struct mx_node *definition) {
struct expansion e[1];
const struct mx_node *definition) {
struct expansion e[1];
@@
-357,7
+357,7
@@
void mx_register(const char *name,
int min,
int max,
mx_simple_callback *callback) {
int min,
int max,
mx_simple_callback *callback) {
- mx__register(EXP_SIMPLE, name, min, max, 0, (void (*)())callback, 0);
+ mx__register(EXP_SIMPLE, name, min, max, 0, (void (*)(
void
))callback, 0);
}
/** @brief Register a magic expansion rule
}
/** @brief Register a magic expansion rule
@@
-370,7
+370,7
@@
void mx_register_magic(const char *name,
int min,
int max,
mx_magic_callback *callback) {
int min,
int max,
mx_magic_callback *callback) {
- mx__register(EXP_MAGIC, name, min, max, 0, (void (*)())callback, 0);
+ mx__register(EXP_MAGIC, name, min, max, 0, (void (*)(
void
))callback, 0);
}
/** @brief Register a macro
}
/** @brief Register a macro