]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bind/bin/named/ns_lexer.h
unfinished sblive driver, playback/mixer only for now - not enabled in
[FreeBSD/FreeBSD.git] / contrib / bind / bin / named / ns_lexer.h
1 /*
2  * Copyright (c) 1996-1999 by Internet Software Consortium.
3  *
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.
7  *
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
15  * SOFTWARE.
16  */
17
18 #ifndef _NS_LEXER_H
19 #define _NS_LEXER_H
20
21 /*
22  * Note: <stdio.h> and "ns_parseutil.h" must be included
23  * before this file is included.
24  */
25
26 #define LEX_MAX_IDENT_SIZE 1024
27
28 #define SYM_CLASS       0x01
29 #define SYM_CATEGORY    0x02
30 #define SYM_LOGGING     0x04
31 #define SYM_SYSLOG      0x08
32
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);
38 int     yylex(void);
39 void    lexer_initialize(void);
40 void    lexer_setup(void);
41 void    lexer_shutdown(void);
42
43 extern symbol_table constants;
44
45 #endif /* !_NS_LEXER_H */