ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/src/conf/modern/parser.y
(Generate patch)

Comparing ircd-hybrid/src/conf/modern/parser.y (file contents):
Revision 755 by adx, Sat Jul 22 20:17:19 2006 UTC vs.
Revision 756 by adx, Fri Aug 18 09:43:20 2006 UTC

# Line 27 | Line 27
27  
28   #include "stdinc.h"
29   #include "conf/conf.h"
30 + #include "parse.h"
31  
32   #define YY_NO_UNPUT
33  
# Line 104 | Line 105 | conf_block: IDENTIFIER
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)
# Line 146 | Line 147 | number_range: NUMBER '.' '.' NUMBER
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   };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines