Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ipf / tools / lexer.h
blob994f9a3c5a2acd7085e70c78557ab3de99d84aee
1 /* $NetBSD$ */
3 /*
4 * Copyright (C) 2002-2004 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
7 */
9 typedef struct wordtab {
10 char *w_word;
11 int w_value;
12 } wordtab_t;
14 #ifdef NO_YACC
15 #define YY_COMMENT 1000
16 #define YY_CMP_NE 1001
17 #define YY_CMP_LE 1002
18 #define YY_RANGE_OUT 1003
19 #define YY_CMP_GE 1004
20 #define YY_RANGE_IN 1005
21 #define YY_HEX 1006
22 #define YY_NUMBER 1007
23 #define YY_IPV6 1008
24 #define YY_STR 1009
25 #define YY_IPADDR 1010
26 #endif
28 #define YYBUFSIZ 8192
30 extern wordtab_t *yysettab __P((wordtab_t *));
31 extern void yysetdict __P((wordtab_t *));
32 extern int yylex __P((void));
33 extern void yyerror __P((char *));
34 extern char *yykeytostr __P((int));
35 extern void yyresetdict __P((void));
37 extern FILE *yyin;
38 extern int yylineNum;
39 extern int yyexpectaddr;
40 extern int yybreakondot;
41 extern int yyvarnext;