Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
installparse.c File Reference
#include "install-ds.h"
#include <prprf.h>

Go to the source code of this file.

Defines

#define yyparse   Pk11Install_yyparse
#define yylex   Pk11Install_yylex
#define yyerror   Pk11Install_yyerror
#define yychar   Pk11Install_yychar
#define yyval   Pk11Install_yyval
#define yylval   Pk11Install_yylval
#define yydebug   Pk11Install_yydebug
#define yynerrs   Pk11Install_yynerrs
#define yyerrflag   Pk11Install_yyerrflag
#define yyss   Pk11Install_yyss
#define yyssp   Pk11Install_yyssp
#define yyvs   Pk11Install_yyvs
#define yyvsp   Pk11Install_yyvsp
#define yylhs   Pk11Install_yylhs
#define yylen   Pk11Install_yylen
#define yydefred   Pk11Install_yydefred
#define yydgoto   Pk11Install_yydgoto
#define yysindex   Pk11Install_yysindex
#define yyrindex   Pk11Install_yyrindex
#define yygindex   Pk11Install_yygindex
#define yytable   Pk11Install_yytable
#define yycheck   Pk11Install_yycheck
#define yyname   Pk11Install_yyname
#define yyrule   Pk11Install_yyrule
#define YYSTYPE   Pk11Install_Pointer
#define OPENBRACE   257
#define CLOSEBRACE   258
#define STRING   259
#define YYERRCODE   256
#define YYTABLESIZE   261
#define YYFINAL   2
#define YYDEBUG   0
#define YYMAXTOKEN   259
#define yyclearin   (yychar=(-1))
#define yyerrok   (yyerrflag=0)
#define YYSTACKSIZE   300
#define yystacksize   YYSTACKSIZE
#define YYABORT   goto yyabort
#define YYACCEPT   goto yyaccept
#define YYERROR   goto yyerrlab

Functions

void Pk11Install_yyerror (char *message)
int yyparse ()

Variables

char yysccsid [] = "@(#)yaccpar 1.4 (Berkeley) 02/25/90"
char * Pk11Install_yytext
char * Pk11Install_yyerrstr = NULL
short yylhs []
short yylen []
short yydefred []
short yydgoto []
short yysindex []
short yyrindex []
short yygindex []
short yytable []
short yycheck []
int yydebug
int yynerrs
int yyerrflag
int yychar
short * yyssp
YYSTYPEyyvsp
YYSTYPE yyval
YYSTYPE yylval
short yyss [YYSTACKSIZE]
YYSTYPE yyvs [YYSTACKSIZE]

Define Documentation

#define CLOSEBRACE   258

Definition at line 41 of file installparse.c.

#define OPENBRACE   257

Definition at line 40 of file installparse.c.

#define STRING   259

Definition at line 42 of file installparse.c.

#define YYABORT   goto yyabort

Definition at line 191 of file installparse.c.

#define YYACCEPT   goto yyaccept

Definition at line 192 of file installparse.c.

#define yychar   Pk11Install_yychar

Definition at line 9 of file installparse.c.

#define yycheck   Pk11Install_yycheck

Definition at line 27 of file installparse.c.

#define yyclearin   (yychar=(-1))

Definition at line 153 of file installparse.c.

#define yydebug   Pk11Install_yydebug

Definition at line 12 of file installparse.c.

#define YYDEBUG   0

Definition at line 126 of file installparse.c.

#define yydefred   Pk11Install_yydefred

Definition at line 21 of file installparse.c.

#define yydgoto   Pk11Install_yydgoto

Definition at line 22 of file installparse.c.

#define YYERRCODE   256

Definition at line 43 of file installparse.c.

#define yyerrflag   Pk11Install_yyerrflag

Definition at line 14 of file installparse.c.

Definition at line 154 of file installparse.c.

Definition at line 8 of file installparse.c.

#define YYERROR   goto yyerrlab

Definition at line 193 of file installparse.c.

#define YYFINAL   2

Definition at line 124 of file installparse.c.

#define yygindex   Pk11Install_yygindex

Definition at line 25 of file installparse.c.

#define yylen   Pk11Install_yylen

Definition at line 20 of file installparse.c.

Definition at line 7 of file installparse.c.

#define yylhs   Pk11Install_yylhs

Definition at line 19 of file installparse.c.

Definition at line 11 of file installparse.c.

#define YYMAXTOKEN   259

Definition at line 128 of file installparse.c.

#define yyname   Pk11Install_yyname

Definition at line 28 of file installparse.c.

#define yynerrs   Pk11Install_yynerrs

Definition at line 13 of file installparse.c.

Definition at line 6 of file installparse.c.

#define yyrindex   Pk11Install_yyrindex

Definition at line 24 of file installparse.c.

#define yyrule   Pk11Install_yyrule

Definition at line 29 of file installparse.c.

#define yysindex   Pk11Install_yysindex

Definition at line 23 of file installparse.c.

#define yyss   Pk11Install_yyss

Definition at line 15 of file installparse.c.

#define yyssp   Pk11Install_yyssp

Definition at line 16 of file installparse.c.

#define YYSTACKSIZE   300

Definition at line 159 of file installparse.c.

Definition at line 170 of file installparse.c.

#define YYSTYPE   Pk11Install_Pointer

Definition at line 35 of file installparse.c.

#define yytable   Pk11Install_yytable

Definition at line 26 of file installparse.c.

#define YYTABLESIZE   261

Definition at line 65 of file installparse.c.

#define yyval   Pk11Install_yyval

Definition at line 10 of file installparse.c.

#define yyvs   Pk11Install_yyvs

Definition at line 17 of file installparse.c.

#define yyvsp   Pk11Install_yyvsp

Definition at line 18 of file installparse.c.


Function Documentation

void Pk11Install_yyerror ( char *  message)

Definition at line 178 of file installparse.c.

{
       char *tmp;
       if(Pk11Install_yyerrstr) {
              tmp=PR_smprintf("%sline %d: %s\n", Pk11Install_yyerrstr,
                     Pk11Install_yylinenum, message);
              PR_smprintf_free(Pk11Install_yyerrstr);
       } else {
              tmp = PR_smprintf("line %d: %s\n", Pk11Install_yylinenum, message);
       }
       Pk11Install_yyerrstr=tmp;
}
int yyparse ( )

Definition at line 195 of file installparse.c.

{
    register int yym, yyn, yystate;
#if YYDEBUG
    register char *yys;
    extern char *getenv();

    if (yys = getenv("YYDEBUG"))
    {
        yyn = *yys;
        if (yyn >= '0' && yyn <= '9')
            yydebug = yyn - '0';
    }
#endif

    yynerrs = 0;
    yyerrflag = 0;
    yychar = (-1);

    yyssp = yyss;
    yyvsp = yyvs;
    *yyssp = yystate = 0;

yyloop:
    if (yyn = yydefred[yystate]) goto yyreduce;
    if (yychar < 0)
    {
        if ((yychar = yylex()) < 0) yychar = 0;
#if YYDEBUG
        if (yydebug)
        {
            yys = 0;
            if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
            if (!yys) yys = "illegal-symbol";
            printf("yydebug: state %d, reading %d (%s)\n", yystate,
                    yychar, yys);
        }
#endif
    }
    if ((yyn = yysindex[yystate]) && (yyn += yychar) >= 0 &&
            yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
    {
#if YYDEBUG
        if (yydebug)
            printf("yydebug: state %d, shifting to state %d\n",
                    yystate, yytable[yyn]);
#endif
        if (yyssp >= yyss + yystacksize - 1)
        {
            goto yyoverflow;
        }
        *++yyssp = yystate = yytable[yyn];
        *++yyvsp = yylval;
        yychar = (-1);
        if (yyerrflag > 0)  --yyerrflag;
        goto yyloop;
    }
    if ((yyn = yyrindex[yystate]) && (yyn += yychar) >= 0 &&
            yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
    {
        yyn = yytable[yyn];
        goto yyreduce;
    }
    if (yyerrflag) goto yyinrecovery;
#ifdef lint
    goto yynewerror;
yynewerror:
#endif
    yyerror("syntax error");
#ifdef lint
    goto yyerrlab;
yyerrlab:
#endif
    ++yynerrs;
yyinrecovery:
    if (yyerrflag < 3)
    {
        yyerrflag = 3;
        for (;;)
        {
            if ((yyn = yysindex[*yyssp]) && (yyn += YYERRCODE) >= 0 &&
                    yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)
            {
#if YYDEBUG
                if (yydebug)
                    printf("yydebug: state %d, error recovery shifting\
 to state %d\n", *yyssp, yytable[yyn]);
#endif
                if (yyssp >= yyss + yystacksize - 1)
                {
                    goto yyoverflow;
                }
                *++yyssp = yystate = yytable[yyn];
                *++yyvsp = yylval;
                goto yyloop;
            }
            else
            {
#if YYDEBUG
                if (yydebug)
                    printf("yydebug: error recovery discarding state %d\n",
                            *yyssp);
#endif
                if (yyssp <= yyss) goto yyabort;
                --yyssp;
                --yyvsp;
            }
        }
    }
    else
    {
        if (yychar == 0) goto yyabort;
#if YYDEBUG
        if (yydebug)
        {
            yys = 0;
            if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
            if (!yys) yys = "illegal-symbol";
            printf("yydebug: state %d, error recovery discards token %d (%s)\n",
                    yystate, yychar, yys);
        }
#endif
        yychar = (-1);
        goto yyloop;
    }
yyreduce:
#if YYDEBUG
    if (yydebug)
        printf("yydebug: state %d, reducing by rule %d (%s)\n",
                yystate, yyn, yyrule[yyn]);
#endif
    yym = yylen[yyn];
    yyval = yyvsp[1-yym];
    switch (yyn)
    {
case 1:
#line 84 "installparse.y"
{
       Pk11Install_valueList = yyvsp[0].list;
}
break;
case 2:
#line 89 "installparse.y"
{ 
       Pk11Install_ValueList_AddItem(yyvsp[0].list,yyvsp[-1].value);
       yyval .list = yyvsp[0].list; 
}
break;
case 3:
#line 94 "installparse.y"
{ 
       yyval .list = Pk11Install_ValueList_new(); 
}
break;
case 4:
#line 99 "installparse.y"
{
       yyval .value= Pk11Install_Value_new(PAIR_VALUE,yyvsp[0]);
}
break;
case 5:
#line 103 "installparse.y"
{
       yyval .value= Pk11Install_Value_new(STRING_VALUE, yyvsp[0]);
}
break;
case 6:
#line 108 "installparse.y"
{
       yyval .pair = Pk11Install_Pair_new(yyvsp[-3].string,yyvsp[-1].list);
}
break;
case 7:
#line 113 "installparse.y"
{
       yyval .string = yyvsp[0].string;
}
break;
#line 374 "ytab.c"
    }
    yyssp -= yym;
    yystate = *yyssp;
    yyvsp -= yym;
    yym = yylhs[yyn];
    if (yystate == 0 && yym == 0)
    {
#ifdef YYDEBUG
        if (yydebug)
            printf("yydebug: after reduction, shifting from state 0 to\
 state %d\n", YYFINAL);
#endif
        yystate = YYFINAL;
        *++yyssp = YYFINAL;
        *++yyvsp = yyval;
        if (yychar < 0)
        {
            if ((yychar = yylex()) < 0) yychar = 0;
#if YYDEBUG
            if (yydebug)
            {
                yys = 0;
                if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
                if (!yys) yys = "illegal-symbol";
                printf("yydebug: state %d, reading %d (%s)\n",
                        YYFINAL, yychar, yys);
            }
#endif
        }
        if (yychar == 0) goto yyaccept;
        goto yyloop;
    }
    if ((yyn = yygindex[yym]) && (yyn += yystate) >= 0 &&
            yyn <= YYTABLESIZE && yycheck[yyn] == yystate)
        yystate = yytable[yyn];
    else
        yystate = yydgoto[yym];
#ifdef YYDEBUG
    if (yydebug)
        printf("yydebug: after reduction, shifting from state %d \
to state %d\n", *yyssp, yystate);
#endif
    if (yyssp >= yyss + yystacksize - 1)
    {
        goto yyoverflow;
    }
    *++yyssp = yystate;
    *++yyvsp = yyval;
    goto yyloop;
yyoverflow:
    yyerror("yacc stack overflow");
yyabort:
    return (1);
yyaccept:
    return (0);
}

Here is the call graph for this function:


Variable Documentation

Definition at line 37 of file installparse.c.

Definition at line 165 of file installparse.c.

short yycheck[]
Initial value:
 {                                       4,
    0,  259,    0,    8,  257,    0,  258,  258,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,  257,  258,  259,
  258,
}

Definition at line 95 of file installparse.c.

Definition at line 162 of file installparse.c.

short yydefred[]
Initial value:
 {                                      0,
    0,    0,    1,    0,    4,    0,    2,    0,    0,    6,
}

Definition at line 50 of file installparse.c.

short yydgoto[]
Initial value:
 {                                       2,
    3,    4,    5,    6,
}

Definition at line 53 of file installparse.c.

Definition at line 164 of file installparse.c.

short yygindex[]
Initial value:
 {                                      0,
   -4,    0,    0,    0,
}

Definition at line 62 of file installparse.c.

short yylen[]
Initial value:
 {                                         2,
    1,    2,    0,    1,    1,    4,    1,
}

Definition at line 47 of file installparse.c.

short yylhs[]
Initial value:
 {                                        -1,
    0,    1,    1,    2,    2,    3,    4,
}

Definition at line 44 of file installparse.c.

Definition at line 169 of file installparse.c.

Definition at line 163 of file installparse.c.

short yyrindex[]
Initial value:
 {                                      6,
    1,    0,    0,    3,    0,    0,    0, -250,    0,    0,
}

Definition at line 59 of file installparse.c.

char yysccsid[] = "@(#)yaccpar 1.4 (Berkeley) 02/25/90"

Definition at line 2 of file installparse.c.

short yysindex[]
Initial value:
 {                                   -257,
    0,    0,    0, -257,    0, -252,    0, -257, -251,    0,
}

Definition at line 56 of file installparse.c.

short yyss[YYSTACKSIZE]

Definition at line 171 of file installparse.c.

short* yyssp

Definition at line 166 of file installparse.c.

short yytable[]
Initial value:
 {                                       7,
    5,    1,    3,    9,    8,    3,   10,    3,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    7,    5,    5,
    3,
}

Definition at line 66 of file installparse.c.

Definition at line 168 of file installparse.c.

Definition at line 172 of file installparse.c.

Definition at line 167 of file installparse.c.