diff options
author | markm <markm@FreeBSD.org> | 2002-05-23 18:26:23 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-05-23 18:26:23 +0000 |
commit | bc01111920f2163d123e3f23da7f9fe605c41b84 (patch) | |
tree | 0190918c9f9034fd7751a1fbdd7dff1c2ebd9d02 /sys/sys/eventhandler.h | |
parent | 977ef0bf3c79b9aa821051474e106726c59d17e2 (diff) | |
download | FreeBSD-src-bc01111920f2163d123e3f23da7f9fe605c41b84.zip FreeBSD-src-bc01111920f2163d123e3f23da7f9fe605c41b84.tar.gz |
ANSIfy variable-argument macros.
Diffstat (limited to 'sys/sys/eventhandler.h')
-rw-r--r-- | sys/sys/eventhandler.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/eventhandler.h b/sys/sys/eventhandler.h index 1bffef4..f50abaf 100644 --- a/sys/sys/eventhandler.h +++ b/sys/sys/eventhandler.h @@ -75,7 +75,7 @@ struct __hack struct eventhandler_list Xeventhandler_list_ ## name = { #name }; \ struct __hack -#define EVENTHANDLER_FAST_INVOKE(name, args...) \ +#define EVENTHANDLER_FAST_INVOKE(name, ...) \ do { \ struct eventhandler_list *_el = &Xeventhandler_list_ ## name ; \ struct eventhandler_entry *_ep, *_en; \ @@ -87,7 +87,7 @@ do { \ while (_ep != NULL) { \ _en = TAILQ_NEXT(_ep, ee_link); \ _t = (struct eventhandler_entry_ ## name *)_ep; \ - _t->eh_func(_ep->ee_arg , ## args); \ + _t->eh_func(_ep->ee_arg , ## __VA_ARGS__); \ _ep = _en; \ } \ EHE_UNLOCK(_el); \ @@ -116,7 +116,7 @@ struct eventhandler_entry_ ## name \ }; \ struct __hack -#define EVENTHANDLER_INVOKE(name, args...) \ +#define EVENTHANDLER_INVOKE(name, ...) \ do { \ struct eventhandler_list *_el; \ struct eventhandler_entry *_ep, *_en; \ @@ -129,7 +129,7 @@ do { \ while (_ep != NULL) { \ _en = TAILQ_NEXT(_ep, ee_link); \ _t = (struct eventhandler_entry_ ## name *)_ep; \ - _t->eh_func(_ep->ee_arg , ## args); \ + _t->eh_func(_ep->ee_arg , ## __VA_ARGS__); \ _ep = _en; \ } \ EHE_UNLOCK(_el); \ |