ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/conf_lexer.l
(Generate patch)

Comparing ircd-hybrid/trunk/src/conf_lexer.l (file contents):
Revision 1834 by michael, Fri Apr 19 19:50:27 2013 UTC vs.
Revision 3869 by michael, Thu Jun 5 22:19:27 2014 UTC

# Line 1 | Line 1
1   /*
2 < *  ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 < *  conf_lexer.l: Scans the ircd configuration file for tokens.
2 > *  ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3   *
4 < *  Copyright (C) 2002 by the past and present ircd coders, and others.
4 > *  Copyright (c) 2000-2014 ircd-hybrid development team
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 18 | Line 17
17   *  along with this program; if not, write to the Free Software
18   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
19   *  USA
20 < *
21 < *  $Id$
20 > */
21 >
22 > /*! \file ircd_lexer.l
23 > * \brief Scans the ircd configuration file for tokens.
24 > * \version $Id$
25   */
26  
27   %option case-insensitive
# Line 38 | Line 40
40   #define YY_FATAL_ERROR(msg) conf_yy_fatal_error(msg)
41   #define YY_INPUT(buf,result,max_size) \
42    if (!(result = conf_yy_input(buf, max_size))) \
43 <    YY_FATAL_ERROR("input in flex scanner failed");
43 >    YY_FATAL_ERROR("input in flex scanner failed");
44   #define MAX_INCLUDE_DEPTH 10
45  
46  
# Line 77 | Line 79 | include   \.include{WS}(\<.*\>|\".*\")
79  
80   %%
81   {include}       { cinclude(); }
82 < "/*"            { ccomment(); }
82 > "/*"            { ccomment(); }
83  
84 < \n.*            { strlcpy(linebuf, yytext+1, sizeof(linebuf)); ++lineno; yyless(1); }
84 > \n.*            { strlcpy(linebuf, yytext+1, sizeof(linebuf)); ++lineno; yyless(1); }
85  
86   {WS}            ;
87   {COMMENT}       ;
# Line 101 | Line 103 | include   \.include{WS}(\<.*\>|\".*\")
103                            int i,j;
104  
105                            yylval.string[yyleng-2] = '\0'; /* remove close
106 <                                                           *  quote
106 >                                                           *  quote
107                                                             */
108 <                          
108 >
109                            for (j=i=0 ;yylval.string[i] != '\0'; i++,j++)
110                              {
111                                if (yylval.string[i] != '\\')
# Line 113 | Line 115 | include   \.include{WS}(\<.*\>|\".*\")
115                                else
116                                  {
117                                    i++;
118 <                                  if (yylval.string[i] == '\0') /* XXX
118 >                                  if (yylval.string[i] == '\0') /* XXX
119                                                                   * should not
120                                                                   * happen
121                                                                   */
# Line 131 | Line 133 | include   \.include{WS}(\<.*\>|\".*\")
133                      }
134                  }
135  
136 < accept_password { return ACCEPT_PASSWORD; }
137 < admin           { return ADMIN; }
138 < administrator   { return ADMIN; }
139 < aftype          { return AFTYPE; }
140 < all             { return T_ALL; }
141 < auth            { return IRCD_AUTH; }
140 < autoconn        { return AUTOCONN; }
141 < can_flood       { return CAN_FLOOD; }
142 < caller_id_wait  { return CALLER_ID_WAIT; }
143 < opers_bypass_callerid  { return OPERS_BYPASS_CALLERID; }
144 < channel         { return CHANNEL; }
145 < cidr_bitlen_ipv4        { return CIDR_BITLEN_IPV4; }
146 < cidr_bitlen_ipv6        { return CIDR_BITLEN_IPV6; }
147 < class           { return CLASS; }
148 < cluster         { return T_CLUSTER; }
149 < connect         { return CONNECT; }
150 < connectfreq     { return CONNECTFREQ; }
151 < default_floodcount  { return DEFAULT_FLOODCOUNT; }
152 < default_split_server_count { return DEFAULT_SPLIT_SERVER_COUNT; }
153 < default_split_user_count   { return DEFAULT_SPLIT_USER_COUNT; }
154 < deny            { return DENY; }
155 < description     { return DESCRIPTION; }
156 < die             { return DIE; }
157 < disable_auth    { return DISABLE_AUTH; }
158 < disable_fake_channels { return DISABLE_FAKE_CHANNELS; }
159 < disable_remote_commands { return DISABLE_REMOTE_COMMANDS; }
160 < dline           { return T_DLINE; }
161 < dots_in_ident   { return DOTS_IN_IDENT; }
162 < egdpool_path        { return EGDPOOL_PATH; }
163 < email           { return EMAIL; }
164 < encrypted       { return ENCRYPTED; }
165 < exceed_limit    { return EXCEED_LIMIT; }
166 < exempt          { return EXEMPT; }
167 < file            { return T_FILE; }
168 < flags           { return IRCD_FLAGS; }
169 < flatten_links   { return FLATTEN_LINKS; }
170 < gecos           { return GECOS; }
171 < general         { return GENERAL; }
172 < gline           { return GLINE; }
173 < gline_enable    { return GLINE_ENABLE; }
174 < gline_exempt    { return GLINE_EXEMPT; }
175 < gline_duration  { return GLINE_DURATION; }
176 < gline_request_duration { return GLINE_REQUEST_DURATION; }
177 < gline_min_cidr  { return GLINE_MIN_CIDR; }
178 < gline_min_cidr6 { return GLINE_MIN_CIDR6; }
179 < globops         { return T_GLOBOPS; }
180 < global_kill     { return GLOBAL_KILL; }
181 < have_ident      { return NEED_IDENT; }
182 < need_ident      { return NEED_IDENT; }
183 < havent_read_conf { return HAVENT_READ_CONF; }
184 < hidden          { return HIDDEN; }
185 < hidden_name     { return HIDDEN_NAME; }
186 < hide_idle_from_opers { return HIDE_IDLE_FROM_OPERS; }
187 < hide_server_ips { return HIDE_SERVER_IPS; }
188 < hide_servers    { return HIDE_SERVERS; }
189 < hide_spoof_ips  { return HIDE_SPOOF_IPS; }
190 < host            { return HOST; }
191 < hub             { return HUB; }
192 < hub_mask        { return HUB_MASK; }
193 < ignore_bogus_ts { return IGNORE_BOGUS_TS; }
194 < invisible_on_connect { return INVISIBLE_ON_CONNECT; }
195 < ip              { return IP; }
196 < ipv4            { return T_IPV4; }
197 < ipv6            { return T_IPV6; }
198 < join_flood_count { return JOIN_FLOOD_COUNT; }
199 < join_flood_time  { return JOIN_FLOOD_TIME; }
200 < kill            { return KILL; }
201 < kill_chase_time_limit { return KILL_CHASE_TIME_LIMIT; }
202 < kline           { return KLINE; }
203 < kline_exempt    { return KLINE_EXEMPT; }
204 < leaf_mask       { return LEAF_MASK; }
205 < listen          { return LISTEN; }
206 < log             { return T_LOG; }
207 < masked          { return TMASKED; }
208 < max_clients     { return T_MAX_CLIENTS; }
209 < max_ident       { return MAX_IDENT; }
210 < max_idle        { return MAX_IDLE; }
211 < min_idle        { return MIN_IDLE; }
212 < max_local       { return MAX_LOCAL; }
213 < max_global      { return MAX_GLOBAL; }
214 < max_number      { return MAX_NUMBER; }
215 < max_nick_length { return MAX_NICK_LENGTH; }
216 < max_topic_length { return MAX_TOPIC_LENGTH; }
217 < max_watch       { return MAX_WATCH; }
218 < message_locale  { return MESSAGE_LOCALE; }
219 < min_nonwildcard { return MIN_NONWILDCARD; }
220 < min_nonwildcard_simple  { return MIN_NONWILDCARD_SIMPLE; }
221 < name            { return NAME; }
222 < need_password   { return NEED_PASSWORD; }
223 < network_desc    { return NETWORK_DESC; }
224 < network_name    { return NETWORK_NAME; }
225 < nick            { return NICK; }
226 < nick_changes    { return NICK_CHANGES; }
227 < no              { yylval.number = 0; return TBOOL; }
228 < no_create_on_split { return NO_CREATE_ON_SPLIT; }
229 < no_join_on_split   { return NO_JOIN_ON_SPLIT; }
230 < no_oper_flood   { return NO_OPER_FLOOD; }
231 < no_tilde        { return NO_TILDE; }
232 < number_per_cidr { return NUMBER_PER_CIDR; }
233 < number_per_ip   { return NUMBER_PER_IP; }
234 < oper            { return OPERATOR; }
235 < oper_pass_resv  { return OPER_PASS_RESV; }
236 < operator        { return OPERATOR; }
237 < passwd          { return PASSWORD; }
238 < password        { return PASSWORD; }
239 < ping_cookie     { return PING_COOKIE; }
240 < ping_time       { return PING_TIME; }
241 < port            { return PORT; }
242 < quarantine      { return RESV; }
243 < quiet_on_ban    { return QUIET_ON_BAN; }
244 < random_idle     { return RANDOM_IDLE; }
245 < reason          { return REASON; }
246 < recvq           { return T_RECVQ; }
247 < redirport       { return REDIRPORT; }
248 < redirserv       { return REDIRSERV; }
249 < regex           { return REGEX_T; }
250 < rehash          { return REHASH; }
251 < remote          { return REMOTE; }
252 < remoteban       { return REMOTEBAN; }
253 < restart         { return T_RESTART; }
254 < restrict_channels { return RESTRICT_CHANNELS; }
255 < resv            { return RESV; }
256 < resv_exempt     { return RESV_EXEMPT; }
257 < rsa_private_key_file            { return RSA_PRIVATE_KEY_FILE; }
258 < rsa_public_key_file             { return RSA_PUBLIC_KEY_FILE; }
259 < ssl                             { return T_SSL; }
260 < ssl_certificate_file        { return SSL_CERTIFICATE_FILE; }
261 < ssl_client_method       { return T_SSL_CLIENT_METHOD; }
262 < ssl_server_method       { return T_SSL_SERVER_METHOD; }
263 < ssl_dh_param_file       { return SSL_DH_PARAM_FILE; }
264 < ssl_cipher_list         { return T_SSL_CIPHER_LIST; }
265 < sslv3           { return T_SSLV3; }
266 < tlsv1           { return T_TLSV1; }
267 < send_password   { return SEND_PASSWORD; }
268 < sendq           { return SENDQ; }
269 < server          { return T_SERVER; }
270 < serverhide      { return SERVERHIDE; }
271 < serverinfo      { return SERVERINFO; }
272 < service          { return T_SERVICE; }
273 < services_name    { return T_SERVICES_NAME; }
274 < set              { return T_SET; }
275 < shared          { return T_SHARED; }
276 < short_motd      { return SHORT_MOTD; }
277 < sid             { return IRCD_SID; }
278 < size            { return T_SIZE; }
279 < spoof           { return SPOOF; }
280 < spoof_notice    { return SPOOF_NOTICE; }
281 < tkline_expire_notices { return TKLINE_EXPIRE_NOTICES; }
282 < type            { return TYPE; }
283 < true_no_oper_flood { return TRUE_NO_OPER_FLOOD; }
284 < umodes          { return T_UMODES; }
285 < unkline         { return UNKLINE; }
286 < undline         { return T_UNDLINE; }
287 < unlimited       { return T_UNLIMITED; }
288 < use_egd         { return USE_EGD; }
289 < use_logging     { return USE_LOGGING; }
290 < throttle_time { return THROTTLE_TIME; }
291 < user            { return USER; }
292 < vhost   { return VHOST; }
293 < vhost6  { return VHOST6; }
294 < webirc           { return T_WEBIRC; }
295 < xline           { return XLINE; }
296 < yes             { yylval.number = 1; return TBOOL; }
297 <
298 < failed_oper_notice      { return FAILED_OPER_NOTICE; }
299 < max_accept              { return MAX_ACCEPT; }
300 < max_nick_changes        { return MAX_NICK_CHANGES; }
301 < max_chans_per_oper      { return MAX_CHANS_PER_OPER; }
302 < max_chans_per_user      { return MAX_CHANS_PER_USER; }
303 < max_nick_time           { return MAX_NICK_TIME; }
304 < anti_nick_flood         { return ANTI_NICK_FLOOD; }
136 > accept_password             { return ACCEPT_PASSWORD; }
137 > admin                       { return ADMIN; }
138 > administrator               { return ADMIN; }
139 > aftype                      { return AFTYPE; }
140 > all                         { return T_ALL; }
141 > anti_nick_flood             { return ANTI_NICK_FLOOD; }
142   anti_spam_exit_message_time { return ANTI_SPAM_EXIT_MESSAGE_TIME; }
143 < ts_max_delta            { return TS_MAX_DELTA; }
144 < ts_warn_delta           { return TS_WARN_DELTA; }
145 < links_delay             { return LINKS_DELAY; }
146 < warn_no_nline           { return WARN_NO_NLINE; }
147 <
148 < stats_e_disabled        { return STATS_E_DISABLED; }
149 < stats_o_oper_only       { return STATS_O_OPER_ONLY; }
150 < stats_k_oper_only       { return STATS_K_OPER_ONLY; }
151 < stats_i_oper_only       { return STATS_I_OPER_ONLY; }
152 < stats_P_oper_only       { return STATS_P_OPER_ONLY; }
153 < pace_wait               { return PACE_WAIT; }
154 < pace_wait_simple        { return PACE_WAIT_SIMPLE; }
155 < knock_delay             { return KNOCK_DELAY; }
156 < knock_delay_channel     { return KNOCK_DELAY_CHANNEL; }
157 < max_bans                { return MAX_BANS; }
158 < modules                 { return MODULES; }
159 < module                  { return MODULE; }
160 < path                    { return PATH; }
161 < max_targets             { return MAX_TARGETS; }
162 <
163 < unxline                 { return T_UNXLINE; }
164 < unresv                  { return T_UNRESV; }
165 <
166 < oper_only_umodes        { return OPER_ONLY_UMODES; }
167 < oper_umodes             { return OPER_UMODES; }
168 < bots                    { return T_BOTS; }
169 < cconn                   { return T_CCONN; }
170 < cconn_full              { return T_CCONN_FULL; }
171 < deaf                    { return T_DEAF; }
172 < debug                   { return T_DEBUG; }
173 < full                    { return T_FULL; }
174 < skill                   { return T_SKILL; }
175 < nchange                 { return T_NCHANGE; }
176 < rej                     { return T_REJ; }
177 < unauth                  { return T_UNAUTH; }
178 < spy                     { return T_SPY; }
179 < external                { return T_EXTERNAL; }
180 < operwall                { return T_OPERWALL; }
181 < servnotice              { return T_SERVNOTICE; }
182 < invisible               { return T_INVISIBLE; }
183 < wallop                  { return T_WALLOP; }
184 < callerid                { return T_CALLERID; }
185 < softcallerid            { return T_SOFTCALLERID; }
186 < locops                  { return T_LOCOPS; }
187 <
188 < years                   { return YEARS; }
189 < year                    { return YEARS; }
190 < months                  { return MONTHS; }
191 < month                   { return MONTHS; }
192 < weeks                   { return WEEKS; }
193 < week                    { return WEEKS; }
194 < days                    { return DAYS; }
195 < day                     { return DAYS; }
196 < hours                   { return HOURS; }
197 < hour                    { return HOURS; }
198 < minutes                 { return MINUTES; }
199 < minute                  { return MINUTES; }
200 < seconds                 { return SECONDS; }
201 < second                  { return SECONDS; }
202 <
203 < bytes                   { return BYTES; }
204 < byte                    { return BYTES; }
205 < kilobytes               { return KBYTES; }
206 < kilobyte                { return KBYTES; }
207 < kbytes                  { return KBYTES; }
208 < kbyte                   { return KBYTES; }
209 < kb                      { return KBYTES; }
210 < megabytes               { return MBYTES; }
211 < megabyte                { return MBYTES; }
212 < mbytes                  { return MBYTES; }
213 < mbyte                   { return MBYTES; }
214 < mb                      { return MBYTES; }
215 < \.\.                    { return TWODOTS; }
143 > auth                        { return IRCD_AUTH; }
144 > autoconn                    { return AUTOCONN; }
145 > bots                        { return T_BOTS; }
146 > caller_id_wait              { return CALLER_ID_WAIT; }
147 > callerid                    { return T_CALLERID; }
148 > can_flood                   { return CAN_FLOOD; }
149 > cconn                       { return T_CCONN; }
150 > channel                     { return CHANNEL; }
151 > cidr_bitlen_ipv4            { return CIDR_BITLEN_IPV4; }
152 > cidr_bitlen_ipv6            { return CIDR_BITLEN_IPV6; }
153 > class                       { return CLASS; }
154 > cluster                     { return T_CLUSTER; }
155 > connect                     { return CONNECT; }
156 > connectfreq                 { return CONNECTFREQ; }
157 > cycle_on_host_change        { return CYCLE_ON_HOST_CHANGE; }
158 > deaf                        { return T_DEAF; }
159 > debug                       { return T_DEBUG; }
160 > default_floodcount          { return DEFAULT_FLOODCOUNT; }
161 > default_split_server_count  { return DEFAULT_SPLIT_SERVER_COUNT; }
162 > default_split_user_count    { return DEFAULT_SPLIT_USER_COUNT; }
163 > deny                        { return DENY; }
164 > description                 { return DESCRIPTION; }
165 > die                         { return DIE; }
166 > disable_auth                { return DISABLE_AUTH; }
167 > disable_fake_channels       { return DISABLE_FAKE_CHANNELS; }
168 > disable_remote_commands     { return DISABLE_REMOTE_COMMANDS; }
169 > dline                       { return T_DLINE; }
170 > dots_in_ident               { return DOTS_IN_IDENT; }
171 > egdpool_path                { return EGDPOOL_PATH; }
172 > email                       { return EMAIL; }
173 > encrypted                   { return ENCRYPTED; }
174 > exceed_limit                { return EXCEED_LIMIT; }
175 > exempt                      { return EXEMPT; }
176 > external                    { return T_EXTERNAL; }
177 > failed_oper_notice          { return FAILED_OPER_NOTICE; }
178 > farconnect                  { return T_FARCONNECT; }
179 > file                        { return T_FILE; }
180 > flags                       { return IRCD_FLAGS; }
181 > flatten_links               { return FLATTEN_LINKS; }
182 > full                        { return T_FULL; }
183 > gecos                       { return GECOS; }
184 > general                     { return GENERAL; }
185 > gline                       { return GLINE; }
186 > gline_duration              { return GLINE_DURATION; }
187 > gline_enable                { return GLINE_ENABLE; }
188 > gline_exempt                { return GLINE_EXEMPT; }
189 > gline_min_cidr              { return GLINE_MIN_CIDR; }
190 > gline_min_cidr6             { return GLINE_MIN_CIDR6; }
191 > gline_request_duration      { return GLINE_REQUEST_DURATION; }
192 > global_kill                 { return GLOBAL_KILL; }
193 > globops                     { return T_GLOBOPS; }
194 > have_ident                  { return NEED_IDENT; }
195 > havent_read_conf            { return HAVENT_READ_CONF; }
196 > hidden                      { return HIDDEN; }
197 > hidden_name                 { return HIDDEN_NAME; }
198 > hidechans                   { return HIDE_CHANS; }
199 > hideidle                    { return HIDE_IDLE; }
200 > hide_idle_from_opers        { return HIDE_IDLE_FROM_OPERS; }
201 > hide_server_ips             { return HIDE_SERVER_IPS; }
202 > hide_servers                { return HIDE_SERVERS; }
203 > hide_services               { return HIDE_SERVICES; }
204 > hide_spoof_ips              { return HIDE_SPOOF_IPS; }
205 > host                        { return HOST; }
206 > hub                         { return HUB; }
207 > hub_mask                    { return HUB_MASK; }
208 > ignore_bogus_ts             { return IGNORE_BOGUS_TS; }
209 > invisible                   { return T_INVISIBLE; }
210 > invisible_on_connect        { return INVISIBLE_ON_CONNECT; }
211 > invite_client_count         { return INVITE_CLIENT_COUNT; }
212 > invite_client_time          { return INVITE_CLIENT_TIME; }
213 > ip                          { return IP; }
214 > ipv4                        { return T_IPV4; }
215 > ipv6                        { return T_IPV6; }
216 > join_flood_count            { return JOIN_FLOOD_COUNT; }
217 > join_flood_time             { return JOIN_FLOOD_TIME; }
218 > kill                        { return KILL; }
219 > kill_chase_time_limit       { return KILL_CHASE_TIME_LIMIT; }
220 > kline                       { return KLINE; }
221 > kline_exempt                { return KLINE_EXEMPT; }
222 > knock_client_count          { return KNOCK_CLIENT_COUNT; }
223 > knock_client_time           { return KNOCK_CLIENT_TIME; }
224 > knock_delay_channel         { return KNOCK_DELAY_CHANNEL; }
225 > leaf_mask                   { return LEAF_MASK; }
226 > links_delay                 { return LINKS_DELAY; }
227 > listen                      { return LISTEN; }
228 > locops                      { return T_LOCOPS; }
229 > log                         { return T_LOG; }
230 > mask                        { return MASK; }
231 > masked                      { return TMASKED; }
232 > max_accept                  { return MAX_ACCEPT; }
233 > max_bans                    { return MAX_BANS; }
234 > max_chans_per_oper          { return MAX_CHANS_PER_OPER; }
235 > max_chans_per_user          { return MAX_CHANS_PER_USER; }
236 > max_clients                 { return T_MAX_CLIENTS; }
237 > max_global                  { return MAX_GLOBAL; }
238 > max_ident                   { return MAX_IDENT; }
239 > max_idle                    { return MAX_IDLE; }
240 > max_local                   { return MAX_LOCAL; }
241 > max_nick_changes            { return MAX_NICK_CHANGES; }
242 > max_nick_length             { return MAX_NICK_LENGTH; }
243 > max_nick_time               { return MAX_NICK_TIME; }
244 > max_number                  { return MAX_NUMBER; }
245 > max_targets                 { return MAX_TARGETS; }
246 > max_topic_length            { return MAX_TOPIC_LENGTH; }
247 > max_watch                   { return MAX_WATCH; }
248 > min_idle                    { return MIN_IDLE; }
249 > min_nonwildcard             { return MIN_NONWILDCARD; }
250 > min_nonwildcard_simple      { return MIN_NONWILDCARD_SIMPLE; }
251 > module                      { return MODULE; }
252 > modules                     { return MODULES; }
253 > motd                        { return MOTD; }
254 > name                        { return NAME; }
255 > nchange                     { return T_NCHANGE; }
256 > need_ident                  { return NEED_IDENT; }
257 > need_password               { return NEED_PASSWORD; }
258 > network_desc                { return NETWORK_DESC; }
259 > network_name                { return NETWORK_NAME; }
260 > nick                        { return NICK; }
261 > no_create_on_split          { return NO_CREATE_ON_SPLIT; }
262 > no_join_on_split            { return NO_JOIN_ON_SPLIT; }
263 > no_oper_flood               { return NO_OPER_FLOOD; }
264 > no_tilde                    { return NO_TILDE; }
265 > nononreg                    { return T_NONONREG; }
266 > number_per_cidr             { return NUMBER_PER_CIDR; }
267 > number_per_ip               { return NUMBER_PER_IP; }
268 > oper                        { return OPERATOR; }
269 > oper_only_umodes            { return OPER_ONLY_UMODES; }
270 > oper_pass_resv              { return OPER_PASS_RESV; }
271 > oper_umodes                 { return OPER_UMODES; }
272 > operator                    { return OPERATOR; }
273 > opers_bypass_callerid       { return OPERS_BYPASS_CALLERID; }
274 > pace_wait                   { return PACE_WAIT; }
275 > pace_wait_simple            { return PACE_WAIT_SIMPLE; }
276 > passwd                      { return PASSWORD; }
277 > password                    { return PASSWORD; }
278 > path                        { return PATH; }
279 > ping_cookie                 { return PING_COOKIE; }
280 > ping_time                   { return PING_TIME; }
281 > port                        { return PORT; }
282 > quarantine                  { return RESV; }
283 > random_idle                 { return RANDOM_IDLE; }
284 > reason                      { return REASON; }
285 > recvq                       { return T_RECVQ; }
286 > redirport                   { return REDIRPORT; }
287 > redirserv                   { return REDIRSERV; }
288 > rehash                      { return REHASH; }
289 > rej                         { return T_REJ; }
290 > remote                      { return REMOTE; }
291 > remoteban                   { return REMOTEBAN; }
292 > restart                     { return T_RESTART; }
293 > resv                        { return RESV; }
294 > resv_exempt                 { return RESV_EXEMPT; }
295 > rsa_private_key_file        { return RSA_PRIVATE_KEY_FILE; }
296 > rsa_public_key_file         { return RSA_PUBLIC_KEY_FILE; }
297 > send_password               { return SEND_PASSWORD; }
298 > sendq                       { return SENDQ; }
299 > server                      { return T_SERVER; }
300 > serverhide                  { return SERVERHIDE; }
301 > serverinfo                  { return SERVERINFO; }
302 > service                     { return T_SERVICE; }
303 > services_name               { return T_SERVICES_NAME; }
304 > servnotice                  { return T_SERVNOTICE; }
305 > set                         { return T_SET; }
306 > shared                      { return T_SHARED; }
307 > short_motd                  { return SHORT_MOTD; }
308 > sid                         { return IRCD_SID; }
309 > size                        { return T_SIZE; }
310 > skill                       { return T_SKILL; }
311 > softcallerid                { return T_SOFTCALLERID; }
312 > spoof                       { return SPOOF; }
313 > spoof_notice                { return SPOOF_NOTICE; }
314 > spy                         { return T_SPY; }
315 > squit                       { return SQUIT; }
316 > ssl                         { return T_SSL; }
317 > ssl_certificate_file        { return SSL_CERTIFICATE_FILE; }
318 > ssl_certificate_fingerprint { return SSL_CERTIFICATE_FINGERPRINT; }
319 > ssl_cipher_list             { return T_SSL_CIPHER_LIST; }
320 > ssl_client_method           { return T_SSL_CLIENT_METHOD; }
321 > ssl_connection_required     { return SSL_CONNECTION_REQUIRED; }
322 > ssl_dh_param_file           { return SSL_DH_PARAM_FILE; }
323 > ssl_server_method           { return T_SSL_SERVER_METHOD; }
324 > sslv3                       { return T_SSLV3; }
325 > stats_e_disabled            { return STATS_E_DISABLED; }
326 > stats_i_oper_only           { return STATS_I_OPER_ONLY; }
327 > stats_k_oper_only           { return STATS_K_OPER_ONLY; }
328 > stats_o_oper_only           { return STATS_O_OPER_ONLY; }
329 > stats_P_oper_only           { return STATS_P_OPER_ONLY; }
330 > stats_u_oper_only           { return STATS_U_OPER_ONLY; }
331 > throttle_time               { return THROTTLE_TIME; }
332 > tkline_expire_notices       { return TKLINE_EXPIRE_NOTICES; }
333 > tlsv1                       { return T_TLSV1; }
334 > true_no_oper_flood          { return TRUE_NO_OPER_FLOOD; }
335 > ts_max_delta                { return TS_MAX_DELTA; }
336 > ts_warn_delta               { return TS_WARN_DELTA; }
337 > type                        { return TYPE; }
338 > umodes                      { return T_UMODES; }
339 > unauth                      { return T_UNAUTH; }
340 > undline                     { return T_UNDLINE; }
341 > unkline                     { return UNKLINE; }
342 > unlimited                   { return T_UNLIMITED; }
343 > unresv                      { return T_UNRESV; }
344 > unxline                     { return T_UNXLINE; }
345 > use_egd                     { return USE_EGD; }
346 > use_logging                 { return USE_LOGGING; }
347 > user                        { return USER; }
348 > vhost                       { return VHOST; }
349 > vhost6                      { return VHOST6; }
350 > wallop                      { return T_WALLOP; }
351 > wallops                     { return T_WALLOPS; }
352 > warn_no_connect_block       { return WARN_NO_CONNECT_BLOCK; }
353 > webirc                      { return T_WEBIRC; }
354 > xline                       { return XLINE; }
355 >
356 > yes                         { yylval.number = 1; return TBOOL; }
357 > no                          { yylval.number = 0; return TBOOL; }
358 >
359 > years                       { return YEARS; }
360 > year                        { return YEARS; }
361 > months                      { return MONTHS; }
362 > month                       { return MONTHS; }
363 > weeks                       { return WEEKS; }
364 > week                        { return WEEKS; }
365 > days                        { return DAYS; }
366 > day                         { return DAYS; }
367 > hours                       { return HOURS; }
368 > hour                        { return HOURS; }
369 > minutes                     { return MINUTES; }
370 > minute                      { return MINUTES; }
371 > seconds                     { return SECONDS; }
372 > second                      { return SECONDS; }
373 >
374 > bytes                       { return BYTES; }
375 > byte                        { return BYTES; }
376 > kilobytes                   { return KBYTES; }
377 > kilobyte                    { return KBYTES; }
378 > kbytes                      { return KBYTES; }
379 > kbyte                       { return KBYTES; }
380 > kb                          { return KBYTES; }
381 > megabytes                   { return MBYTES; }
382 > megabyte                    { return MBYTES; }
383 > mbytes                      { return MBYTES; }
384 > mbyte                       { return MBYTES; }
385 > mb                          { return MBYTES; }
386 > \.\.                        { return TWODOTS; }
387  
388 < .                       { return yytext[0]; }
389 < <<EOF>>     { if (ieof()) yyterminate(); }
388 > .                           { return yytext[0]; }
389 > <<EOF>>                     { if (ieof()) yyterminate(); }
390  
391   %%
392  
# Line 410 | Line 418 | ccomment(void)
418        YY_FATAL_ERROR("EOF in comment");
419        /* XXX hack alert this disables
420         * the stupid unused function warning
421 <       * gcc generates
421 >       * gcc generates
422         */
423        if (1 == 0)
424          yy_fatal_error("EOF in comment");
# Line 433 | Line 441 | cinclude(void)
441  
442    /* log(L_NOTICE, "got include %s!", c); */
443  
444 <  /* do stacking and co. */
444 >  /* do stacking and co. */
445    if (include_stack_ptr >= MAX_INCLUDE_DEPTH)
446      ilog(LOG_TYPE_IRCD, "Includes nested too deep in %s", p);
447    else
# Line 447 | Line 455 | cinclude(void)
455        snprintf(filenamebuf, sizeof(filenamebuf), "%s/%s", ETCPATH, p);
456  
457      tmp_fbfile_in = fopen(filenamebuf, "r");
458 <    
458 >
459      if (tmp_fbfile_in == NULL)
460      {
461        ilog(LOG_TYPE_IRCD, "Unable to read configuration file '%s': %s",
# Line 490 | Line 498 | ieof(void)
498    yy_delete_buffer(YY_CURRENT_BUFFER);
499    lineno = lineno_stack[include_stack_ptr];
500    conf_parser_ctx.conf_file = inc_fbfile_in[include_stack_ptr];
501 <  strlcpy(conffilebuf, conffile_stack[include_stack_ptr], sizeof(conffilebuf));
501 >  strlcpy(conffilebuf, conffile_stack[include_stack_ptr], sizeof(conffilebuf));
502    yy_switch_to_buffer(include_stack[include_stack_ptr]);
503  
504    return 0;

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)