2 * Copyright (c) 1996-1999 by Internet Software Consortium.
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
9 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
10 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
11 * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
12 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
13 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
14 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
22 * Note: <stdio.h> and "ns_parseutil.h" must be included
23 * before this file is included.
26 #define LEX_MAX_IDENT_SIZE 1024
28 #define SYM_CLASS 0x01
29 #define SYM_CATEGORY 0x02
30 #define SYM_LOGGING 0x04
31 #define SYM_SYSLOG 0x08
33 int parser_warning(int, const char *, ...);
34 int parser_error(int, const char *, ...);
35 void yyerror(const char *);
36 void lexer_begin_file(const char *, FILE *);
37 void lexer_end_file(void);
39 void lexer_initialize(void);
40 void lexer_setup(void);
41 void lexer_shutdown(void);
43 extern symbol_table constants;
45 #endif /* !_NS_LEXER_H */