Thu Mar 17 15:28:00 2016 UTC ()
Regen without #line directives.
- nbyacc -l -d -o initparse.c parse.y
- nblex -L -t -p scan.l > initscan.c


(nakayama)
diff -r1.1 -r1.2 src/external/bsd/flex/dist/src/initparse.c
diff -r1.1 -r1.2 src/external/bsd/flex/dist/src/initscan.c

cvs diff -r1.1 -r1.2 src/external/bsd/flex/dist/src/initparse.c (expand / switch to unified diff)

--- src/external/bsd/flex/dist/src/initparse.c 2016/01/09 17:39:52 1.1
+++ src/external/bsd/flex/dist/src/initparse.c 2016/03/17 15:28:00 1.2
@@ -9,27 +9,26 @@ @@ -9,27 +9,26 @@
9#define YYEMPTY (-1) 9#define YYEMPTY (-1)
10#define yyclearin (yychar = YYEMPTY) 10#define yyclearin (yychar = YYEMPTY)
11#define yyerrok (yyerrflag = 0) 11#define yyerrok (yyerrflag = 0)
12#define YYRECOVERING() (yyerrflag != 0) 12#define YYRECOVERING() (yyerrflag != 0)
13#define YYENOMEM (-2) 13#define YYENOMEM (-2)
14#define YYEOF 0 14#define YYEOF 0
15#undef YYBTYACC 15#undef YYBTYACC
16#define YYBTYACC 0 16#define YYBTYACC 0
17#define YYDEBUGSTR YYPREFIX "debug" 17#define YYDEBUGSTR YYPREFIX "debug"
18#define YYPREFIX "yy" 18#define YYPREFIX "yy"
19 19
20#define YYPURE 0 20#define YYPURE 0
21 21
22#line 37 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
23/* Copyright (c) 1990 The Regents of the University of California. */ 22/* Copyright (c) 1990 The Regents of the University of California. */
24/* All rights reserved. */ 23/* All rights reserved. */
25 24
26/* This code is derived from software contributed to Berkeley by */ 25/* This code is derived from software contributed to Berkeley by */
27/* Vern Paxson. */ 26/* Vern Paxson. */
28 27
29/* The United States Government has rights in this work pursuant */ 28/* The United States Government has rights in this work pursuant */
30/* to contract no. DE-AC03-76SF00098 between the United States */ 29/* to contract no. DE-AC03-76SF00098 between the United States */
31/* Department of Energy and the University of California. */ 30/* Department of Energy and the University of California. */
32 31
33/* This file is part of flex. */ 32/* This file is part of flex. */
34 33
35/* Redistribution and use in source and binary forms, with or without */ 34/* Redistribution and use in source and binary forms, with or without */
@@ -41,27 +40,27 @@ @@ -41,27 +40,27 @@
41/* 2. Redistributions in binary form must reproduce the above copyright */ 40/* 2. Redistributions in binary form must reproduce the above copyright */
42/* notice, this list of conditions and the following disclaimer in the */ 41/* notice, this list of conditions and the following disclaimer in the */
43/* documentation and/or other materials provided with the distribution. */ 42/* documentation and/or other materials provided with the distribution. */
44 43
45/* Neither the name of the University nor the names of its contributors */ 44/* Neither the name of the University nor the names of its contributors */
46/* may be used to endorse or promote products derived from this software */ 45/* may be used to endorse or promote products derived from this software */
47/* without specific prior written permission. */ 46/* without specific prior written permission. */
48 47
49/* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR */ 48/* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR */
50/* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED */ 49/* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED */
51/* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */ 50/* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
52/* PURPOSE. */ 51/* PURPOSE. */
53#include "flexdef.h" 52#include "flexdef.h"
54__RCSID("$NetBSD: initparse.c,v 1.1 2016/01/09 17:39:52 christos Exp $"); 53__RCSID("$NetBSD: initparse.c,v 1.2 2016/03/17 15:28:00 nakayama Exp $");
55 54
56#include "tables.h" 55#include "tables.h"
57 56
58int pat, scnum, eps, headcnt, trailcnt, lastchar, i, rulelen; 57int pat, scnum, eps, headcnt, trailcnt, lastchar, i, rulelen;
59int trlcontxt, xcluflg, currccl, cclsorted, varlength, variable_trail_rule; 58int trlcontxt, xcluflg, currccl, cclsorted, varlength, variable_trail_rule;
60 59
61int *scon_stk; 60int *scon_stk;
62int scon_stk_ptr; 61int scon_stk_ptr;
63 62
64static int madeany = false; /* whether we've made the '.' character class */ 63static int madeany = false; /* whether we've made the '.' character class */
65static int ccldot, cclany; 64static int ccldot, cclany;
66int previous_continued_action; /* whether the previous rule's action was '|' */ 65int previous_continued_action; /* whether the previous rule's action was '|' */
67 66
@@ -91,27 +90,26 @@ int previous_continued_action; /* whethe @@ -91,27 +90,26 @@ int previous_continued_action; /* whethe
91 }while(0) 90 }while(0)
92 91
93/* While POSIX defines isblank(), it's not ANSI C. */ 92/* While POSIX defines isblank(), it's not ANSI C. */
94#define IS_BLANK(c) ((c) == ' ' || (c) == '\t') 93#define IS_BLANK(c) ((c) == ' ' || (c) == '\t')
95 94
96/* On some over-ambitious machines, such as DEC Alpha's, the default 95/* On some over-ambitious machines, such as DEC Alpha's, the default
97 * token type is "long" instead of "int"; this leads to problems with 96 * token type is "long" instead of "int"; this leads to problems with
98 * declaring yylval in flexdef.h. But so far, all the yacc's I've seen 97 * declaring yylval in flexdef.h. But so far, all the yacc's I've seen
99 * wrap their definitions of YYSTYPE with "#ifndef YYSTYPE"'s, so the 98 * wrap their definitions of YYSTYPE with "#ifndef YYSTYPE"'s, so the
100 * following should ensure that the default token type is "int". 99 * following should ensure that the default token type is "int".
101 */ 100 */
102#define YYSTYPE int 101#define YYSTYPE int
103 102
104#line 105 "parse.c" 
105 103
106#if ! defined(YYSTYPE) && ! defined(YYSTYPE_IS_DECLARED) 104#if ! defined(YYSTYPE) && ! defined(YYSTYPE_IS_DECLARED)
107/* Default: YYSTYPE is the semantic value type. */ 105/* Default: YYSTYPE is the semantic value type. */
108typedef int YYSTYPE; 106typedef int YYSTYPE;
109# define YYSTYPE_IS_DECLARED 1 107# define YYSTYPE_IS_DECLARED 1
110#endif 108#endif
111 109
112/* compatibility with bison */ 110/* compatibility with bison */
113#ifdef YYPARSE_PARAM 111#ifdef YYPARSE_PARAM
114/* compatibility with FreeBSD */ 112/* compatibility with FreeBSD */
115# ifdef YYPARSE_PARAM_TYPE 113# ifdef YYPARSE_PARAM_TYPE
116# define YYPARSE_DECL() yyparse(YYPARSE_PARAM_TYPE YYPARSE_PARAM) 114# define YYPARSE_DECL() yyparse(YYPARSE_PARAM_TYPE YYPARSE_PARAM)
117# else 115# else
@@ -596,27 +594,26 @@ YYSTYPE yylval; @@ -596,27 +594,26 @@ YYSTYPE yylval;
596 594
597#define YYINITSTACKSIZE 200 595#define YYINITSTACKSIZE 200
598 596
599typedef struct { 597typedef struct {
600 unsigned stacksize; 598 unsigned stacksize;
601 YYINT *s_base; 599 YYINT *s_base;
602 YYINT *s_mark; 600 YYINT *s_mark;
603 YYINT *s_last; 601 YYINT *s_last;
604 YYSTYPE *l_base; 602 YYSTYPE *l_base;
605 YYSTYPE *l_mark; 603 YYSTYPE *l_mark;
606} YYSTACKDATA; 604} YYSTACKDATA;
607/* variables for the parser stack */ 605/* variables for the parser stack */
608static YYSTACKDATA yystack; 606static YYSTACKDATA yystack;
609#line 951 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
610 607
611 608
612/* build_eof_action - build the "<<EOF>>" action for the active start 609/* build_eof_action - build the "<<EOF>>" action for the active start
613 * conditions 610 * conditions
614 */ 611 */
615 612
616void build_eof_action() 613void build_eof_action()
617 { 614 {
618 int i; 615 int i;
619 char action_text[MAXLINE]; 616 char action_text[MAXLINE];
620 617
621 for ( i = 1; i <= scon_stk_ptr; ++i ) 618 for ( i = 1; i <= scon_stk_ptr; ++i )
622 { 619 {
@@ -740,27 +737,26 @@ int line; @@ -740,27 +737,26 @@ int line;
740 fprintf( stderr, "%s:%d: %s\n", infilename, line, str ); 737 fprintf( stderr, "%s:%d: %s\n", infilename, line, str );
741 } 738 }
742 739
743 740
744/* yyerror - eat up an error message from the parser; 741/* yyerror - eat up an error message from the parser;
745 * currently, messages are ignore 742 * currently, messages are ignore
746 */ 743 */
747 744
748void yyerror( msg ) 745void yyerror( msg )
749const char *msg; 746const char *msg;
750 { 747 {
751 (void)msg; 748 (void)msg;
752 } 749 }
753#line 754 "parse.c" 
754 750
755#if YYDEBUG 751#if YYDEBUG
756#include <stdio.h> /* needed for printf */ 752#include <stdio.h> /* needed for printf */
757#endif 753#endif
758 754
759#include <stdlib.h> /* needed for malloc, etc */ 755#include <stdlib.h> /* needed for malloc, etc */
760#include <string.h> /* needed for memset */ 756#include <string.h> /* needed for memset */
761 757
762/* allocate initial stack or double stack size, up to YYMAXDEPTH */ 758/* allocate initial stack or double stack size, up to YYMAXDEPTH */
763static int yygrowstack(YYSTACKDATA *data) 759static int yygrowstack(YYSTACKDATA *data)
764{ 760{
765 int i; 761 int i;
766 unsigned newsize; 762 unsigned newsize;
@@ -943,27 +939,26 @@ yyreduce: @@ -943,27 +939,26 @@ yyreduce:
943#if YYDEBUG 939#if YYDEBUG
944 if (yydebug) 940 if (yydebug)
945 printf("%sdebug: state %d, reducing by rule %d (%s)\n", 941 printf("%sdebug: state %d, reducing by rule %d (%s)\n",
946 YYPREFIX, yystate, yyn, yyrule[yyn]); 942 YYPREFIX, yystate, yyn, yyrule[yyn]);
947#endif 943#endif
948 yym = yylen[yyn]; 944 yym = yylen[yyn];
949 if (yym) 945 if (yym)
950 yyval = yystack.l_mark[1-yym]; 946 yyval = yystack.l_mark[1-yym];
951 else 947 else
952 memset(&yyval, 0, sizeof yyval); 948 memset(&yyval, 0, sizeof yyval);
953 switch (yyn) 949 switch (yyn)
954 { 950 {
955case 1: 951case 1:
956#line 122 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
957 { /* add default rule */ 952 { /* add default rule */
958 int def_rule; 953 int def_rule;
959 954
960 pat = cclinit(); 955 pat = cclinit();
961 cclnegate( pat ); 956 cclnegate( pat );
962 957
963 def_rule = mkstate( -pat ); 958 def_rule = mkstate( -pat );
964 959
965 /* Remember the number of the default rule so we 960 /* Remember the number of the default rule so we
966 * don't generate "can't match" warnings for it. 961 * don't generate "can't match" warnings for it.
967 */ 962 */
968 default_rule = num_rules; 963 default_rule = num_rules;
969 964
@@ -972,115 +967,97 @@ case 1: @@ -972,115 +967,97 @@ case 1:
972 for ( i = 1; i <= lastsc; ++i ) 967 for ( i = 1; i <= lastsc; ++i )
973 scset[i] = mkbranch( scset[i], def_rule ); 968 scset[i] = mkbranch( scset[i], def_rule );
974 969
975 if ( spprdflt ) 970 if ( spprdflt )
976 add_action( 971 add_action(
977 "YY_FATAL_ERROR( \"flex scanner jammed\" )" ); 972 "YY_FATAL_ERROR( \"flex scanner jammed\" )" );
978 else 973 else
979 add_action( "ECHO" ); 974 add_action( "ECHO" );
980 975
981 add_action( ";\n\tYY_BREAK\n" ); 976 add_action( ";\n\tYY_BREAK\n" );
982 } 977 }
983break; 978break;
984case 2: 979case 2:
985#line 151 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
986 { /* initialize for processing rules */ 980 { /* initialize for processing rules */
987 981
988 /* Create default DFA start condition. */ 982 /* Create default DFA start condition. */
989 scinstal( "INITIAL", false ); 983 scinstal( "INITIAL", false );
990 } 984 }
991break; 985break;
992case 6: 986case 6:
993#line 162 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
994 { synerr( _("unknown error processing section 1") ); } 987 { synerr( _("unknown error processing section 1") ); }
995break; 988break;
996case 7: 989case 7:
997#line 166 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
998 { 990 {
999 check_options(); 991 check_options();
1000 scon_stk = allocate_integer_array( lastsc + 1 ); 992 scon_stk = allocate_integer_array( lastsc + 1 );
1001 scon_stk_ptr = 0; 993 scon_stk_ptr = 0;
1002 } 994 }
1003break; 995break;
1004case 8: 996case 8:
1005#line 174 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1006 { xcluflg = false; } 997 { xcluflg = false; }
1007break; 998break;
1008case 9: 999case 9:
1009#line 177 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1010 { xcluflg = true; } 1000 { xcluflg = true; }
1011break; 1001break;
1012case 10: 1002case 10:
1013#line 181 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1014 { scinstal( nmstr, xcluflg ); } 1003 { scinstal( nmstr, xcluflg ); }
1015break; 1004break;
1016case 11: 1005case 11:
1017#line 184 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1018 { scinstal( nmstr, xcluflg ); } 1006 { scinstal( nmstr, xcluflg ); }
1019break; 1007break;
1020case 12: 1008case 12:
1021#line 187 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1022 { synerr( _("bad start condition list") ); } 1009 { synerr( _("bad start condition list") ); }
1023break; 1010break;
1024case 16: 1011case 16:
1025#line 198 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1026 { 1012 {
1027 outfilename = copy_string( nmstr ); 1013 outfilename = copy_string( nmstr );
1028 did_outfilename = 1; 1014 did_outfilename = 1;
1029 } 1015 }
1030break; 1016break;
1031case 17: 1017case 17:
1032#line 203 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1033 { extra_type = copy_string( nmstr ); } 1018 { extra_type = copy_string( nmstr ); }
1034break; 1019break;
1035case 18: 1020case 18:
1036#line 205 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1037 { prefix = copy_string( nmstr ); } 1021 { prefix = copy_string( nmstr ); }
1038break; 1022break;
1039case 19: 1023case 19:
1040#line 207 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1041 { yyclass = copy_string( nmstr ); } 1024 { yyclass = copy_string( nmstr ); }
1042break; 1025break;
1043case 20: 1026case 20:
1044#line 209 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1045 { headerfilename = copy_string( nmstr ); } 1027 { headerfilename = copy_string( nmstr ); }
1046break; 1028break;
1047case 21: 1029case 21:
1048#line 211 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1049 { tablesext = true; tablesfilename = copy_string( nmstr ); } 1030 { tablesext = true; tablesfilename = copy_string( nmstr ); }
1050break; 1031break;
1051case 22: 1032case 22:
1052#line 215 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1053 { scon_stk_ptr = yystack.l_mark[-3]; } 1033 { scon_stk_ptr = yystack.l_mark[-3]; }
1054break; 1034break;
1055case 23: 1035case 23:
1056#line 217 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1057 { scon_stk_ptr = yystack.l_mark[-3]; } 1036 { scon_stk_ptr = yystack.l_mark[-3]; }
1058break; 1037break;
1059case 25: 1038case 25:
1060#line 222 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1061 { 1039 {
1062 /* Initialize for a parse of one rule. */ 1040 /* Initialize for a parse of one rule. */
1063 trlcontxt = variable_trail_rule = varlength = false; 1041 trlcontxt = variable_trail_rule = varlength = false;
1064 trailcnt = headcnt = rulelen = 0; 1042 trailcnt = headcnt = rulelen = 0;
1065 current_state_type = STATE_NORMAL; 1043 current_state_type = STATE_NORMAL;
1066 previous_continued_action = continued_action; 1044 previous_continued_action = continued_action;
1067 in_rule = true; 1045 in_rule = true;
1068 1046
1069 new_rule(); 1047 new_rule();
1070 } 1048 }
1071break; 1049break;
1072case 26: 1050case 26:
1073#line 235 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1074 { 1051 {
1075 pat = yystack.l_mark[0]; 1052 pat = yystack.l_mark[0];
1076 finish_rule( pat, variable_trail_rule, 1053 finish_rule( pat, variable_trail_rule,
1077 headcnt, trailcnt , previous_continued_action); 1054 headcnt, trailcnt , previous_continued_action);
1078 1055
1079 if ( scon_stk_ptr > 0 ) 1056 if ( scon_stk_ptr > 0 )
1080 { 1057 {
1081 for ( i = 1; i <= scon_stk_ptr; ++i ) 1058 for ( i = 1; i <= scon_stk_ptr; ++i )
1082 scbol[scon_stk[i]] = 1059 scbol[scon_stk[i]] =
1083 mkbranch( scbol[scon_stk[i]], 1060 mkbranch( scbol[scon_stk[i]],
1084 pat ); 1061 pat );
1085 } 1062 }
1086 1063
@@ -1097,137 +1074,127 @@ case 26: @@ -1097,137 +1074,127 @@ case 26:
1097 } 1074 }
1098 1075
1099 if ( ! bol_needed ) 1076 if ( ! bol_needed )
1100 { 1077 {
1101 bol_needed = true; 1078 bol_needed = true;
1102 1079
1103 if ( performance_report > 1 ) 1080 if ( performance_report > 1 )
1104 pinpoint_message( 1081 pinpoint_message(
1105 "'^' operator results in sub-optimal performance" ); 1082 "'^' operator results in sub-optimal performance" );
1106 } 1083 }
1107 } 1084 }
1108break; 1085break;
1109case 27: 1086case 27:
1110#line 271 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1111 { 1087 {
1112 pat = yystack.l_mark[0]; 1088 pat = yystack.l_mark[0];
1113 finish_rule( pat, variable_trail_rule, 1089 finish_rule( pat, variable_trail_rule,
1114 headcnt, trailcnt , previous_continued_action); 1090 headcnt, trailcnt , previous_continued_action);
1115 1091
1116 if ( scon_stk_ptr > 0 ) 1092 if ( scon_stk_ptr > 0 )
1117 { 1093 {
1118 for ( i = 1; i <= scon_stk_ptr; ++i ) 1094 for ( i = 1; i <= scon_stk_ptr; ++i )
1119 scset[scon_stk[i]] = 1095 scset[scon_stk[i]] =
1120 mkbranch( scset[scon_stk[i]], 1096 mkbranch( scset[scon_stk[i]],
1121 pat ); 1097 pat );
1122 } 1098 }
1123 1099
1124 else 1100 else
1125 { 1101 {
1126 for ( i = 1; i <= lastsc; ++i ) 1102 for ( i = 1; i <= lastsc; ++i )
1127 if ( ! scxclu[i] ) 1103 if ( ! scxclu[i] )
1128 scset[i] = 1104 scset[i] =
1129 mkbranch( scset[i], 1105 mkbranch( scset[i],
1130 pat ); 1106 pat );
1131 } 1107 }
1132 } 1108 }
1133break; 1109break;
1134case 28: 1110case 28:
1135#line 295 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1136 { 1111 {
1137 if ( scon_stk_ptr > 0 ) 1112 if ( scon_stk_ptr > 0 )
1138 build_eof_action(); 1113 build_eof_action();
1139  1114
1140 else 1115 else
1141 { 1116 {
1142 /* This EOF applies to all start conditions 1117 /* This EOF applies to all start conditions
1143 * which don't already have EOF actions. 1118 * which don't already have EOF actions.
1144 */ 1119 */
1145 for ( i = 1; i <= lastsc; ++i ) 1120 for ( i = 1; i <= lastsc; ++i )
1146 if ( ! sceof[i] ) 1121 if ( ! sceof[i] )
1147 scon_stk[++scon_stk_ptr] = i; 1122 scon_stk[++scon_stk_ptr] = i;
1148 1123
1149 if ( scon_stk_ptr == 0 ) 1124 if ( scon_stk_ptr == 0 )
1150 lwarn( 1125 lwarn(
1151 "all start conditions already have <<EOF>> rules" ); 1126 "all start conditions already have <<EOF>> rules" );
1152 1127
1153 else 1128 else
1154 build_eof_action(); 1129 build_eof_action();
1155 } 1130 }
1156 } 1131 }
1157break; 1132break;
1158case 29: 1133case 29:
1159#line 318 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1160 { synerr( _("unrecognized rule") ); } 1134 { synerr( _("unrecognized rule") ); }
1161break; 1135break;
1162case 30: 1136case 30:
1163#line 322 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1164 { yyval = scon_stk_ptr; } 1137 { yyval = scon_stk_ptr; }
1165break; 1138break;
1166case 31: 1139case 31:
1167#line 326 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1168 { yyval = yystack.l_mark[-2]; } 1140 { yyval = yystack.l_mark[-2]; }
1169break; 1141break;
1170case 32: 1142case 32:
1171#line 329 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1172 { 1143 {
1173 yyval = scon_stk_ptr; 1144 yyval = scon_stk_ptr;
1174 1145
1175 for ( i = 1; i <= lastsc; ++i ) 1146 for ( i = 1; i <= lastsc; ++i )
1176 { 1147 {
1177 int j; 1148 int j;
1178 1149
1179 for ( j = 1; j <= scon_stk_ptr; ++j ) 1150 for ( j = 1; j <= scon_stk_ptr; ++j )
1180 if ( scon_stk[j] == i ) 1151 if ( scon_stk[j] == i )
1181 break; 1152 break;
1182 1153
1183 if ( j > scon_stk_ptr ) 1154 if ( j > scon_stk_ptr )
1184 scon_stk[++scon_stk_ptr] = i; 1155 scon_stk[++scon_stk_ptr] = i;
1185 } 1156 }
1186 } 1157 }
1187break; 1158break;
1188case 33: 1159case 33:
1189#line 346 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1190 { yyval = scon_stk_ptr; } 1160 { yyval = scon_stk_ptr; }
1191break; 1161break;
1192case 36: 1162case 36:
1193#line 354 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1194 { synerr( _("bad start condition list") ); } 1163 { synerr( _("bad start condition list") ); }
1195break; 1164break;
1196case 37: 1165case 37:
1197#line 358 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1198 { 1166 {
1199 if ( (scnum = sclookup( nmstr )) == 0 ) 1167 if ( (scnum = sclookup( nmstr )) == 0 )
1200 format_pinpoint_message( 1168 format_pinpoint_message(
1201 "undeclared start condition %s", 1169 "undeclared start condition %s",
1202 nmstr ); 1170 nmstr );
1203 else 1171 else
1204 { 1172 {
1205 for ( i = 1; i <= scon_stk_ptr; ++i ) 1173 for ( i = 1; i <= scon_stk_ptr; ++i )
1206 if ( scon_stk[i] == scnum ) 1174 if ( scon_stk[i] == scnum )
1207 { 1175 {
1208 format_warn( 1176 format_warn(
1209 "<%s> specified twice", 1177 "<%s> specified twice",
1210 scname[scnum] ); 1178 scname[scnum] );
1211 break; 1179 break;
1212 } 1180 }
1213 1181
1214 if ( i > scon_stk_ptr ) 1182 if ( i > scon_stk_ptr )
1215 scon_stk[++scon_stk_ptr] = scnum; 1183 scon_stk[++scon_stk_ptr] = scnum;
1216 } 1184 }
1217 } 1185 }
1218break; 1186break;
1219case 38: 1187case 38:
1220#line 381 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1221 { 1188 {
1222 if ( transchar[lastst[yystack.l_mark[0]]] != SYM_EPSILON ) 1189 if ( transchar[lastst[yystack.l_mark[0]]] != SYM_EPSILON )
1223 /* Provide final transition \now/ so it 1190 /* Provide final transition \now/ so it
1224 * will be marked as a trailing context 1191 * will be marked as a trailing context
1225 * state. 1192 * state.
1226 */ 1193 */
1227 yystack.l_mark[0] = link_machines( yystack.l_mark[0], 1194 yystack.l_mark[0] = link_machines( yystack.l_mark[0],
1228 mkstate( SYM_EPSILON ) ); 1195 mkstate( SYM_EPSILON ) );
1229 1196
1230 mark_beginning_as_normal( yystack.l_mark[0] ); 1197 mark_beginning_as_normal( yystack.l_mark[0] );
1231 current_state_type = STATE_NORMAL; 1198 current_state_type = STATE_NORMAL;
1232 1199
1233 if ( previous_continued_action ) 1200 if ( previous_continued_action )
@@ -1264,31 +1231,29 @@ case 38: @@ -1264,31 +1231,29 @@ case 38:
1264 */ 1231 */
1265 add_accept( yystack.l_mark[-1], 1232 add_accept( yystack.l_mark[-1],
1266 num_rules | YY_TRAILING_HEAD_MASK ); 1233 num_rules | YY_TRAILING_HEAD_MASK );
1267 variable_trail_rule = true; 1234 variable_trail_rule = true;
1268 } 1235 }
1269  1236
1270 else 1237 else
1271 trailcnt = rulelen; 1238 trailcnt = rulelen;
1272 1239
1273 yyval = link_machines( yystack.l_mark[-1], yystack.l_mark[0] ); 1240 yyval = link_machines( yystack.l_mark[-1], yystack.l_mark[0] );
1274 } 1241 }
1275break; 1242break;
1276case 39: 1243case 39:
1277#line 437 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1278 { synerr( _("trailing context used twice") ); } 1244 { synerr( _("trailing context used twice") ); }
1279break; 1245break;
1280case 40: 1246case 40:
1281#line 440 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1282 { 1247 {
1283 headcnt = 0; 1248 headcnt = 0;
1284 trailcnt = 1; 1249 trailcnt = 1;
1285 rulelen = 1; 1250 rulelen = 1;
1286 varlength = false; 1251 varlength = false;
1287 1252
1288 current_state_type = STATE_TRAILING_CONTEXT; 1253 current_state_type = STATE_TRAILING_CONTEXT;
1289 1254
1290 if ( trlcontxt ) 1255 if ( trlcontxt )
1291 { 1256 {
1292 synerr( _("trailing context used twice") ); 1257 synerr( _("trailing context used twice") );
1293 yyval = mkstate( SYM_EPSILON ); 1258 yyval = mkstate( SYM_EPSILON );
1294 } 1259 }
@@ -1312,95 +1277,88 @@ case 40: @@ -1312,95 +1277,88 @@ case 40:
1312 add_accept( yystack.l_mark[-1], 1277 add_accept( yystack.l_mark[-1],
1313 num_rules | YY_TRAILING_HEAD_MASK ); 1278 num_rules | YY_TRAILING_HEAD_MASK );
1314 variable_trail_rule = true; 1279 variable_trail_rule = true;
1315 } 1280 }
1316 1281
1317 trlcontxt = true; 1282 trlcontxt = true;
1318 1283
1319 eps = mkstate( SYM_EPSILON ); 1284 eps = mkstate( SYM_EPSILON );
1320 yyval = link_machines( yystack.l_mark[-1], 1285 yyval = link_machines( yystack.l_mark[-1],
1321 link_machines( eps, mkstate( '\n' ) ) ); 1286 link_machines( eps, mkstate( '\n' ) ) );
1322 } 1287 }
1323break; 1288break;
1324case 41: 1289case 41:
1325#line 483 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1326 { 1290 {
1327 yyval = yystack.l_mark[0]; 1291 yyval = yystack.l_mark[0];
1328 1292
1329 if ( trlcontxt ) 1293 if ( trlcontxt )
1330 { 1294 {
1331 if ( lex_compat || (varlength && headcnt == 0) ) 1295 if ( lex_compat || (varlength && headcnt == 0) )
1332 /* Both head and trail are 1296 /* Both head and trail are
1333 * variable-length. 1297 * variable-length.
1334 */ 1298 */
1335 variable_trail_rule = true; 1299 variable_trail_rule = true;
1336 else 1300 else
1337 trailcnt = rulelen; 1301 trailcnt = rulelen;
1338 } 1302 }
1339 } 1303 }
1340break; 1304break;
1341case 42: 1305case 42:
1342#line 501 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1343 { 1306 {
1344 varlength = true; 1307 varlength = true;
1345 yyval = mkor( yystack.l_mark[-2], yystack.l_mark[0] ); 1308 yyval = mkor( yystack.l_mark[-2], yystack.l_mark[0] );
1346 } 1309 }
1347break; 1310break;
1348case 43: 1311case 43:
1349#line 507 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1350 { yyval = yystack.l_mark[0]; } 1312 { yyval = yystack.l_mark[0]; }
1351break; 1313break;
1352case 44: 1314case 44:
1353#line 512 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1354 { 1315 {
1355 /* This rule is written separately so the 1316 /* This rule is written separately so the
1356 * reduction will occur before the trailing 1317 * reduction will occur before the trailing
1357 * series is parsed. 1318 * series is parsed.
1358 */ 1319 */
1359 1320
1360 if ( trlcontxt ) 1321 if ( trlcontxt )
1361 synerr( _("trailing context used twice") ); 1322 synerr( _("trailing context used twice") );
1362 else 1323 else
1363 trlcontxt = true; 1324 trlcontxt = true;
1364 1325
1365 if ( varlength ) 1326 if ( varlength )
1366 /* We hope the trailing context is 1327 /* We hope the trailing context is
1367 * fixed-length. 1328 * fixed-length.
1368 */ 1329 */
1369 varlength = false; 1330 varlength = false;
1370 else 1331 else
1371 headcnt = rulelen; 1332 headcnt = rulelen;
1372 1333
1373 rulelen = 0; 1334 rulelen = 0;
1374 1335
1375 current_state_type = STATE_TRAILING_CONTEXT; 1336 current_state_type = STATE_TRAILING_CONTEXT;
1376 yyval = yystack.l_mark[-1]; 1337 yyval = yystack.l_mark[-1];
1377 } 1338 }
1378break; 1339break;
1379case 45: 1340case 45:
1380#line 539 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1381 { 1341 {
1382 /* This is where concatenation of adjacent patterns 1342 /* This is where concatenation of adjacent patterns
1383 * gets done. 1343 * gets done.
1384 */ 1344 */
1385 yyval = link_machines( yystack.l_mark[-1], yystack.l_mark[0] ); 1345 yyval = link_machines( yystack.l_mark[-1], yystack.l_mark[0] );
1386 } 1346 }
1387break; 1347break;
1388case 46: 1348case 46:
1389#line 547 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1390 { yyval = yystack.l_mark[0]; } 1349 { yyval = yystack.l_mark[0]; }
1391break; 1350break;
1392case 47: 1351case 47:
1393#line 550 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1394 { 1352 {
1395 varlength = true; 1353 varlength = true;
1396 1354
1397 if ( yystack.l_mark[-3] > yystack.l_mark[-1] || yystack.l_mark[-3] < 0 ) 1355 if ( yystack.l_mark[-3] > yystack.l_mark[-1] || yystack.l_mark[-3] < 0 )
1398 { 1356 {
1399 synerr( _("bad iteration values") ); 1357 synerr( _("bad iteration values") );
1400 yyval = yystack.l_mark[-5]; 1358 yyval = yystack.l_mark[-5];
1401 } 1359 }
1402 else 1360 else
1403 { 1361 {
1404 if ( yystack.l_mark[-3] == 0 ) 1362 if ( yystack.l_mark[-3] == 0 )
1405 { 1363 {
1406 if ( yystack.l_mark[-1] <= 0 ) 1364 if ( yystack.l_mark[-1] <= 0 )
@@ -1409,85 +1367,79 @@ case 47: @@ -1409,85 +1367,79 @@ case 47:
1409 _("bad iteration values") ); 1367 _("bad iteration values") );
1410 yyval = yystack.l_mark[-5]; 1368 yyval = yystack.l_mark[-5];
1411 } 1369 }
1412 else 1370 else
1413 yyval = mkopt( 1371 yyval = mkopt(
1414 mkrep( yystack.l_mark[-5], 1, yystack.l_mark[-1] ) ); 1372 mkrep( yystack.l_mark[-5], 1, yystack.l_mark[-1] ) );
1415 } 1373 }
1416 else 1374 else
1417 yyval = mkrep( yystack.l_mark[-5], yystack.l_mark[-3], yystack.l_mark[-1] ); 1375 yyval = mkrep( yystack.l_mark[-5], yystack.l_mark[-3], yystack.l_mark[-1] );
1418 } 1376 }
1419 } 1377 }
1420break; 1378break;
1421case 48: 1379case 48:
1422#line 578 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1423 { 1380 {
1424 varlength = true; 1381 varlength = true;
1425 1382
1426 if ( yystack.l_mark[-2] <= 0 ) 1383 if ( yystack.l_mark[-2] <= 0 )
1427 { 1384 {
1428 synerr( _("iteration value must be positive") ); 1385 synerr( _("iteration value must be positive") );
1429 yyval = yystack.l_mark[-4]; 1386 yyval = yystack.l_mark[-4];
1430 } 1387 }
1431 1388
1432 else 1389 else
1433 yyval = mkrep( yystack.l_mark[-4], yystack.l_mark[-2], INFINITE_REPEAT ); 1390 yyval = mkrep( yystack.l_mark[-4], yystack.l_mark[-2], INFINITE_REPEAT );
1434 } 1391 }
1435break; 1392break;
1436case 49: 1393case 49:
1437#line 592 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1438 { 1394 {
1439 /* The series could be something like "(foo)", 1395 /* The series could be something like "(foo)",
1440 * in which case we have no idea what its length 1396 * in which case we have no idea what its length
1441 * is, so we punt here. 1397 * is, so we punt here.
1442 */ 1398 */
1443 varlength = true; 1399 varlength = true;
1444 1400
1445 if ( yystack.l_mark[-1] <= 0 ) 1401 if ( yystack.l_mark[-1] <= 0 )
1446 { 1402 {
1447 synerr( _("iteration value must be positive") 1403 synerr( _("iteration value must be positive")
1448 ); 1404 );
1449 yyval = yystack.l_mark[-3]; 1405 yyval = yystack.l_mark[-3];
1450 } 1406 }
1451 1407
1452 else 1408 else
1453 yyval = link_machines( yystack.l_mark[-3], 1409 yyval = link_machines( yystack.l_mark[-3],
1454 copysingl( yystack.l_mark[-3], yystack.l_mark[-1] - 1 ) ); 1410 copysingl( yystack.l_mark[-3], yystack.l_mark[-1] - 1 ) );
1455 } 1411 }
1456break; 1412break;
1457case 50: 1413case 50:
1458#line 614 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1459 { 1414 {
1460 varlength = true; 1415 varlength = true;
1461 1416
1462 yyval = mkclos( yystack.l_mark[-1] ); 1417 yyval = mkclos( yystack.l_mark[-1] );
1463 } 1418 }
1464break; 1419break;
1465case 51: 1420case 51:
1466#line 621 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1467 { 1421 {
1468 varlength = true; 1422 varlength = true;
1469 yyval = mkposcl( yystack.l_mark[-1] ); 1423 yyval = mkposcl( yystack.l_mark[-1] );
1470 } 1424 }
1471break; 1425break;
1472case 52: 1426case 52:
1473#line 627 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1474 { 1427 {
1475 varlength = true; 1428 varlength = true;
1476 yyval = mkopt( yystack.l_mark[-1] ); 1429 yyval = mkopt( yystack.l_mark[-1] );
1477 } 1430 }
1478break; 1431break;
1479case 53: 1432case 53:
1480#line 633 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1481 { 1433 {
1482 varlength = true; 1434 varlength = true;
1483 1435
1484 if ( yystack.l_mark[-3] > yystack.l_mark[-1] || yystack.l_mark[-3] < 0 ) 1436 if ( yystack.l_mark[-3] > yystack.l_mark[-1] || yystack.l_mark[-3] < 0 )
1485 { 1437 {
1486 synerr( _("bad iteration values") ); 1438 synerr( _("bad iteration values") );
1487 yyval = yystack.l_mark[-5]; 1439 yyval = yystack.l_mark[-5];
1488 } 1440 }
1489 else 1441 else
1490 { 1442 {
1491 if ( yystack.l_mark[-3] == 0 ) 1443 if ( yystack.l_mark[-3] == 0 )
1492 { 1444 {
1493 if ( yystack.l_mark[-1] <= 0 ) 1445 if ( yystack.l_mark[-1] <= 0 )
@@ -1496,62 +1448,59 @@ case 53: @@ -1496,62 +1448,59 @@ case 53:
1496 _("bad iteration values") ); 1448 _("bad iteration values") );
1497 yyval = yystack.l_mark[-5]; 1449 yyval = yystack.l_mark[-5];
1498 } 1450 }
1499 else 1451 else
1500 yyval = mkopt( 1452 yyval = mkopt(
1501 mkrep( yystack.l_mark[-5], 1, yystack.l_mark[-1] ) ); 1453 mkrep( yystack.l_mark[-5], 1, yystack.l_mark[-1] ) );
1502 } 1454 }
1503 else 1455 else
1504 yyval = mkrep( yystack.l_mark[-5], yystack.l_mark[-3], yystack.l_mark[-1] ); 1456 yyval = mkrep( yystack.l_mark[-5], yystack.l_mark[-3], yystack.l_mark[-1] );
1505 } 1457 }
1506 } 1458 }
1507break; 1459break;
1508case 54: 1460case 54:
1509#line 661 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1510 { 1461 {
1511 varlength = true; 1462 varlength = true;
1512 1463
1513 if ( yystack.l_mark[-2] <= 0 ) 1464 if ( yystack.l_mark[-2] <= 0 )
1514 { 1465 {
1515 synerr( _("iteration value must be positive") ); 1466 synerr( _("iteration value must be positive") );
1516 yyval = yystack.l_mark[-4]; 1467 yyval = yystack.l_mark[-4];
1517 } 1468 }
1518 1469
1519 else 1470 else
1520 yyval = mkrep( yystack.l_mark[-4], yystack.l_mark[-2], INFINITE_REPEAT ); 1471 yyval = mkrep( yystack.l_mark[-4], yystack.l_mark[-2], INFINITE_REPEAT );
1521 } 1472 }
1522break; 1473break;
1523case 55: 1474case 55:
1524#line 675 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1525 { 1475 {
1526 /* The singleton could be something like "(foo)", 1476 /* The singleton could be something like "(foo)",
1527 * in which case we have no idea what its length 1477 * in which case we have no idea what its length
1528 * is, so we punt here. 1478 * is, so we punt here.
1529 */ 1479 */
1530 varlength = true; 1480 varlength = true;
1531 1481
1532 if ( yystack.l_mark[-1] <= 0 ) 1482 if ( yystack.l_mark[-1] <= 0 )
1533 { 1483 {
1534 synerr( _("iteration value must be positive") ); 1484 synerr( _("iteration value must be positive") );
1535 yyval = yystack.l_mark[-3]; 1485 yyval = yystack.l_mark[-3];
1536 } 1486 }
1537 1487
1538 else 1488 else
1539 yyval = link_machines( yystack.l_mark[-3], 1489 yyval = link_machines( yystack.l_mark[-3],
1540 copysingl( yystack.l_mark[-3], yystack.l_mark[-1] - 1 ) ); 1490 copysingl( yystack.l_mark[-3], yystack.l_mark[-1] - 1 ) );
1541 } 1491 }
1542break; 1492break;
1543case 56: 1493case 56:
1544#line 694 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1545 { 1494 {
1546 if ( ! madeany ) 1495 if ( ! madeany )
1547 { 1496 {
1548 /* Create the '.' character class. */ 1497 /* Create the '.' character class. */
1549 ccldot = cclinit(); 1498 ccldot = cclinit();
1550 ccladd( ccldot, '\n' ); 1499 ccladd( ccldot, '\n' );
1551 cclnegate( ccldot ); 1500 cclnegate( ccldot );
1552 1501
1553 if ( useecs ) 1502 if ( useecs )
1554 mkeccl( ccltbl + cclmap[ccldot], 1503 mkeccl( ccltbl + cclmap[ccldot],
1555 ccllen[ccldot], nextecm, 1504 ccllen[ccldot], nextecm,
1556 ecgroup, csize, csize ); 1505 ecgroup, csize, csize );
1557 1506
@@ -1566,99 +1515,89 @@ case 56: @@ -1566,99 +1515,89 @@ case 56:
1566 1515
1567 madeany = true; 1516 madeany = true;
1568 } 1517 }
1569 1518
1570 ++rulelen; 1519 ++rulelen;
1571 1520
1572 if (sf_dot_all()) 1521 if (sf_dot_all())
1573 yyval = mkstate( -cclany ); 1522 yyval = mkstate( -cclany );
1574 else 1523 else
1575 yyval = mkstate( -ccldot ); 1524 yyval = mkstate( -ccldot );
1576 } 1525 }
1577break; 1526break;
1578case 57: 1527case 57:
1579#line 728 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1580 { 1528 {
1581 /* Sort characters for fast searching. 1529 /* Sort characters for fast searching.
1582 */ 1530 */
1583 qsort( ccltbl + cclmap[yystack.l_mark[0]], ccllen[yystack.l_mark[0]], sizeof (*ccltbl), cclcmp ); 1531 qsort( ccltbl + cclmap[yystack.l_mark[0]], ccllen[yystack.l_mark[0]], sizeof (*ccltbl), cclcmp );
1584 1532
1585 if ( useecs ) 1533 if ( useecs )
1586 mkeccl( ccltbl + cclmap[yystack.l_mark[0]], ccllen[yystack.l_mark[0]], 1534 mkeccl( ccltbl + cclmap[yystack.l_mark[0]], ccllen[yystack.l_mark[0]],
1587 nextecm, ecgroup, csize, csize ); 1535 nextecm, ecgroup, csize, csize );
1588 1536
1589 ++rulelen; 1537 ++rulelen;
1590 1538
1591 if (ccl_has_nl[yystack.l_mark[0]]) 1539 if (ccl_has_nl[yystack.l_mark[0]])
1592 rule_has_nl[num_rules] = true; 1540 rule_has_nl[num_rules] = true;
1593 1541
1594 yyval = mkstate( -yystack.l_mark[0] ); 1542 yyval = mkstate( -yystack.l_mark[0] );
1595 } 1543 }
1596break; 1544break;
1597case 58: 1545case 58:
1598#line 746 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1599 { 1546 {
1600 ++rulelen; 1547 ++rulelen;
1601 1548
1602 if (ccl_has_nl[yystack.l_mark[0]]) 1549 if (ccl_has_nl[yystack.l_mark[0]])
1603 rule_has_nl[num_rules] = true; 1550 rule_has_nl[num_rules] = true;
1604 1551
1605 yyval = mkstate( -yystack.l_mark[0] ); 1552 yyval = mkstate( -yystack.l_mark[0] );
1606 } 1553 }
1607break; 1554break;
1608case 59: 1555case 59:
1609#line 756 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1610 { yyval = yystack.l_mark[-1]; } 1556 { yyval = yystack.l_mark[-1]; }
1611break; 1557break;
1612case 60: 1558case 60:
1613#line 759 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1614 { yyval = yystack.l_mark[-1]; } 1559 { yyval = yystack.l_mark[-1]; }
1615break; 1560break;
1616case 61: 1561case 61:
1617#line 762 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1618 { 1562 {
1619 ++rulelen; 1563 ++rulelen;
1620 1564
1621 if (yystack.l_mark[0] == nlch) 1565 if (yystack.l_mark[0] == nlch)
1622 rule_has_nl[num_rules] = true; 1566 rule_has_nl[num_rules] = true;
1623 1567
1624 if (sf_case_ins() && has_case(yystack.l_mark[0])) 1568 if (sf_case_ins() && has_case(yystack.l_mark[0]))
1625 /* create an alternation, as in (a|A) */ 1569 /* create an alternation, as in (a|A) */
1626 yyval = mkor (mkstate(yystack.l_mark[0]), mkstate(reverse_case(yystack.l_mark[0]))); 1570 yyval = mkor (mkstate(yystack.l_mark[0]), mkstate(reverse_case(yystack.l_mark[0])));
1627 else 1571 else
1628 yyval = mkstate( yystack.l_mark[0] ); 1572 yyval = mkstate( yystack.l_mark[0] );
1629 } 1573 }
1630break; 1574break;
1631case 62: 1575case 62:
1632#line 776 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1633 { yyval = ccl_set_diff (yystack.l_mark[-2], yystack.l_mark[0]); } 1576 { yyval = ccl_set_diff (yystack.l_mark[-2], yystack.l_mark[0]); }
1634break; 1577break;
1635case 63: 1578case 63:
1636#line 777 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1637 { yyval = ccl_set_union (yystack.l_mark[-2], yystack.l_mark[0]); } 1579 { yyval = ccl_set_union (yystack.l_mark[-2], yystack.l_mark[0]); }
1638break; 1580break;
1639case 65: 1581case 65:
1640#line 783 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1641 { yyval = yystack.l_mark[-1]; } 1582 { yyval = yystack.l_mark[-1]; }
1642break; 1583break;
1643case 66: 1584case 66:
1644#line 786 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1645 { 1585 {
1646 cclnegate( yystack.l_mark[-1] ); 1586 cclnegate( yystack.l_mark[-1] );
1647 yyval = yystack.l_mark[-1]; 1587 yyval = yystack.l_mark[-1];
1648 } 1588 }
1649break; 1589break;
1650case 67: 1590case 67:
1651#line 793 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1652 { 1591 {
1653 1592
1654 if (sf_case_ins()) 1593 if (sf_case_ins())
1655 { 1594 {
1656 1595
1657 /* If one end of the range has case and the other 1596 /* If one end of the range has case and the other
1658 * does not, or the cases are different, then we're not 1597 * does not, or the cases are different, then we're not
1659 * sure what range the user is trying to express. 1598 * sure what range the user is trying to express.
1660 * Examples: [@-z] or [S-t] 1599 * Examples: [@-z] or [S-t]
1661 */ 1600 */
1662 if (has_case (yystack.l_mark[-2]) != has_case (yystack.l_mark[0]) 1601 if (has_case (yystack.l_mark[-2]) != has_case (yystack.l_mark[0])
1663 || (has_case (yystack.l_mark[-2]) && (b_islower (yystack.l_mark[-2]) != b_islower (yystack.l_mark[0]))) 1602 || (has_case (yystack.l_mark[-2]) && (b_islower (yystack.l_mark[-2]) != b_islower (yystack.l_mark[0])))
1664 || (has_case (yystack.l_mark[-2]) && (b_isupper (yystack.l_mark[-2]) != b_isupper (yystack.l_mark[0])))) 1603 || (has_case (yystack.l_mark[-2]) && (b_isupper (yystack.l_mark[-2]) != b_isupper (yystack.l_mark[0]))))
@@ -1699,195 +1638,165 @@ case 67: @@ -1699,195 +1638,165 @@ case 67:
1699 for ( i = yystack.l_mark[-2]; i <= yystack.l_mark[0]; ++i ) 1638 for ( i = yystack.l_mark[-2]; i <= yystack.l_mark[0]; ++i )
1700 ccladd( yystack.l_mark[-3], i ); 1639 ccladd( yystack.l_mark[-3], i );
1701 1640
1702 cclsorted = cclsorted && (yystack.l_mark[-2] > lastchar); 1641 cclsorted = cclsorted && (yystack.l_mark[-2] > lastchar);
1703 lastchar = yystack.l_mark[0]; 1642 lastchar = yystack.l_mark[0];
1704 } 1643 }
1705 1644
1706 } 1645 }
1707 1646
1708 yyval = yystack.l_mark[-3]; 1647 yyval = yystack.l_mark[-3];
1709 } 1648 }
1710break; 1649break;
1711case 68: 1650case 68:
1712#line 853 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1713 { 1651 {
1714 ccladd( yystack.l_mark[-1], yystack.l_mark[0] ); 1652 ccladd( yystack.l_mark[-1], yystack.l_mark[0] );
1715 cclsorted = cclsorted && (yystack.l_mark[0] > lastchar); 1653 cclsorted = cclsorted && (yystack.l_mark[0] > lastchar);
1716 lastchar = yystack.l_mark[0]; 1654 lastchar = yystack.l_mark[0];
1717 1655
1718 /* Do it again for upper/lowercase */ 1656 /* Do it again for upper/lowercase */
1719 if (sf_case_ins() && has_case(yystack.l_mark[0])){ 1657 if (sf_case_ins() && has_case(yystack.l_mark[0])){
1720 yystack.l_mark[0] = reverse_case (yystack.l_mark[0]); 1658 yystack.l_mark[0] = reverse_case (yystack.l_mark[0]);
1721 ccladd (yystack.l_mark[-1], yystack.l_mark[0]); 1659 ccladd (yystack.l_mark[-1], yystack.l_mark[0]);
1722 1660
1723 cclsorted = cclsorted && (yystack.l_mark[0] > lastchar); 1661 cclsorted = cclsorted && (yystack.l_mark[0] > lastchar);
1724 lastchar = yystack.l_mark[0]; 1662 lastchar = yystack.l_mark[0];
1725 } 1663 }
1726 1664
1727 yyval = yystack.l_mark[-1]; 1665 yyval = yystack.l_mark[-1];
1728 } 1666 }
1729break; 1667break;
1730case 69: 1668case 69:
1731#line 871 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1732 { 1669 {
1733 /* Too hard to properly maintain cclsorted. */ 1670 /* Too hard to properly maintain cclsorted. */
1734 cclsorted = false; 1671 cclsorted = false;
1735 yyval = yystack.l_mark[-1]; 1672 yyval = yystack.l_mark[-1];
1736 } 1673 }
1737break; 1674break;
1738case 70: 1675case 70:
1739#line 878 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1740 { 1676 {
1741 cclsorted = true; 1677 cclsorted = true;
1742 lastchar = 0; 1678 lastchar = 0;
1743 currccl = yyval = cclinit(); 1679 currccl = yyval = cclinit();
1744 } 1680 }
1745break; 1681break;
1746case 71: 1682case 71:
1747#line 886 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1748 { CCL_EXPR(isalnum); } 1683 { CCL_EXPR(isalnum); }
1749break; 1684break;
1750case 72: 1685case 72:
1751#line 887 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1752 { CCL_EXPR(isalpha); } 1686 { CCL_EXPR(isalpha); }
1753break; 1687break;
1754case 73: 1688case 73:
1755#line 888 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1756 { CCL_EXPR(IS_BLANK); } 1689 { CCL_EXPR(IS_BLANK); }
1757break; 1690break;
1758case 74: 1691case 74:
1759#line 889 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1760 { CCL_EXPR(iscntrl); } 1692 { CCL_EXPR(iscntrl); }
1761break; 1693break;
1762case 75: 1694case 75:
1763#line 890 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1764 { CCL_EXPR(isdigit); } 1695 { CCL_EXPR(isdigit); }
1765break; 1696break;
1766case 76: 1697case 76:
1767#line 891 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1768 { CCL_EXPR(isgraph); } 1698 { CCL_EXPR(isgraph); }
1769break; 1699break;
1770case 77: 1700case 77:
1771#line 892 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1772 {  1701 {
1773 CCL_EXPR(islower); 1702 CCL_EXPR(islower);
1774 if (sf_case_ins()) 1703 if (sf_case_ins())
1775 CCL_EXPR(isupper); 1704 CCL_EXPR(isupper);
1776 } 1705 }
1777break; 1706break;
1778case 78: 1707case 78:
1779#line 897 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1780 { CCL_EXPR(isprint); } 1708 { CCL_EXPR(isprint); }
1781break; 1709break;
1782case 79: 1710case 79:
1783#line 898 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1784 { CCL_EXPR(ispunct); } 1711 { CCL_EXPR(ispunct); }
1785break; 1712break;
1786case 80: 1713case 80:
1787#line 899 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1788 { CCL_EXPR(isspace); } 1714 { CCL_EXPR(isspace); }
1789break; 1715break;
1790case 81: 1716case 81:
1791#line 900 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1792 { CCL_EXPR(isxdigit); } 1717 { CCL_EXPR(isxdigit); }
1793break; 1718break;
1794case 82: 1719case 82:
1795#line 901 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1796 { 1720 {
1797 CCL_EXPR(isupper); 1721 CCL_EXPR(isupper);
1798 if (sf_case_ins()) 1722 if (sf_case_ins())
1799 CCL_EXPR(islower); 1723 CCL_EXPR(islower);
1800 } 1724 }
1801break; 1725break;
1802case 83: 1726case 83:
1803#line 907 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1804 { CCL_NEG_EXPR(isalnum); } 1727 { CCL_NEG_EXPR(isalnum); }
1805break; 1728break;
1806case 84: 1729case 84:
1807#line 908 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1808 { CCL_NEG_EXPR(isalpha); } 1730 { CCL_NEG_EXPR(isalpha); }
1809break; 1731break;
1810case 85: 1732case 85:
1811#line 909 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1812 { CCL_NEG_EXPR(IS_BLANK); } 1733 { CCL_NEG_EXPR(IS_BLANK); }
1813break; 1734break;
1814case 86: 1735case 86:
1815#line 910 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1816 { CCL_NEG_EXPR(iscntrl); } 1736 { CCL_NEG_EXPR(iscntrl); }
1817break; 1737break;
1818case 87: 1738case 87:
1819#line 911 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1820 { CCL_NEG_EXPR(isdigit); } 1739 { CCL_NEG_EXPR(isdigit); }
1821break; 1740break;
1822case 88: 1741case 88:
1823#line 912 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1824 { CCL_NEG_EXPR(isgraph); } 1742 { CCL_NEG_EXPR(isgraph); }
1825break; 1743break;
1826case 89: 1744case 89:
1827#line 913 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1828 { CCL_NEG_EXPR(isprint); } 1745 { CCL_NEG_EXPR(isprint); }
1829break; 1746break;
1830case 90: 1747case 90:
1831#line 914 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1832 { CCL_NEG_EXPR(ispunct); } 1748 { CCL_NEG_EXPR(ispunct); }
1833break; 1749break;
1834case 91: 1750case 91:
1835#line 915 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1836 { CCL_NEG_EXPR(isspace); } 1751 { CCL_NEG_EXPR(isspace); }
1837break; 1752break;
1838case 92: 1753case 92:
1839#line 916 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1840 { CCL_NEG_EXPR(isxdigit); } 1754 { CCL_NEG_EXPR(isxdigit); }
1841break; 1755break;
1842case 93: 1756case 93:
1843#line 917 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1844 {  1757 {
1845 if ( sf_case_ins() ) 1758 if ( sf_case_ins() )
1846 lwarn(_("[:^lower:] is ambiguous in case insensitive scanner")); 1759 lwarn(_("[:^lower:] is ambiguous in case insensitive scanner"));
1847 else 1760 else
1848 CCL_NEG_EXPR(islower); 1761 CCL_NEG_EXPR(islower);
1849 } 1762 }
1850break; 1763break;
1851case 94: 1764case 94:
1852#line 923 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1853 { 1765 {
1854 if ( sf_case_ins() ) 1766 if ( sf_case_ins() )
1855 lwarn(_("[:^upper:] ambiguous in case insensitive scanner")); 1767 lwarn(_("[:^upper:] ambiguous in case insensitive scanner"));
1856 else 1768 else
1857 CCL_NEG_EXPR(isupper); 1769 CCL_NEG_EXPR(isupper);
1858 } 1770 }
1859break; 1771break;
1860case 95: 1772case 95:
1861#line 932 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1862 { 1773 {
1863 if ( yystack.l_mark[0] == nlch ) 1774 if ( yystack.l_mark[0] == nlch )
1864 rule_has_nl[num_rules] = true; 1775 rule_has_nl[num_rules] = true;
1865 1776
1866 ++rulelen; 1777 ++rulelen;
1867 1778
1868 if (sf_case_ins() && has_case(yystack.l_mark[0])) 1779 if (sf_case_ins() && has_case(yystack.l_mark[0]))
1869 yyval = mkor (mkstate(yystack.l_mark[0]), mkstate(reverse_case(yystack.l_mark[0]))); 1780 yyval = mkor (mkstate(yystack.l_mark[0]), mkstate(reverse_case(yystack.l_mark[0])));
1870 else 1781 else
1871 yyval = mkstate (yystack.l_mark[0]); 1782 yyval = mkstate (yystack.l_mark[0]);
1872 1783
1873 yyval = link_machines( yystack.l_mark[-1], yyval); 1784 yyval = link_machines( yystack.l_mark[-1], yyval);
1874 } 1785 }
1875break; 1786break;
1876case 96: 1787case 96:
1877#line 947 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/parse.y" 
1878 { yyval = mkstate( SYM_EPSILON ); } 1788 { yyval = mkstate( SYM_EPSILON ); }
1879break; 1789break;
1880#line 1881 "parse.c" 
1881 } 1790 }
1882 yystack.s_mark -= yym; 1791 yystack.s_mark -= yym;
1883 yystate = *yystack.s_mark; 1792 yystate = *yystack.s_mark;
1884 yystack.l_mark -= yym; 1793 yystack.l_mark -= yym;
1885 yym = yylhs[yyn]; 1794 yym = yylhs[yyn];
1886 if (yystate == 0 && yym == 0) 1795 if (yystate == 0 && yym == 0)
1887 { 1796 {
1888#if YYDEBUG 1797#if YYDEBUG
1889 if (yydebug) 1798 if (yydebug)
1890 printf("%sdebug: after reduction, shifting from state 0 to\ 1799 printf("%sdebug: after reduction, shifting from state 0 to\
1891 state %d\n", YYPREFIX, YYFINAL); 1800 state %d\n", YYPREFIX, YYFINAL);
1892#endif 1801#endif
1893 yystate = YYFINAL; 1802 yystate = YYFINAL;

cvs diff -r1.1 -r1.2 src/external/bsd/flex/dist/src/initscan.c (expand / switch to unified diff)

--- src/external/bsd/flex/dist/src/initscan.c 2016/01/09 17:39:52 1.1
+++ src/external/bsd/flex/dist/src/initscan.c 2016/03/17 15:28:00 1.2
@@ -16,27 +16,27 @@ @@ -16,27 +16,27 @@
16/* First, we deal with platform-specific or compiler-specific issues. */ 16/* First, we deal with platform-specific or compiler-specific issues. */
17 17
18/* begin standard C headers. */ 18/* begin standard C headers. */
19#ifdef _LIBC 19#ifdef _LIBC
20#include "namespace.h" 20#include "namespace.h"
21#endif 21#endif
22#include <stdio.h> 22#include <stdio.h>
23#include <string.h> 23#include <string.h>
24#include <errno.h> 24#include <errno.h>
25#include <stdlib.h> 25#include <stdlib.h>
26 26
27/* end standard C headers. */ 27/* end standard C headers. */
28 28
29/* $NetBSD: initscan.c,v 1.1 2016/01/09 17:39:52 christos Exp $ */ 29/* $NetBSD: initscan.c,v 1.2 2016/03/17 15:28:00 nakayama Exp $ */
30 30
31/* flex integer type definitions */ 31/* flex integer type definitions */
32 32
33#ifndef FLEXINT_H 33#ifndef FLEXINT_H
34#define FLEXINT_H 34#define FLEXINT_H
35 35
36/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ 36/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
37 37
38#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 38#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
39 39
40/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, 40/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
41 * if you want the limit (max/min) macros for int types.  41 * if you want the limit (max/min) macros for int types.
42 */ 42 */
@@ -1739,30 +1739,28 @@ static char *yy_last_accepting_cpos; @@ -1739,30 +1739,28 @@ static char *yy_last_accepting_cpos;
1739extern int yy_flex_debug; 1739extern int yy_flex_debug;
1740int yy_flex_debug = 0; 1740int yy_flex_debug = 0;
1741 1741
1742/* The intent behind this definition is that it'll catch 1742/* The intent behind this definition is that it'll catch
1743 * any uses of REJECT which flex missed. 1743 * any uses of REJECT which flex missed.
1744 */ 1744 */
1745#define REJECT reject_used_but_not_detected 1745#define REJECT reject_used_but_not_detected
1746static int yy_more_flag = 0; 1746static int yy_more_flag = 0;
1747static int yy_more_len = 0; 1747static int yy_more_len = 0;
1748#define yymore() ((yy_more_flag) = 1) 1748#define yymore() ((yy_more_flag) = 1)
1749#define YY_MORE_ADJ (yy_more_len) 1749#define YY_MORE_ADJ (yy_more_len)
1750#define YY_RESTORE_YY_MORE_OFFSET 1750#define YY_RESTORE_YY_MORE_OFFSET
1751char *yytext; 1751char *yytext;
1752#line 1 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 1752/* $NetBSD: initscan.c,v 1.2 2016/03/17 15:28:00 nakayama Exp $ */
1753/* $NetBSD: initscan.c,v 1.1 2016/01/09 17:39:52 christos Exp $ */ 
1754/* scan.l - scanner for flex input -*-C-*- */ 1753/* scan.l - scanner for flex input -*-C-*- */
1755#line 6 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
1756/* Copyright (c) 1990 The Regents of the University of California. */ 1754/* Copyright (c) 1990 The Regents of the University of California. */
1757/* All rights reserved. */ 1755/* All rights reserved. */
1758 1756
1759/* This code is derived from software contributed to Berkeley by */ 1757/* This code is derived from software contributed to Berkeley by */
1760/* Vern Paxson. */ 1758/* Vern Paxson. */
1761 1759
1762/* The United States Government has rights in this work pursuant */ 1760/* The United States Government has rights in this work pursuant */
1763/* to contract no. DE-AC03-76SF00098 between the United States */ 1761/* to contract no. DE-AC03-76SF00098 between the United States */
1764/* Department of Energy and the University of California. */ 1762/* Department of Energy and the University of California. */
1765 1763
1766/* This file is part of flex. */ 1764/* This file is part of flex. */
1767 1765
1768/* Redistribution and use in source and binary forms, with or without */ 1766/* Redistribution and use in source and binary forms, with or without */
@@ -1774,27 +1772,27 @@ char *yytext; @@ -1774,27 +1772,27 @@ char *yytext;
1774/* 2. Redistributions in binary form must reproduce the above copyright */ 1772/* 2. Redistributions in binary form must reproduce the above copyright */
1775/* notice, this list of conditions and the following disclaimer in the */ 1773/* notice, this list of conditions and the following disclaimer in the */
1776/* documentation and/or other materials provided with the distribution. */ 1774/* documentation and/or other materials provided with the distribution. */
1777 1775
1778/* Neither the name of the University nor the names of its contributors */ 1776/* Neither the name of the University nor the names of its contributors */
1779/* may be used to endorse or promote products derived from this software */ 1777/* may be used to endorse or promote products derived from this software */
1780/* without specific prior written permission. */ 1778/* without specific prior written permission. */
1781 1779
1782/* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR */ 1780/* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR */
1783/* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED */ 1781/* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED */
1784/* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */ 1782/* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
1785/* PURPOSE. */ 1783/* PURPOSE. */
1786#include "flexdef.h" 1784#include "flexdef.h"
1787__RCSID("$NetBSD: initscan.c,v 1.1 2016/01/09 17:39:52 christos Exp $"); 1785__RCSID("$NetBSD: initscan.c,v 1.2 2016/03/17 15:28:00 nakayama Exp $");
1788 1786
1789#include "parse.h" 1787#include "parse.h"
1790extern bool tablesverify, tablesext; 1788extern bool tablesverify, tablesext;
1791extern int trlcontxt; /* Set in parse.y for each rule. */ 1789extern int trlcontxt; /* Set in parse.y for each rule. */
1792extern const char *escaped_qstart, *escaped_qend; 1790extern const char *escaped_qstart, *escaped_qend;
1793 1791
1794#define ACTION_ECHO add_action( yytext ) 1792#define ACTION_ECHO add_action( yytext )
1795#define ACTION_IFDEF(def, should_define) \ 1793#define ACTION_IFDEF(def, should_define) \
1796 { \ 1794 { \
1797 if ( should_define ) \ 1795 if ( should_define ) \
1798 action_define( def, 1 ); \ 1796 action_define( def, 1 ); \
1799 } 1797 }
1800 1798
@@ -1836,35 +1834,26 @@ extern const char *escaped_qstart, *esca @@ -1836,35 +1834,26 @@ extern const char *escaped_qstart, *esca
1836 1834
1837#define CHECK_RE_JECT(str) \ 1835#define CHECK_RE_JECT(str) \
1838 if ( all_upper( str ) ) \ 1836 if ( all_upper( str ) ) \
1839 reject = true 1837 reject = true
1840 1838
1841#define CHECK_YYMORE(str) \ 1839#define CHECK_YYMORE(str) \
1842 if ( all_lower( str ) ) \ 1840 if ( all_lower( str ) ) \
1843 yymore_used = true; 1841 yymore_used = true;
1844 1842
1845#define YY_USER_INIT \ 1843#define YY_USER_INIT \
1846 if ( getenv("POSIXLY_CORRECT") ) \ 1844 if ( getenv("POSIXLY_CORRECT") ) \
1847 posix_compat = true; 1845 posix_compat = true;
1848 1846
1849 
1850 
1851 
1852 
1853 
1854 
1855 
1856#line 1857 "<stdout>" 
1857 
1858#define INITIAL 0 1847#define INITIAL 0
1859#define SECT2 1 1848#define SECT2 1
1860#define SECT2PROLOG 2 1849#define SECT2PROLOG 2
1861#define SECT3 3 1850#define SECT3 3
1862#define CODEBLOCK 4 1851#define CODEBLOCK 4
1863#define PICKUPDEF 5 1852#define PICKUPDEF 5
1864#define SC 6 1853#define SC 6
1865#define CARETISBOL 7 1854#define CARETISBOL 7
1866#define NUM 8 1855#define NUM 8
1867#define QUOTE 9 1856#define QUOTE 9
1868#define FIRSTCCL 10 1857#define FIRSTCCL 10
1869#define CCL 11 1858#define CCL 11
1870#define ACTION 12 1859#define ACTION 12
@@ -2095,39 +2084,35 @@ YY_DECL @@ -2095,39 +2084,35 @@ YY_DECL
2095 if ( ! yyout ) 2084 if ( ! yyout )
2096 yyout = stdout; 2085 yyout = stdout;
2097 2086
2098 if ( ! YY_CURRENT_BUFFER ) { 2087 if ( ! YY_CURRENT_BUFFER ) {
2099 yyensure_buffer_stack (); 2088 yyensure_buffer_stack ();
2100 YY_CURRENT_BUFFER_LVALUE = 2089 YY_CURRENT_BUFFER_LVALUE =
2101 yy_create_buffer(yyin,YY_BUF_SIZE ); 2090 yy_create_buffer(yyin,YY_BUF_SIZE );
2102 } 2091 }
2103 2092
2104 yy_load_buffer_state( ); 2093 yy_load_buffer_state( );
2105 } 2094 }
2106 2095
2107 { 2096 {
2108#line 134 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2109 2097
2110 static int bracelevel, didadef, indented_code; 2098 static int bracelevel, didadef, indented_code;
2111 static int doing_rule_action = false; 2099 static int doing_rule_action = false;
2112 static int option_sense; 2100 static int option_sense;
2113 2101
2114 int doing_codeblock = false; 2102 int doing_codeblock = false;
2115 int i, brace_depth=0, brace_start_line=0; 2103 int i, brace_depth=0, brace_start_line=0;
2116 Char nmdef[MAXLINE]; 2104 Char nmdef[MAXLINE];
2117 2105
2118 
2119#line 2120 "<stdout>" 
2120 
2121 while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ 2106 while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
2122 { 2107 {
2123 (yy_more_len) = 0; 2108 (yy_more_len) = 0;
2124 if ( (yy_more_flag) ) 2109 if ( (yy_more_flag) )
2125 { 2110 {
2126 (yy_more_len) = (yy_c_buf_p) - (yytext_ptr); 2111 (yy_more_len) = (yy_c_buf_p) - (yytext_ptr);
2127 (yy_more_flag) = 0; 2112 (yy_more_flag) = 0;
2128 } 2113 }
2129 yy_cp = (yy_c_buf_p); 2114 yy_cp = (yy_c_buf_p);
2130 2115
2131 /* Support of yytext. */ 2116 /* Support of yytext. */
2132 *yy_cp = (yy_hold_char); 2117 *yy_cp = (yy_hold_char);
2133 2118
@@ -2172,1080 +2157,915 @@ yy_find_action: @@ -2172,1080 +2157,915 @@ yy_find_action:
2172do_action: /* This label is used only to access EOF actions. */ 2157do_action: /* This label is used only to access EOF actions. */
2173 2158
2174 switch ( yy_act ) 2159 switch ( yy_act )
2175 { /* beginning of action switch */ 2160 { /* beginning of action switch */
2176 case 0: /* must back up */ 2161 case 0: /* must back up */
2177 /* undo the effects of YY_DO_BEFORE_ACTION */ 2162 /* undo the effects of YY_DO_BEFORE_ACTION */
2178 *yy_cp = (yy_hold_char); 2163 *yy_cp = (yy_hold_char);
2179 yy_cp = (yy_last_accepting_cpos); 2164 yy_cp = (yy_last_accepting_cpos);
2180 yy_current_state = (yy_last_accepting_state); 2165 yy_current_state = (yy_last_accepting_state);
2181 goto yy_find_action; 2166 goto yy_find_action;
2182 2167
2183case 1: 2168case 1:
2184YY_RULE_SETUP 2169YY_RULE_SETUP
2185#line 145 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2186indented_code = true; BEGIN(CODEBLOCK); 2170indented_code = true; BEGIN(CODEBLOCK);
2187 YY_BREAK 2171 YY_BREAK
2188case 2: 2172case 2:
2189YY_RULE_SETUP 2173YY_RULE_SETUP
2190#line 146 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2191ACTION_ECHO; yy_push_state( COMMENT ); 2174ACTION_ECHO; yy_push_state( COMMENT );
2192 YY_BREAK 2175 YY_BREAK
2193case 3: 2176case 3:
2194YY_RULE_SETUP 2177YY_RULE_SETUP
2195#line 147 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2196yy_push_state( LINEDIR ); 2178yy_push_state( LINEDIR );
2197 YY_BREAK 2179 YY_BREAK
2198case 4: 2180case 4:
2199YY_RULE_SETUP 2181YY_RULE_SETUP
2200#line 148 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2201return SCDECL; 2182return SCDECL;
2202 YY_BREAK 2183 YY_BREAK
2203case 5: 2184case 5:
2204YY_RULE_SETUP 2185YY_RULE_SETUP
2205#line 149 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2206return XSCDECL; 2186return XSCDECL;
2207 YY_BREAK 2187 YY_BREAK
2208case 6: 2188case 6:
2209/* rule 6 can match eol */ 2189/* rule 6 can match eol */
2210YY_RULE_SETUP 2190YY_RULE_SETUP
2211#line 150 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2212{ 2191{
2213 ++linenum; 2192 ++linenum;
2214 line_directive_out( (FILE *) 0, 1 ); 2193 line_directive_out( (FILE *) 0, 1 );
2215 indented_code = false; 2194 indented_code = false;
2216 BEGIN(CODEBLOCK); 2195 BEGIN(CODEBLOCK);
2217 } 2196 }
2218 YY_BREAK 2197 YY_BREAK
2219case 7: 2198case 7:
2220/* rule 7 can match eol */ 2199/* rule 7 can match eol */
2221YY_RULE_SETUP 2200YY_RULE_SETUP
2222#line 156 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2223{ 2201{
2224 brace_start_line = linenum; 2202 brace_start_line = linenum;
2225 ++linenum; 2203 ++linenum;
2226 buf_linedir( &top_buf, infilename?infilename:"<stdin>", linenum); 2204 buf_linedir( &top_buf, infilename?infilename:"<stdin>", linenum);
2227 brace_depth = 1; 2205 brace_depth = 1;
2228 yy_push_state(CODEBLOCK_MATCH_BRACE); 2206 yy_push_state(CODEBLOCK_MATCH_BRACE);
2229 } 2207 }
2230 YY_BREAK 2208 YY_BREAK
2231case 8: 2209case 8:
2232YY_RULE_SETUP 2210YY_RULE_SETUP
2233#line 164 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2234synerr( _("malformed '%top' directive") ); 2211synerr( _("malformed '%top' directive") );
2235 YY_BREAK 2212 YY_BREAK
2236case 9: 2213case 9:
2237YY_RULE_SETUP 2214YY_RULE_SETUP
2238#line 166 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2239/* discard */ 2215/* discard */
2240 YY_BREAK 2216 YY_BREAK
2241case 10: 2217case 10:
2242YY_RULE_SETUP 2218YY_RULE_SETUP
2243#line 168 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2244{ 2219{
2245 sectnum = 2; 2220 sectnum = 2;
2246 bracelevel = 0; 2221 bracelevel = 0;
2247 mark_defs1(); 2222 mark_defs1();
2248 line_directive_out( (FILE *) 0, 1 ); 2223 line_directive_out( (FILE *) 0, 1 );
2249 BEGIN(SECT2PROLOG); 2224 BEGIN(SECT2PROLOG);
2250 return SECTEND; 2225 return SECTEND;
2251 } 2226 }
2252 YY_BREAK 2227 YY_BREAK
2253case 11: 2228case 11:
2254/* rule 11 can match eol */ 2229/* rule 11 can match eol */
2255YY_RULE_SETUP 2230YY_RULE_SETUP
2256#line 177 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2257yytext_is_array = false; ++linenum; 2231yytext_is_array = false; ++linenum;
2258 YY_BREAK 2232 YY_BREAK
2259case 12: 2233case 12:
2260/* rule 12 can match eol */ 2234/* rule 12 can match eol */
2261YY_RULE_SETUP 2235YY_RULE_SETUP
2262#line 178 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2263yytext_is_array = true; ++linenum; 2236yytext_is_array = true; ++linenum;
2264 YY_BREAK 2237 YY_BREAK
2265case 13: 2238case 13:
2266YY_RULE_SETUP 2239YY_RULE_SETUP
2267#line 180 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2268BEGIN(OPTION); return OPTION_OP; 2240BEGIN(OPTION); return OPTION_OP;
2269 YY_BREAK 2241 YY_BREAK
2270case 14: 2242case 14:
2271/* rule 14 can match eol */ 2243/* rule 14 can match eol */
2272YY_RULE_SETUP 2244YY_RULE_SETUP
2273#line 182 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2274++linenum; /* ignore */ 2245++linenum; /* ignore */
2275 YY_BREAK 2246 YY_BREAK
2276case 15: 2247case 15:
2277/* rule 15 can match eol */ 2248/* rule 15 can match eol */
2278YY_RULE_SETUP 2249YY_RULE_SETUP
2279#line 183 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2280++linenum; /* ignore */ 2250++linenum; /* ignore */
2281 YY_BREAK 2251 YY_BREAK
2282/* xgettext: no-c-format */ 2252/* xgettext: no-c-format */
2283case 16: 2253case 16:
2284/* rule 16 can match eol */ 2254/* rule 16 can match eol */
2285YY_RULE_SETUP 2255YY_RULE_SETUP
2286#line 186 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2287synerr( _( "unrecognized '%' directive" ) ); 2256synerr( _( "unrecognized '%' directive" ) );
2288 YY_BREAK 2257 YY_BREAK
2289case 17: 2258case 17:
2290YY_RULE_SETUP 2259YY_RULE_SETUP
2291#line 188 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2292{ 2260{
2293 if(yyleng < MAXLINE) 2261 if(yyleng < MAXLINE)
2294 { 2262 {
2295 strlcpy( nmstr, yytext, sizeof(nmstr) ); 2263 strlcpy( nmstr, yytext, sizeof(nmstr) );
2296 } 2264 }
2297 else 2265 else
2298 { 2266 {
2299 synerr( _("Definition name too long\n")); 2267 synerr( _("Definition name too long\n"));
2300 FLEX_EXIT(EXIT_FAILURE); 2268 FLEX_EXIT(EXIT_FAILURE);
2301 } 2269 }
2302 2270
2303 didadef = false; 2271 didadef = false;
2304 BEGIN(PICKUPDEF); 2272 BEGIN(PICKUPDEF);
2305 } 2273 }
2306 YY_BREAK 2274 YY_BREAK
2307case 18: 2275case 18:
2308YY_RULE_SETUP 2276YY_RULE_SETUP
2309#line 203 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2310RETURNNAME; 2277RETURNNAME;
2311 YY_BREAK 2278 YY_BREAK
2312case 19: 2279case 19:
2313/* rule 19 can match eol */ 2280/* rule 19 can match eol */
2314YY_RULE_SETUP 2281YY_RULE_SETUP
2315#line 204 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2316++linenum; /* allows blank lines in section 1 */ 2282++linenum; /* allows blank lines in section 1 */
2317 YY_BREAK 2283 YY_BREAK
2318case 20: 2284case 20:
2319/* rule 20 can match eol */ 2285/* rule 20 can match eol */
2320YY_RULE_SETUP 2286YY_RULE_SETUP
2321#line 205 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2322ACTION_ECHO; ++linenum; /* maybe end of comment line */ 2287ACTION_ECHO; ++linenum; /* maybe end of comment line */
2323 YY_BREAK 2288 YY_BREAK
2324 2289
2325 
2326case 21: 2290case 21:
2327YY_RULE_SETUP 2291YY_RULE_SETUP
2328#line 210 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2329ACTION_ECHO; yy_pop_state(); 2292ACTION_ECHO; yy_pop_state();
2330 YY_BREAK 2293 YY_BREAK
2331case 22: 2294case 22:
2332YY_RULE_SETUP 2295YY_RULE_SETUP
2333#line 211 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2334ACTION_ECHO; 2296ACTION_ECHO;
2335 YY_BREAK 2297 YY_BREAK
2336case 23: 2298case 23:
2337YY_RULE_SETUP 2299YY_RULE_SETUP
2338#line 212 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2339ACTION_ECHO_QSTART; 2300ACTION_ECHO_QSTART;
2340 YY_BREAK 2301 YY_BREAK
2341case 24: 2302case 24:
2342YY_RULE_SETUP 2303YY_RULE_SETUP
2343#line 213 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2344ACTION_ECHO_QEND; 2304ACTION_ECHO_QEND;
2345 YY_BREAK 2305 YY_BREAK
2346case 25: 2306case 25:
2347YY_RULE_SETUP 2307YY_RULE_SETUP
2348#line 214 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2349ACTION_ECHO; 2308ACTION_ECHO;
2350 YY_BREAK 2309 YY_BREAK
2351case 26: 2310case 26:
2352/* rule 26 can match eol */ 2311/* rule 26 can match eol */
2353YY_RULE_SETUP 2312YY_RULE_SETUP
2354#line 215 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2355++linenum; ACTION_ECHO; 2313++linenum; ACTION_ECHO;
2356 YY_BREAK 2314 YY_BREAK
2357 2315
2358 
2359/* This is the same as COMMENT, but is discarded rather than output. */ 2316/* This is the same as COMMENT, but is discarded rather than output. */
2360case 27: 2317case 27:
2361YY_RULE_SETUP 2318YY_RULE_SETUP
2362#line 220 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2363yy_pop_state(); 2319yy_pop_state();
2364 YY_BREAK 2320 YY_BREAK
2365case 28: 2321case 28:
2366YY_RULE_SETUP 2322YY_RULE_SETUP
2367#line 221 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2368; 2323;
2369 YY_BREAK 2324 YY_BREAK
2370case 29: 2325case 29:
2371YY_RULE_SETUP 2326YY_RULE_SETUP
2372#line 222 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2373; 2327;
2374 YY_BREAK 2328 YY_BREAK
2375case 30: 2329case 30:
2376/* rule 30 can match eol */ 2330/* rule 30 can match eol */
2377YY_RULE_SETUP 2331YY_RULE_SETUP
2378#line 223 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2379++linenum; 2332++linenum;
2380 YY_BREAK 2333 YY_BREAK
2381 2334
2382 
2383case 31: 2335case 31:
2384YY_RULE_SETUP 2336YY_RULE_SETUP
2385#line 227 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2386yy_pop_state(); 2337yy_pop_state();
2387 YY_BREAK 2338 YY_BREAK
2388case 32: 2339case 32:
2389YY_RULE_SETUP 2340YY_RULE_SETUP
2390#line 228 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2391; 2341;
2392 YY_BREAK 2342 YY_BREAK
2393case 33: 2343case 33:
2394/* rule 33 can match eol */ 2344/* rule 33 can match eol */
2395YY_RULE_SETUP 2345YY_RULE_SETUP
2396#line 229 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2397++linenum;  2346++linenum;
2398 YY_BREAK 2347 YY_BREAK
2399 2348
2400 
2401case 34: 2349case 34:
2402/* rule 34 can match eol */ 2350/* rule 34 can match eol */
2403YY_RULE_SETUP 2351YY_RULE_SETUP
2404#line 233 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2405yy_pop_state(); 2352yy_pop_state();
2406 YY_BREAK 2353 YY_BREAK
2407case 35: 2354case 35:
2408YY_RULE_SETUP 2355YY_RULE_SETUP
2409#line 234 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2410linenum = myctoi( yytext ); 2356linenum = myctoi( yytext );
2411 YY_BREAK 2357 YY_BREAK
2412case 36: 2358case 36:
2413YY_RULE_SETUP 2359YY_RULE_SETUP
2414#line 236 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2415{ 2360{
2416 flex_free( (void *) infilename ); 2361 flex_free( (void *) infilename );
2417 infilename = copy_string( yytext + 1 ); 2362 infilename = copy_string( yytext + 1 );
2418 infilename[strlen( infilename ) - 1] = '\0'; 2363 infilename[strlen( infilename ) - 1] = '\0';
2419 } 2364 }
2420 YY_BREAK 2365 YY_BREAK
2421case 37: 2366case 37:
2422YY_RULE_SETUP 2367YY_RULE_SETUP
2423#line 241 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2424/* ignore spurious characters */ 2368/* ignore spurious characters */
2425 YY_BREAK 2369 YY_BREAK
2426 2370
2427 
2428case 38: 2371case 38:
2429/* rule 38 can match eol */ 2372/* rule 38 can match eol */
2430YY_RULE_SETUP 2373YY_RULE_SETUP
2431#line 245 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2432++linenum; BEGIN(INITIAL); 2374++linenum; BEGIN(INITIAL);
2433 YY_BREAK 2375 YY_BREAK
2434case 39: 2376case 39:
2435YY_RULE_SETUP 2377YY_RULE_SETUP
2436#line 247 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2437ACTION_ECHO_QSTART; 2378ACTION_ECHO_QSTART;
2438 YY_BREAK 2379 YY_BREAK
2439case 40: 2380case 40:
2440YY_RULE_SETUP 2381YY_RULE_SETUP
2441#line 248 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2442ACTION_ECHO_QEND; 2382ACTION_ECHO_QEND;
2443 YY_BREAK 2383 YY_BREAK
2444case 41: 2384case 41:
2445YY_RULE_SETUP 2385YY_RULE_SETUP
2446#line 249 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2447ACTION_ECHO; 2386ACTION_ECHO;
2448 YY_BREAK 2387 YY_BREAK
2449case 42: 2388case 42:
2450/* rule 42 can match eol */ 2389/* rule 42 can match eol */
2451YY_RULE_SETUP 2390YY_RULE_SETUP
2452#line 251 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2453{ 2391{
2454 ++linenum; 2392 ++linenum;
2455 ACTION_ECHO; 2393 ACTION_ECHO;
2456 if ( indented_code ) 2394 if ( indented_code )
2457 BEGIN(INITIAL); 2395 BEGIN(INITIAL);
2458 } 2396 }
2459 YY_BREAK 2397 YY_BREAK
2460 2398
2461 
2462case 43: 2399case 43:
2463YY_RULE_SETUP 2400YY_RULE_SETUP
2464#line 260 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2465{ 2401{
2466 if( --brace_depth == 0){ 2402 if( --brace_depth == 0){
2467 /* TODO: Matched. */ 2403 /* TODO: Matched. */
2468 yy_pop_state(); 2404 yy_pop_state();
2469 }else 2405 }else
2470 buf_strnappend(&top_buf, yytext, yyleng); 2406 buf_strnappend(&top_buf, yytext, yyleng);
2471 } 2407 }
2472 YY_BREAK 2408 YY_BREAK
2473case 44: 2409case 44:
2474YY_RULE_SETUP 2410YY_RULE_SETUP
2475#line 268 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2476{ 2411{
2477 brace_depth++; 2412 brace_depth++;
2478 buf_strnappend(&top_buf, yytext, yyleng); 2413 buf_strnappend(&top_buf, yytext, yyleng);
2479 } 2414 }
2480 YY_BREAK 2415 YY_BREAK
2481case 45: 2416case 45:
2482/* rule 45 can match eol */ 2417/* rule 45 can match eol */
2483YY_RULE_SETUP 2418YY_RULE_SETUP
2484#line 273 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2485{ 2419{
2486 ++linenum; 2420 ++linenum;
2487 buf_strnappend(&top_buf, yytext, yyleng); 2421 buf_strnappend(&top_buf, yytext, yyleng);
2488 } 2422 }
2489 YY_BREAK 2423 YY_BREAK
2490case 46: 2424case 46:
2491YY_RULE_SETUP 2425YY_RULE_SETUP
2492#line 278 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2493buf_strnappend(&top_buf, escaped_qstart, strlen(escaped_qstart)); 2426buf_strnappend(&top_buf, escaped_qstart, strlen(escaped_qstart));
2494 YY_BREAK 2427 YY_BREAK
2495case 47: 2428case 47:
2496YY_RULE_SETUP 2429YY_RULE_SETUP
2497#line 279 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2498buf_strnappend(&top_buf, escaped_qend, strlen(escaped_qend)); 2430buf_strnappend(&top_buf, escaped_qend, strlen(escaped_qend));
2499 YY_BREAK 2431 YY_BREAK
2500case 48: 2432case 48:
2501YY_RULE_SETUP 2433YY_RULE_SETUP
2502#line 281 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2503{ 2434{
2504 buf_strnappend(&top_buf, yytext, yyleng); 2435 buf_strnappend(&top_buf, yytext, yyleng);
2505 } 2436 }
2506 YY_BREAK 2437 YY_BREAK
2507case YY_STATE_EOF(CODEBLOCK_MATCH_BRACE): 2438case YY_STATE_EOF(CODEBLOCK_MATCH_BRACE):
2508#line 285 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2509{ 2439{
2510 linenum = brace_start_line; 2440 linenum = brace_start_line;
2511 synerr(_("Unmatched '{'")); 2441 synerr(_("Unmatched '{'"));
2512 yyterminate(); 2442 yyterminate();
2513 } 2443 }
2514 YY_BREAK 2444 YY_BREAK
2515 2445
2516 
2517case 49: 2446case 49:
2518YY_RULE_SETUP 2447YY_RULE_SETUP
2519#line 294 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2520/* separates name and definition */ 2448/* separates name and definition */
2521 YY_BREAK 2449 YY_BREAK
2522case 50: 2450case 50:
2523YY_RULE_SETUP 2451YY_RULE_SETUP
2524#line 296 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2525{ 2452{
2526 if(yyleng < MAXLINE) 2453 if(yyleng < MAXLINE)
2527 { 2454 {
2528 strlcpy( (char *) nmdef, yytext, sizeof(nmdef) ); 2455 strlcpy( (char *) nmdef, yytext, sizeof(nmdef) );
2529 } 2456 }
2530 else 2457 else
2531 { 2458 {
2532 format_synerr( _("Definition value for {%s} too long\n"), nmstr); 2459 format_synerr( _("Definition value for {%s} too long\n"), nmstr);
2533 FLEX_EXIT(EXIT_FAILURE); 2460 FLEX_EXIT(EXIT_FAILURE);
2534 } 2461 }
2535 /* Skip trailing whitespace. */ 2462 /* Skip trailing whitespace. */
2536 for ( i = strlen( (char *) nmdef ) - 1; 2463 for ( i = strlen( (char *) nmdef ) - 1;
2537 i >= 0 && (nmdef[i] == ' ' || nmdef[i] == '\t'); 2464 i >= 0 && (nmdef[i] == ' ' || nmdef[i] == '\t');
2538 --i ) 2465 --i )
2539 ; 2466 ;
2540 2467
2541 nmdef[i + 1] = '\0'; 2468 nmdef[i + 1] = '\0';
2542 2469
2543 ndinstal( nmstr, nmdef ); 2470 ndinstal( nmstr, nmdef );
2544 didadef = true; 2471 didadef = true;
2545 } 2472 }
2546 YY_BREAK 2473 YY_BREAK
2547case 51: 2474case 51:
2548/* rule 51 can match eol */ 2475/* rule 51 can match eol */
2549YY_RULE_SETUP 2476YY_RULE_SETUP
2550#line 318 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2551{ 2477{
2552 if ( ! didadef ) 2478 if ( ! didadef )
2553 synerr( _( "incomplete name definition" ) ); 2479 synerr( _( "incomplete name definition" ) );
2554 BEGIN(INITIAL); 2480 BEGIN(INITIAL);
2555 ++linenum; 2481 ++linenum;
2556 } 2482 }
2557 YY_BREAK 2483 YY_BREAK
2558 2484
2559 
2560case 52: 2485case 52:
2561/* rule 52 can match eol */ 2486/* rule 52 can match eol */
2562YY_RULE_SETUP 2487YY_RULE_SETUP
2563#line 328 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2564++linenum; BEGIN(INITIAL); 2488++linenum; BEGIN(INITIAL);
2565 YY_BREAK 2489 YY_BREAK
2566case 53: 2490case 53:
2567YY_RULE_SETUP 2491YY_RULE_SETUP
2568#line 329 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2569option_sense = true; 2492option_sense = true;
2570 YY_BREAK 2493 YY_BREAK
2571case 54: 2494case 54:
2572YY_RULE_SETUP 2495YY_RULE_SETUP
2573#line 331 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2574return '='; 2496return '=';
2575 YY_BREAK 2497 YY_BREAK
2576case 55: 2498case 55:
2577YY_RULE_SETUP 2499YY_RULE_SETUP
2578#line 333 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2579option_sense = ! option_sense; 2500option_sense = ! option_sense;
2580 YY_BREAK 2501 YY_BREAK
2581case 56: 2502case 56:
2582YY_RULE_SETUP 2503YY_RULE_SETUP
2583#line 335 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2584csize = option_sense ? 128 : 256; 2504csize = option_sense ? 128 : 256;
2585 YY_BREAK 2505 YY_BREAK
2586case 57: 2506case 57:
2587YY_RULE_SETUP 2507YY_RULE_SETUP
2588#line 336 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2589csize = option_sense ? 256 : 128; 2508csize = option_sense ? 256 : 128;
2590 YY_BREAK 2509 YY_BREAK
2591case 58: 2510case 58:
2592YY_RULE_SETUP 2511YY_RULE_SETUP
2593#line 338 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2594long_align = option_sense; 2512long_align = option_sense;
2595 YY_BREAK 2513 YY_BREAK
2596case 59: 2514case 59:
2597YY_RULE_SETUP 2515YY_RULE_SETUP
2598#line 339 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2599{ 2516{
2600 ACTION_M4_IFDEF( "M4""_YY_ALWAYS_INTERACTIVE", option_sense ); 2517 ACTION_M4_IFDEF( "M4""_YY_ALWAYS_INTERACTIVE", option_sense );
2601 interactive = option_sense; 2518 interactive = option_sense;
2602 } 2519 }
2603 YY_BREAK 2520 YY_BREAK
2604case 60: 2521case 60:
2605YY_RULE_SETUP 2522YY_RULE_SETUP
2606#line 343 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2607yytext_is_array = option_sense; 2523yytext_is_array = option_sense;
2608 YY_BREAK 2524 YY_BREAK
2609case 61: 2525case 61:
2610YY_RULE_SETUP 2526YY_RULE_SETUP
2611#line 344 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2612ansi_func_defs = option_sense; 2527ansi_func_defs = option_sense;
2613 YY_BREAK 2528 YY_BREAK
2614case 62: 2529case 62:
2615YY_RULE_SETUP 2530YY_RULE_SETUP
2616#line 345 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2617ansi_func_protos = option_sense; 2531ansi_func_protos = option_sense;
2618 YY_BREAK 2532 YY_BREAK
2619case 63: 2533case 63:
2620YY_RULE_SETUP 2534YY_RULE_SETUP
2621#line 346 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2622backing_up_report = option_sense; 2535backing_up_report = option_sense;
2623 YY_BREAK 2536 YY_BREAK
2624case 64: 2537case 64:
2625YY_RULE_SETUP 2538YY_RULE_SETUP
2626#line 347 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2627interactive = ! option_sense; 2539interactive = ! option_sense;
2628 YY_BREAK 2540 YY_BREAK
2629case 65: 2541case 65:
2630YY_RULE_SETUP 2542YY_RULE_SETUP
2631#line 348 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2632bison_bridge_lval = option_sense; 2543bison_bridge_lval = option_sense;
2633 YY_BREAK 2544 YY_BREAK
2634case 66: 2545case 66:
2635YY_RULE_SETUP 2546YY_RULE_SETUP
2636#line 349 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2637{ if((bison_bridge_lloc = option_sense)) 2547{ if((bison_bridge_lloc = option_sense))
2638 bison_bridge_lval = true; 2548 bison_bridge_lval = true;
2639 } 2549 }
2640 YY_BREAK 2550 YY_BREAK
2641case 67: 2551case 67:
2642YY_RULE_SETUP 2552YY_RULE_SETUP
2643#line 352 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2644C_plus_plus = option_sense; 2553C_plus_plus = option_sense;
2645 YY_BREAK 2554 YY_BREAK
2646case 68: 2555case 68:
2647YY_RULE_SETUP 2556YY_RULE_SETUP
2648#line 353 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2649sf_set_case_ins(!option_sense); 2557sf_set_case_ins(!option_sense);
2650 YY_BREAK 2558 YY_BREAK
2651case 69: 2559case 69:
2652YY_RULE_SETUP 2560YY_RULE_SETUP
2653#line 354 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2654sf_set_case_ins(option_sense); 2561sf_set_case_ins(option_sense);
2655 YY_BREAK 2562 YY_BREAK
2656case 70: 2563case 70:
2657YY_RULE_SETUP 2564YY_RULE_SETUP
2658#line 355 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2659ddebug = option_sense; 2565ddebug = option_sense;
2660 YY_BREAK 2566 YY_BREAK
2661case 71: 2567case 71:
2662YY_RULE_SETUP 2568YY_RULE_SETUP
2663#line 356 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2664spprdflt = ! option_sense; 2569spprdflt = ! option_sense;
2665 YY_BREAK 2570 YY_BREAK
2666case 72: 2571case 72:
2667YY_RULE_SETUP 2572YY_RULE_SETUP
2668#line 357 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2669useecs = option_sense; 2573useecs = option_sense;
2670 YY_BREAK 2574 YY_BREAK
2671case 73: 2575case 73:
2672YY_RULE_SETUP 2576YY_RULE_SETUP
2673#line 358 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2674{ 2577{
2675 useecs = usemecs = false; 2578 useecs = usemecs = false;
2676 use_read = fullspd = true; 2579 use_read = fullspd = true;
2677 } 2580 }
2678 YY_BREAK 2581 YY_BREAK
2679case 74: 2582case 74:
2680YY_RULE_SETUP 2583YY_RULE_SETUP
2681#line 362 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2682{ 2584{
2683 useecs = usemecs = false; 2585 useecs = usemecs = false;
2684 use_read = fulltbl = true; 2586 use_read = fulltbl = true;
2685 } 2587 }
2686 YY_BREAK 2588 YY_BREAK
2687case 75: 2589case 75:
2688YY_RULE_SETUP 2590YY_RULE_SETUP
2689#line 366 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2690ACTION_IFDEF("YY_NO_INPUT", ! option_sense); 2591ACTION_IFDEF("YY_NO_INPUT", ! option_sense);
2691 YY_BREAK 2592 YY_BREAK
2692case 76: 2593case 76:
2693YY_RULE_SETUP 2594YY_RULE_SETUP
2694#line 367 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2695interactive = option_sense; 2595interactive = option_sense;
2696 YY_BREAK 2596 YY_BREAK
2697case 77: 2597case 77:
2698YY_RULE_SETUP 2598YY_RULE_SETUP
2699#line 368 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2700lex_compat = option_sense; 2599lex_compat = option_sense;
2701 YY_BREAK 2600 YY_BREAK
2702case 78: 2601case 78:
2703YY_RULE_SETUP 2602YY_RULE_SETUP
2704#line 369 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2705posix_compat = option_sense; 2603posix_compat = option_sense;
2706 YY_BREAK 2604 YY_BREAK
2707case 79: 2605case 79:
2708YY_RULE_SETUP 2606YY_RULE_SETUP
2709#line 370 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2710{ 2607{
2711 ACTION_M4_IFDEF( "M4""_YY_MAIN", option_sense); 2608 ACTION_M4_IFDEF( "M4""_YY_MAIN", option_sense);
2712 /* Override yywrap */ 2609 /* Override yywrap */
2713 if( option_sense == true ) 2610 if( option_sense == true )
2714 do_yywrap = false; 2611 do_yywrap = false;
2715 } 2612 }
2716 YY_BREAK 2613 YY_BREAK
2717case 80: 2614case 80:
2718YY_RULE_SETUP 2615YY_RULE_SETUP
2719#line 376 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2720usemecs = option_sense; 2616usemecs = option_sense;
2721 YY_BREAK 2617 YY_BREAK
2722case 81: 2618case 81:
2723YY_RULE_SETUP 2619YY_RULE_SETUP
2724#line 377 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2725{ 2620{
2726 ACTION_M4_IFDEF( "M4""_YY_NEVER_INTERACTIVE", option_sense ); 2621 ACTION_M4_IFDEF( "M4""_YY_NEVER_INTERACTIVE", option_sense );
2727 interactive = !option_sense; 2622 interactive = !option_sense;
2728 } 2623 }
2729 YY_BREAK 2624 YY_BREAK
2730case 82: 2625case 82:
2731YY_RULE_SETUP 2626YY_RULE_SETUP
2732#line 381 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2733performance_report += option_sense ? 1 : -1; 2627performance_report += option_sense ? 1 : -1;
2734 YY_BREAK 2628 YY_BREAK
2735case 83: 2629case 83:
2736YY_RULE_SETUP 2630YY_RULE_SETUP
2737#line 382 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2738yytext_is_array = ! option_sense; 2631yytext_is_array = ! option_sense;
2739 YY_BREAK 2632 YY_BREAK
2740case 84: 2633case 84:
2741YY_RULE_SETUP 2634YY_RULE_SETUP
2742#line 383 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2743use_read = option_sense; 2635use_read = option_sense;
2744 YY_BREAK 2636 YY_BREAK
2745case 85: 2637case 85:
2746YY_RULE_SETUP 2638YY_RULE_SETUP
2747#line 384 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2748reentrant = option_sense; 2639reentrant = option_sense;
2749 YY_BREAK 2640 YY_BREAK
2750case 86: 2641case 86:
2751YY_RULE_SETUP 2642YY_RULE_SETUP
2752#line 385 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2753reject_really_used = option_sense; 2643reject_really_used = option_sense;
2754 YY_BREAK 2644 YY_BREAK
2755case 87: 2645case 87:
2756YY_RULE_SETUP 2646YY_RULE_SETUP
2757#line 386 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2758ACTION_M4_IFDEF( "M4""_YY_STACK_USED", option_sense ); 2647ACTION_M4_IFDEF( "M4""_YY_STACK_USED", option_sense );
2759 YY_BREAK 2648 YY_BREAK
2760case 88: 2649case 88:
2761YY_RULE_SETUP 2650YY_RULE_SETUP
2762#line 387 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2763do_stdinit = option_sense; 2651do_stdinit = option_sense;
2764 YY_BREAK 2652 YY_BREAK
2765case 89: 2653case 89:
2766YY_RULE_SETUP 2654YY_RULE_SETUP
2767#line 388 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2768use_stdout = option_sense; 2655use_stdout = option_sense;
2769 YY_BREAK 2656 YY_BREAK
2770case 90: 2657case 90:
2771YY_RULE_SETUP 2658YY_RULE_SETUP
2772#line 389 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2773ACTION_IFDEF("YY_NO_UNISTD_H", ! option_sense); 2659ACTION_IFDEF("YY_NO_UNISTD_H", ! option_sense);
2774 YY_BREAK 2660 YY_BREAK
2775case 91: 2661case 91:
2776YY_RULE_SETUP 2662YY_RULE_SETUP
2777#line 390 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2778ACTION_M4_IFDEF("M4""_YY_NO_UNPUT", ! option_sense); 2663ACTION_M4_IFDEF("M4""_YY_NO_UNPUT", ! option_sense);
2779 YY_BREAK 2664 YY_BREAK
2780case 92: 2665case 92:
2781YY_RULE_SETUP 2666YY_RULE_SETUP
2782#line 391 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2783printstats = option_sense; 2667printstats = option_sense;
2784 YY_BREAK 2668 YY_BREAK
2785case 93: 2669case 93:
2786YY_RULE_SETUP 2670YY_RULE_SETUP
2787#line 392 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2788nowarn = ! option_sense; 2671nowarn = ! option_sense;
2789 YY_BREAK 2672 YY_BREAK
2790case 94: 2673case 94:
2791YY_RULE_SETUP 2674YY_RULE_SETUP
2792#line 393 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2793do_yylineno = option_sense; ACTION_M4_IFDEF("M4""_YY_USE_LINENO", option_sense); 2675do_yylineno = option_sense; ACTION_M4_IFDEF("M4""_YY_USE_LINENO", option_sense);
2794 YY_BREAK 2676 YY_BREAK
2795case 95: 2677case 95:
2796YY_RULE_SETUP 2678YY_RULE_SETUP
2797#line 394 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2798yymore_really_used = option_sense; 2679yymore_really_used = option_sense;
2799 YY_BREAK 2680 YY_BREAK
2800case 96: 2681case 96:
2801YY_RULE_SETUP 2682YY_RULE_SETUP
2802#line 395 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2803do_yywrap = option_sense; 2683do_yywrap = option_sense;
2804 YY_BREAK 2684 YY_BREAK
2805case 97: 2685case 97:
2806YY_RULE_SETUP 2686YY_RULE_SETUP
2807#line 397 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2808ACTION_M4_IFDEF("M4""_YY_NO_PUSH_STATE", ! option_sense); 2687ACTION_M4_IFDEF("M4""_YY_NO_PUSH_STATE", ! option_sense);
2809 YY_BREAK 2688 YY_BREAK
2810case 98: 2689case 98:
2811YY_RULE_SETUP 2690YY_RULE_SETUP
2812#line 398 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2813ACTION_M4_IFDEF("M4""_YY_NO_POP_STATE", ! option_sense); 2691ACTION_M4_IFDEF("M4""_YY_NO_POP_STATE", ! option_sense);
2814 YY_BREAK 2692 YY_BREAK
2815case 99: 2693case 99:
2816YY_RULE_SETUP 2694YY_RULE_SETUP
2817#line 399 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2818ACTION_M4_IFDEF("M4""_YY_NO_TOP_STATE", ! option_sense); 2695ACTION_M4_IFDEF("M4""_YY_NO_TOP_STATE", ! option_sense);
2819 YY_BREAK 2696 YY_BREAK
2820case 100: 2697case 100:
2821YY_RULE_SETUP 2698YY_RULE_SETUP
2822#line 401 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2823ACTION_M4_IFDEF("M4""_YY_NO_SCAN_BUFFER", ! option_sense); 2699ACTION_M4_IFDEF("M4""_YY_NO_SCAN_BUFFER", ! option_sense);
2824 YY_BREAK 2700 YY_BREAK
2825case 101: 2701case 101:
2826YY_RULE_SETUP 2702YY_RULE_SETUP
2827#line 402 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2828ACTION_M4_IFDEF("M4""_YY_NO_SCAN_BYTES", ! option_sense); 2703ACTION_M4_IFDEF("M4""_YY_NO_SCAN_BYTES", ! option_sense);
2829 YY_BREAK 2704 YY_BREAK
2830case 102: 2705case 102:
2831YY_RULE_SETUP 2706YY_RULE_SETUP
2832#line 403 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2833ACTION_M4_IFDEF("M4""_YY_NO_SCAN_STRING", ! option_sense); 2707ACTION_M4_IFDEF("M4""_YY_NO_SCAN_STRING", ! option_sense);
2834 YY_BREAK 2708 YY_BREAK
2835case 103: 2709case 103:
2836YY_RULE_SETUP 2710YY_RULE_SETUP
2837#line 405 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2838ACTION_M4_IFDEF("M4""_YY_NO_FLEX_ALLOC", ! option_sense); 2711ACTION_M4_IFDEF("M4""_YY_NO_FLEX_ALLOC", ! option_sense);
2839 YY_BREAK 2712 YY_BREAK
2840case 104: 2713case 104:
2841YY_RULE_SETUP 2714YY_RULE_SETUP
2842#line 406 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2843ACTION_M4_IFDEF("M4""_YY_NO_FLEX_REALLOC", ! option_sense); 2715ACTION_M4_IFDEF("M4""_YY_NO_FLEX_REALLOC", ! option_sense);
2844 YY_BREAK 2716 YY_BREAK
2845case 105: 2717case 105:
2846YY_RULE_SETUP 2718YY_RULE_SETUP
2847#line 407 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2848ACTION_M4_IFDEF("M4""_YY_NO_FLEX_FREE", ! option_sense); 2719ACTION_M4_IFDEF("M4""_YY_NO_FLEX_FREE", ! option_sense);
2849 YY_BREAK 2720 YY_BREAK
2850case 106: 2721case 106:
2851YY_RULE_SETUP 2722YY_RULE_SETUP
2852#line 409 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2853ACTION_M4_IFDEF("M4""_YY_NO_GET_DEBUG", ! option_sense); 2723ACTION_M4_IFDEF("M4""_YY_NO_GET_DEBUG", ! option_sense);
2854 YY_BREAK 2724 YY_BREAK
2855case 107: 2725case 107:
2856YY_RULE_SETUP 2726YY_RULE_SETUP
2857#line 410 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2858ACTION_M4_IFDEF("M4""_YY_NO_SET_DEBUG", ! option_sense); 2727ACTION_M4_IFDEF("M4""_YY_NO_SET_DEBUG", ! option_sense);
2859 YY_BREAK 2728 YY_BREAK
2860case 108: 2729case 108:
2861YY_RULE_SETUP 2730YY_RULE_SETUP
2862#line 411 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2863ACTION_M4_IFDEF("M4""_YY_NO_GET_EXTRA", ! option_sense); 2731ACTION_M4_IFDEF("M4""_YY_NO_GET_EXTRA", ! option_sense);
2864 YY_BREAK 2732 YY_BREAK
2865case 109: 2733case 109:
2866YY_RULE_SETUP 2734YY_RULE_SETUP
2867#line 412 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2868ACTION_M4_IFDEF("M4""_YY_NO_SET_EXTRA", ! option_sense); 2735ACTION_M4_IFDEF("M4""_YY_NO_SET_EXTRA", ! option_sense);
2869 YY_BREAK 2736 YY_BREAK
2870case 110: 2737case 110:
2871YY_RULE_SETUP 2738YY_RULE_SETUP
2872#line 413 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2873ACTION_M4_IFDEF("M4""_YY_NO_GET_LENG", ! option_sense); 2739ACTION_M4_IFDEF("M4""_YY_NO_GET_LENG", ! option_sense);
2874 YY_BREAK 2740 YY_BREAK
2875case 111: 2741case 111:
2876YY_RULE_SETUP 2742YY_RULE_SETUP
2877#line 414 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2878ACTION_M4_IFDEF("M4""_YY_NO_GET_TEXT", ! option_sense); 2743ACTION_M4_IFDEF("M4""_YY_NO_GET_TEXT", ! option_sense);
2879 YY_BREAK 2744 YY_BREAK
2880case 112: 2745case 112:
2881YY_RULE_SETUP 2746YY_RULE_SETUP
2882#line 415 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2883ACTION_M4_IFDEF("M4""_YY_NO_GET_LINENO", ! option_sense); 2747ACTION_M4_IFDEF("M4""_YY_NO_GET_LINENO", ! option_sense);
2884 YY_BREAK 2748 YY_BREAK
2885case 113: 2749case 113:
2886YY_RULE_SETUP 2750YY_RULE_SETUP
2887#line 416 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2888ACTION_M4_IFDEF("M4""_YY_NO_SET_LINENO", ! option_sense); 2751ACTION_M4_IFDEF("M4""_YY_NO_SET_LINENO", ! option_sense);
2889 YY_BREAK 2752 YY_BREAK
2890case 114: 2753case 114:
2891YY_RULE_SETUP 2754YY_RULE_SETUP
2892#line 417 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2893ACTION_M4_IFDEF("M4""_YY_NO_GET_IN", ! option_sense); 2755ACTION_M4_IFDEF("M4""_YY_NO_GET_IN", ! option_sense);
2894 YY_BREAK 2756 YY_BREAK
2895case 115: 2757case 115:
2896YY_RULE_SETUP 2758YY_RULE_SETUP
2897#line 418 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2898ACTION_M4_IFDEF("M4""_YY_NO_SET_IN", ! option_sense); 2759ACTION_M4_IFDEF("M4""_YY_NO_SET_IN", ! option_sense);
2899 YY_BREAK 2760 YY_BREAK
2900case 116: 2761case 116:
2901YY_RULE_SETUP 2762YY_RULE_SETUP
2902#line 419 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2903ACTION_M4_IFDEF("M4""_YY_NO_GET_OUT", ! option_sense); 2763ACTION_M4_IFDEF("M4""_YY_NO_GET_OUT", ! option_sense);
2904 YY_BREAK 2764 YY_BREAK
2905case 117: 2765case 117:
2906YY_RULE_SETUP 2766YY_RULE_SETUP
2907#line 420 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2908ACTION_M4_IFDEF("M4""_YY_NO_SET_OUT", ! option_sense); 2767ACTION_M4_IFDEF("M4""_YY_NO_SET_OUT", ! option_sense);
2909 YY_BREAK 2768 YY_BREAK
2910case 118: 2769case 118:
2911YY_RULE_SETUP 2770YY_RULE_SETUP
2912#line 421 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2913ACTION_M4_IFDEF("M4""_YY_NO_GET_LVAL", ! option_sense); 2771ACTION_M4_IFDEF("M4""_YY_NO_GET_LVAL", ! option_sense);
2914 YY_BREAK 2772 YY_BREAK
2915case 119: 2773case 119:
2916YY_RULE_SETUP 2774YY_RULE_SETUP
2917#line 422 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2918ACTION_M4_IFDEF("M4""_YY_NO_SET_LVAL", ! option_sense); 2775ACTION_M4_IFDEF("M4""_YY_NO_SET_LVAL", ! option_sense);
2919 YY_BREAK 2776 YY_BREAK
2920case 120: 2777case 120:
2921YY_RULE_SETUP 2778YY_RULE_SETUP
2922#line 423 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2923ACTION_M4_IFDEF("M4""_YY_NO_GET_LLOC", ! option_sense); 2779ACTION_M4_IFDEF("M4""_YY_NO_GET_LLOC", ! option_sense);
2924 YY_BREAK 2780 YY_BREAK
2925case 121: 2781case 121:
2926YY_RULE_SETUP 2782YY_RULE_SETUP
2927#line 424 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2928ACTION_M4_IFDEF("M4""_YY_NO_SET_LLOC", ! option_sense); 2783ACTION_M4_IFDEF("M4""_YY_NO_SET_LLOC", ! option_sense);
2929 YY_BREAK 2784 YY_BREAK
2930case 122: 2785case 122:
2931YY_RULE_SETUP 2786YY_RULE_SETUP
2932#line 426 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2933return OPT_EXTRA_TYPE; 2787return OPT_EXTRA_TYPE;
2934 YY_BREAK 2788 YY_BREAK
2935case 123: 2789case 123:
2936YY_RULE_SETUP 2790YY_RULE_SETUP
2937#line 427 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2938return OPT_OUTFILE; 2791return OPT_OUTFILE;
2939 YY_BREAK 2792 YY_BREAK
2940case 124: 2793case 124:
2941YY_RULE_SETUP 2794YY_RULE_SETUP
2942#line 428 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2943return OPT_PREFIX; 2795return OPT_PREFIX;
2944 YY_BREAK 2796 YY_BREAK
2945case 125: 2797case 125:
2946YY_RULE_SETUP 2798YY_RULE_SETUP
2947#line 429 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2948return OPT_YYCLASS; 2799return OPT_YYCLASS;
2949 YY_BREAK 2800 YY_BREAK
2950case 126: 2801case 126:
2951YY_RULE_SETUP 2802YY_RULE_SETUP
2952#line 430 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2953return OPT_HEADER; 2803return OPT_HEADER;
2954 YY_BREAK 2804 YY_BREAK
2955case 127: 2805case 127:
2956YY_RULE_SETUP 2806YY_RULE_SETUP
2957#line 431 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2958return OPT_TABLES; 2807return OPT_TABLES;
2959 YY_BREAK 2808 YY_BREAK
2960case 128: 2809case 128:
2961YY_RULE_SETUP 2810YY_RULE_SETUP
2962#line 432 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2963{ 2811{
2964 tablesverify = option_sense; 2812 tablesverify = option_sense;
2965 if(!tablesext && option_sense) 2813 if(!tablesext && option_sense)
2966 tablesext = true; 2814 tablesext = true;
2967 } 2815 }
2968 YY_BREAK 2816 YY_BREAK
2969case 129: 2817case 129:
2970YY_RULE_SETUP 2818YY_RULE_SETUP
2971#line 439 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2972{ 2819{
2973 if(yyleng-1 < MAXLINE) 2820 if(yyleng-1 < MAXLINE)
2974 { 2821 {
2975 strlcpy( nmstr, yytext + 1, sizeof(nmstr) ); 2822 strlcpy( nmstr, yytext + 1, sizeof(nmstr) );
2976 } 2823 }
2977 else 2824 else
2978 { 2825 {
2979 synerr( _("Option line too long\n")); 2826 synerr( _("Option line too long\n"));
2980 FLEX_EXIT(EXIT_FAILURE); 2827 FLEX_EXIT(EXIT_FAILURE);
2981 } 2828 }
2982 nmstr[strlen( nmstr ) - 1] = '\0'; 2829 nmstr[strlen( nmstr ) - 1] = '\0';
2983 return NAME; 2830 return NAME;
2984 } 2831 }
2985 YY_BREAK 2832 YY_BREAK
2986case 130: 2833case 130:
2987YY_RULE_SETUP 2834YY_RULE_SETUP
2988#line 453 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
2989{ 2835{
2990 format_synerr( _( "unrecognized %%option: %s" ), 2836 format_synerr( _( "unrecognized %%option: %s" ),
2991 yytext ); 2837 yytext );
2992 BEGIN(RECOVER); 2838 BEGIN(RECOVER);
2993 } 2839 }
2994 YY_BREAK 2840 YY_BREAK
2995 2841
2996case 131: 2842case 131:
2997/* rule 131 can match eol */ 2843/* rule 131 can match eol */
2998YY_RULE_SETUP 2844YY_RULE_SETUP
2999#line 460 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3000++linenum; BEGIN(INITIAL); 2845++linenum; BEGIN(INITIAL);
3001 YY_BREAK 2846 YY_BREAK
3002 2847
3003case 132: 2848case 132:
3004YY_RULE_SETUP 2849YY_RULE_SETUP
3005#line 464 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3006++bracelevel; yyless( 2 ); /* eat only %{ */ 2850++bracelevel; yyless( 2 ); /* eat only %{ */
3007 YY_BREAK 2851 YY_BREAK
3008case 133: 2852case 133:
3009YY_RULE_SETUP 2853YY_RULE_SETUP
3010#line 465 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3011--bracelevel; yyless( 2 ); /* eat only %} */ 2854--bracelevel; yyless( 2 ); /* eat only %} */
3012 YY_BREAK 2855 YY_BREAK
3013case 134: 2856case 134:
3014YY_RULE_SETUP 2857YY_RULE_SETUP
3015#line 467 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3016ACTION_ECHO; /* indented code in prolog */ 2858ACTION_ECHO; /* indented code in prolog */
3017 YY_BREAK 2859 YY_BREAK
3018case 135: 2860case 135:
3019YY_RULE_SETUP 2861YY_RULE_SETUP
3020#line 469 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3021{ /* non-indented code */ 2862{ /* non-indented code */
3022 if ( bracelevel <= 0 ) 2863 if ( bracelevel <= 0 )
3023 { /* not in %{ ... %} */ 2864 { /* not in %{ ... %} */
3024 yyless( 0 ); /* put it all back */ 2865 yyless( 0 ); /* put it all back */
3025 yy_set_bol( 1 ); 2866 yy_set_bol( 1 );
3026 mark_prolog(); 2867 mark_prolog();
3027 BEGIN(SECT2); 2868 BEGIN(SECT2);
3028 } 2869 }
3029 else 2870 else
3030 ACTION_ECHO; 2871 ACTION_ECHO;
3031 } 2872 }
3032 YY_BREAK 2873 YY_BREAK
3033case 136: 2874case 136:
3034YY_RULE_SETUP 2875YY_RULE_SETUP
3035#line 481 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3036ACTION_ECHO; 2876ACTION_ECHO;
3037 YY_BREAK 2877 YY_BREAK
3038case 137: 2878case 137:
3039/* rule 137 can match eol */ 2879/* rule 137 can match eol */
3040YY_RULE_SETUP 2880YY_RULE_SETUP
3041#line 482 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3042++linenum; ACTION_ECHO; 2881++linenum; ACTION_ECHO;
3043 YY_BREAK 2882 YY_BREAK
3044case YY_STATE_EOF(SECT2PROLOG): 2883case YY_STATE_EOF(SECT2PROLOG):
3045#line 484 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3046{ 2884{
3047 mark_prolog(); 2885 mark_prolog();
3048 sectnum = 0; 2886 sectnum = 0;
3049 yyterminate(); /* to stop the parser */ 2887 yyterminate(); /* to stop the parser */
3050 } 2888 }
3051 YY_BREAK 2889 YY_BREAK
3052 2890
3053 
3054case 138: 2891case 138:
3055/* rule 138 can match eol */ 2892/* rule 138 can match eol */
3056YY_RULE_SETUP 2893YY_RULE_SETUP
3057#line 492 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3058++linenum; /* allow blank lines in section 2 */ 2894++linenum; /* allow blank lines in section 2 */
3059 YY_BREAK 2895 YY_BREAK
3060case 139: 2896case 139:
3061YY_RULE_SETUP 2897YY_RULE_SETUP
3062#line 494 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3063{ 2898{
3064 indented_code = false; 2899 indented_code = false;
3065 doing_codeblock = true; 2900 doing_codeblock = true;
3066 bracelevel = 1; 2901 bracelevel = 1;
3067 BEGIN(PERCENT_BRACE_ACTION); 2902 BEGIN(PERCENT_BRACE_ACTION);
3068 } 2903 }
3069 YY_BREAK 2904 YY_BREAK
3070case 140: 2905case 140:
3071YY_RULE_SETUP 2906YY_RULE_SETUP
3072#line 501 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3073{ 2907{
3074 /* Allow "<" to appear in (?x) patterns. */ 2908 /* Allow "<" to appear in (?x) patterns. */
3075 if (!sf_skip_ws()) 2909 if (!sf_skip_ws())
3076 BEGIN(SC); 2910 BEGIN(SC);
3077 return '<'; 2911 return '<';
3078 } 2912 }
3079 YY_BREAK 2913 YY_BREAK
3080case 141: 2914case 141:
3081YY_RULE_SETUP 2915YY_RULE_SETUP
3082#line 507 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3083return '^'; 2916return '^';
3084 YY_BREAK 2917 YY_BREAK
3085case 142: 2918case 142:
3086YY_RULE_SETUP 2919YY_RULE_SETUP
3087#line 508 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3088BEGIN(QUOTE); return '"'; 2920BEGIN(QUOTE); return '"';
3089 YY_BREAK 2921 YY_BREAK
3090case 143: 2922case 143:
3091*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ 2923*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
3092(yy_c_buf_p) = yy_cp = yy_bp + 1; 2924(yy_c_buf_p) = yy_cp = yy_bp + 1;
3093YY_DO_BEFORE_ACTION; /* set up yytext again */ 2925YY_DO_BEFORE_ACTION; /* set up yytext again */
3094YY_RULE_SETUP 2926YY_RULE_SETUP
3095#line 509 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3096{ 2927{
3097 BEGIN(NUM); 2928 BEGIN(NUM);
3098 if ( lex_compat || posix_compat ) 2929 if ( lex_compat || posix_compat )
3099 return BEGIN_REPEAT_POSIX; 2930 return BEGIN_REPEAT_POSIX;
3100 else 2931 else
3101 return BEGIN_REPEAT_FLEX; 2932 return BEGIN_REPEAT_FLEX;
3102 } 2933 }
3103 YY_BREAK 2934 YY_BREAK
3104case 144: 2935case 144:
3105/* rule 144 can match eol */ 2936/* rule 144 can match eol */
3106*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ 2937*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
3107YY_LINENO_REWIND_TO(yy_bp + 1); 2938YY_LINENO_REWIND_TO(yy_bp + 1);
3108(yy_c_buf_p) = yy_cp = yy_bp + 1; 2939(yy_c_buf_p) = yy_cp = yy_bp + 1;
3109YY_DO_BEFORE_ACTION; /* set up yytext again */ 2940YY_DO_BEFORE_ACTION; /* set up yytext again */
3110YY_RULE_SETUP 2941YY_RULE_SETUP
3111#line 516 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3112return '$'; 2942return '$';
3113 YY_BREAK 2943 YY_BREAK
3114case 145: 2944case 145:
3115YY_RULE_SETUP 2945YY_RULE_SETUP
3116#line 518 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3117{ 2946{
3118 bracelevel = 1; 2947 bracelevel = 1;
3119 BEGIN(PERCENT_BRACE_ACTION); 2948 BEGIN(PERCENT_BRACE_ACTION);
3120 2949
3121 if ( in_rule ) 2950 if ( in_rule )
3122 { 2951 {
3123 doing_rule_action = true; 2952 doing_rule_action = true;
3124 in_rule = false; 2953 in_rule = false;
3125 return '\n'; 2954 return '\n';
3126 } 2955 }
3127 } 2956 }
3128 YY_BREAK 2957 YY_BREAK
3129case 146: 2958case 146:
3130/* rule 146 can match eol */ 2959/* rule 146 can match eol */
3131YY_RULE_SETUP 2960YY_RULE_SETUP
3132#line 529 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3133{ 2961{
3134 if (sf_skip_ws()){ 2962 if (sf_skip_ws()){
3135 /* We're in the middle of a (?x: ) pattern. */ 2963 /* We're in the middle of a (?x: ) pattern. */
3136 /* Push back everything starting at the "|" */ 2964 /* Push back everything starting at the "|" */
3137 size_t amt; 2965 size_t amt;
3138 amt = strchr (yytext, '|') - yytext; 2966 amt = strchr (yytext, '|') - yytext;
3139 yyless(amt); 2967 yyless(amt);
3140 } 2968 }
3141 else { 2969 else {
3142 continued_action = true; 2970 continued_action = true;
3143 ++linenum; 2971 ++linenum;
3144 return '\n'; 2972 return '\n';
3145 } 2973 }
3146 } 2974 }
3147 YY_BREAK 2975 YY_BREAK
3148case 147: 2976case 147:
3149YY_RULE_SETUP 2977YY_RULE_SETUP
3150#line 544 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3151{ 2978{
3152 2979
3153 if (sf_skip_ws()){ 2980 if (sf_skip_ws()){
3154 /* We're in the middle of a (?x: ) pattern. */ 2981 /* We're in the middle of a (?x: ) pattern. */
3155 yy_push_state(COMMENT_DISCARD); 2982 yy_push_state(COMMENT_DISCARD);
3156 } 2983 }
3157 else{ 2984 else{
3158 yyless( yyleng - 2 ); /* put back '/', '*' */ 2985 yyless( yyleng - 2 ); /* put back '/', '*' */
3159 bracelevel = 0; 2986 bracelevel = 0;
3160 continued_action = false; 2987 continued_action = false;
3161 BEGIN(ACTION); 2988 BEGIN(ACTION);
3162 } 2989 }
3163 } 2990 }
3164 YY_BREAK 2991 YY_BREAK
3165case 148: 2992case 148:
3166YY_RULE_SETUP 2993YY_RULE_SETUP
3167#line 558 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3168/* allow indented rules */ ; 2994/* allow indented rules */ ;
3169 YY_BREAK 2995 YY_BREAK
3170case 149: 2996case 149:
3171YY_RULE_SETUP 2997YY_RULE_SETUP
3172#line 560 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3173{ 2998{
3174 if (sf_skip_ws()){ 2999 if (sf_skip_ws()){
3175 /* We're in the middle of a (?x: ) pattern. */ 3000 /* We're in the middle of a (?x: ) pattern. */
3176 } 3001 }
3177 else{ 3002 else{
3178 /* This rule is separate from the one below because 3003 /* This rule is separate from the one below because
3179 * otherwise we get variable trailing context, so 3004 * otherwise we get variable trailing context, so
3180 * we can't build the scanner using -{f,F}. 3005 * we can't build the scanner using -{f,F}.
3181 */ 3006 */
3182 bracelevel = 0; 3007 bracelevel = 0;
3183 continued_action = false; 3008 continued_action = false;
3184 BEGIN(ACTION); 3009 BEGIN(ACTION);
3185 3010
3186 if ( in_rule ) 3011 if ( in_rule )
3187 { 3012 {
3188 doing_rule_action = true; 3013 doing_rule_action = true;
3189 in_rule = false; 3014 in_rule = false;
3190 return '\n'; 3015 return '\n';
3191 } 3016 }
3192 } 3017 }
3193 } 3018 }
3194 YY_BREAK 3019 YY_BREAK
3195case 150: 3020case 150:
3196/* rule 150 can match eol */ 3021/* rule 150 can match eol */
3197YY_RULE_SETUP 3022YY_RULE_SETUP
3198#line 582 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3199{ 3023{
3200 if (sf_skip_ws()){ 3024 if (sf_skip_ws()){
3201 /* We're in the middle of a (?x: ) pattern. */ 3025 /* We're in the middle of a (?x: ) pattern. */
3202 ++linenum; 3026 ++linenum;
3203 } 3027 }
3204 else{ 3028 else{
3205 bracelevel = 0; 3029 bracelevel = 0;
3206 continued_action = false; 3030 continued_action = false;
3207 BEGIN(ACTION); 3031 BEGIN(ACTION);
3208 unput( '\n' ); /* so <ACTION> sees it */ 3032 unput( '\n' ); /* so <ACTION> sees it */
3209 3033
3210 if ( in_rule ) 3034 if ( in_rule )
3211 { 3035 {
3212 doing_rule_action = true; 3036 doing_rule_action = true;
3213 in_rule = false; 3037 in_rule = false;
3214 return '\n'; 3038 return '\n';
3215 } 3039 }
3216 } 3040 }
3217 } 3041 }
3218 YY_BREAK 3042 YY_BREAK
3219case 151: 3043case 151:
3220#line 603 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3221case 152: 3044case 152:
3222YY_RULE_SETUP 3045YY_RULE_SETUP
3223#line 603 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3224return EOF_OP; 3046return EOF_OP;
3225 YY_BREAK 3047 YY_BREAK
3226case 153: 3048case 153:
3227YY_RULE_SETUP 3049YY_RULE_SETUP
3228#line 605 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3229{ 3050{
3230 sectnum = 3; 3051 sectnum = 3;
3231 BEGIN(SECT3); 3052 BEGIN(SECT3);
3232 outn("/* Begin user sect3 */"); 3053 outn("/* Begin user sect3 */");
3233 yyterminate(); /* to stop the parser */ 3054 yyterminate(); /* to stop the parser */
3234 } 3055 }
3235 YY_BREAK 3056 YY_BREAK
3236case 154: 3057case 154:
3237YY_RULE_SETUP 3058YY_RULE_SETUP
3238#line 612 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3239{ 3059{
3240 int cclval; 3060 int cclval;
3241 3061
3242 if(yyleng < MAXLINE) 3062 if(yyleng < MAXLINE)
3243 { 3063 {
3244 strlcpy( nmstr, yytext, sizeof(nmstr) ); 3064 strlcpy( nmstr, yytext, sizeof(nmstr) );
3245 } 3065 }
3246 else 3066 else
3247 { 3067 {
3248 synerr( _("Input line too long\n")); 3068 synerr( _("Input line too long\n"));
3249 FLEX_EXIT(EXIT_FAILURE); 3069 FLEX_EXIT(EXIT_FAILURE);
3250 } 3070 }
3251 3071
@@ -3275,42 +3095,39 @@ YY_RULE_SETUP @@ -3275,42 +3095,39 @@ YY_RULE_SETUP
3275 3095
3276 /* Push back everything but the leading bracket 3096 /* Push back everything but the leading bracket
3277 * so the ccl can be rescanned. 3097 * so the ccl can be rescanned.
3278 */ 3098 */
3279 yyless( 1 ); 3099 yyless( 1 );
3280 3100
3281 BEGIN(FIRSTCCL); 3101 BEGIN(FIRSTCCL);
3282 return '['; 3102 return '[';
3283 } 3103 }
3284 } 3104 }
3285 YY_BREAK 3105 YY_BREAK
3286case 155: 3106case 155:
3287YY_RULE_SETUP 3107YY_RULE_SETUP
3288#line 658 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3289return CCL_OP_DIFF; 3108return CCL_OP_DIFF;
3290 YY_BREAK 3109 YY_BREAK
3291case 156: 3110case 156:
3292YY_RULE_SETUP 3111YY_RULE_SETUP
3293#line 659 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3294return CCL_OP_UNION; 3112return CCL_OP_UNION;
3295 YY_BREAK 3113 YY_BREAK
3296/* Check for :space: at the end of the rule so we don't 3114/* Check for :space: at the end of the rule so we don't
3297 * wrap the expanded regex in '(' ')' -- breaking trailing 3115 * wrap the expanded regex in '(' ')' -- breaking trailing
3298 * context. 3116 * context.
3299 */ 3117 */
3300case 157: 3118case 157:
3301/* rule 157 can match eol */ 3119/* rule 157 can match eol */
3302YY_RULE_SETUP 3120YY_RULE_SETUP
3303#line 666 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3304{ 3121{
3305 Char *nmdefptr; 3122 Char *nmdefptr;
3306 int end_is_ws, end_ch; 3123 int end_is_ws, end_ch;
3307 3124
3308 end_ch = yytext[yyleng-1]; 3125 end_ch = yytext[yyleng-1];
3309 end_is_ws = end_ch != '}' ? 1 : 0; 3126 end_is_ws = end_ch != '}' ? 1 : 0;
3310 3127
3311 if(yyleng-1 < MAXLINE) 3128 if(yyleng-1 < MAXLINE)
3312 { 3129 {
3313 strlcpy( nmstr, yytext + 1, sizeof(nmstr) ); 3130 strlcpy( nmstr, yytext + 1, sizeof(nmstr) );
3314 } 3131 }
3315 else 3132 else
3316 { 3133 {
@@ -3341,664 +3158,557 @@ nmstr[yyleng - 2 - end_is_ws] = '\0'; / @@ -3341,664 +3158,557 @@ nmstr[yyleng - 2 - end_is_ws] = '\0'; /
3341 } 3158 }
3342 3159
3343 else 3160 else
3344 { 3161 {
3345 unput(')'); 3162 unput(')');
3346 PUT_BACK_STRING((char *) nmdefptr, 0); 3163 PUT_BACK_STRING((char *) nmdefptr, 0);
3347 unput('('); 3164 unput('(');
3348 } 3165 }
3349 } 3166 }
3350 } 3167 }
3351 YY_BREAK 3168 YY_BREAK
3352case 158: 3169case 158:
3353YY_RULE_SETUP 3170YY_RULE_SETUP
3354#line 714 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3355{ 3171{
3356 if (sf_skip_ws()) 3172 if (sf_skip_ws())
3357 yy_push_state(COMMENT_DISCARD); 3173 yy_push_state(COMMENT_DISCARD);
3358 else{ 3174 else{
3359 /* Push back the "*" and return "/" as usual. */ 3175 /* Push back the "*" and return "/" as usual. */
3360 yyless(1); 3176 yyless(1);
3361 return '/'; 3177 return '/';
3362 } 3178 }
3363 } 3179 }
3364 YY_BREAK 3180 YY_BREAK
3365case 159: 3181case 159:
3366YY_RULE_SETUP 3182YY_RULE_SETUP
3367#line 724 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3368{ 3183{
3369 if (lex_compat || posix_compat){ 3184 if (lex_compat || posix_compat){
3370 /* Push back the "?#" and treat it like a normal parens. */ 3185 /* Push back the "?#" and treat it like a normal parens. */
3371 yyless(1); 3186 yyless(1);
3372 sf_push();  3187 sf_push();
3373 return '('; 3188 return '(';
3374 } 3189 }
3375 else 3190 else
3376 yy_push_state(EXTENDED_COMMENT); 3191 yy_push_state(EXTENDED_COMMENT);
3377 } 3192 }
3378 YY_BREAK 3193 YY_BREAK
3379case 160: 3194case 160:
3380YY_RULE_SETUP 3195YY_RULE_SETUP
3381#line 734 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3382{ 3196{
3383 sf_push(); 3197 sf_push();
3384 if (lex_compat || posix_compat) 3198 if (lex_compat || posix_compat)
3385 /* Push back the "?" and treat it like a normal parens. */ 3199 /* Push back the "?" and treat it like a normal parens. */
3386 yyless(1); 3200 yyless(1);
3387 else 3201 else
3388 BEGIN(GROUP_WITH_PARAMS); 3202 BEGIN(GROUP_WITH_PARAMS);
3389 return '('; 3203 return '(';
3390 } 3204 }
3391 YY_BREAK 3205 YY_BREAK
3392case 161: 3206case 161:
3393YY_RULE_SETUP 3207YY_RULE_SETUP
3394#line 743 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3395sf_push(); return '('; 3208sf_push(); return '(';
3396 YY_BREAK 3209 YY_BREAK
3397case 162: 3210case 162:
3398YY_RULE_SETUP 3211YY_RULE_SETUP
3399#line 744 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3400sf_pop(); return ')'; 3212sf_pop(); return ')';
3401 YY_BREAK 3213 YY_BREAK
3402case 163: 3214case 163:
3403YY_RULE_SETUP 3215YY_RULE_SETUP
3404#line 746 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3405return (unsigned char) yytext[0]; 3216return (unsigned char) yytext[0];
3406 YY_BREAK 3217 YY_BREAK
3407case 164: 3218case 164:
3408YY_RULE_SETUP 3219YY_RULE_SETUP
3409#line 747 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3410RETURNCHAR; 3220RETURNCHAR;
3411 YY_BREAK 3221 YY_BREAK
3412 3222
3413 
3414case 165: 3223case 165:
3415/* rule 165 can match eol */ 3224/* rule 165 can match eol */
3416YY_RULE_SETUP 3225YY_RULE_SETUP
3417#line 752 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3418++linenum; /* Allow blank lines & continuations */ 3226++linenum; /* Allow blank lines & continuations */
3419 YY_BREAK 3227 YY_BREAK
3420case 166: 3228case 166:
3421YY_RULE_SETUP 3229YY_RULE_SETUP
3422#line 753 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3423return (unsigned char) yytext[0]; 3230return (unsigned char) yytext[0];
3424 YY_BREAK 3231 YY_BREAK
3425case 167: 3232case 167:
3426YY_RULE_SETUP 3233YY_RULE_SETUP
3427#line 754 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3428BEGIN(SECT2); return '>'; 3234BEGIN(SECT2); return '>';
3429 YY_BREAK 3235 YY_BREAK
3430case 168: 3236case 168:
3431*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ 3237*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
3432(yy_c_buf_p) = yy_cp = yy_bp + 1; 3238(yy_c_buf_p) = yy_cp = yy_bp + 1;
3433YY_DO_BEFORE_ACTION; /* set up yytext again */ 3239YY_DO_BEFORE_ACTION; /* set up yytext again */
3434YY_RULE_SETUP 3240YY_RULE_SETUP
3435#line 755 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3436BEGIN(CARETISBOL); return '>'; 3241BEGIN(CARETISBOL); return '>';
3437 YY_BREAK 3242 YY_BREAK
3438case 169: 3243case 169:
3439YY_RULE_SETUP 3244YY_RULE_SETUP
3440#line 756 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3441RETURNNAME; 3245RETURNNAME;
3442 YY_BREAK 3246 YY_BREAK
3443case 170: 3247case 170:
3444YY_RULE_SETUP 3248YY_RULE_SETUP
3445#line 757 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3446{ 3249{
3447 format_synerr( _( "bad <start condition>: %s" ), 3250 format_synerr( _( "bad <start condition>: %s" ),
3448 yytext ); 3251 yytext );
3449 } 3252 }
3450 YY_BREAK 3253 YY_BREAK
3451 3254
3452case 171: 3255case 171:
3453YY_RULE_SETUP 3256YY_RULE_SETUP
3454#line 763 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3455BEGIN(SECT2); return '^'; 3257BEGIN(SECT2); return '^';
3456 YY_BREAK 3258 YY_BREAK
3457 3259
3458case 172: 3260case 172:
3459YY_RULE_SETUP 3261YY_RULE_SETUP
3460#line 767 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3461RETURNCHAR; 3262RETURNCHAR;
3462 YY_BREAK 3263 YY_BREAK
3463case 173: 3264case 173:
3464YY_RULE_SETUP 3265YY_RULE_SETUP
3465#line 768 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3466BEGIN(SECT2); return '"'; 3266BEGIN(SECT2); return '"';
3467 YY_BREAK 3267 YY_BREAK
3468case 174: 3268case 174:
3469/* rule 174 can match eol */ 3269/* rule 174 can match eol */
3470YY_RULE_SETUP 3270YY_RULE_SETUP
3471#line 770 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3472{ 3271{
3473 synerr( _( "missing quote" ) ); 3272 synerr( _( "missing quote" ) );
3474 BEGIN(SECT2); 3273 BEGIN(SECT2);
3475 ++linenum; 3274 ++linenum;
3476 return '"'; 3275 return '"';
3477 } 3276 }
3478 YY_BREAK 3277 YY_BREAK
3479 3278
3480 
3481case 175: 3279case 175:
3482YY_RULE_SETUP 3280YY_RULE_SETUP
3483#line 779 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3484BEGIN(SECT2); 3281BEGIN(SECT2);
3485 YY_BREAK 3282 YY_BREAK
3486case 176: 3283case 176:
3487YY_RULE_SETUP 3284YY_RULE_SETUP
3488#line 780 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3489BEGIN(GROUP_MINUS_PARAMS); 3285BEGIN(GROUP_MINUS_PARAMS);
3490 YY_BREAK 3286 YY_BREAK
3491case 177: 3287case 177:
3492YY_RULE_SETUP 3288YY_RULE_SETUP
3493#line 781 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3494sf_set_case_ins(1); 3289sf_set_case_ins(1);
3495 YY_BREAK 3290 YY_BREAK
3496case 178: 3291case 178:
3497YY_RULE_SETUP 3292YY_RULE_SETUP
3498#line 782 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3499sf_set_dot_all(1); 3293sf_set_dot_all(1);
3500 YY_BREAK 3294 YY_BREAK
3501case 179: 3295case 179:
3502YY_RULE_SETUP 3296YY_RULE_SETUP
3503#line 783 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3504sf_set_skip_ws(1); 3297sf_set_skip_ws(1);
3505 YY_BREAK 3298 YY_BREAK
3506 3299
3507 
3508case 180: 3300case 180:
3509YY_RULE_SETUP 3301YY_RULE_SETUP
3510#line 786 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3511BEGIN(SECT2); 3302BEGIN(SECT2);
3512 YY_BREAK 3303 YY_BREAK
3513case 181: 3304case 181:
3514YY_RULE_SETUP 3305YY_RULE_SETUP
3515#line 787 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3516sf_set_case_ins(0); 3306sf_set_case_ins(0);
3517 YY_BREAK 3307 YY_BREAK
3518case 182: 3308case 182:
3519YY_RULE_SETUP 3309YY_RULE_SETUP
3520#line 788 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3521sf_set_dot_all(0); 3310sf_set_dot_all(0);
3522 YY_BREAK 3311 YY_BREAK
3523case 183: 3312case 183:
3524YY_RULE_SETUP 3313YY_RULE_SETUP
3525#line 789 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3526sf_set_skip_ws(0); 3314sf_set_skip_ws(0);
3527 YY_BREAK 3315 YY_BREAK
3528 3316
3529 
3530case 184: 3317case 184:
3531*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ 3318*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
3532(yy_c_buf_p) = yy_cp = yy_bp + 1; 3319(yy_c_buf_p) = yy_cp = yy_bp + 1;
3533YY_DO_BEFORE_ACTION; /* set up yytext again */ 3320YY_DO_BEFORE_ACTION; /* set up yytext again */
3534YY_RULE_SETUP 3321YY_RULE_SETUP
3535#line 793 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3536BEGIN(CCL); return '^'; 3322BEGIN(CCL); return '^';
3537 YY_BREAK 3323 YY_BREAK
3538case 185: 3324case 185:
3539*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ 3325*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
3540(yy_c_buf_p) = yy_cp = yy_bp + 1; 3326(yy_c_buf_p) = yy_cp = yy_bp + 1;
3541YY_DO_BEFORE_ACTION; /* set up yytext again */ 3327YY_DO_BEFORE_ACTION; /* set up yytext again */
3542YY_RULE_SETUP 3328YY_RULE_SETUP
3543#line 794 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3544return '^'; 3329return '^';
3545 YY_BREAK 3330 YY_BREAK
3546case 186: 3331case 186:
3547YY_RULE_SETUP 3332YY_RULE_SETUP
3548#line 795 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3549BEGIN(CCL); RETURNCHAR; 3333BEGIN(CCL); RETURNCHAR;
3550 YY_BREAK 3334 YY_BREAK
3551 3335
3552 
3553case 187: 3336case 187:
3554*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ 3337*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
3555(yy_c_buf_p) = yy_cp = yy_bp + 1; 3338(yy_c_buf_p) = yy_cp = yy_bp + 1;
3556YY_DO_BEFORE_ACTION; /* set up yytext again */ 3339YY_DO_BEFORE_ACTION; /* set up yytext again */
3557YY_RULE_SETUP 3340YY_RULE_SETUP
3558#line 799 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3559return '-'; 3341return '-';
3560 YY_BREAK 3342 YY_BREAK
3561case 188: 3343case 188:
3562YY_RULE_SETUP 3344YY_RULE_SETUP
3563#line 800 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3564RETURNCHAR; 3345RETURNCHAR;
3565 YY_BREAK 3346 YY_BREAK
3566case 189: 3347case 189:
3567YY_RULE_SETUP 3348YY_RULE_SETUP
3568#line 801 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3569BEGIN(SECT2); return ']'; 3349BEGIN(SECT2); return ']';
3570 YY_BREAK 3350 YY_BREAK
3571case 190: 3351case 190:
3572/* rule 190 can match eol */ 3352/* rule 190 can match eol */
3573YY_RULE_SETUP 3353YY_RULE_SETUP
3574#line 802 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3575{ 3354{
3576 synerr( _( "bad character class" ) ); 3355 synerr( _( "bad character class" ) );
3577 BEGIN(SECT2); 3356 BEGIN(SECT2);
3578 return ']'; 3357 return ']';
3579 } 3358 }
3580 YY_BREAK 3359 YY_BREAK
3581 3360
3582 
3583case 191: 3361case 191:
3584YY_RULE_SETUP 3362YY_RULE_SETUP
3585#line 810 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3586BEGIN(CCL); return CCE_ALNUM; 3363BEGIN(CCL); return CCE_ALNUM;
3587 YY_BREAK 3364 YY_BREAK
3588case 192: 3365case 192:
3589YY_RULE_SETUP 3366YY_RULE_SETUP
3590#line 811 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3591BEGIN(CCL); return CCE_ALPHA; 3367BEGIN(CCL); return CCE_ALPHA;
3592 YY_BREAK 3368 YY_BREAK
3593case 193: 3369case 193:
3594YY_RULE_SETUP 3370YY_RULE_SETUP
3595#line 812 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3596BEGIN(CCL); return CCE_BLANK; 3371BEGIN(CCL); return CCE_BLANK;
3597 YY_BREAK 3372 YY_BREAK
3598case 194: 3373case 194:
3599YY_RULE_SETUP 3374YY_RULE_SETUP
3600#line 813 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3601BEGIN(CCL); return CCE_CNTRL; 3375BEGIN(CCL); return CCE_CNTRL;
3602 YY_BREAK 3376 YY_BREAK
3603case 195: 3377case 195:
3604YY_RULE_SETUP 3378YY_RULE_SETUP
3605#line 814 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3606BEGIN(CCL); return CCE_DIGIT; 3379BEGIN(CCL); return CCE_DIGIT;
3607 YY_BREAK 3380 YY_BREAK
3608case 196: 3381case 196:
3609YY_RULE_SETUP 3382YY_RULE_SETUP
3610#line 815 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3611BEGIN(CCL); return CCE_GRAPH; 3383BEGIN(CCL); return CCE_GRAPH;
3612 YY_BREAK 3384 YY_BREAK
3613case 197: 3385case 197:
3614YY_RULE_SETUP 3386YY_RULE_SETUP
3615#line 816 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3616BEGIN(CCL); return CCE_LOWER; 3387BEGIN(CCL); return CCE_LOWER;
3617 YY_BREAK 3388 YY_BREAK
3618case 198: 3389case 198:
3619YY_RULE_SETUP 3390YY_RULE_SETUP
3620#line 817 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3621BEGIN(CCL); return CCE_PRINT; 3391BEGIN(CCL); return CCE_PRINT;
3622 YY_BREAK 3392 YY_BREAK
3623case 199: 3393case 199:
3624YY_RULE_SETUP 3394YY_RULE_SETUP
3625#line 818 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3626BEGIN(CCL); return CCE_PUNCT; 3395BEGIN(CCL); return CCE_PUNCT;
3627 YY_BREAK 3396 YY_BREAK
3628case 200: 3397case 200:
3629YY_RULE_SETUP 3398YY_RULE_SETUP
3630#line 819 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3631BEGIN(CCL); return CCE_SPACE; 3399BEGIN(CCL); return CCE_SPACE;
3632 YY_BREAK 3400 YY_BREAK
3633case 201: 3401case 201:
3634YY_RULE_SETUP 3402YY_RULE_SETUP
3635#line 820 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3636BEGIN(CCL); return CCE_UPPER; 3403BEGIN(CCL); return CCE_UPPER;
3637 YY_BREAK 3404 YY_BREAK
3638case 202: 3405case 202:
3639YY_RULE_SETUP 3406YY_RULE_SETUP
3640#line 821 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3641BEGIN(CCL); return CCE_XDIGIT; 3407BEGIN(CCL); return CCE_XDIGIT;
3642 YY_BREAK 3408 YY_BREAK
3643case 203: 3409case 203:
3644YY_RULE_SETUP 3410YY_RULE_SETUP
3645#line 823 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3646BEGIN(CCL); return CCE_NEG_ALNUM; 3411BEGIN(CCL); return CCE_NEG_ALNUM;
3647 YY_BREAK 3412 YY_BREAK
3648case 204: 3413case 204:
3649YY_RULE_SETUP 3414YY_RULE_SETUP
3650#line 824 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3651BEGIN(CCL); return CCE_NEG_ALPHA; 3415BEGIN(CCL); return CCE_NEG_ALPHA;
3652 YY_BREAK 3416 YY_BREAK
3653case 205: 3417case 205:
3654YY_RULE_SETUP 3418YY_RULE_SETUP
3655#line 825 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3656BEGIN(CCL); return CCE_NEG_BLANK; 3419BEGIN(CCL); return CCE_NEG_BLANK;
3657 YY_BREAK 3420 YY_BREAK
3658case 206: 3421case 206:
3659YY_RULE_SETUP 3422YY_RULE_SETUP
3660#line 826 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3661BEGIN(CCL); return CCE_NEG_CNTRL; 3423BEGIN(CCL); return CCE_NEG_CNTRL;
3662 YY_BREAK 3424 YY_BREAK
3663case 207: 3425case 207:
3664YY_RULE_SETUP 3426YY_RULE_SETUP
3665#line 827 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3666BEGIN(CCL); return CCE_NEG_DIGIT; 3427BEGIN(CCL); return CCE_NEG_DIGIT;
3667 YY_BREAK 3428 YY_BREAK
3668case 208: 3429case 208:
3669YY_RULE_SETUP 3430YY_RULE_SETUP
3670#line 828 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3671BEGIN(CCL); return CCE_NEG_GRAPH; 3431BEGIN(CCL); return CCE_NEG_GRAPH;
3672 YY_BREAK 3432 YY_BREAK
3673case 209: 3433case 209:
3674YY_RULE_SETUP 3434YY_RULE_SETUP
3675#line 829 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3676BEGIN(CCL); return CCE_NEG_LOWER; 3435BEGIN(CCL); return CCE_NEG_LOWER;
3677 YY_BREAK 3436 YY_BREAK
3678case 210: 3437case 210:
3679YY_RULE_SETUP 3438YY_RULE_SETUP
3680#line 830 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3681BEGIN(CCL); return CCE_NEG_PRINT; 3439BEGIN(CCL); return CCE_NEG_PRINT;
3682 YY_BREAK 3440 YY_BREAK
3683case 211: 3441case 211:
3684YY_RULE_SETUP 3442YY_RULE_SETUP
3685#line 831 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3686BEGIN(CCL); return CCE_NEG_PUNCT; 3443BEGIN(CCL); return CCE_NEG_PUNCT;
3687 YY_BREAK 3444 YY_BREAK
3688case 212: 3445case 212:
3689YY_RULE_SETUP 3446YY_RULE_SETUP
3690#line 832 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3691BEGIN(CCL); return CCE_NEG_SPACE; 3447BEGIN(CCL); return CCE_NEG_SPACE;
3692 YY_BREAK 3448 YY_BREAK
3693case 213: 3449case 213:
3694YY_RULE_SETUP 3450YY_RULE_SETUP
3695#line 833 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3696BEGIN(CCL); return CCE_NEG_UPPER; 3451BEGIN(CCL); return CCE_NEG_UPPER;
3697 YY_BREAK 3452 YY_BREAK
3698case 214: 3453case 214:
3699YY_RULE_SETUP 3454YY_RULE_SETUP
3700#line 834 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3701BEGIN(CCL); return CCE_NEG_XDIGIT; 3455BEGIN(CCL); return CCE_NEG_XDIGIT;
3702 YY_BREAK 3456 YY_BREAK
3703case 215: 3457case 215:
3704YY_RULE_SETUP 3458YY_RULE_SETUP
3705#line 835 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3706{ 3459{
3707 format_synerr( 3460 format_synerr(
3708 _( "bad character class expression: %s" ), 3461 _( "bad character class expression: %s" ),
3709 yytext ); 3462 yytext );
3710 BEGIN(CCL); return CCE_ALNUM; 3463 BEGIN(CCL); return CCE_ALNUM;
3711 } 3464 }
3712 YY_BREAK 3465 YY_BREAK
3713 3466
3714 
3715case 216: 3467case 216:
3716YY_RULE_SETUP 3468YY_RULE_SETUP
3717#line 844 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3718{ 3469{
3719 yylval = myctoi( yytext ); 3470 yylval = myctoi( yytext );
3720 return NUMBER; 3471 return NUMBER;
3721 } 3472 }
3722 YY_BREAK 3473 YY_BREAK
3723case 217: 3474case 217:
3724YY_RULE_SETUP 3475YY_RULE_SETUP
3725#line 849 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3726return ','; 3476return ',';
3727 YY_BREAK 3477 YY_BREAK
3728case 218: 3478case 218:
3729YY_RULE_SETUP 3479YY_RULE_SETUP
3730#line 850 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3731{ 3480{
3732 BEGIN(SECT2); 3481 BEGIN(SECT2);
3733 if ( lex_compat || posix_compat ) 3482 if ( lex_compat || posix_compat )
3734 return END_REPEAT_POSIX; 3483 return END_REPEAT_POSIX;
3735 else 3484 else
3736 return END_REPEAT_FLEX; 3485 return END_REPEAT_FLEX;
3737 } 3486 }
3738 YY_BREAK 3487 YY_BREAK
3739case 219: 3488case 219:
3740YY_RULE_SETUP 3489YY_RULE_SETUP
3741#line 858 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3742{ 3490{
3743 synerr( _( "bad character inside {}'s" ) ); 3491 synerr( _( "bad character inside {}'s" ) );
3744 BEGIN(SECT2); 3492 BEGIN(SECT2);
3745 return '}'; 3493 return '}';
3746 } 3494 }
3747 YY_BREAK 3495 YY_BREAK
3748case 220: 3496case 220:
3749/* rule 220 can match eol */ 3497/* rule 220 can match eol */
3750YY_RULE_SETUP 3498YY_RULE_SETUP
3751#line 864 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3752{ 3499{
3753 synerr( _( "missing }" ) ); 3500 synerr( _( "missing }" ) );
3754 BEGIN(SECT2); 3501 BEGIN(SECT2);
3755 ++linenum; 3502 ++linenum;
3756 return '}'; 3503 return '}';
3757 } 3504 }
3758 YY_BREAK 3505 YY_BREAK
3759 3506
3760 
3761case 221: 3507case 221:
3762YY_RULE_SETUP 3508YY_RULE_SETUP
3763#line 874 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3764bracelevel = 0; 3509bracelevel = 0;
3765 YY_BREAK 3510 YY_BREAK
3766case 222: 3511case 222:
3767YY_RULE_SETUP 3512YY_RULE_SETUP
3768#line 876 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3769ACTION_ECHO; yy_push_state( COMMENT ); 3513ACTION_ECHO; yy_push_state( COMMENT );
3770 YY_BREAK 3514 YY_BREAK
3771 3515
3772case 223: 3516case 223:
3773YY_RULE_SETUP 3517YY_RULE_SETUP
3774#line 879 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3775{ 3518{
3776 ACTION_ECHO; 3519 ACTION_ECHO;
3777 CHECK_RE_JECT(yytext); 3520 CHECK_RE_JECT(yytext);
3778 } 3521 }
3779 YY_BREAK 3522 YY_BREAK
3780case 224: 3523case 224:
3781YY_RULE_SETUP 3524YY_RULE_SETUP
3782#line 883 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3783{ 3525{
3784 ACTION_ECHO; 3526 ACTION_ECHO;
3785 CHECK_YYMORE(yytext); 3527 CHECK_YYMORE(yytext);
3786 } 3528 }
3787 YY_BREAK 3529 YY_BREAK
3788 3530
3789case 225: 3531case 225:
3790YY_RULE_SETUP 3532YY_RULE_SETUP
3791#line 889 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3792ACTION_ECHO_QSTART; 3533ACTION_ECHO_QSTART;
3793 YY_BREAK 3534 YY_BREAK
3794case 226: 3535case 226:
3795YY_RULE_SETUP 3536YY_RULE_SETUP
3796#line 890 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3797ACTION_ECHO_QEND; 3537ACTION_ECHO_QEND;
3798 YY_BREAK 3538 YY_BREAK
3799case 227: 3539case 227:
3800YY_RULE_SETUP 3540YY_RULE_SETUP
3801#line 891 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3802ACTION_ECHO; 3541ACTION_ECHO;
3803 YY_BREAK 3542 YY_BREAK
3804case 228: 3543case 228:
3805/* rule 228 can match eol */ 3544/* rule 228 can match eol */
3806YY_RULE_SETUP 3545YY_RULE_SETUP
3807#line 892 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3808{ 3546{
3809 ++linenum; 3547 ++linenum;
3810 ACTION_ECHO; 3548 ACTION_ECHO;
3811 if ( bracelevel == 0 || 3549 if ( bracelevel == 0 ||
3812 (doing_codeblock && indented_code) ) 3550 (doing_codeblock && indented_code) )
3813 { 3551 {
3814 if ( doing_rule_action ) 3552 if ( doing_rule_action )
3815 add_action( "\tYY_BREAK\n" ); 3553 add_action( "\tYY_BREAK\n" );
3816 3554
3817 doing_rule_action = doing_codeblock = false; 3555 doing_rule_action = doing_codeblock = false;
3818 BEGIN(SECT2); 3556 BEGIN(SECT2);
3819 } 3557 }
3820 } 3558 }
3821 YY_BREAK 3559 YY_BREAK
3822 3560
3823/* Reject and YYmore() are checked for above, in PERCENT_BRACE_ACTION */ 3561/* Reject and YYmore() are checked for above, in PERCENT_BRACE_ACTION */
3824 3562
3825case 229: 3563case 229:
3826YY_RULE_SETUP 3564YY_RULE_SETUP
3827#line 910 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3828ACTION_ECHO; ++bracelevel; 3565ACTION_ECHO; ++bracelevel;
3829 YY_BREAK 3566 YY_BREAK
3830case 230: 3567case 230:
3831YY_RULE_SETUP 3568YY_RULE_SETUP
3832#line 911 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3833ACTION_ECHO; --bracelevel; 3569ACTION_ECHO; --bracelevel;
3834 YY_BREAK 3570 YY_BREAK
3835case 231: 3571case 231:
3836YY_RULE_SETUP 3572YY_RULE_SETUP
3837#line 912 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3838ACTION_ECHO_QSTART; 3573ACTION_ECHO_QSTART;
3839 YY_BREAK 3574 YY_BREAK
3840case 232: 3575case 232:
3841YY_RULE_SETUP 3576YY_RULE_SETUP
3842#line 913 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3843ACTION_ECHO_QEND; 3577ACTION_ECHO_QEND;
3844 YY_BREAK 3578 YY_BREAK
3845case 233: 3579case 233:
3846YY_RULE_SETUP 3580YY_RULE_SETUP
3847#line 914 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3848ACTION_ECHO; 3581ACTION_ECHO;
3849 YY_BREAK 3582 YY_BREAK
3850case 234: 3583case 234:
3851YY_RULE_SETUP 3584YY_RULE_SETUP
3852#line 915 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3853ACTION_ECHO; 3585ACTION_ECHO;
3854 YY_BREAK 3586 YY_BREAK
3855case 235: 3587case 235:
3856YY_RULE_SETUP 3588YY_RULE_SETUP
3857#line 916 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3858ACTION_ECHO; 3589ACTION_ECHO;
3859 YY_BREAK 3590 YY_BREAK
3860case 236: 3591case 236:
3861YY_RULE_SETUP 3592YY_RULE_SETUP
3862#line 917 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3863ACTION_ECHO; /* character constant */ 3593ACTION_ECHO; /* character constant */
3864 YY_BREAK 3594 YY_BREAK
3865case 237: 3595case 237:
3866YY_RULE_SETUP 3596YY_RULE_SETUP
3867#line 918 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3868ACTION_ECHO; BEGIN(ACTION_STRING); 3597ACTION_ECHO; BEGIN(ACTION_STRING);
3869 YY_BREAK 3598 YY_BREAK
3870case 238: 3599case 238:
3871/* rule 238 can match eol */ 3600/* rule 238 can match eol */
3872YY_RULE_SETUP 3601YY_RULE_SETUP
3873#line 919 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3874{ 3602{
3875 ++linenum; 3603 ++linenum;
3876 ACTION_ECHO; 3604 ACTION_ECHO;
3877 if ( bracelevel == 0 ) 3605 if ( bracelevel == 0 )
3878 { 3606 {
3879 if ( doing_rule_action ) 3607 if ( doing_rule_action )
3880 add_action( "\tYY_BREAK\n" ); 3608 add_action( "\tYY_BREAK\n" );
3881 3609
3882 doing_rule_action = false; 3610 doing_rule_action = false;
3883 BEGIN(SECT2); 3611 BEGIN(SECT2);
3884 } 3612 }
3885 } 3613 }
3886 YY_BREAK 3614 YY_BREAK
3887case 239: 3615case 239:
3888YY_RULE_SETUP 3616YY_RULE_SETUP
3889#line 931 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3890ACTION_ECHO; 3617ACTION_ECHO;
3891 YY_BREAK 3618 YY_BREAK
3892 3619
3893 
3894case 240: 3620case 240:
3895YY_RULE_SETUP 3621YY_RULE_SETUP
3896#line 935 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3897ACTION_ECHO; 3622ACTION_ECHO;
3898 YY_BREAK 3623 YY_BREAK
3899case 241: 3624case 241:
3900YY_RULE_SETUP 3625YY_RULE_SETUP
3901#line 936 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3902ACTION_ECHO; 3626ACTION_ECHO;
3903 YY_BREAK 3627 YY_BREAK
3904case 242: 3628case 242:
3905/* rule 242 can match eol */ 3629/* rule 242 can match eol */
3906YY_RULE_SETUP 3630YY_RULE_SETUP
3907#line 937 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3908++linenum; ACTION_ECHO; BEGIN(ACTION); 3631++linenum; ACTION_ECHO; BEGIN(ACTION);
3909 YY_BREAK 3632 YY_BREAK
3910case 243: 3633case 243:
3911YY_RULE_SETUP 3634YY_RULE_SETUP
3912#line 938 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3913ACTION_ECHO; BEGIN(ACTION); 3635ACTION_ECHO; BEGIN(ACTION);
3914 YY_BREAK 3636 YY_BREAK
3915case 244: 3637case 244:
3916YY_RULE_SETUP 3638YY_RULE_SETUP
3917#line 939 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3918ACTION_ECHO; 3639ACTION_ECHO;
3919 YY_BREAK 3640 YY_BREAK
3920 3641
3921case YY_STATE_EOF(COMMENT): 3642case YY_STATE_EOF(COMMENT):
3922case YY_STATE_EOF(COMMENT_DISCARD): 3643case YY_STATE_EOF(COMMENT_DISCARD):
3923case YY_STATE_EOF(ACTION): 3644case YY_STATE_EOF(ACTION):
3924case YY_STATE_EOF(ACTION_STRING): 3645case YY_STATE_EOF(ACTION_STRING):
3925#line 942 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3926{ 3646{
3927 synerr( _( "EOF encountered inside an action" ) ); 3647 synerr( _( "EOF encountered inside an action" ) );
3928 yyterminate(); 3648 yyterminate();
3929 } 3649 }
3930 YY_BREAK 3650 YY_BREAK
3931case YY_STATE_EOF(EXTENDED_COMMENT): 3651case YY_STATE_EOF(EXTENDED_COMMENT):
3932case YY_STATE_EOF(GROUP_WITH_PARAMS): 3652case YY_STATE_EOF(GROUP_WITH_PARAMS):
3933case YY_STATE_EOF(GROUP_MINUS_PARAMS): 3653case YY_STATE_EOF(GROUP_MINUS_PARAMS):
3934#line 947 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3935{ 3654{
3936 synerr( _( "EOF encountered inside pattern" ) ); 3655 synerr( _( "EOF encountered inside pattern" ) );
3937 yyterminate(); 3656 yyterminate();
3938 } 3657 }
3939 YY_BREAK 3658 YY_BREAK
3940case 245: 3659case 245:
3941YY_RULE_SETUP 3660YY_RULE_SETUP
3942#line 952 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3943{ 3661{
3944 yylval = myesc( (Char *) yytext ); 3662 yylval = myesc( (Char *) yytext );
3945 3663
3946 if ( YY_START == FIRSTCCL ) 3664 if ( YY_START == FIRSTCCL )
3947 BEGIN(CCL); 3665 BEGIN(CCL);
3948 3666
3949 return CHAR; 3667 return CHAR;
3950 } 3668 }
3951 YY_BREAK 3669 YY_BREAK
3952 3670
3953case 246: 3671case 246:
3954YY_RULE_SETUP 3672YY_RULE_SETUP
3955#line 963 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3956fwrite (escaped_qstart, 1, strlen(escaped_qstart), yyout); 3673fwrite (escaped_qstart, 1, strlen(escaped_qstart), yyout);
3957 YY_BREAK 3674 YY_BREAK
3958case 247: 3675case 247:
3959YY_RULE_SETUP 3676YY_RULE_SETUP
3960#line 964 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3961fwrite (escaped_qend, 1, strlen(escaped_qend), yyout); 3677fwrite (escaped_qend, 1, strlen(escaped_qend), yyout);
3962 YY_BREAK 3678 YY_BREAK
3963case 248: 3679case 248:
3964/* rule 248 can match eol */ 3680/* rule 248 can match eol */
3965YY_RULE_SETUP 3681YY_RULE_SETUP
3966#line 965 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3967ECHO; 3682ECHO;
3968 YY_BREAK 3683 YY_BREAK
3969case 249: 3684case 249:
3970/* rule 249 can match eol */ 3685/* rule 249 can match eol */
3971YY_RULE_SETUP 3686YY_RULE_SETUP
3972#line 966 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3973ECHO; 3687ECHO;
3974 YY_BREAK 3688 YY_BREAK
3975case YY_STATE_EOF(SECT3): 3689case YY_STATE_EOF(SECT3):
3976#line 967 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3977sectnum = 0; yyterminate(); 3690sectnum = 0; yyterminate();
3978 YY_BREAK 3691 YY_BREAK
3979 3692
3980case 250: 3693case 250:
3981/* rule 250 can match eol */ 3694/* rule 250 can match eol */
3982YY_RULE_SETUP 3695YY_RULE_SETUP
3983#line 970 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3984format_synerr( _( "bad character: %s" ), yytext ); 3696format_synerr( _( "bad character: %s" ), yytext );
3985 YY_BREAK 3697 YY_BREAK
3986case 251: 3698case 251:
3987YY_RULE_SETUP 3699YY_RULE_SETUP
3988#line 972 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
3989YY_FATAL_ERROR( "flex scanner jammed" ); 3700YY_FATAL_ERROR( "flex scanner jammed" );
3990 YY_BREAK 3701 YY_BREAK
3991#line 3992 "<stdout>" 
3992case YY_STATE_EOF(INITIAL): 3702case YY_STATE_EOF(INITIAL):
3993case YY_STATE_EOF(SECT2): 3703case YY_STATE_EOF(SECT2):
3994case YY_STATE_EOF(CODEBLOCK): 3704case YY_STATE_EOF(CODEBLOCK):
3995case YY_STATE_EOF(PICKUPDEF): 3705case YY_STATE_EOF(PICKUPDEF):
3996case YY_STATE_EOF(SC): 3706case YY_STATE_EOF(SC):
3997case YY_STATE_EOF(CARETISBOL): 3707case YY_STATE_EOF(CARETISBOL):
3998case YY_STATE_EOF(NUM): 3708case YY_STATE_EOF(NUM):
3999case YY_STATE_EOF(QUOTE): 3709case YY_STATE_EOF(QUOTE):
4000case YY_STATE_EOF(FIRSTCCL): 3710case YY_STATE_EOF(FIRSTCCL):
4001case YY_STATE_EOF(CCL): 3711case YY_STATE_EOF(CCL):
4002case YY_STATE_EOF(RECOVER): 3712case YY_STATE_EOF(RECOVER):
4003case YY_STATE_EOF(PERCENT_BRACE_ACTION): 3713case YY_STATE_EOF(PERCENT_BRACE_ACTION):
4004case YY_STATE_EOF(OPTION): 3714case YY_STATE_EOF(OPTION):
@@ -4266,28 +3976,26 @@ static int yy_get_next_buffer (void) @@ -4266,28 +3976,26 @@ static int yy_get_next_buffer (void)
4266 } 3976 }
4267 3977
4268 (yy_n_chars) += number_to_move; 3978 (yy_n_chars) += number_to_move;
4269 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; 3979 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
4270 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; 3980 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
4271 3981
4272 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; 3982 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
4273 3983
4274 return ret_val; 3984 return ret_val;
4275} 3985}
4276 3986
4277/* yy_get_previous_state - get the state just before the EOB char was reached */ 3987/* yy_get_previous_state - get the state just before the EOB char was reached */
4278 3988
4279#ifndef YY_NO_UNPUT 
4280 
4281 static yy_state_type yy_get_previous_state (void) 3989 static yy_state_type yy_get_previous_state (void)
4282{ 3990{
4283 yy_state_type yy_current_state; 3991 yy_state_type yy_current_state;
4284 char *yy_cp; 3992 char *yy_cp;
4285  3993
4286 yy_current_state = (yy_start); 3994 yy_current_state = (yy_start);
4287 yy_current_state += YY_AT_BOL(); 3995 yy_current_state += YY_AT_BOL();
4288 3996
4289 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) 3997 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
4290 { 3998 {
4291 YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); 3999 YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
4292 if ( yy_accept[yy_current_state] ) 4000 if ( yy_accept[yy_current_state] )
4293 { 4001 {
@@ -4440,27 +4148,26 @@ static int yy_get_next_buffer (void) @@ -4440,27 +4148,26 @@ static int yy_get_next_buffer (void)
4440 } 4148 }
4441 } 4149 }
4442 } 4150 }
4443 4151
4444 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ 4152 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
4445 *(yy_c_buf_p) = '\0'; /* preserve yytext */ 4153 *(yy_c_buf_p) = '\0'; /* preserve yytext */
4446 (yy_hold_char) = *++(yy_c_buf_p); 4154 (yy_hold_char) = *++(yy_c_buf_p);
4447 4155
4448 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); 4156 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
4449 4157
4450 return c; 4158 return c;
4451} 4159}
4452#endif /* ifndef YY_NO_INPUT */ 4160#endif /* ifndef YY_NO_INPUT */
4453#endif 
4454 4161
4455/** Immediately switch to a different input stream. 4162/** Immediately switch to a different input stream.
4456 * @param input_file A readable stream. 4163 * @param input_file A readable stream.
4457 *  4164 *
4458 * @note This function does not reset the start condition to @c INITIAL . 4165 * @note This function does not reset the start condition to @c INITIAL .
4459 */ 4166 */
4460 void yyrestart (FILE * input_file ) 4167 void yyrestart (FILE * input_file )
4461{ 4168{
4462  4169
4463 if ( ! YY_CURRENT_BUFFER ){ 4170 if ( ! YY_CURRENT_BUFFER ){
4464 yyensure_buffer_stack (); 4171 yyensure_buffer_stack ();
4465 YY_CURRENT_BUFFER_LVALUE = 4172 YY_CURRENT_BUFFER_LVALUE =
4466 yy_create_buffer(yyin,YY_BUF_SIZE ); 4173 yy_create_buffer(yyin,YY_BUF_SIZE );
@@ -5038,68 +4745,61 @@ void *yyrealloc (void * ptr, yy_size_t  @@ -5038,68 +4745,61 @@ void *yyrealloc (void * ptr, yy_size_t
5038 * any pointer type to void*, and deal with argument conversions 4745 * any pointer type to void*, and deal with argument conversions
5039 * as though doing an assignment. 4746 * as though doing an assignment.
5040 */ 4747 */
5041 return (void *) realloc( (char *) ptr, size ); 4748 return (void *) realloc( (char *) ptr, size );
5042} 4749}
5043 4750
5044void yyfree (void * ptr ) 4751void yyfree (void * ptr )
5045{ 4752{
5046 free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ 4753 free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
5047} 4754}
5048 4755
5049#define YYTABLES_NAME "yytables" 4756#define YYTABLES_NAME "yytables"
5050 4757
5051#line 972 "/p/netbsd/cvsroot/src/external/bsd/flex/dist/src/scan.l" 
5052 
5053 
5054 
5055 
5056int yywrap() 4758int yywrap()
5057 { 4759 {
5058 if ( --num_input_files > 0 ) 4760 if ( --num_input_files > 0 )
5059 { 4761 {
5060 set_input_file( *++input_files ); 4762 set_input_file( *++input_files );
5061 return 0; 4763 return 0;
5062 } 4764 }
5063 4765
5064 else 4766 else
5065 return 1; 4767 return 1;
5066 } 4768 }
5067 4769
5068 
5069/* set_input_file - open the given file (if NULL, stdin) for scanning */ 4770/* set_input_file - open the given file (if NULL, stdin) for scanning */
5070 4771
5071void set_input_file( file ) 4772void set_input_file( file )
5072char *file; 4773char *file;
5073 { 4774 {
5074 if ( file && strcmp( file, "-" ) ) 4775 if ( file && strcmp( file, "-" ) )
5075 { 4776 {
5076 infilename = copy_string( file ); 4777 infilename = copy_string( file );
5077 yyin = fopen( infilename, "r" ); 4778 yyin = fopen( infilename, "r" );
5078 4779
5079 if ( yyin == NULL ) 4780 if ( yyin == NULL )
5080 lerr( _( "can't open %s" ), file ); 4781 lerr( _( "can't open %s" ), file );
5081 } 4782 }
5082 4783
5083 else 4784 else
5084 { 4785 {
5085 yyin = stdin; 4786 yyin = stdin;
5086 infilename = copy_string( "<stdin>" ); 4787 infilename = copy_string( "<stdin>" );
5087 } 4788 }
5088 4789
5089 linenum = 1; 4790 linenum = 1;
5090 } 4791 }
5091 4792
5092 
5093/* Wrapper routines for accessing the scanner's malloc routines. */ 4793/* Wrapper routines for accessing the scanner's malloc routines. */
5094 4794
5095void *flex_alloc( size ) 4795void *flex_alloc( size )
5096size_t size; 4796size_t size;
5097 { 4797 {
5098 return (void *) malloc( size ); 4798 return (void *) malloc( size );
5099 } 4799 }
5100 4800
5101void *flex_realloc( ptr, size ) 4801void *flex_realloc( ptr, size )
5102void *ptr; 4802void *ptr;
5103size_t size; 4803size_t size;
5104 { 4804 {
5105 return (void *) realloc( ptr, size ); 4805 return (void *) realloc( ptr, size );