⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 yacc_cis.c

📁 pcmcia source code
💻 C
📖 第 1 页 / 共 3 页
字号:
#ifndef lintstatic char yysccsid[] = "@(#)yaccpar	1.9 (Berkeley) 02/21/93";#endif#define YYBYACC 1#define YYMAJOR 1#define YYMINOR 9#define yyclearin (yychar=(-1))#define yyerrok (yyerrflag=0)#define YYRECOVERING (yyerrflag!=0)#define YYPREFIX "yy"#line 2 "yacc_cis.y"/* * yacc_cis.y 1.13 2001/08/24 12:21:41 * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License * at http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See * the License for the specific language governing rights and * limitations under the License.  * * The initial developer of the original code is David A. Hinds * <dahinds@users.sourceforge.net>.  Portions created by David A. Hinds * are Copyright (C) 1999 David A. Hinds.  All Rights Reserved. * * Alternatively, the contents of this file may be used under the * terms of the GNU General Public License version 2 (the "GPL"), in * which case the provisions of the GPL are applicable instead of the * above.  If you wish to allow the use of your version of this file * only under the terms of the GPL and not to allow others to use * your version of this file under the MPL, indicate your decision by * deleting the provisions above and replace them with the notice and * other provisions required by the GPL.  If you do not delete the * provisions above, a recipient may use your version of this file * under either the MPL or the GPL. */#include <sys/types.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include <stdarg.h>#include <math.h>#include <pcmcia/cs_types.h>#include <pcmcia/cs.h>#include <pcmcia/cistpl.h>#include "pack_cis.h"/* If bison: generate nicer error messages */ #define YYERROR_VERBOSE 1 extern int current_lineno;void yyerror(char *msg, ...);static tuple_info_t *new_tuple(u_char type, cisparse_t *parse);#line 65 "yacc_cis.y"typedef union {    char *str;    u_long num;    float flt;    cistpl_power_t pwr;    cisparse_t *parse;    tuple_info_t *tuple;} YYSTYPE;#line 72 "y.tab.c"#define STRING 257#define NUMBER 258#define FLOAT 259#define VOLTAGE 260#define CURRENT 261#define SIZE 262#define VERS_1 263#define MANFID 264#define FUNCID 265#define CONFIG 266#define CFTABLE 267#define MFC 268#define CHECKSUM 269#define POST 270#define ROM 271#define BASE 272#define LAST_INDEX 273#define CJEDEC 274#define AJEDEC 275#define DEV_INFO 276#define ATTR_DEV_INFO 277#define NO_INFO 278#define TIME 279#define TIMING 280#define WAIT 281#define READY 282#define RESERVED 283#define VNOM 284#define VMIN 285#define VMAX 286#define ISTATIC 287#define IAVG 288#define IPEAK 289#define IDOWN 290#define VCC 291#define VPP1 292#define VPP2 293#define IO 294#define MEM 295#define DEFAULT 296#define BVD 297#define WP 298#define RDYBSY 299#define MWAIT 300#define AUDIO 301#define READONLY 302#define PWRDOWN 303#define BIT8 304#define BIT16 305#define LINES 306#define RANGE 307#define IRQ_NO 308#define MASK 309#define LEVEL 310#define PULSE 311#define SHARED 312#define YYERRCODE 256short yylhs[] = {                                        -1,    0,    0,   18,   18,   19,   19,   17,   17,   17,   17,   17,   17,   17,   17,   17,   17,   17,   12,   12,   12,   13,   13,   13,    3,    3,    4,    5,    5,    5,   15,   15,   16,   16,    6,    1,    1,    1,    1,    1,    1,    1,    2,    2,   11,   11,   11,   11,    8,    8,    8,    8,    8,    8,    9,    9,    9,    9,   10,   10,   10,   10,   10,    7,    7,    7,    7,    7,    7,    7,    7,    7,    7,    7,    7,    7,    7,    7,    7,   14,};short yylen[] = {                                         2,    1,    2,    0,    2,    4,    5,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,    5,    2,    1,    5,    2,    2,    3,    4,    2,    2,    2,    3,    4,    3,    4,    7,    2,    2,    2,    2,    2,    2,    2,    0,    2,    2,    3,    3,    3,    5,    5,    2,    2,    5,    2,    7,    7,    2,    2,    3,    4,    2,    2,    2,    2,    2,    2,    2,    2,    2,    2,    2,    2,    3,    3,    3,    1,    1,    1,    1,    6,};short yydefred[] = {                                      3,    0,    0,   15,    0,    0,    0,    0,    0,    0,    0,    0,    0,   18,   21,    0,   10,    0,   12,    0,    0,    0,    0,    0,    0,    0,   14,    0,    0,    4,    0,   24,    0,   27,    0,   63,    3,    0,    0,    0,    0,   28,   29,   44,   42,   42,   42,    0,    0,   64,   65,   66,   67,   68,   69,   70,   71,    0,   50,   51,    0,   53,    0,   56,   57,    0,   61,   60,   62,    0,    0,    0,    0,   20,    0,   23,    0,    0,    0,    0,    0,    0,    0,   30,   32,   25,    0,    0,    0,    0,    0,   58,    0,    0,    0,    0,   45,   46,   47,    0,    0,    0,    0,    3,   26,    0,    5,    0,    0,    0,    0,    0,    0,    0,    0,   43,    0,    0,   59,    0,    0,    0,    0,    0,   31,   33,    0,    0,    0,   35,   36,   37,   38,   39,   40,   41,   48,    0,   52,   49,    0,   19,   22,    6,    0,   79,    0,    0,   34,   54,   55,};short yydgoto[] = {                                       1,  115,   86,   15,   16,   17,   18,   19,   20,   21,   22,   23,   24,   25,   26,   27,   28,   29,    2,   30,};short yysindex[] = {                                      0,    0, -224,    0, -248, -223, -212, -225, -210,  -69, -195, -194, -193,    0,    0,   22,    0, -261,    0, -272,  -44,  -32, -305, -266, -245, -244,    0,   23,   24,    0,   26,    0,   27,    0, -186,    0,    0,   28, -184, -183, -181,    0,    0,    0,    0,    0,    0, -180, -179,    0,    0,    0,    0,    0,    0,    0,    0, -254,    0,    0,   16,    0, -178,    0,    0, -177,    0,    0,    0, -197, -196, -192, -191,    0, -190,    0, -174, -173,  -37, -168, -218, -122, -166,    0,    0,    0, -228, -228, -228,   48,   50,    0, -164, -162,   53,   54,    0,    0,    0,   56,   57, -156, -155,    0,    0, -154,    0,   44, -153, -152, -151, -150, -149, -148, -147,    0, -143, -142,    0,   13, -141, -140, -139, -138,    0,    0, -107, -163, -137,    0,    0,    0,    0,    0,    0,    0,    0,   55,    0,    0,   58,    0,    0,    0, -133,    0, -131, -130,    0,    0,    0,};short yyrindex[] = {                                      0,    0,  120,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,  339,    0,  354,    0,  376,    1,   49,   97,  146,  401,  424,    0,  451,  473,    0,  129,    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,  194,  242,  291,    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,};short yygindex[] = {                                      0,    0,   -8,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,  -34,    0,};#define YYTABLESIZE 750short yytable[] = {                                      62,   75,   81,  106,   91,   66,   67,   68,   43,   41,   42,   31,   65,   72,   74,   69,   70,   71,  143,   44,   45,   46,   47,   48,   49,   50,   51,   52,   53,   54,   55,   56,    3,   73,   75,   32,   57,   87,   88,    4,    5,    6,    7,    8,    9,   10,   33,   34,   35,   76,   11,   12,   13,   14,   36,   92,  108,  109,  110,  111,  112,  113,  114,   37,   38,   39,   40,   76,   77,  126,   78,   79,   80,   82,   83,   84,   85,   93,   89,   90,   94,   95,   96,   97,  101,  102,  103,   98,   99,  100,  104,  105,  107,  116,  118,  117,  119,   77,  120,  121,  122,  123,  124,  125,  127,  128,  138,  129,  130,  131,  144,  132,  133,  134,  135,  136,  137,  139,  140,  146,    1,  145,  147,  141,  142,  148,   75,  149,  150,    2,    0,    0,    0,    0,    3,    0,    0,    0,    0,    0,    0,    4,    5,    6,    7,    8,   78,   10,    0,    3,    0,    0,   11,   12,   13,   14,    4,    5,    6,    7,    8,    0,   10,    0,    0,    0,    0,   11,   12,   13,   14,    0,    0,    0,   76,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,   72,    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,   77,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,   73,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,   75,    0,    0,   58,   59,   60,   61,   75,   75,   75,   75,   75,   75,   75,   78,   63,   64,    0,   75,   75,   75,   75,    0,    0,   75,    0,    0,    0,    0,    0,    0,    0,    0,    0,   74,   75,   75,   75,   75,   75,   75,   75,   75,   75,   75,   75,   75,   75,   76,    0,    0,    0,   75,    0,    0,   76,   76,   76,   76,   76,   76,   76,   72,    0,    0,    0,   76,   76,   76,   76,    0,    0,   76,    0,    0,    0,    0,    0,    0,    0,    0,    0,    9,   76,   76,   76,   76,   76,   76,   76,   76,   76,   76,   76,   76,   76,   77,   11,    0,    0,   76,    0,    0,   77,   77,   77,   77,   77,   77,   77,   73,    0,    0,    0,   77,   77,   77,   77,    0,   13,   77,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,   77,   77,   77,   77,   77,   77,   77,   77,   77,   77,   77,   77,   77,    7,   78,    0,    0,   77,    0,    0,    0,   78,   78,   78,   78,   78,   78,   78,   74,    0,    0,    0,   78,   78,   78,   78,    8,    0,   78,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,   78,   78,   78,   78,   78,   78,   78,   78,   78,   78,   78,   78,   78,   72,   16,    0,    0,   78,    0,    0,   72,   72,   72,   72,   72,   72,   72,    9,    0,    0,    0,   72,   72,   72,   72,    0,   17,   72,    0,    0,    0,    0,   11,    0,    0,    0,    0,    0,   72,   72,   72,   72,   72,   72,   72,   72,   72,   72,   72,   72,   72,   73,    0,    0,   13,   72,    0,    0,   73,   73,   73,   73,   73,   73,   73,    0,    0,    0,    0,   73,   73,   73,   73,    0,    0,   73,    0,    0,    0,    7,    0,    0,    0,    0,    0,    0,   73,   73,   73,   73,   73,   73,   73,   73,   73,   73,   73,   73,   73,    0,   74,    0,    8,   73,    0,    0,    0,   74,   74,   74,   74,   74,   74,   74,    0,    0,    0,    0,   74,   74,   74,   74,    0,    0,   74,    0,    0,    0,    0,   16,    0,    0,    0,    0,    0,   74,   74,   74,   74,   74,   74,   74,   74,   74,   74,   74,   74,   74,    9,    0,    0,   17,   74,    0,    0,    9,    9,    9,    9,    9,    9,    9,    0,   11,    0,    0,    9,    9,    9,    9,   11,   11,   11,   11,   11,   11,   11,    0,    0,    0,    0,   11,   11,   11,   11,   13,    0,    0,    0,    0,    0,    0,   13,   13,   13,   13,   13,   13,   13,    0,    0,    0,    0,   13,   13,   13,   13,    0,    0,    0,    7,    0,    0,    0,    0,    0,    0,    7,    7,    7,    7,    7,    7,    7,    0,    0,    0,    0,    7,    7,    7,    7,    0,    8,    0,    0,    0,    0,    0,    0,    8,    8,    8,    8,    8,    8,    8,    0,    0,    0,    0,    8,    8,    8,    8,    0,    0,    0,    0,    0,   16,    0,    0,    0,    0,    0,    0,   16,   16,   16,   16,   16,   16,   16,    0,    0,    0,    0,   16,   16,   16,   16,   17,    0,    0,    0,    0,    0,    0,   17,   17,   17,   17,   17,   17,   17,    0,    0,    0,    0,   17,   17,   17,   17,};short yycheck[] = {                                      44,    0,   36,  125,  258,  310,  311,  312,  280,  270,  271,  259,   44,  258,  258,  281,  282,  283,  125,  291,  292,  293,  294,  295,  296,  297,  298,  299,  300,  301,  302,  303,  256,  278,  278,  258,  308,   45,   46,  263,  264,  265,  266,  267,  268,  269,  258,  272,  258,    0,  274,  275,  276,  277,  123,  309,  284,  285,  286,  287,  288,  289,  290,  258,  258,  258,   44,   44,   44,  103,   44,   44,  258,   45,  258,  258,  257,   61,  258,  258,  258,  258,  279,  279,  258,  258,  123,  279,  279,  279,  258,  309,  258,   45,  258,   45,  258,    0,   45,   45,   44,   44,  258,  258,  258,   61,   93,  260,  260,  260,  273,  261,  261,  261,  261,  258,  258,  258,  258,   64,    0,  258,   64,  262,  262,  258,  125,  258,  258,    0,   -1,   -1,   -1,   -1,  256,   -1,   -1,   -1,   -1,   -1,   -1,  263,  264,  265,  266,  267,    0,  269,   -1,  256,   -1,   -1,  274,  275,  276,  277,  263,  264,  265,  266,  267,   -1,  269,   -1,   -1,   -1,   -1,  274,  275,  276,  277,   -1,   -1,   -1,  125,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,    0,   -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,  125,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,    0,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  256,   -1,   -1,  304,  305,  306,  307,  263,  264,  265,  266,  267,  268,  269,  125,  304,  305,   -1,  274,  275,  276,  277,   -1,   -1,  280,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,    0,  291,  292,  293,  294,  295,  296,  297,  298,  299,  300,  301,  302,  303,  256,   -1,   -1,   -1,  308,   -1,   -1,  263,  264,  265,  266,  267,  268,  269,  125,   -1,   -1,   -1,  274,  275,  276,  277,   -1,   -1,  280,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,    0,  291,  292,  293,  294,  295,  296,  297,  298,  299,  300,  301,  302,  303,  256,    0,   -1,   -1,  308,   -1,   -1,  263,  264,  265,  266,  267,  268,  269,  125,   -1,   -1,   -1,  274,  275,  276,  277,   -1,    0,  280,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  291,  292,  293,  294,  295,  296,  297,  298,  299,  300,  301,  302,  303,    0,  256,   -1,   -1,  308,   -1,   -1,   -1,  263,  264,  265,  266,  267,  268,  269,  125,   -1,   -1,   -1,  274,  275,  276,  277,    0,   -1,  280,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  291,  292,  293,  294,  295,  296,  297,  298,  299,  300,  301,  302,  303,  256,    0,   -1,   -1,  308,   -1,   -1,  263,  264,  265,  266,  267,  268,  269,  125,   -1,   -1,   -1,  274,  275,  276,  277,   -1,    0,  280,   -1,   -1,   -1,   -1,  125,   -1,   -1,   -1,   -1,   -1,  291,  292,  293,  294,  295,  296,  297,  298,  299,  300,  301,  302,  303,  256,   -1,   -1,  125,  308,   -1,   -1,  263,  264,  265,  266,  267,  268,  269,   -1,   -1,   -1,   -1,  274,  275,  276,  277,   -1,   -1,  280,   -1,   -1,   -1,  125,   -1,   -1,   -1,   -1,   -1,   -1,  291,  292,  293,  294,  295,  296,  297,  298,  299,  300,  301,  302,  303,   -1,  256,   -1,  125,  308,   -1,   -1,   -1,  263,  264,  265,  266,  267,  268,  269,   -1,   -1,   -1,   -1,  274,  275,  276,  277,   -1,   -1,  280,   -1,   -1,   -1,   -1,  125,   -1,   -1,   -1,   -1,   -1,  291,  292,  293,  294,  295,  296,  297,  298,  299,  300,  301,  302,  303,  256,   -1,   -1,  125,  308,   -1,   -1,  263,  264,  265,  266,  267,  268,  269,   -1,  256,   -1,   -1,  274,  275,  276,  277,  263,  264,  265,  266,  267,  268,  269,   -1,   -1,   -1,   -1,  274,  275,  276,  277,  256,   -1,   -1,   -1,   -1,   -1,   -1,  263,  264,  265,  266,  267,  268,  269,   -1,   -1,   -1,   -1,  274,  275,  276,  277,   -1,   -1,   -1,  256,   -1,   -1,   -1,   -1,   -1,   -1,  263,  264,  265,  266,  267,  268,  269,   -1,   -1,   -1,   -1,  274,  275,  276,  277,   -1,  256,   -1,   -1,   -1,   -1,   -1,   -1,  263,  264,  265,  266,  267,  268,  269,   -1,   -1,   -1,   -1,  274,  275,  276,  277,   -1,   -1,   -1,   -1,   -1,  256,   -1,   -1,   -1,   -1,   -1,   -1,  263,  264,  265,  266,  267,  268,  269,   -1,   -1,   -1,   -1,  274,  275,  276,  277,  256,   -1,   -1,   -1,   -1,   -1,   -1,  263,  264,  265,  266,  267,  268,  269,   -1,   -1,   -1,   -1,  274,  275,  276,  277,};#define YYFINAL 1#ifndef YYDEBUG#define YYDEBUG 0#endif#define YYMAXTOKEN 312#if YYDEBUGchar *yyname[] = {"end-of-file",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,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -