8 void unknown_enter(const char* elem
, const char** attr
);
9 void unknown_leave(const char* elem
);
11 struct Layer _stack
[STACK_LAYERS
] = { { unknown_enter
, unknown_leave
} };
12 unsigned int _top
= 0;
14 const struct Layer
* stack_top()
29 void stack_set(unsigned i
, struct Layer l
)
31 if (i
>= STACK_LAYERS
) fail(ERR_STACK
);
33 _stack
[i
].enter
= l
.enter
;
34 _stack
[i
].leave
= l
.leave
;
37 void unknown_enter(const char* elem
, const char** attr
)
41 if (strcmp("rss", elem
) != 0) fail(ERR_TYPE
);
46 void unknown_leave(const char* elem
)