mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
The previous ANSIfication did not take into account upgrade-builds
uing an earlier, non-compliant compiler. Revert to the compatible form.
This commit is contained in:
parent
a8522a9bb7
commit
f1f239b30d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97235
@ -75,7 +75,7 @@ struct __hack
|
||||
struct eventhandler_list Xeventhandler_list_ ## name = { #name }; \
|
||||
struct __hack
|
||||
|
||||
#define EVENTHANDLER_FAST_INVOKE(name, ...) \
|
||||
#define EVENTHANDLER_FAST_INVOKE(name, args...) \
|
||||
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 , ## __VA_ARGS__); \
|
||||
_t->eh_func(_ep->ee_arg , ## args); \
|
||||
_ep = _en; \
|
||||
} \
|
||||
EHE_UNLOCK(_el); \
|
||||
@ -116,7 +116,7 @@ struct eventhandler_entry_ ## name \
|
||||
}; \
|
||||
struct __hack
|
||||
|
||||
#define EVENTHANDLER_INVOKE(name, ...) \
|
||||
#define EVENTHANDLER_INVOKE(name, args...) \
|
||||
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 , ## __VA_ARGS__); \
|
||||
_t->eh_func(_ep->ee_arg , ## args); \
|
||||
_ep = _en; \
|
||||
} \
|
||||
EHE_UNLOCK(_el); \
|
||||
|
Loading…
Reference in New Issue
Block a user