4 * Copyright (c) 1999-2002, Darren Hiebert
5 * Copyright 2009-2011 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
7 * This source code is released for free distribution under the terms of the
8 * GNU General Public License.
10 * Defines external interface to scope nesting levels for tags.
18 #include "general.h" /* must always come first */
25 typedef struct NestingLevel NestingLevel
;
26 typedef struct NestingLevels NestingLevels
;
38 int n
; /* number of levels in use */
45 extern NestingLevels
*nestingLevelsNew(void);
46 extern void nestingLevelsFree(NestingLevels
*nls
);
47 extern void nestingLevelsPush(NestingLevels
*nls
,
48 const vString
*name
, int type
);
49 extern void nestingLevelsPop(NestingLevels
*nls
);
50 extern NestingLevel
*nestingLevelsGetCurrent(NestingLevels
*nls
);
52 #endif /* _NESTLEVEL_H */
54 /* vi:set tabstop=4 shiftwidth=4: */