Debian Codegraph @

include/xps_internals.h

raw
1 #ifndef __XPS_INTERNALS_H__
2 #define __XPS_INTERNALS_H__
3
4 struct HooksAndData {
5 const struct XSParseSublikeHooks *hooks;
6 void *data;
7 };
8
9 #define FOREACH_HOOKS_FORWARD \
10 for(hooki = 0; \
11 (hooki < nhooks) && (hooks = hooksanddata[hooki].hooks, hookdata = hooksanddata[hooki].data), (hooki < nhooks); \
12 hooki++)
13
14 #define FOREACH_HOOKS_REVERSE \
15 for(hooki = nhooks - 1; \
16 (hooki >= 0) && (hooks = hooksanddata[hooki].hooks, hookdata = hooksanddata[hooki].data), (hooki >= 0); \
17 hooki--)
18
19 struct XPSContextWithPointer {
20 struct XSParseSublikeContext ctx;
21 void *sigctx;
22 };
23
24 #endif