ntpd/ntp_scanner.c
/* Get include nesting level. This currently loops over the stack and
 * counts elements; but since this is of concern only with an include
 * statement and the nesting depth has a small limit, there's no
 * bottleneck expected here.
 *
 * Returns the nesting level of includes, that is, the current depth of
 * the lexer input stack.
 *
 * Note:
 */
Get include nesting level. This currently loops over the stack and
counts elements; but since this is of concern only with an include
statement and the nesting depth has a small limit, there's no
bottleneck expected here.

Returns the nesting level of includes, that is, the current depth of
the lexer input stack.


Get include nesting level . This currently loops over the stack and counts elements ; but since this is of concern only with an include statement and the nesting depth has a small limit there ' s no bottleneck expected here . Returns the nesting level of includes that is the current depth of the lexer input stack .
size_t
lex_level(void)
{
	size_t            cnt = 0;
	struct FILE_INFO *ipf = lex_stack;
	while (NULL != ipf) {
		cnt++;
		ipf = ipf->st_next;
	}
	return cnt;
}
size_t lex_level ( void ) { size_t cnt = 0 ; struct FILE_INFO * ipf = lex_stack ; while ( NULL != ipf ) { cnt ++ ; ipf = ipf -> st_next ; } return cnt ; }
Get include nesting level.
Get include nesting level .