27 |
|
|
28 |
|
#include "stdinc.h" |
29 |
|
#include "conf/conf.h" |
30 |
+ |
#include "parse.h" |
31 |
|
|
32 |
|
#define YY_NO_UNPUT |
33 |
|
|
105 |
|
conf_current_section->before != NULL) |
106 |
|
conf_current_section->before(); |
107 |
|
} |
108 |
< |
else |
109 |
< |
yyerror("unknown conf section"); |
108 |
> |
else if (conf_pass == 2) |
109 |
> |
parse_error("unknown conf section"); |
110 |
|
} default_field '{' conf_items '}' ';' |
111 |
|
{ |
112 |
|
if (conf_current_section != NULL) |
147 |
|
int i; |
148 |
|
|
149 |
|
if ($4 - $1 < 0 || $4 - $1 >= 100) |
150 |
< |
yyerror("invalid range"); |
150 |
> |
{ |
151 |
> |
if (conf_pass == 2) |
152 |
> |
parse_error("invalid range"); |
153 |
> |
} |
154 |
|
else for (i = $1; i <= $4; i++) |
155 |
|
conf_add_number(i); |
156 |
|
}; |