scan.c File Reference

#include <stdio.h>
#include "bcdefs.h"
#include "y.tab.h"
#include "global.h"
#include "proto.h"
#include <errno.h>

Include dependency graph for scan.c:

Go to the source code of this file.

Data Structures

struct  yy_buffer_state

Defines

#define FLEX_SCANNER
#define const
#define YY_PROTO(proto)   ()
#define YY_READ_BUF_SIZE   8192
#define YY_END_TOK   0
#define ECHO   (void) fwrite( (char *) yytext, yyleng, 1, yyout )
#define YY_INPUT(buf, result, max_size)
#define YY_NULL   0
#define yyterminate()   return ( YY_NULL )
#define YY_FATAL_ERROR(msg)
#define yywrap()   1
#define BEGIN   yy_start = 1 + 2 *
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
#define YY_NEW_FILE
#define YY_DECL   int yylex YY_PROTO(( void ))
#define YY_BREAK   break;
#define YY_END_OF_BUFFER_CHAR   0
#define YY_BUF_SIZE   (YY_READ_BUF_SIZE * 2)
#define YY_CHAR   unsigned char
#define INITIAL   0
#define YY_READ_BUF_SIZE   512
#define YY_INPUT(buf, result, max_size)
#define YY_DO_BEFORE_ACTION
#define EOB_ACT_CONTINUE_SCAN   0
#define EOB_ACT_END_OF_FILE   1
#define EOB_ACT_LAST_MATCH   2
#define yyless(n)
#define unput(c)   yyunput( c, yytext )
#define EOF_NOT_SEEN   0
#define EOF_PENDING   1
#define EOF_DONE   2
#define YY_CURRENT_BUFFER   yy_current_buffer
#define YY_END_OF_BUFFER   40
#define REJECT   reject_used_but_not_detected
#define yymore()   yymore_used_but_not_detected
#define YY_MORE_ADJ   0
#define yy_new_buffer   yy_create_buffer

Typedefs

typedef yy_buffer_stateYY_BUFFER_STATE
typedef int yy_state_type

Functions

char * malloc ()
int free ()
int read ()
 _PROTOTYPE (int yywrap,(void))
static yy_state_type yy_get_previous_state YY_PROTO ((void))
static yy_state_type yy_try_NUL_trans YY_PROTO ((yy_state_type current_state))
static void yyunput YY_PROTO ((YY_CHAR c, YY_CHAR *buf_ptr))
void yyrestart YY_PROTO ((FILE *input_file))
void yy_switch_to_buffer YY_PROTO ((YY_BUFFER_STATE new_buffer))
YY_BUFFER_STATE yy_create_buffer YY_PROTO ((FILE *file, int size))
void yy_delete_buffer YY_PROTO ((YY_BUFFER_STATE b))
void yy_init_buffer YY_PROTO ((YY_BUFFER_STATE b, FILE *file))

Variables

static YY_BUFFER_STATE yy_current_buffer
static YY_CHAR yy_hold_char
static int yy_n_chars
YY_CHAR * yytext
int yyleng
FILEyyin
FILEyyout
YY_CHAR * yytext
int yyleng
FILEyyin = (FILE *) 0
FILEyyout = (FILE *) 0
static const short int yy_accept [144]
static const YY_CHAR yy_ec [256]
static const YY_CHAR yy_meta [53]
static const short int yy_base [146]
static const short int yy_def [146]
static const short int yy_nxt [247]
static const short int yy_chk [247]
static yy_state_type yy_last_accepting_state
static YY_CHAR * yy_last_accepting_cpos
static YY_CHAR * yy_c_buf_p = (YY_CHAR *) 0
static int yy_init = 1
static int yy_start = 0
static int yy_did_buffer_switch_on_eof
register YY_CHAR * yy_bp
int size
FILEfile


Define Documentation

#define BEGIN   yy_start = 1 + 2 *
 

Definition at line 136 of file scan.c.

#define const
 

Definition at line 56 of file scan.c.

#define ECHO   (void) fwrite( (char *) yytext, yyleng, 1, yyout )
 

Definition at line 88 of file scan.c.

Referenced by doit(), DOpass(), getpass(), gettmode(), inittty(), main(), mode(), option(), raw_mode(), rawecho(), report(), rl_ttyset(), s_traps_str(), set_raw(), Set_Term(), settty(), sys_call(), ts_init(), tty_echo(), tty_raw(), ttysetflags(), and will_option().

#define EOB_ACT_CONTINUE_SCAN   0
 

Definition at line 237 of file scan.c.

#define EOB_ACT_END_OF_FILE   1
 

Definition at line 238 of file scan.c.

#define EOB_ACT_LAST_MATCH   2
 

Definition at line 239 of file scan.c.

#define EOF_DONE   2
 

Definition at line 274 of file scan.c.

#define EOF_NOT_SEEN   0
 

Definition at line 269 of file scan.c.

#define EOF_PENDING   1
 

Definition at line 273 of file scan.c.

#define FLEX_SCANNER
 

Definition at line 7 of file scan.c.

#define INITIAL   0
 

Definition at line 168 of file scan.c.

#define REJECT   reject_used_but_not_detected
 

Definition at line 482 of file scan.c.

#define unput c   )     yyunput( c, yytext )
 

Definition at line 252 of file scan.c.

#define YY_BREAK   break;
 

Definition at line 156 of file scan.c.

#define YY_BUF_SIZE   (YY_READ_BUF_SIZE * 2)
 

Definition at line 161 of file scan.c.

#define YY_CHAR   unsigned char
 

Definition at line 166 of file scan.c.

#define YY_CURRENT_BUFFER   yy_current_buffer
 

Definition at line 283 of file scan.c.

#define YY_DECL   int yylex YY_PROTO(( void ))
 

Definition at line 153 of file scan.c.

#define YY_DO_BEFORE_ACTION
 

Value:

yytext = yy_bp; \
        yyleng = yy_cp - yy_bp; \
        yy_hold_char = *yy_cp; \
        *yy_cp = '\0'; \
        yy_c_buf_p = yy_cp;

Definition at line 230 of file scan.c.

#define YY_END_OF_BUFFER   40
 

Definition at line 310 of file scan.c.

#define YY_END_OF_BUFFER_CHAR   0
 

Definition at line 158 of file scan.c.

#define YY_END_TOK   0
 

Definition at line 80 of file scan.c.

#define YY_FATAL_ERROR msg   ) 
 

Value:

do \
                { \
                (void) fputs( msg, stderr ); \
                (void) putc( '\n', stderr ); \
                exit( 1 ); \
                } \
        while ( 0 )

Definition at line 120 of file scan.c.

#define YY_INPUT buf,
result,
max_size   ) 
 

Value:

while ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
            if (errno != EINTR) \
                YY_FATAL_ERROR( "read() in flex scanner failed" );

Definition at line 220 of file scan.c.

#define YY_INPUT buf,
result,
max_size   ) 
 

Value:

if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
            YY_FATAL_ERROR( "read() in flex scanner failed" );

Definition at line 220 of file scan.c.

#define YY_MORE_ADJ   0
 

Definition at line 484 of file scan.c.

#define yy_new_buffer   yy_create_buffer
 

Definition at line 510 of file scan.c.

#define YY_NEW_FILE
 

Value:

do \
                { \
                yy_init_buffer( yy_current_buffer, yyin ); \
                yy_load_buffer_state(); \
                } \
        while ( 0 )

Definition at line 142 of file scan.c.

#define YY_NULL   0
 

Definition at line 96 of file scan.c.

#define YY_PROTO proto   )     ()
 

Definition at line 63 of file scan.c.

#define YY_READ_BUF_SIZE   512
 

Definition at line 208 of file scan.c.

#define YY_READ_BUF_SIZE   8192
 

Definition at line 208 of file scan.c.

#define YY_STATE_EOF state   )     (YY_END_OF_BUFFER + state + 1)
 

Definition at line 139 of file scan.c.

#define yyless n   ) 
 

Value:

do \
                { \
                /* undo effects of setting up yytext */ \
                *yy_cp = yy_hold_char; \
                yy_c_buf_p = yy_cp = yy_bp + n; \
                YY_DO_BEFORE_ACTION; /* set up yytext again */ \
                } \
        while ( 0 )

Definition at line 242 of file scan.c.

 
#define yymore  )     yymore_used_but_not_detected
 

Definition at line 483 of file scan.c.

 
#define yyterminate  )     return ( YY_NULL )
 

Definition at line 102 of file scan.c.

 
#define yywrap  )     1
 

Definition at line 130 of file scan.c.


Typedef Documentation

typedef struct yy_buffer_state* YY_BUFFER_STATE
 

Definition at line 164 of file scan.c.

typedef int yy_state_type
 

Definition at line 311 of file scan.c.


Function Documentation

_PROTOTYPE int  yywrap,
(void) 
 

int free  ) 
 

char* malloc  ) 
 

int read  ) 
 

void yy_init_buffer YY_PROTO (YY_BUFFER_STATE b, FILE *file  ) 
 

void yy_delete_buffer YY_PROTO (YY_BUFFER_STATE b  ) 
 

YY_BUFFER_STATE yy_create_buffer YY_PROTO (FILE *file, int size)   ) 
 

void yy_switch_to_buffer YY_PROTO (YY_BUFFER_STATE new_buffer)   ) 
 

void yyrestart YY_PROTO (FILE *input_file  ) 
 

static void yyunput YY_PROTO (YY_CHAR c, YY_CHAR *buf_ptr  )  [static]
 

static yy_state_type yy_try_NUL_trans YY_PROTO (yy_state_type current_state)   )  [static]
 

static int input YY_PROTO (void)   )  [static]
 


Variable Documentation

char * file
 

Initial value:

 {"f0", "f1", "f2", "f3", "f4", "f5", "f6",
          "f7", "f8", "f9", "f10", "f11", "f12", "f13",
          "f14", "f15", "f16", "f17", "f18", "f19"}

Definition at line 1316 of file scan.c.

Referenced by add(), apply_chmod(), compile(), eopen(), exec_one(), findpath(), fopen_file_func(), get_line(), get_prog(), getrec(), main(), OpenFileByDirentry(), OpenRoot(), outfmt(), pr_rr(), puts(), raw_install(), readline(), select_major_match(), select_match_file(), tmpfile(), and transform().

int size
 

Definition at line 1226 of file scan.c.

const short int yy_accept[144] [static]
 

Initial value:

    {   0,
        0,    0,   40,   38,   33,   31,   25,   38,   26,   38,
       22,   26,   22,   22,   38,   26,   37,   29,   27,   29,
       38,   22,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   38,   33,
       29,    0,   36,   27,   23,   30,   37,    0,   34,   37,
       37,    0,   28,   32,   35,   35,   35,   35,   35,   35,
       35,   35,   35,    7,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   24,   37,    0,    0,   37,
        0,   35,   35,   35,   35,   35,    6,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,

       35,   13,   35,   35,   35,   14,   16,   35,   17,   35,
       35,   35,   35,    3,   15,   35,   35,    9,   35,   35,
        2,   35,   35,   11,   35,   35,   12,   20,   35,   10,
       35,    8,   35,    1,    4,   21,    5,   35,   35,   35,
       19,   18,    0
    }

Definition at line 312 of file scan.c.

const short int yy_base[146] [static]
 

Initial value:

    {   0,
        0,    0,  193,  194,  190,  194,  172,  185,  170,  181,
      194,  168,   42,   41,   41,   46,   52,  167,   61,  166,
      181,  164,  135,  137,  139,  148,  140,  136,    0,  149,
       27,   50,  147,  130,  126,  141,   40,   36,  120,  168,
      194,  164,  194,  194,  194,  194,   66,  165,  194,   72,
       76,  164,  194,  194,    0,  120,  134,  124,  131,  117,
      117,  122,  132,    0,  113,  117,  117,  128,  119,  118,
       52,  125,  107,  106,  114,  194,   80,  145,   84,   88,
      144,  105,  118,   98,  108,  111,    0,   95,   95,   93,
      105,  102,   91,   95,   88,  103,   85,   93,   84,   85,

       90,    0,   90,   91,   85,    0,    0,   93,    0,   77,
       76,   90,   74,    0,    0,   75,   87,    0,   90,   85,
        0,   75,   83,    0,   76,   63,    0,    0,   66,    0,
       62,    0,   47,    0,    0,    0,    0,   45,   53,   29,
        0,    0,  194,  111,   56
    }

Definition at line 374 of file scan.c.

register YY_CHAR* yy_bp
 

Definition at line 1083 of file scan.c.

YY_CHAR* yy_c_buf_p = (YY_CHAR *) 0 [static]
 

Definition at line 490 of file scan.c.

const short int yy_chk[247] [static]
 

Initial value:

    {   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,    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,   13,   14,   31,   16,   15,  145,   31,   14,
       13,   15,   38,   15,   16,   17,   19,   17,   37,   38,
       19,   19,   17,   19,   17,   19,   32,  140,   71,   19,
       32,   47,   37,  139,   32,   19,   47,   50,   47,   51,
      138,   51,   50,  133,   50,   77,   51,   71,   51,   79,

       77,  131,   77,   80,   79,  129,   79,  126,   80,  125,
       80,  144,  144,  123,  122,  120,  119,  117,  116,  113,
      112,  111,  110,  108,  105,  104,  103,  101,  100,   99,
       98,   97,   96,   95,   94,   93,   92,   91,   90,   89,
       88,   86,   85,   84,   83,   82,   81,   78,   75,   74,
       73,   72,   70,   69,   68,   67,   66,   65,   63,   62,
       61,   60,   59,   58,   57,   56,   52,   48,   42,   40,
       39,   36,   35,   34,   33,   30,   28,   27,   26,   25,
       24,   23,   22,   21,   20,   18,   12,   10,    9,    8,
        7,    5,    3,  143,  143,  143,  143,  143,  143,  143,

      143,  143,  143,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  143,  143
    }

Definition at line 445 of file scan.c.

YY_BUFFER_STATE yy_current_buffer [static]
 

Definition at line 277 of file scan.c.

const short int yy_def[146] [static]
 

Initial value:

    {   0,
      143,    1,  143,  143,  143,  143,  143,  144,  143,  143,
      143,  143,  143,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  145,  145,  145,  145,  145,  145,  145,  145,
      145,  145,  145,  145,  145,  145,  145,  145,  143,  143,
      143,  144,  143,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  145,  145,  145,  145,  145,  145,
      145,  145,  145,  145,  145,  145,  145,  145,  145,  145,
      145,  145,  145,  145,  145,  143,  143,  143,  143,  143,
      143,  145,  145,  145,  145,  145,  145,  145,  145,  145,
      145,  145,  145,  145,  145,  145,  145,  145,  145,  145,

      145,  145,  145,  145,  145,  145,  145,  145,  145,  145,
      145,  145,  145,  145,  145,  145,  145,  145,  145,  145,
      145,  145,  145,  145,  145,  145,  145,  145,  145,  145,
      145,  145,  145,  145,  145,  145,  145,  145,  145,  145,
      145,  145,    0,  143,  143
    }

Definition at line 394 of file scan.c.

int yy_did_buffer_switch_on_eof [static]
 

Definition at line 497 of file scan.c.

const YY_CHAR yy_ec[256] [static]
 

Definition at line 332 of file scan.c.

YY_CHAR yy_hold_char [static]
 

Definition at line 287 of file scan.c.

int yy_init = 1 [static]
 

Definition at line 491 of file scan.c.

YY_CHAR* yy_last_accepting_cpos [static]
 

Definition at line 477 of file scan.c.

yy_state_type yy_last_accepting_state [static]
 

Definition at line 476 of file scan.c.

const YY_CHAR yy_meta[53] [static]
 

Initial value:

    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    2,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    1,
        1,    1
    }

Definition at line 364 of file scan.c.

int yy_n_chars [static]
 

Definition at line 289 of file scan.c.

const short int yy_nxt[247] [static]
 

Initial value:

    {   0,
        4,    5,    6,    7,    8,    9,   10,   11,   11,   12,
       13,   11,   14,   15,   16,   17,   11,   18,   19,   20,
       17,   11,   21,   11,   22,    4,   23,   24,   25,   26,
       27,   28,   29,   30,   31,   29,   29,   32,   29,   29,
       33,   34,   35,   36,   37,   29,   29,   38,   29,   11,
       39,   11,   46,   46,   63,   49,   47,   55,   64,   44,
       44,   47,   74,   48,   44,   50,   53,   51,   72,   75,
       53,   53,   51,   53,   52,   53,   65,  142,   96,   41,
       66,   77,   73,  141,   67,   53,   77,   80,   78,   50,
      140,   51,   80,  139,   81,   77,   51,   97,   52,   47,

       77,  138,   78,   80,   47,  137,   48,  136,   80,  135,
       81,   42,   42,  134,  133,  132,  131,  130,  129,  128,
      127,  126,  125,  124,  123,  122,  121,  120,  119,  118,
      117,  116,  115,  114,  113,  112,  111,  110,  109,  108,
      107,  106,  105,  104,  103,  102,   80,   77,  101,  100,
       99,   98,   95,   94,   93,   92,   91,   90,   89,   88,
       87,   86,   85,   84,   83,   82,   51,   79,   43,   40,
       76,   71,   70,   69,   68,   62,   61,   60,   59,   58,
       57,   56,   44,   54,   41,   41,   44,   45,   44,   43,
       41,   40,  143,    3,  143,  143,  143,  143,  143,  143,

      143,  143,  143,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  143,  143,  143,  143,  143,  143,
      143,  143,  143,  143,  143,  143
    }

Definition at line 414 of file scan.c.

int yy_start = 0 [static]
 

Definition at line 492 of file scan.c.

FILE* yyin = (FILE *) 0
 

Definition at line 308 of file scan.c.

FILE* yyin
 

Definition at line 308 of file scan.c.

int yyleng
 

Definition at line 306 of file scan.c.

int yyleng
 

Definition at line 306 of file scan.c.

FILE * yyout = (FILE *) 0
 

Definition at line 308 of file scan.c.

FILE * yyout
 

Definition at line 308 of file scan.c.

YY_CHAR* yytext
 

Definition at line 305 of file scan.c.

YY_CHAR* yytext
 

Definition at line 305 of file scan.c.


Generated on Fri Apr 14 22:59:49 2006 for minix by  doxygen 1.4.6