Changeset 498

Show
Ignore:
Timestamp:
2004年06月06日 14時11分57秒 (4 years ago)
Author:
kose
Message:

(mostlyclean): rm inilex.c iniparse.c iniparse.h.
(made by flex)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.10/src/ChangeLog.Meadow

    r497 r498  
    112004-06-06  KOSEKI Yoshinori  <kose@meadowy.org> 
     2 
     3        * GNUmakefile (mostlyclean): rm inilex.c iniparse.c iniparse.h.  
     4        (made by flex) 
    25 
    36        * version.c: Set 2.10.2. 
  • branches/2.10/src/GNUmakefile

    r468 r498  
    159159.PHONY: mostlyclean clean distclean realclean extraclean 
    160160mostlyclean: 
    161         $(RM) *.o *.i *.ini core $(PROGS) 
     161        $(RM) *.o *.i *.ini core $(PROGS) inilex.c iniparse.c iniparse.h 
    162162clean: mostlyclean 
    163163distclean: clean 
  • branches/2.10/src/inilex.c

    r7 r498  
    22 
    33/* Scanner skeleton version: 
    4  * $Header: /usr/local/chgdroot/Meadow/cvsroot/netinstall/src/inilex.c,v 1.1 2002/10/21 15:03:26 kose Exp $ 
     4 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ 
    55 */ 
    66 
     
    1010 
    1111#include <stdio.h> 
    12  
     12#include <errno.h> 
    1313 
    1414/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ 
     
    2323 
    2424#include <stdlib.h> 
     25#ifndef _WIN32 
    2526#include <unistd.h> 
     27#endif 
    2628 
    2729/* Use prototypes in function declarations. */ 
     
    6264#define YY_PROTO(proto) () 
    6365#endif 
     66 
    6467 
    6568/* Returned upon end-of-file. */ 
     
    509512#define YY_RESTORE_YY_MORE_OFFSET 
    510513char *yytext; 
    511 #line 1 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     514#line 1 "inilex.l" 
    512515#define INITIAL 0 
    513 #line 2 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     516#line 2 "inilex.l" 
    514517/* 
    515518 * Copyright (c) 2000, Red Hat, Inc. 
     
    545548/*%option debug */ 
    546549#define YY_NEVER_INTERACTIVE 1 
    547 #line 548 "lex.yy.c" 
     550#line 551 "lex.yy.c" 
    548551 
    549552/* Macros after this point can all be overridden by user definitions in 
     
    645648                result = n; \ 
    646649                } \ 
    647         else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ 
    648                   && ferror( yyin ) ) \ 
    649                 YY_FATAL_ERROR( "input in flex scanner failed" ); 
     650        else \ 
     651                { \ 
     652                errno=0; \ 
     653                while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ 
     654                        { \ 
     655                        if( errno != EINTR) \ 
     656                                { \ 
     657                                YY_FATAL_ERROR( "input in flex scanner failed" ); \ 
     658                                break; \ 
     659                                } \ 
     660                        errno=0; \ 
     661                        clearerr(yyin); \ 
     662                        } \ 
     663                } 
    650664#endif 
    651665 
     
    699713        register int yy_act; 
    700714 
    701 #line 42 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
    702  
    703  
    704 #line 705 "lex.yy.c" 
     715#line 42 "inilex.l" 
     716 
     717 
     718#line 719 "lex.yy.c" 
    705719 
    706720        if ( yy_init ) 
     
    796810case 1: 
    797811YY_RULE_SETUP 
    798 #line 44 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     812#line 44 "inilex.l" 
    799813{ yylval = strdup (yytext+1); 
    800814                          yylval[strlen (yylval)-1] = 0; 
     
    803817case 2: 
    804818YY_RULE_SETUP 
    805 #line 48 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     819#line 48 "inilex.l" 
    806820return SETUP_TIMESTAMP; 
    807821        YY_BREAK 
    808822case 3: 
    809823YY_RULE_SETUP 
    810 #line 49 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     824#line 49 "inilex.l" 
    811825return SETUP_VERSION; 
    812826        YY_BREAK 
    813827case 4: 
    814828YY_RULE_SETUP 
    815 #line 50 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     829#line 50 "inilex.l" 
    816830return VERSION; 
    817831        YY_BREAK 
    818832case 5: 
    819833YY_RULE_SETUP 
    820 #line 51 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     834#line 51 "inilex.l" 
    821835return INSTALL; 
    822836        YY_BREAK 
    823837case 6: 
    824838YY_RULE_SETUP 
    825 #line 52 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     839#line 52 "inilex.l" 
    826840return TYPE; 
    827841        YY_BREAK 
    828842case 7: 
    829843YY_RULE_SETUP 
    830 #line 53 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     844#line 53 "inilex.l" 
    831845return SOURCE; 
    832846        YY_BREAK 
    833847case 8: 
    834848YY_RULE_SETUP 
    835 #line 54 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     849#line 54 "inilex.l" 
    836850return SDESC; 
    837851        YY_BREAK 
    838852case 9: 
    839853YY_RULE_SETUP 
    840 #line 55 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     854#line 55 "inilex.l" 
    841855return LDESC; 
    842856        YY_BREAK 
    843857case 10: 
    844858YY_RULE_SETUP 
    845 #line 57 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     859#line 57 "inilex.l" 
    846860ignore_line (); 
    847861        YY_BREAK 
    848862case 11: 
    849863YY_RULE_SETUP 
    850 #line 59 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     864#line 59 "inilex.l" 
    851865return T_CURR; 
    852866        YY_BREAK 
    853867case 12: 
    854868YY_RULE_SETUP 
    855 #line 60 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     869#line 60 "inilex.l" 
    856870return T_TEST; 
    857871        YY_BREAK 
    858872case 13: 
    859873YY_RULE_SETUP 
    860 #line 61 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     874#line 61 "inilex.l" 
    861875return T_TEST; 
    862876        YY_BREAK 
    863877case 14: 
    864878YY_RULE_SETUP 
    865 #line 62 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     879#line 62 "inilex.l" 
    866880return T_PREV; 
    867881        YY_BREAK 
    868882case 15: 
    869883YY_RULE_SETUP 
    870 #line 63 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     884#line 63 "inilex.l" 
    871885return T_UNKNOWN; 
    872886        YY_BREAK 
    873887case 16: 
    874888YY_RULE_SETUP 
    875 #line 65 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     889#line 65 "inilex.l" 
    876890{ yylval = strdup (yytext); 
    877891                          return STRING; } 
     
    879893case 17: 
    880894YY_RULE_SETUP 
    881 #line 68 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     895#line 68 "inilex.l" 
    882896/* do nothing */ 
    883897        YY_BREAK 
    884898case 18: 
    885899YY_RULE_SETUP 
    886 #line 70 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     900#line 70 "inilex.l" 
    887901/* ignore comments */ 
    888902        YY_BREAK 
    889903case 19: 
    890904YY_RULE_SETUP 
    891 #line 72 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     905#line 72 "inilex.l" 
    892906{ return yytext[0]; } 
    893907        YY_BREAK 
    894908case 20: 
    895909YY_RULE_SETUP 
    896 #line 73 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     910#line 73 "inilex.l" 
    897911{ return yytext[0]; } 
    898912        YY_BREAK 
    899913case 21: 
    900914YY_RULE_SETUP 
    901 #line 75 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     915#line 75 "inilex.l" 
    902916ECHO; 
    903917        YY_BREAK 
    904 #line 905 "lex.yy.c" 
     918#line 919 "lex.yy.c" 
    905919                        case YY_STATE_EOF(INITIAL): 
    906920                                yyterminate(); 
     
    14661480 
    14671481 
     1482#ifndef _WIN32 
     1483#include <unistd.h> 
     1484#else 
    14681485#ifndef YY_ALWAYS_INTERACTIVE 
    14691486#ifndef YY_NEVER_INTERACTIVE 
    14701487extern int isatty YY_PROTO(( int )); 
     1488#endif 
    14711489#endif 
    14721490#endif 
     
    17881806        } 
    17891807#endif 
    1790 #line 75 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l" 
     1808#line 75 "inilex.l" 
    17911809 
    17921810 
  • branches/2.10/src/iniparse.c

    r7 r498  
    1 /* A Bison parser, made from /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/iniparse.y 
    2    by GNU bison 1.35.  */ 
    3  
    4 #define YYBISON 1  /* Identify Bison output.  */ 
    5  
    6 # define        STRING  257 
    7 # define        SETUP_TIMESTAMP 258 
    8 # define        SETUP_VERSION   259 
    9 # define        VERSION 260 
    10 # define        INSTALL 261 
    11 # define        SOURCE  262 
    12 # define        SDESC   263 
    13 # define        LDESC   264 
    14 # define        TYPE    265 
    15 # define        T_PREV  266 
    16 # define        T_CURR  267 
    17 # define        T_TEST  268 
    18 # define        T_UNKNOWN       269 
    19  
    20 #line 1 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/iniparse.y" 
     1/* A Bison parser, made by GNU Bison 1.875b.  */ 
     2 
     3/* Skeleton parser for Yacc-like parsing with Bison, 
     4   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 
     5 
     6   This program is free software; you can redistribute it and/or modify 
     7   it under the terms of the GNU General Public License as published by 
     8   the Free Software Foundation; either version 2, or (at your option) 
     9   any later version. 
     10 
     11   This program is distributed in the hope that it will be useful, 
     12   but WITHOUT ANY WARRANTY; without even the implied warranty of 
     13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     14   GNU General Public License for more details. 
     15 
     16   You should have received a copy of the GNU General Public License 
     17   along with this program; if not, write to the Free Software 
     18   Foundation, Inc., 59 Temple Place - Suite 330, 
     19   Boston, MA 02111-1307, USA.  */ 
     20 
     21/* As a special exception, when this file is copied by Bison into a 
     22   Bison output file, you may use that output file without restriction. 
     23   This special exception was added by the Free Software Foundation 
     24   in version 1.24 of Bison.  */ 
     25 
     26/* Written by Richard Stallman by simplifying the original so called 
     27   ``semantic'' parser.  */ 
     28 
     29/* All symbols defined below should begin with yy or YY, to avoid 
     30   infringing on user name space.  This should be done even for local 
     31   variables, as they might otherwise be expanded by user macros. 
     32   There are some unavoidable exceptions within include files to 
     33   define necessary library symbols; they are noted "INFRINGES ON 
     34   USER NAME SPACE" below.  */ 
     35 
     36/* Identify Bison output.  */ 
     37#define YYBISON 1 
     38 
     39/* Skeleton name.  */ 
     40#define YYSKELETON_NAME "yacc.c" 
     41 
     42/* Pure parsers.  */ 
     43#define YYPURE 0 
     44 
     45/* Using locations.  */ 
     46#define YYLSP_NEEDED 0 
     47 
     48 
     49 
     50/* Tokens.  */ 
     51#ifndef YYTOKENTYPE 
     52# define YYTOKENTYPE 
     53   /* Put the tokens into the symbol table, so that GDB and other debuggers 
     54      know about them.  */ 
     55   enum yytokentype { 
     56     STRING = 258, 
     57     SETUP_TIMESTAMP = 259, 
     58     SETUP_VERSION = 260, 
     59     VERSION = 261, 
     60     INSTALL = 262, 
     61     SOURCE = 263, 
     62     SDESC = 264, 
     63     LDESC = 265, 
     64     TYPE = 266, 
     65     T_PREV = 267, 
     66     T_CURR = 268, 
     67     T_TEST = 269, 
     68     T_UNKNOWN = 270 
     69   }; 
     70#endif 
     71#define STRING 258 
     72#define SETUP_TIMESTAMP 259 
     73#define SETUP_VERSION 260 
     74#define VERSION 261 
     75#define INSTALL 262 
     76#define SOURCE 263 
     77#define SDESC 264 
     78#define LDESC 265 
     79#define TYPE 266 
     80#define T_PREV 267 
     81#define T_CURR 268 
     82#define T_TEST 269 
     83#define T_UNKNOWN 270 
     84 
     85 
     86 
     87 
     88/* Copy the first part of user declarations.  */ 
     89#line 1 "iniparse.y" 
    2190 
    2291/* 
     
    59128#define cpt (cp->info+trust) 
    60129 
    61 #ifndef YYSTYPE 
    62 # define YYSTYPE int 
    63 # define YYSTYPE_IS_TRIVIAL 1 
    64 #endif 
     130 
     131 
     132/* Enabling traces.  */ 
    65133#ifndef YYDEBUG 
    66134# define YYDEBUG 0 
    67135#endif 
    68136 
    69  
    70  
    71 #define YYFINAL         47 
    72 #define YYFLAG          -32768 
    73 #define YYNTBASE        18 
    74  
    75 /* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */ 
    76 #define YYTRANSLATE(x) ((unsigned)(x) <= 269 ? yytranslate[x] : 27) 
    77  
    78 /* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */ 
    79 static const char yytranslate[] = 
    80 
    81        0,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    82       16,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    83        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    84        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    85        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    86        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    87        2,     2,     2,     2,    17,     2,     2,     2,     2,     2, 
    88        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    89        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    90        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    91        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    92        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    93        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    94        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    95        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    96        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    97        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    98        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    99        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    100        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    101        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    102        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    103        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    104        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    105        2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
    106        2,     2,     2,     2,     2,     2,     1,     3,     4,     5, 
    107        6,     7,     8,     9,    10,    11,    12,    13,    14,    15 
    108 }; 
    109  
    110 #if YYDEBUG 
    111 static const short yyprhs[] = 
    112 
    113        0,     0,     3,     6,     7,    11,    15,    17,    18,    22, 
    114       25,    26,    27,    33,    37,    39,    42,    45,    48,    52, 
    115       56,    59,    61,    63,    65,    67,    68 
    116 }; 
    117 static const short yyrhs[] = 
    118 
    119       19,    22,     0,    20,    19,     0,     0,     4,     3,    16, 
    120        0,     5,     3,    16,     0,    16,     0,     0,     1,    21, 
    121       16,     0,    23,    22,     0,     0,     0,    17,     3,    16, 
    122       24,    25,     0,    26,    16,    25,     0,    26,     0,     6, 
    123        3,     0,     9,     3,     0,    10,     3,     0,     7,     3, 
    124        3,     0,     8,     3,     3,     0,    11,     3,     0,    12, 
    125        0,    13,     0,    14,     0,    15,     0,     0,     1,    16, 
    126        0 
    127 }; 
    128  
    129 #endif 
    130  
    131 #if YYDEBUG 
    132 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ 
    133 static const short yyrline[] = 
    134 
    135        0,    50,    54,    55,    59,    60,    61,    62,    62,    66, 
    136       67,    71,    71,    76,    77,    81,    82,    83,    84,    86, 
    137       88,    94,    95,    96,    97,    98,    99 
    138 }; 
    139 #endif 
    140  
    141  
    142 #if (YYDEBUG) || defined YYERROR_VERBOSE 
    143  
    144 /* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */ 
    145 static const char *const yytname[] = 
    146 
    147   "$", "error", "$undefined.", "STRING", "SETUP_TIMESTAMP", "SETUP_VERSION",  
    148   "VERSION", "INSTALL", "SOURCE", "SDESC", "LDESC", "TYPE", "T_PREV",  
    149   "T_CURR", "T_TEST", "T_UNKNOWN", "'\\n'", "'@'", "whole_file",  
    150   "setup_headers", "setup_header", "@1", "packages", "package", "@2",  
    151   "lines", "simple_line", 0 
    152 }; 
    153 #endif 
    154  
    155 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ 
    156 static const short yyr1[] = 
    157 
    158        0,    18,    19,    19,    20,    20,    20,    21,    20,    22, 
    159       22,    24,    23,    25,    25,    26,    26,    26,    26,    26, 
    160       26,    26,    26,    26,    26,    26,    26 
    161 }; 
    162  
    163 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ 
    164 static const short yyr2[] = 
    165 
    166        0,     2,     2,     0,     3,     3,     1,     0,     3,     2, 
    167        0,     0,     5,     3,     1,     2,     2,     2,     3,     3, 
    168        2,     1,     1,     1,     1,     0,     2 
    169 }; 
    170  
    171 /* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE 
    172    doesn't specify something else to do.  Zero means the default is an 
    173    error. */ 
    174 static const short yydefact[] = 
    175 
    176        0,     7,     0,     0,     6,    10,     0,     0,     0,     0, 
    177        0,     1,    10,     2,     8,     4,     5,     0,     9,    11, 
    178        0,     0,     0,     0,     0,     0,     0,     0,    21,    22, 
    179       23,    24,    12,    14,    26,    15,     0,     0,    16,    17, 
    180       20,     0,    18,    19,    13,     0,     0,     0 
    181 }; 
    182  
    183 static const short yydefgoto[] = 
    184 
    185       45,     5,     6,     7,    11,    12,    20,    32,    33 
    186 }; 
    187  
    188 static const short yypact[] = 
    189 
    190       18,-32768,    -1,     1,-32768,   -14,    18,   -11,     4,     5, 
    191       21,-32768,   -14,-32768,-32768,-32768,-32768,     9,-32768,-32768, 
    192        0,    10,    24,    25,    26,    27,    28,    29,-32768,-32768, 
    193   -32768,-32768,-32768,    17,-32768,-32768,    33,    34,-32768,-32768, 
    194   -32768,     0,-32768,-32768,-32768,    38,    39,-32768 
    195 }; 
    196  
    197 static const short yypgoto[] = 
    198 
    199   -32768,    35,-32768,-32768,    30,-32768,-32768,     2,-32768 
    200 }; 
    201  
    202  
    203 #define YYLAST          43 
    204  
    205  
    206 static const short yytable[] = 
    207 
    208      -25,    21,     8,    10,     9,    14,    22,    23,    24,    25, 
    209       26,    27,    28,    29,    30,    31,   -25,   -25,    -3,     1, 
    210       15,    16,     2,     3,    17,    19,    34,    35,    36,    37, 
    211       38,    39,    40,    41,     4,    -3,    42,    43,    46,    47, 
    212        0,    13,    18,    44 
    213 }; 
    214  
    215 static const short yycheck[] = 
    216 
    217        0,     1,     3,    17,     3,    16,     6,     7,     8,     9, 
    218       10,    11,    12,    13,    14,    15,    16,    17,     0,     1, 
    219       16,    16,     4,     5,     3,    16,    16,     3,     3,     3, 
    220        3,     3,     3,    16,    16,    17,     3,     3,     0,     0, 
    221       -1,     6,    12,    41 
    222 }; 
    223 /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */ 
    224 #line 3 "/usr/share/bison/bison.simple" 
    225  
    226 /* Skeleton output parser for bison, 
    227  
    228    Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software 
    229    Foundation, Inc. 
    230  
    231    This program is free software; you can redistribute it and/or modify 
    232    it under the terms of the GNU General Public License as published by 
    233    the Free Software Foundation; either version 2, or (at your option) 
    234    any later version. 
    235  
    236    This program is distributed in the hope that it will be useful, 
    237    but WITHOUT ANY WARRANTY; without even the implied warranty of 
    238    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    239    GNU General Public License for more details. 
    240  
    241    You should have received a copy of the GNU General Public License 
    242    along with this program; if not, write to the Free Software 
    243    Foundation, Inc., 59 Temple Place - Suite 330, 
    244    Boston, MA 02111-1307, USA.  */ 
    245  
    246 /* As a special exception, when this file is copied by Bison into a 
    247    Bison output file, you may use that output file without restriction. 
    248    This special exception was added by the Free Software Foundation 
    249    in version 1.24 of Bison.  */ 
    250  
    251 /* This is the parser code that is written into each bison parser when 
    252    the %semantic_parser declaration is not specified in the grammar. 
    253    It was written by Richard Stallman by simplifying the hairy parser 
    254    used when %semantic_parser is specified.  */ 
    255  
    256 /* All symbols defined below should begin with yy or YY, to avoid 
    257    infringing on user name space.  This should be done even for local 
    258    variables, as they might otherwise be expanded by user macros. 
    259    There are some unavoidable exceptions within include files to 
    260    define necessary library symbols; they are noted "INFRINGES ON 
    261    USER NAME SPACE" below.  */ 
    262  
    263 #if ! defined (yyoverflow) || defined (YYERROR_VERBOSE) 
     137/* Enabling verbose error messages.  */ 
     138#ifdef YYERROR_VERBOSE 
     139# undef YYERROR_VERBOSE 
     140# define YYERROR_VERBOSE 1 
     141#else 
     142# define YYERROR_VERBOSE 0 
     143#endif 
     144 
     145#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) 
     146typedef int YYSTYPE; 
     147# define yystype YYSTYPE /* obsolescent; will be withdrawn */ 
     148# define YYSTYPE_IS_DECLARED 1 
     149# define YYSTYPE_IS_TRIVIAL 1 
     150#endif 
     151 
     152 
     153 
     154/* Copy the second part of user declarations.  */ 
     155 
     156 
     157/* Line 214 of yacc.c.  */ 
     158#line 159 "iniparse.c" 
     159 
     160#if ! defined (yyoverflow) || YYERROR_VERBOSE 
    264161 
    265162/* The parser invokes alloca or malloc; define the necessary symbols.  */ 
     
    290187#  define YYSTACK_FREE free 
    291188# endif 
    292 #endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */ 
     189#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ 
    293190 
    294191 
    295192#if (! defined (yyoverflow) \ 
    296193     && (! defined (__cplusplus) \ 
    297          || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) 
     194         || (YYSTYPE_IS_TRIVIAL))) 
    298195 
    299196/* A type that is properly aligned for any stack member.  */ 
     
    302199  short yyss; 
    303200  YYSTYPE yyvs; 
    304 # if YYLSP_NEEDED 
    305   YYLTYPE yyls; 
    306 # endif 
    307 }; 
     201  }; 
    308202 
    309203/* The size of the maximum gap between one aligned stack and the next.  */ 
    310 # define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1) 
     204# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) 
    311205 
    312206/* The size of an array large to enough to hold all stacks, each with 
    313207   N elements.  */ 
    314 # if YYLSP_NEEDED 
    315 #  define YYSTACK_BYTES(N) \ 
    316      ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE))      \ 
    317       + 2 * YYSTACK_GAP_MAX) 
    318 # else 
    319 #  define YYSTACK_BYTES(N) \ 
     208# define YYSTACK_BYTES(N) \ 
    320209     ((N) * (sizeof (short) + sizeof (YYSTYPE))                         \ 
    321       + YYSTACK_GAP_MAX) 
    322 # endif 
     210      + YYSTACK_GAP_MAXIMUM) 
    323211 
    324212/* Copy COUNT objects from FROM to TO.  The source and destination do 
     
    351239        YYCOPY (&yyptr->Stack, Stack, yysize);                          \ 
    352240        Stack = &yyptr->Stack;                                          \ 
    353         yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX
     241        yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM;
    354242        yyptr += yynewbytes / sizeof (*yyptr);                          \ 
    355243      }                                                                 \ 
     
    358246#endif 
    359247 
     248#if defined (__STDC__) || defined (__cplusplus) 
     249   typedef signed char yysigned_char; 
     250#else 
     251   typedef short yysigned_char; 
     252#endif 
     253 
     254/* YYFINAL -- State number of the termination state. */ 
     255#define YYFINAL  11 
     256/* YYLAST -- Last index in YYTABLE.  */ 
     257#define YYLAST   45 
     258 
     259/* YYNTOKENS -- Number of terminals. */ 
     260#define YYNTOKENS  18 
     261/* YYNNTS -- Number of nonterminals. */ 
     262#define YYNNTS  10 
     263/* YYNRULES -- Number of rules. */ 
     264#define YYNRULES  27 
     265/* YYNRULES -- Number of states. */ 
     266#define YYNSTATES  47 
     267 
     268/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */ 
     269#define YYUNDEFTOK  2 
     270#define YYMAXUTOK   270 
     271 
     272#define YYTRANSLATE(YYX)                                                \ 
     273  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) 
     274 
     275/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */ 
     276static const unsigned char yytranslate[] = 
     277{ 
     278       0,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     279      16,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     280       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     281       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     282       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     283       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     284       2,     2,     2,     2,    17,     2,     2,     2,     2,     2, 
     285       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     286       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     287       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     288       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     289       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     290       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     291       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     292       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     293       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     294       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     295       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     296       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     297       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     298       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     299       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     300       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     301       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     302       2,     2,     2,     2,     2,     2,     2,     2,     2,     2, 
     303       2,     2,     2,     2,     2,     2,     1,     2,     3,     4, 
     304       5,     6,     7,     8,     9,    10,    11,    12,    13,    14, 
     305      15 
     306}; 
     307 
     308#if YYDEBUG 
     309/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in 
     310   YYRHS.  */ 
     311static const unsigned char yyprhs[] = 
     312{ 
     313       0,     0,     3,     6,     9,    10,    14,    18,    20,    21, 
     314      25,    28,    29,    30,    36,    40,    42,    45,    48,    51, 
     315      55,    59,    62,    64,    66,    68,    70,    71 
     316}; 
     317 
     318/* YYRHS -- A `-1'-separated list of the rules' RHS. */ 
     319static const yysigned_char yyrhs[] = 
     320{ 
     321      19,     0,    -1,    20,    23,    -1,    21,    20,    -1,    -1, 
     322       4,     3,    16,    -1,     5,     3,    16,    -1,    16,    -1, 
     323      -1,     1,    22,    16,    -1,    24,    23,    -1,    -1,    -1, 
     324      17,     3,    16,    25,    26,    -1,    27,    16,    26,    -1, 
     325      27,    -1,     6,     3,    -1,     9,     3,    -1,    10,     3, 
     326      -1,     7,     3,     3,    -1,     8,     3,     3,    -1,    11, 
     327       3,    -1,    12,    -1,    13,    -1,    14,    -1,    15,    -1, 
     328      -1,     1,    16,    -1 
     329}; 
     330 
     331/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */ 
     332static const unsigned char yyrline[] = 
     333{ 
     334       0,    50,    50,    54,    55,    59,    60,    61,    62,    62, 
     335      66,    67,    71,    71,    76,    77,    81,    82,    83,    84, 
     336      86,    88,    94,    95,    96,    97,    98,    99 
     337}; 
     338#endif 
     339 
     340#if YYDEBUG || YYERROR_VERBOSE 
     341/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. 
     342   First, the terminals, then, starting at YYNTOKENS, nonterminals. */ 
     343static const char *const yytname[] = 
     344{ 
     345  "$end", "error", "$undefined", "STRING", "SETUP_TIMESTAMP",  
     346  "SETUP_VERSION", "VERSION", "INSTALL", "SOURCE", "SDESC", "LDESC",  
     347  "TYPE", "T_PREV", "T_CURR", "T_TEST", "T_UNKNOWN", "'\\n'", "'@'",  
     348  "$accept", "whole_file", "setup_headers", "setup_header", "@1",  
     349  "packages", "package", "@2", "lines", "simple_line", 0 
     350}; 
     351#endif 
     352 
     353# ifdef YYPRINT 
     354/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to 
     355   token YYLEX-NUM.  */ 
     356static const unsigned short yytoknum[] = 
     357{ 
     358       0,   256,   257,   258,   259,   260,   261,   262,   263,   264, 
     359     265,   266,   267,   268,   269,   270,    10,    64 
     360}; 
     361# endif 
     362 
     363/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */ 
     364static const unsigned char yyr1[] = 
     365{ 
     366       0,    18,    19,    20,    20,    21,    21,    21,    22,    21, 
     367      23,    23,    25,    24,    26,    26,    27,    27,    27,    27, 
     368      27,    27,    27,    27,    27,    27,    27,    27 
     369}; 
     370 
     371/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */ 
     372static const unsigned char yyr2[] = 
     373{ 
     374       0,     2,     2,     2,     0,     3,     3,     1,     0,     3, 
     375       2,     0,     0,     5,     3,     1,     2,     2,     2,     3, 
     376       3,     2,     1,     1,     1,     1,     0,     2 
     377}; 
     378 
     379/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state 
     380   STATE-NUM when YYTABLE doesn't specify something else to do.  Zero 
     381   means the default is an error.  */ 
     382static const unsigned char yydefact[] = 
     383{ 
     384       0,     8,     0,     0,     7,     0,    11,     0,     0,     0, 
     385       0,     1,     0,     2,    11,     3,     9,     5,     6,     0, 
     386      10,    12,     0,     0,     0,     0,     0,     0,     0,     0, 
     387      22,    23,    24,    25,    13,    15,    27,    16,     0,     0, 
     388      17,    18,    21,     0,    19,    20,    14 
     389}; 
     390 
     391/* YYDEFGOTO[NTERM-NUM]. */ 
     392static const yysigned_char yydefgoto[] = 
     393{ 
     394      -1,     5,     6,     7,     8,    13,    14,    22,    34,    35 
     395}; 
     396 
     397/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing 
     398   STATE-NUM.  */ 
     399#define YYPACT_NINF -13 
     400static const yysigned_char yypact[] = 
     401{ 
     402      18,   -13,    -1,     1,   -13,     3,   -12,    18,     4,     5, 
     403       8,   -13,    22,   -13,   -12,   -13,   -13,   -13,   -13,    10, 
     404     -13,   -13,     0,    11,    25,    26,    27,    28,    29,    30, 
     405     -13,   -13,   -13,   -13,   -13,    20,   -13,   -13,    34,    35, 
     406     -13,   -13,   -13,     0,   -13,   -13,   -13 
     407}; 
     408 
     409/* YYPGOTO[NTERM-NUM].  */ 
     410static const yysigned_char yypgoto[] = 
     411{ 
     412     -13,   -13,    32,   -13,   -13,    31,   -13,   -13,    -3,   -13 
     413}; 
     414 
     415/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If 
     416   positive, shift that token.  If negative, reduce the rule which 
     417   number is the opposite.  If zero, do what YYDEFACT says. 
     418   If YYTABLE_NINF, syntax error.  */ 
     419#define YYTABLE_NINF -27 
     420static const yysigned_char yytable[] = 
     421{ 
     422     -26,    23,     9,    11,    10,    12,    24,    25,    26,    27, 
     423      28,    29,    30,    31,    32,    33,   -26,   -26,    -4,     1, 
     424      16,    17,     2,     3,    18,    19,    21,    36,    37,    38, 
     425      39,    40,    41,    42,     4,    -4,    43,    44,    45,    15, 
     426      46,     0,     0,     0,     0,    20 
     427}; 
     428 
     429static const yysigned_char yycheck[] = 
     430{ 
     431       0,     1,     3,     0,     3,    17,     6,     7,     8,     9, 
     432      10,    11,    12,    13,    14,    15,    16,    17,     0,     1, 
     433      16,    16,     4,     5,    16,     3,    16,    16,     3,     3, 
     434       3,     3,     3,     3,    16,    17,    16,     3,     3,     7, 
     435      43,    -1,    -1,    -1,    -1,    14 
     436}; 
     437 
     438/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing 
     439   symbol of state STATE-NUM.  */ 
     440static const unsigned char yystos[] = 
     441{ 
     442       0,     1,     4,     5,    16,    19,    20,    21,    22,     3, 
     443       3,     0,    17,    23,    24,    20,    16,    16,    16,     3, 
     444      23,    16,    25,     1,     6,     7,     8,     9,    10,    11, 
     445      12,    13,    14,    15,    26,    27,    16,     3,     3,     3, 
     446       3,     3,     3,    16,     3,     3,    26 
     447}; 
    360448 
    361449#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) 
     
    377465#define yyerrok         (yyerrstatus = 0) 
    378466#define yyclearin       (yychar = YYEMPTY) 
    379 #define YYEMPTY         -2 
     467#define YYEMPTY         (-2) 
    380468#define YYEOF           0 
     469 
    381470#define YYACCEPT        goto yyacceptlab 
    382 #define YYABORT       goto yyabortlab 
     471#define YYABORT               goto yyabortlab 
    383472#define YYERROR         goto yyerrlab1 
     473 
     474 
    384475/* Like YYERROR except do call yyerror.  This remains here temporarily 
    385476   to ease the transition to the new meaning of YYERROR, for GCC. 
    386477   Once GCC version 2 has supplanted version 1, this can go.  */ 
     478 
    387479#define YYFAIL          goto yyerrlab 
     480 
    388481#define YYRECOVERING()  (!!yyerrstatus) 
     482 
    389483#define YYBACKUP(Token, Value)                                  \ 
    390484do                                                              \ 
     
    393487      yychar = (Token);                                         \ 
    394488      yylval = (Value);                                         \ 
    395       yychar1 = YYTRANSLATE (yychar);                         \ 
     489      yytoken = YYTRANSLATE (yychar);                         \ 
    396490      YYPOPSTACK;                                               \ 
    397491      goto yybackup;                                            \ 
     
    399493  else                                                          \ 
    400494    {                                                           \ 
    401       yyerror ("syntax error: cannot back up");                       
     495      yyerror ("syntax error: cannot back up");
    402496      YYERROR;                                                  \ 
    403497    }                                                           \ 
     
    407501#define YYERRCODE       256 
    408502 
    409  
    410503/* YYLLOC_DEFAULT -- Compute the default location (before the actions 
    411    are run). 
    412  
    413    When YYLLOC_DEFAULT is run, CURRENT is set the location of the 
    414    first token.  By default, to implement support for ranges, extend 
    415    its range to the last symbol.  */ 
     504   are run).  */ 
    416505 
    417506#ifndef YYLLOC_DEFAULT 
    418 # define YYLLOC_DEFAULT(Current, Rhs, N)        \ 
    419    Current.last_line   = Rhs[N].last_line;      \ 
    420    Current.last_column = Rhs[N].last_colu