2 * ircd_parser.y: A yacc/bison parser for ircd config files.
3 * This is part of ircu, an Internet Relay Chat server.
4 * The contents of this file are Copyright 2001 Diane Bruce,
5 * Andrew Miller, the ircd-hybrid team and the ircu team.
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
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
29 #include "ircd_features.h"
34 #include "ircd_alloc.h"
35 #include "ircd_chattr.h"
37 #include "ircd_reply.h"
38 #include "ircd_snprintf.h"
39 #include "ircd_string.h"
60 #include <arpa/inet.h>
62 #define MAX_STRINGS 80 /* Maximum number of feature params. */
63 #define USE_IPV4 (1 << 0)
64 #define USE_IPV6 (1 << 1)
66 extern struct LocalConf localConf;
67 extern struct DenyConf* denyConfList;
68 extern struct CRuleConf* cruleConfList;
69 extern struct ServerConf* serverConfList;
70 extern struct s_map* GlobalServiceMapList;
71 extern struct qline* GlobalQuarantineList;
74 /* Now all the globals we need :/... */
75 int tping, tconn, maxlinks, sendq, port, invert, stringno, flags;
76 char *name, *pass, *host, *ip, *username, *origin, *hub_limit;
77 char *stringlist[MAX_STRINGS];
78 struct ListenerFlags listen_flags;
79 struct ConnectionClass *c_class;
80 struct DenyConf *dconf;
81 struct ServerConf *sconf;
84 struct Privs privs_dirty;
86 static void parse_error(char *pattern,...) {
87 static char error_buffer[1024];
90 ircd_vsnprintf(NULL, error_buffer, sizeof(error_buffer), pattern, vl);
92 yyerror(error_buffer);
165 %token TOK_IPV4 TOK_IPV6
166 /* and now a lot of privileges... */
167 %token TPRIV_CHAN_LIMIT TPRIV_MODE_LCHAN TPRIV_DEOP_LCHAN TPRIV_WALK_LCHAN
168 %token TPRIV_LOCAL_KILL TPRIV_REHASH TPRIV_RESTART TPRIV_DIE
169 %token TPRIV_GLINE TPRIV_LOCAL_GLINE TPRIV_LOCAL_JUPE TPRIV_LOCAL_BADCHAN
170 %token TPRIV_LOCAL_OPMODE TPRIV_OPMODE TPRIV_SET TPRIV_WHOX TPRIV_BADCHAN
171 %token TPRIV_SEE_CHAN TPRIV_SHOW_INVIS TPRIV_SHOW_ALL_INVIS TPRIV_PROPAGATE
172 %token TPRIV_UNLIMIT_QUERY TPRIV_DISPLAY TPRIV_SEE_OPERS TPRIV_WIDE_GLINE
173 %token TPRIV_FORCE_OPMODE TPRIV_FORCE_LOCAL_OPMODE TPRIV_APASS_OPMODE
174 %token TPRIV_LIST_CHAN
175 /* and some types... */
177 %type <num> timespec timefactor factoredtimes factoredtime
178 %type <num> expr yesorno privtype address_family
188 /* Blocks in the config file... */
189 blocks: blocks block | block;
190 block: adminblock | generalblock | classblock | connectblock |
191 uworldblock | operblock | portblock | jupeblock | clientblock |
192 killblock | cruleblock | motdblock | featuresblock | quarantineblock |
193 pseudoblock | iauthblock | error ';';
195 /* The timespec, sizespec and expr was ripped straight from
197 timespec: expr | factoredtimes;
199 factoredtimes: factoredtimes factoredtime
204 factoredtime: expr timefactor
209 timefactor: SECONDS { $$ = 1; }
210 | MINUTES { $$ = 60; }
211 | HOURS { $$ = 60 * 60; }
212 | DAYS { $$ = 60 * 60 * 24; }
213 | WEEKS { $$ = 60 * 60 * 24 * 7; }
214 | MONTHS { $$ = 60 * 60 * 24 * 7 * 4; }
215 | YEARS { $$ = 60 * 60 * 24 * 365; }
216 | DECADES { $$ = 60 * 60 * 24 * 365 * 10; };
229 $$ = $1 * 1024 * 1024;
232 $$ = $1 * 1024 * 1024 * 1024;
235 $$ = $1 * 1024 * 1024 * 1024;
239 /* this is an arithmetic expression */
256 /* leave this out until we find why it makes BSD yacc dump core -larne
257 | '-' expr %prec NEG {
265 jupeblock: JUPE '{' jupeitems '}' ';' ;
266 jupeitems: jupeitem jupeitems | jupeitem;
268 jupenick: NICK '=' QSTRING ';'
274 generalblock: GENERAL
276 /* Zero out the vhost addresses, in case they were removed. */
277 memset(&VirtualHost_v4.addr, 0, sizeof(VirtualHost_v4.addr));
278 memset(&VirtualHost_v6.addr, 0, sizeof(VirtualHost_v6.addr));
279 } '{' generalitems '}' ';' {
280 if (localConf.name == NULL)
281 parse_error("Your General block must contain a name.");
282 if (localConf.numeric == 0)
283 parse_error("Your General block must contain a numeric (between 1 and 4095).");
285 generalitems: generalitem generalitems | generalitem;
286 generalitem: generalnumeric | generalname | generalvhost | generaldesc;
287 generalnumeric: NUMERIC '=' NUMBER ';'
289 if (localConf.numeric == 0)
290 localConf.numeric = $3;
291 else if (localConf.numeric != $3)
292 parse_error("Redefinition of server numeric %i (%i)", $3,
296 generalname: NAME '=' QSTRING ';'
298 if (localConf.name == NULL)
301 if (strcmp(localConf.name, $3))
302 parse_error("Redefinition of server name %s (%s)", $3,
308 generaldesc: DESCRIPTION '=' QSTRING ';'
310 MyFree(localConf.description);
311 localConf.description = $3;
312 ircd_strncpy(cli_info(&me), $3, REALLEN);
315 generalvhost: VHOST '=' QSTRING ';'
317 struct irc_in_addr addr;
320 if (!strcmp(vhost, "*")) {
321 /* This traditionally meant bind to all interfaces and connect
322 * from the default. */
323 } else if (!ircd_aton(&addr, vhost))
324 parse_error("Invalid virtual host '%s'.", vhost);
325 else if (irc_in_addr_is_ipv4(&addr))
326 memcpy(&VirtualHost_v4.addr, &addr, sizeof(addr));
328 memcpy(&VirtualHost_v6.addr, &addr, sizeof(addr));
334 MyFree(localConf.location1);
335 MyFree(localConf.location2);
336 MyFree(localConf.contact);
337 localConf.location1 = localConf.location2 = localConf.contact = NULL;
339 '{' adminitems '}' ';'
341 if (localConf.location1 == NULL)
342 DupString(localConf.location1, "");
343 if (localConf.location2 == NULL)
344 DupString(localConf.location2, "");
345 if (localConf.contact == NULL)
346 DupString(localConf.contact, "");
348 adminitems: adminitems adminitem | adminitem;
349 adminitem: adminlocation | admincontact;
350 adminlocation: LOCATION '=' QSTRING ';'
352 if (localConf.location1 == NULL)
353 localConf.location1 = $3;
354 else if (localConf.location2 == NULL)
355 localConf.location2 = $3;
356 else /* Otherwise just drop it. -A1kmm */
359 admincontact: CONTACT '=' QSTRING ';'
361 MyFree(localConf.contact);
362 localConf.contact = $3;
367 } '{' classitems '}' ';'
371 struct ConnectionClass *c_class;
372 add_class(name, tping, tconn, maxlinks, sendq);
373 c_class = find_class(name);
374 MyFree(c_class->default_umode);
375 c_class->default_umode = pass;
376 memcpy(&c_class->privs, &privs, sizeof(c_class->privs));
377 memcpy(&c_class->privs_dirty, &privs_dirty, sizeof(c_class->privs_dirty));
380 parse_error("Missing name in class block");
387 memset(&privs, 0, sizeof(privs));
388 memset(&privs_dirty, 0, sizeof(privs_dirty));
390 classitems: classitem classitems | classitem;
391 classitem: classname | classpingfreq | classconnfreq | classmaxlinks |
392 classsendq | classusermode | priv;
393 classname: NAME '=' QSTRING ';'
398 classpingfreq: PINGFREQ '=' timespec ';'
402 classconnfreq: CONNECTFREQ '=' timespec ';'
406 classmaxlinks: MAXLINKS '=' expr ';'
410 classsendq: SENDQ '=' sizespec ';'
414 classusermode: USERMODE '=' QSTRING ';'
420 connectblock: CONNECT
423 flags = CONF_AUTOCONNECT;
424 } '{' connectitems '}' ';'
426 struct ConfItem *aconf = NULL;
428 parse_error("Missing name in connect block");
429 else if (pass == NULL)
430 parse_error("Missing password in connect block");
431 else if (strlen(pass) > PASSWDLEN)
432 parse_error("Password too long in connect block");
433 else if (host == NULL)
434 parse_error("Missing host in connect block");
435 else if (strchr(host, '*') || strchr(host, '?'))
436 parse_error("Invalid host '%s' in connect block", host);
437 else if (c_class == NULL)
438 parse_error("Missing or non-existent class in connect block");
440 aconf = make_conf(CONF_SERVER);
442 aconf->origin_name = origin;
443 aconf->passwd = pass;
444 aconf->conn_class = c_class;
445 aconf->address.port = port;
447 aconf->maximum = maxlinks;
448 aconf->hub_limit = hub_limit;
449 aconf->flags = flags;
450 lookup_confhost(aconf);
459 name = pass = host = origin = hub_limit = NULL;
463 connectitems: connectitem connectitems | connectitem;
464 connectitem: connectname | connectpass | connectclass | connecthost
465 | connectport | connectvhost | connectleaf | connecthub
466 | connecthublimit | connectmaxhops | connectauto;
467 connectname: NAME '=' QSTRING ';'
472 connectpass: PASS '=' QSTRING ';'
477 connectclass: CLASS '=' QSTRING ';'
479 c_class = find_class($3);
481 parse_error("No such connection class '%s' for Connect block", $3);
484 connecthost: HOST '=' QSTRING ';'
489 connectport: PORT '=' NUMBER ';'
493 connectvhost: VHOST '=' QSTRING ';'
498 connectleaf: LEAF ';'
505 DupString(hub_limit, "*");
507 connecthublimit: HUB '=' QSTRING ';'
512 connectmaxhops: MAXHOPS '=' expr ';'
516 connectauto: AUTOCONNECT '=' YES ';' { flags |= CONF_AUTOCONNECT; }
517 | AUTOCONNECT '=' NO ';' { flags &= ~CONF_AUTOCONNECT; };
519 uworldblock: UWORLD '{' uworlditems '}' ';';
520 uworlditems: uworlditem uworlditems | uworlditem;
521 uworlditem: uworldname;
522 uworldname: NAME '=' QSTRING ';'
524 make_conf(CONF_UWORLD)->host = $3;
527 operblock: OPER '{' operitems '}' ';'
529 struct ConfItem *aconf = NULL;
531 parse_error("Missing name in operator block");
532 else if (pass == NULL)
533 parse_error("Missing password in operator block");
534 /* Do not check password length because it may be crypted. */
535 else if (host == NULL)
536 parse_error("Missing host in operator block");
537 else if (c_class == NULL)
538 parse_error("Invalid or missing class in operator block");
539 else if (!FlagHas(&privs_dirty, PRIV_PROPAGATE)
540 && !FlagHas(&c_class->privs_dirty, PRIV_PROPAGATE))
541 parse_error("Operator block for %s and class %s have no LOCAL setting", name, c_class->cc_name);
543 aconf = make_conf(CONF_OPERATOR);
545 aconf->passwd = pass;
546 conf_parse_userhost(aconf, host);
547 aconf->conn_class = c_class;
548 memcpy(&aconf->privs, &privs, sizeof(aconf->privs));
549 memcpy(&aconf->privs_dirty, &privs_dirty, sizeof(aconf->privs_dirty));
556 name = pass = host = NULL;
558 memset(&privs, 0, sizeof(privs));
559 memset(&privs_dirty, 0, sizeof(privs_dirty));
561 operitems: operitem | operitems operitem;
562 operitem: opername | operpass | operhost | operclass | priv;
563 opername: NAME '=' QSTRING ';'
568 operpass: PASS '=' QSTRING ';'
573 operhost: HOST '=' QSTRING ';'
576 if (!strchr($3, '@'))
579 host = (char*) MyMalloc((uh_len = strlen($3)+3));
580 ircd_snprintf(0, host, uh_len, "*@%s", $3);
586 operclass: CLASS '=' QSTRING ';'
588 c_class = find_class($3);
590 parse_error("No such connection class '%s' for Operator block", $3);
594 priv: privtype '=' yesorno ';'
596 FlagSet(&privs_dirty, $1);
597 if (($3 == 1) ^ invert)
604 privtype: TPRIV_CHAN_LIMIT { $$ = PRIV_CHAN_LIMIT; } |
605 TPRIV_MODE_LCHAN { $$ = PRIV_MODE_LCHAN; } |
606 TPRIV_DEOP_LCHAN { $$ = PRIV_DEOP_LCHAN; } |
607 TPRIV_WALK_LCHAN { $$ = PRIV_WALK_LCHAN; } |
608 KILL { $$ = PRIV_KILL; } |
609 TPRIV_LOCAL_KILL { $$ = PRIV_LOCAL_KILL; } |
610 TPRIV_REHASH { $$ = PRIV_REHASH; } |
611 TPRIV_RESTART { $$ = PRIV_RESTART; } |
612 TPRIV_DIE { $$ = PRIV_DIE; } |
613 TPRIV_GLINE { $$ = PRIV_GLINE; } |
614 TPRIV_LOCAL_GLINE { $$ = PRIV_LOCAL_GLINE; } |
615 JUPE { $$ = PRIV_JUPE; } |
616 TPRIV_LOCAL_JUPE { $$ = PRIV_LOCAL_JUPE; } |
617 TPRIV_LOCAL_OPMODE { $$ = PRIV_LOCAL_OPMODE; } |
618 TPRIV_OPMODE { $$ = PRIV_OPMODE; }|
619 TPRIV_SET { $$ = PRIV_SET; } |
620 TPRIV_WHOX { $$ = PRIV_WHOX; } |
621 TPRIV_BADCHAN { $$ = PRIV_BADCHAN; } |
622 TPRIV_LOCAL_BADCHAN { $$ = PRIV_LOCAL_BADCHAN; } |
623 TPRIV_SEE_CHAN { $$ = PRIV_SEE_CHAN; } |
624 TPRIV_SHOW_INVIS { $$ = PRIV_SHOW_INVIS; } |
625 TPRIV_SHOW_ALL_INVIS { $$ = PRIV_SHOW_ALL_INVIS; } |
626 TPRIV_PROPAGATE { $$ = PRIV_PROPAGATE; } |
627 TPRIV_UNLIMIT_QUERY { $$ = PRIV_UNLIMIT_QUERY; } |
628 TPRIV_DISPLAY { $$ = PRIV_DISPLAY; } |
629 TPRIV_SEE_OPERS { $$ = PRIV_SEE_OPERS; } |
630 TPRIV_WIDE_GLINE { $$ = PRIV_WIDE_GLINE; } |
631 TPRIV_LIST_CHAN { $$ = PRIV_LIST_CHAN; } |
632 LOCAL { $$ = PRIV_PROPAGATE; invert = 1; } |
633 TPRIV_FORCE_OPMODE { $$ = PRIV_FORCE_OPMODE; } |
634 TPRIV_FORCE_LOCAL_OPMODE { $$ = PRIV_FORCE_LOCAL_OPMODE; } |
635 TPRIV_APASS_OPMODE { $$ = PRIV_APASS_OPMODE; } ;
637 yesorno: YES { $$ = 1; } | NO { $$ = 0; };
639 /* not a recursive definition because some pedant will just come along
640 * and whine that the parser accepts "ipv4 ipv4 ipv4 ipv4"
644 | TOK_IPV4 { $$ = USE_IPV4; }
645 | TOK_IPV6 { $$ = USE_IPV6; }
646 | TOK_IPV4 TOK_IPV6 { $$ = USE_IPV4 | USE_IPV6; }
647 | TOK_IPV6 TOK_IPV4 { $$ = USE_IPV6 | USE_IPV4; }
650 /* The port block... */
651 portblock: PORT '{' portitems '}' ';'
653 if (!FlagHas(&listen_flags, LISTEN_IPV4)
654 && !FlagHas(&listen_flags, LISTEN_IPV6))
656 FlagSet(&listen_flags, LISTEN_IPV4);
657 FlagSet(&listen_flags, LISTEN_IPV6);
659 if (port > 0 && port <= 0xFFFF)
660 add_listener(port, host, pass, &listen_flags);
662 parse_error("Port %d is out of range", port);
665 memset(&listen_flags, 0, sizeof(listen_flags));
669 portitems: portitem portitems | portitem;
670 portitem: portnumber | portvhost | portmask | portserver | porthidden;
671 portnumber: PORT '=' address_family NUMBER ';'
674 if (families & USE_IPV4)
675 FlagSet(&listen_flags, LISTEN_IPV4);
676 else if (families & USE_IPV6)
677 FlagSet(&listen_flags, LISTEN_IPV6);
681 portvhost: VHOST '=' address_family QSTRING ';'
684 if (families & USE_IPV4)
685 FlagSet(&listen_flags, LISTEN_IPV4);
686 else if (families & USE_IPV6)
687 FlagSet(&listen_flags, LISTEN_IPV6);
692 portmask: MASK '=' QSTRING ';'
698 portserver: SERVER '=' YES ';'
700 FlagSet(&listen_flags, LISTEN_SERVER);
701 } | SERVER '=' NO ';'
703 FlagClr(&listen_flags, LISTEN_SERVER);
706 porthidden: HIDDEN '=' YES ';'
708 FlagSet(&listen_flags, LISTEN_HIDDEN);
709 } | HIDDEN '=' NO ';'
711 FlagClr(&listen_flags, LISTEN_HIDDEN);
719 '{' clientitems '}' ';'
721 struct ConfItem *aconf = 0;
722 struct irc_in_addr addr;
723 unsigned char addrbits = 0;
726 parse_error("Invalid or missing class in Client block");
727 else if (pass && strlen(pass) > PASSWDLEN)
728 parse_error("Password too long in connect block");
729 else if (ip && !ipmask_parse(ip, &addr, &addrbits))
730 parse_error("Invalid IP address %s in Client block", ip);
732 aconf = make_conf(CONF_CLIENT);
733 aconf->username = username;
736 memcpy(&aconf->address.addr, &addr, sizeof(aconf->address.addr));
738 memset(&aconf->address.addr, 0, sizeof(aconf->address.addr));
739 aconf->address.port = port;
740 aconf->addrbits = addrbits;
742 aconf->conn_class = c_class;
743 aconf->maximum = maxlinks;
744 aconf->passwd = pass;
759 clientitems: clientitem clientitems | clientitem;
760 clientitem: clienthost | clientip | clientusername | clientclass | clientpass | clientmaxlinks | clientport;
761 clienthost: HOST '=' QSTRING ';'
763 char *sep = strchr($3, '@');
768 DupString(host, sep);
774 clientip: IP '=' QSTRING ';'
777 sep = strchr($3, '@');
788 clientusername: USERNAME '=' QSTRING ';'
793 clientclass: CLASS '=' QSTRING ';'
795 c_class = find_class($3);
797 parse_error("No such connection class '%s' for Client block", $3);
800 clientpass: PASS '=' QSTRING ';'
805 clientmaxlinks: MAXLINKS '=' expr ';'
809 clientport: PORT '=' expr ';'
816 dconf = (struct DenyConf*) MyCalloc(1, sizeof(*dconf));
817 } '{' killitems '}' ';'
819 if (dconf->usermask || dconf->hostmask ||dconf->realmask) {
820 dconf->next = denyConfList;
821 denyConfList = dconf;
825 MyFree(dconf->usermask);
826 MyFree(dconf->hostmask);
827 MyFree(dconf->realmask);
828 MyFree(dconf->message);
830 parse_error("Kill block must match on at least one of username, host or realname");
834 killitems: killitem killitems | killitem;
835 killitem: killuhost | killreal | killusername | killreasonfile | killreason;
836 killuhost: HOST '=' QSTRING ';'
839 MyFree(dconf->hostmask);
840 MyFree(dconf->usermask);
841 if ((h = strchr($3, '@')) == NULL)
843 DupString(dconf->usermask, "*");
844 dconf->hostmask = $3;
849 DupString(dconf->hostmask, h);
850 dconf->usermask = $3;
852 ipmask_parse(dconf->hostmask, &dconf->address, &dconf->bits);
855 killusername: USERNAME '=' QSTRING ';'
857 MyFree(dconf->usermask);
858 dconf->usermask = $3;
861 killreal: REAL '=' QSTRING ';'
863 MyFree(dconf->realmask);
864 dconf->realmask = $3;
867 killreason: REASON '=' QSTRING ';'
869 dconf->flags &= ~DENY_FLAGS_FILE;
870 MyFree(dconf->message);
874 killreasonfile: TFILE '=' QSTRING ';'
876 dconf->flags |= DENY_FLAGS_FILE;
877 MyFree(dconf->message);
884 } '{' cruleitems '}' ';'
886 struct CRuleNode *node = NULL;
888 parse_error("Missing host in crule block");
889 else if (pass == NULL)
890 parse_error("Missing rule in crule block");
891 else if ((node = crule_parse(pass)) == NULL)
892 parse_error("Invalid rule '%s' in crule block", pass);
895 struct CRuleConf *p = (struct CRuleConf*) MyMalloc(sizeof(*p));
900 p->next = cruleConfList;
912 cruleitems: cruleitem cruleitems | cruleitem;
913 cruleitem: cruleserver | crulerule | cruleall;
915 cruleserver: SERVER '=' QSTRING ';'
922 crulerule: RULE '=' QSTRING ';'
928 cruleall: ALL '=' YES ';'
936 motdblock: MOTD '{' motditems '}' ';'
938 if (host != NULL && pass != NULL)
939 motd_add(host, pass);
945 motditems: motditem motditems | motditem;
946 motditem: motdhost | motdfile;
947 motdhost: HOST '=' QSTRING ';'
952 motdfile: TFILE '=' QSTRING ';'
957 featuresblock: FEATURES '{' featureitems '}' ';';
958 featureitems: featureitems featureitem | featureitem;
964 } '=' stringlist ';' {
966 feature_set(NULL, (const char * const *)stringlist, stringno);
967 for (ii = 0; ii < stringno; ++ii)
968 MyFree(stringlist[ii]);
971 stringlist: stringlist extrastring | extrastring;
974 if (stringno < MAX_STRINGS)
975 stringlist[stringno++] = $1;
980 quarantineblock: QUARANTINE '{' quarantineitems '}' ';';
981 quarantineitems: quarantineitems quarantineitem | quarantineitem;
982 quarantineitem: QSTRING '=' QSTRING ';'
984 struct qline *qconf = MyCalloc(1, sizeof(*qconf));
987 qconf->next = GlobalQuarantineList;
988 GlobalQuarantineList = qconf;
991 pseudoblock: PSEUDO QSTRING '{'
993 smap = MyCalloc(1, sizeof(struct s_map));
1001 parse_error("Missing name in pseudo %s block", smap->command);
1002 else if (!smap->services)
1003 parse_error("Missing nick in pseudo %s block", smap->command);
1006 if (valid && register_mapping(smap))
1008 smap->next = GlobalServiceMapList;
1009 GlobalServiceMapList = smap;
1018 pseudoitems: pseudoitem pseudoitems | pseudoitem;
1019 pseudoitem: pseudoname | pseudoprepend | pseudonick | pseudoflags;
1020 pseudoname: NAME '=' QSTRING ';'
1025 pseudoprepend: PREPEND '=' QSTRING ';'
1027 MyFree(smap->prepend);
1030 pseudonick: NICK '=' QSTRING ';'
1032 char *sep = strchr($3, '@');
1035 size_t slen = strlen($3);
1036 struct nick_host *nh = MyMalloc(sizeof(*nh) + slen);
1037 memcpy(nh->nick, $3, slen + 1);
1038 nh->nicklen = sep - $3;
1039 nh->next = smap->services;
1040 smap->services = nh;
1044 pseudoflags: FAST ';'
1046 smap->flags |= SMAP_FAST;
1049 iauthblock: IAUTH '{' iauthitems '}' ';'
1051 auth_spawn(stringno, stringlist);
1052 while (stringno > 0)
1053 MyFree(stringlist[--stringno]);
1056 iauthitems: iauthitem iauthitems | iauthitem;
1057 iauthitem: iauthprogram;
1058 iauthprogram: PROGRAM '='
1060 while (stringno > 0)
1061 MyFree(stringlist[--stringno]);