Revision b8cc390e conf/confbase.Y

View differences:

conf/confbase.Y
24 24

  
25 25
/* FIXME: Turn on YYERROR_VERBOSE and work around lots of bison bugs? */
26 26

  
27
CF_DEFINES
28

  
29
static void
30
check_u16(unsigned val)
31
{
32
  if (val > 0xFFFF)
33
    cf_error("Value %d out of range (0-65535)", val);
34
}
35

  
27 36
CF_DECLS
28 37

  
29 38
%union {
......
48 57
  struct timeformat *tf;
49 58
}
50 59

  
51
%token END CLI_MARKER INVALID_TOKEN ELSECOL
60
%token END CLI_MARKER INVALID_TOKEN ELSECOL DDOT
52 61
%token GEQ LEQ NEQ AND OR
53 62
%token PO PC
54 63
%token <i> NUM ENUM
......
96 105
 | SYM { if ($1->class != SYM_NUMBER) cf_error("Number expected"); else $$ = $1->aux; }
97 106
 ;
98 107

  
108
/* expr_u16: expr { check_u16($1); $$ = $1; }; */
109

  
99 110
CF_ADDTO(conf, definition)
100 111
definition:
101 112
   DEFINE SYM '=' expr ';' {

Also available in: Unified diff