ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/config-parser.y
(Generate patch)

Comparing hopm/trunk/src/config-parser.y (file contents):
Revision 5405 by michael, Tue Jan 20 19:14:40 2015 UTC vs.
Revision 5426 by michael, Wed Jan 28 13:49:38 2015 UTC

# Line 152 | Line 152 | options_negcache_rebuild: NEGCACHE_REBUI
152  
153   options_pidfile: PIDFILE '=' STRING ';'
154   {
155 <   MyFree(OptionsItem->pidfile);
155 >   xfree(OptionsItem->pidfile);
156     OptionsItem->pidfile = xstrdup($3);
157   };
158  
# Line 163 | Line 163 | options_dns_fdlimit: DNS_FDLIMIT '=' NUM
163  
164   options_scanlog: SCANLOG '=' STRING ';'
165   {
166 <   MyFree(OptionsItem->scanlog);
166 >   xfree(OptionsItem->scanlog);
167     OptionsItem->scanlog = xstrdup($3);
168   };
169  
# Line 195 | Line 195 | irc_item: irc_away        |
195  
196   irc_away: AWAY '=' STRING ';'
197   {
198 <   MyFree(IRCItem->away);
198 >   xfree(IRCItem->away);
199     IRCItem->away = xstrdup($3);
200   };
201  
202   irc_kline: KLINE '=' STRING ';'
203   {
204 <   MyFree(IRCItem->kline);
204 >   xfree(IRCItem->kline);
205     IRCItem->kline = xstrdup($3);
206   };
207  
208   irc_mode: MODE '=' STRING ';'
209   {
210 <   MyFree(IRCItem->mode);
210 >   xfree(IRCItem->mode);
211     IRCItem->mode = xstrdup($3);
212   };
213  
214   irc_nick: NICK '=' STRING ';'
215   {
216 <   MyFree(IRCItem->nick);
216 >   xfree(IRCItem->nick);
217     IRCItem->nick = xstrdup($3);
218   };
219  
220   irc_nickserv: NICKSERV '=' STRING ';'
221   {
222 <   MyFree(IRCItem->nickserv);
222 >   xfree(IRCItem->nickserv);
223     IRCItem->nickserv = xstrdup($3);
224   };
225  
226   irc_oper: OPER '=' STRING ';'
227   {
228 <   MyFree(IRCItem->oper);
228 >   xfree(IRCItem->oper);
229     IRCItem->oper = xstrdup($3);
230   };
231  
232   irc_password: PASSWORD '=' STRING ';'
233   {
234 <   MyFree(IRCItem->password);
234 >   xfree(IRCItem->password);
235     IRCItem->password = xstrdup($3);
236   };
237  
# Line 263 | Line 263 | irc_readtimeout: READTIMEOUT '=' timespe
263  
264   irc_realname: REALNAME '=' STRING ';'
265   {
266 <   MyFree(IRCItem->realname);
266 >   xfree(IRCItem->realname);
267     IRCItem->realname = xstrdup($3);
268   };
269  
270   irc_server: SERVER '=' STRING ';'
271   {
272 <   MyFree(IRCItem->server);
272 >   xfree(IRCItem->server);
273     IRCItem->server = xstrdup($3);
274   };
275  
276   irc_username: USERNAME '=' STRING ';'
277   {
278 <   MyFree(IRCItem->username);
278 >   xfree(IRCItem->username);
279     IRCItem->username = xstrdup($3);
280   };
281  
282   irc_vhost: VHOST '=' STRING ';'
283   {
284 <   MyFree(IRCItem->vhost);
284 >   xfree(IRCItem->vhost);
285     IRCItem->vhost = xstrdup($3);
286   };
287  
288   irc_connregex: CONNREGEX '=' STRING ';'
289   {
290 <   MyFree(IRCItem->connregex);
290 >   xfree(IRCItem->connregex);
291     IRCItem->connregex = xstrdup($3);
292   };
293  
# Line 323 | Line 323 | channel_name: NAME '=' STRING ';'
323   {
324     struct ChannelConf *item = tmp;
325  
326 <   MyFree(item->name);
326 >   xfree(item->name);
327     item->name = xstrdup($3);
328   };
329  
# Line 331 | Line 331 | channel_key: KEY '=' STRING ';'
331   {
332     struct ChannelConf *item = tmp;
333  
334 <   MyFree(item->key);
334 >   xfree(item->key);
335     item->key = xstrdup($3);
336   };
337  
# Line 339 | Line 339 | channel_invite: INVITE '=' STRING ';'
339   {
340     struct ChannelConf *item = tmp;
341  
342 <   MyFree(item->invite);
342 >   xfree(item->invite);
343     item->invite = xstrdup($3);
344   };
345  
# Line 454 | Line 454 | scanner_item: scanner_name          |
454   scanner_name: NAME '=' STRING ';'
455   {
456     struct ScannerConf *item = tmp;
457 <   MyFree(item->name);
457 >   xfree(item->name);
458     item->name = xstrdup($3);
459   };
460  
461   scanner_vhost: VHOST '=' STRING ';'
462   {
463     struct ScannerConf *item = tmp;
464 <   MyFree(item->vhost);
464 >   xfree(item->vhost);
465     item->vhost = xstrdup($3);
466   };
467  
468   scanner_target_ip: TARGET_IP '=' STRING ';'
469   {
470     struct ScannerConf *item = tmp;
471 <   MyFree(item->target_ip);
471 >   xfree(item->target_ip);
472     item->target_ip = xstrdup($3);
473   };
474  
# Line 544 | Line 544 | opm_item: opm_dnsbl_from      |
544  
545   opm_dnsbl_from: DNSBL_FROM '=' STRING ';'
546   {
547 <   MyFree(OpmItem->dnsbl_from);
547 >   xfree(OpmItem->dnsbl_from);
548     OpmItem->dnsbl_from = xstrdup($3);
549   };
550  
551   opm_dnsbl_to: DNSBL_TO '=' STRING ';'
552   {
553 <   MyFree(OpmItem->dnsbl_to);
553 >   xfree(OpmItem->dnsbl_to);
554     OpmItem->dnsbl_to = xstrdup($3);
555   };
556  
557   opm_sendmail: SENDMAIL '=' STRING ';'
558   {
559 <   MyFree(OpmItem->sendmail);
559 >   xfree(OpmItem->sendmail);
560     OpmItem->sendmail = xstrdup($3);
561   };
562  
# Line 595 | Line 595 | blacklist_item: blacklist_name        |
595   blacklist_name: NAME '=' STRING ';' {
596     struct BlacklistConf *item = tmp;
597  
598 <   MyFree(item->name);
598 >   xfree(item->name);
599     item->name = xstrdup($3);
600   };
601  
602   blacklist_kline: KLINE '=' STRING ';' {
603     struct BlacklistConf *item = tmp;
604  
605 <   MyFree(item->kline);
605 >   xfree(item->kline);
606     item->kline = xstrdup($3);
607   };
608  

Diff Legend

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