|
XINU
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <ctype.h>#include <stddef.h>#include "lex.yy.c"
Go to the source code of this file.
Data Structures | |
| struct | dev_ent |
| union | yyalloc |
Macros | |
| #define | CLOSE 269 |
| #define | COLON 260 |
| #define | CONFC "conf.c" /* Name of .c output */ |
| #define | CONFH "conf.h" /* Name of .h output */ |
| #define | CONFHREF "<conf.h>" /* How conf.h referenced */ |
| #define | CONTROL 273 |
| #define | CSR 264 |
| #define | DEFBRK 258 |
| #define | GETC 276 |
| #define | IDENT 263 |
| #define | IFBRK 259 |
| #define | INFILE "Configuration" /* Name of input file */ |
| #define | INIT 267 |
| #define | INTEGER 262 |
| #define | INTR 266 |
| #define | IRQ 265 |
| #define | IS 274 |
| #define | MAXNAME 16 /* Max length of names */ |
| #define | NDEVS 250 /* Max devices */ |
| #define | NIL (struct dev_ent *)0x00 |
| #define | NTYPES 250 /* Max device types */ |
| #define | OCTAL 261 |
| #define | ON 275 |
| #define | OPEN 268 |
| #define | PUTC 277 |
| #define | READ 270 |
| #define | SEEK 272 |
| #define | WRITE 271 |
| #define | YY_(Msgid) Msgid |
| #define | YY_ATTRIBUTE(Spec) /* empty */ |
| #define | YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
| #define | YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
| #define | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| #define | YY_IGNORE_MAYBE_UNINITIALIZED_END |
| #define | YY_INITIAL_VALUE(Value) Value |
| #define | YY_NULLPTR ((void*)0) |
| #define | YY_REDUCE_PRINT(Rule) |
| #define | YY_STACK_PRINT(Bottom, Top) |
| #define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
| #define | YYABORT goto yyabortlab |
| #define | YYACCEPT goto yyacceptlab |
| #define | YYBACKUP(Token, Value) |
| #define | YYBISON 1 |
| #define | YYBISON_VERSION "3.3.2" |
| #define | yyclearin (yychar = YYEMPTY) |
| #define | YYCOPY(Dst, Src, Count) |
| #define | YYCOPY_NEEDED 1 |
| #define | YYDEBUG 0 |
| #define | YYDPRINTF(Args) |
| #define | YYEMPTY (-2) |
| #define | YYEOF 0 |
| #define | YYERRCODE 256 |
| #define | yyerrok (yyerrstatus = 0) |
| #define | YYERROR goto yyerrorlab |
| #define | YYERROR_VERBOSE 0 |
| #define | YYFINAL 3 |
| #define | YYFREE free |
| #define | YYINITDEPTH 200 |
| #define | YYLAST 39 |
| #define | YYMALLOC malloc |
| #define | YYMAXDEPTH 10000 |
| #define | YYMAXUTOK 277 |
| #define | YYNNTS 20 |
| #define | YYNRULES 35 |
| #define | YYNSTATES 58 |
| #define | YYNTOKENS 23 |
| #define | YYPACT_NINF -14 |
| #define | yypact_value_is_default(Yystate) (!!((Yystate) == (-14))) |
| #define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
| #define | YYPULL 1 |
| #define | YYPURE 0 |
| #define | YYPUSH 0 |
| #define | YYRECOVERING() (!!yyerrstatus) |
| #define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
| #define | YYSIZE_T size_t |
| #define | YYSKELETON_NAME "yacc.c" |
| #define | YYSTACK_ALLOC YYMALLOC |
| #define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| #define | YYSTACK_BYTES(N) |
| #define | YYSTACK_FREE YYFREE |
| #define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
| #define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
| #define | YYSTYPE_IS_DECLARED 1 |
| #define | YYSTYPE_IS_TRIVIAL 1 |
| #define | YYTABLE_NINF -1 |
| #define | yytable_value_is_error(Yytable_value) 0 |
| #define | YYTERROR 1 |
| #define | YYTOKENTYPE |
| #define | YYTRANSLATE(YYX) ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define | YYUNDEFTOK 2 |
| #define | YYUSE(E) ((void) (E)) |
Typedefs | |
| typedef int | YYSTYPE |
| typedef short | yytype_int16 |
| typedef signed char | yytype_int8 |
| typedef unsigned short | yytype_uint16 |
| typedef unsigned char | yytype_uint8 |
Enumerations | |
| enum | yytokentype { DEFBRK = 258, IFBRK = 259, COLON = 260, OCTAL = 261, INTEGER = 262, IDENT = 263, CSR = 264, IRQ = 265, INTR = 266, INIT = 267, OPEN = 268, CLOSE = 269, READ = 270, WRITE = 271, SEEK = 272, CONTROL = 273, IS = 274, ON = 275, GETC = 276, PUTC = 277 } |
Functions | |
| void | addattr (int, int) |
| int | addton (char *) |
| int | config_atoi (char *, int) |
| void | devisid (char *) |
| void | devonid (char *) |
| void | free (void *) |
| void | getattrid (char *) |
| int | main (int argc, char **argv) |
| void * | malloc (YYSIZE_T) |
| void | newdev (char *) |
| int | newtype (char *) |
| static void | yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) |
| void | yyerror (char *) |
| int | yylex (void) |
| int | yyparse (void) |
Variables | |
| int | brkcount = 0 |
| FILE * | confc |
| FILE * | confh |
| struct dev_ent | devs [NDEVS] |
| char * | devstab [] |
| char * | doing = "device type declarations" |
| struct dev_ent | dtypes [NTYPES] |
| int | linectr = 1 |
| int | ndevs = 0 |
| int | ntypes = 0 |
| char | saveattrid [MAXNAME] |
| int | yychar |
| static const yytype_int8 | yycheck [] |
| static const yytype_uint8 | yydefact [] |
| static const yytype_int8 | yydefgoto [] |
| int | yyleng |
| YYSTYPE | yylval |
| int | yynerrs |
| static const yytype_int8 | yypact [] |
| static const yytype_int8 | yypgoto [] |
| static const yytype_uint8 | yyr1 [] |
| static const yytype_uint8 | yyr2 [] |
| static const yytype_uint8 | yystos [] |
| static const yytype_uint8 | yytable [] |
| char * | yytext |
| static const yytype_uint8 | yytranslate [] |
| #define CONFC "conf.c" /* Name of .c output */ |
| #define CONFH "conf.h" /* Name of .h output */ |
| #define MAXNAME 16 /* Max length of names */ |
| #define NTYPES 250 /* Max device types */ |
| #define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
| #define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
| #define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Definition at line 367 of file y.tab.c.
Referenced by yydestruct(), and yyparse().
| #define YY_IGNORE_MAYBE_UNINITIALIZED_END |
Definition at line 368 of file y.tab.c.
Referenced by yydestruct(), and yyparse().
| #define YY_STACK_PRINT | ( | Bottom, | |
| Top | |||
| ) |
| #define YY_SYMBOL_PRINT | ( | Title, | |
| Type, | |||
| Value, | |||
| Location | |||
| ) |
Definition at line 853 of file y.tab.c.
Referenced by yydestruct(), and yyparse().
| #define YYBACKUP | ( | Token, | |
| Value | |||
| ) |
| #define YYCOPY | ( | Dst, | |
| Src, | |||
| Count | |||
| ) |
| #define yypact_value_is_default | ( | Yystate | ) | (!!((Yystate) == (-14))) |
| #define YYPOPSTACK | ( | N | ) | (yyvsp -= (N), yyssp -= (N)) |
Referenced by yyparse().
| #define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| #define YYSTACK_RELOCATE | ( | Stack_alloc, | |
| Stack | |||
| ) |
Definition at line 470 of file y.tab.c.
Referenced by yyparse().
| #define yytable_value_is_error | ( | Yytable_value | ) | 0 |
| #define YYTRANSLATE | ( | YYX | ) | ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| #define YYUSE | ( | E | ) | ((void) (E)) |
Definition at line 350 of file y.tab.c.
Referenced by yydestruct().
| typedef short yytype_int16 |
| typedef signed char yytype_int8 |
| typedef unsigned short yytype_uint16 |
| typedef unsigned char yytype_uint8 |
| enum yytokentype |
| void addattr | ( | int | tok, |
| int | val | ||
| ) |
Definition at line 1958 of file y.tab.c.
References brkcount, dev_ent::close, CLOSE, dev_ent::control, CONTROL, dev_ent::csr, CSR, devs, dtypes, fprintf(), dev_ent::getc, GETC, dev_ent::init, INIT, dev_ent::intr, INTR, dev_ent::irq, IRQ, ndevs, ntypes, dev_ent::open, OPEN, dev_ent::putc, PUTC, dev_ent::read, READ, saveattrid, dev_ent::seek, SEEK, stderr, strcpy(), dev_ent::write, and WRITE.
Referenced by yyparse().


| int addton | ( | char * | tonid | ) |
| int config_atoi | ( | char * | p, |
| int | len | ||
| ) |
| void devisid | ( | char * | tname | ) |
| void devonid | ( | char * | onname | ) |
Definition at line 2091 of file y.tab.c.
References devs, dtypes, exit(), fprintf(), dev_ent::ison, linectr, MAXNAME, dev_ent::minor, dev_ent::name, ndevs, ntypes, stderr, strcmp(), strcpy(), strlen(), and dev_ent::tname.
Referenced by yyparse().


| void free | ( | void * | ) |
| void getattrid | ( | char * | str | ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 1753 of file y.tab.c.
References brkcount, dev_ent::close, CONFC, confc, CONFH, confh, dev_ent::control, dev_ent::csr, devs, devstab, dtypes, exit(), fprintf(), dev_ent::getc, INFILE, dev_ent::init, input(), dev_ent::intr, dev_ent::irq, dev_ent::ison, dev_ent::minor, dev_ent::name, ndevs, ntypes, NULL, dev_ent::open, printf(), dev_ent::putc, dev_ent::read, dev_ent::seek, stderr, stdin, strncmp(), dev_ent::tname, dev_ent::write, and yyparse().

| void* malloc | ( | YYSIZE_T | ) |
| void newdev | ( | char * | name | ) |
Definition at line 2163 of file y.tab.c.
References bzero(), devs, exit(), fprintf(), linectr, MAXNAME, NDEVS, ndevs, stderr, strcmp(), strcpy(), and strlen().
Referenced by nammap(), namopen(), and yyparse().


| int newtype | ( | char * | name | ) |
Definition at line 2205 of file y.tab.c.
References bzero(), dtypes, exit(), fprintf(), linectr, MAXNAME, NTYPES, ntypes, stderr, strcmp(), strcpy(), strlen(), strncpy(), and dev_ent::tname.
Referenced by yyparse().


|
static |
Definition at line 1108 of file y.tab.c.
References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_SYMBOL_PRINT, and YYUSE.
Referenced by yyparse().

| void yyerror | ( | char * | s | ) |
| int yylex | ( | void | ) |
| int yyparse | ( | void | ) |
Definition at line 1137 of file y.tab.c.
References addattr(), addton(), CLOSE, config_atoi(), CONTROL, CSR, devisid(), devonid(), doing, getattrid(), GETC, INIT, INTR, IRQ, newdev(), newtype(), OPEN, PUTC, READ, SEEK, stderr, WRITE, YY_, YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yychar, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, yyerror(), YYERROR, YYFINAL, YYINITDEPTH, YYLAST, yyleng, yylex(), yylval, YYMAXDEPTH, yynerrs, YYNTOKENS, yypact, yypact_value_is_default, yypgoto, YYPOPSTACK, yyr1, yyr2, YYSIZE_T, yyalloc::yyss_alloc, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystos, yytable, yytable_value_is_error, YYTERROR, yytext, YYTRANSLATE, and yyalloc::yyvs_alloc.
Referenced by main().


| char* devstab[] |
Definition at line 137 of file y.tab.c.
Referenced by main().
| char* doing = "device type declarations" |
| int linectr = 1 |
| int ndevs = 0 |
| int ntypes = 0 |
| char saveattrid[MAXNAME] |
Definition at line 160 of file y.tab.c.
Referenced by addattr(), and getattrid().
|
static |
|
static |
|
static |
| int yyleng |
Referenced by yyparse().
|
static |
Definition at line 607 of file y.tab.c.
Referenced by yyparse().
|
static |
|
static |
|
static |
|
static |
Definition at line 665 of file y.tab.c.
Referenced by yyparse().
|
static |
| char* yytext |
Referenced by yyparse().
|
static |
1.8.13