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