testexecmgmt/ucc/BinInternal/rpcgen/rpc_scan.h
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     1 /*********************************************************************
       
     2  * RPC for the Windows NT Operating System
       
     3  * 1993 by Martin F. Gergeleit
       
     4  * Users may use, copy or modify Sun RPC for the Windows NT Operating 
       
     5  * System according to the Sun copyright below.
       
     6  *
       
     7  * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO 
       
     8  * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE 
       
     9  * USE OF. USE ENTIRELY AT YOUR OWN RISK!!!
       
    10  *********************************************************************/
       
    11 
       
    12 /* @(#)rpc_scan.h	2.1 88/08/01 4.0 RPCSRC */
       
    13 /*
       
    14  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
       
    15  * unrestricted use provided that this legend is included on all tape
       
    16  * media and as a part of the software program in whole or part.  Users
       
    17  * may copy or modify Sun RPC without charge, but are not authorized
       
    18  * to license or distribute it to anyone else except as part of a product or
       
    19  * program developed by the user.
       
    20  * 
       
    21  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
       
    22  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
       
    23  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
       
    24  * 
       
    25  * Sun RPC is provided with no support and without any obligation on the
       
    26  * part of Sun Microsystems, Inc. to assist in its use, correction,
       
    27  * modification or enhancement.
       
    28  * 
       
    29  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
       
    30  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
       
    31  * OR ANY PART THEREOF.
       
    32  * 
       
    33  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
       
    34  * or profits or other special, indirect and consequential damages, even if
       
    35  * Sun has been advised of the possibility of such damages.
       
    36  * 
       
    37  * Sun Microsystems, Inc.
       
    38  * 2550 Garcia Avenue
       
    39  * Mountain View, California  94043
       
    40  */
       
    41 /* @(#)rpc_scan.h 1.3 87/03/09 (C) 1987 SMI */
       
    42 
       
    43 /*
       
    44  * rpc_scan.h, Definitions for the RPCL scanner 
       
    45  * Copyright (C) 1987, Sun Microsystems, Inc. 
       
    46  */
       
    47 
       
    48 /*
       
    49  * kinds of tokens 
       
    50  */
       
    51 enum tok_kind {
       
    52 	TOK_IDENT,
       
    53 	TOK_STRCONST,
       
    54 	TOK_LPAREN,
       
    55 	TOK_RPAREN,
       
    56 	TOK_LBRACE,
       
    57 	TOK_RBRACE,
       
    58 	TOK_LBRACKET,
       
    59 	TOK_RBRACKET,
       
    60 	TOK_LANGLE,
       
    61 	TOK_RANGLE,
       
    62 	TOK_STAR,
       
    63 	TOK_COMMA,
       
    64 	TOK_EQUAL,
       
    65 	TOK_COLON,
       
    66 	TOK_SEMICOLON,
       
    67 	TOK_CONST,
       
    68 	TOK_STRUCT,
       
    69 	TOK_UNION,
       
    70 	TOK_SWITCH,
       
    71 	TOK_CASE,
       
    72 	TOK_DEFAULT,
       
    73 	TOK_ENUM,
       
    74 	TOK_TYPEDEF,
       
    75 	TOK_INT,
       
    76 	TOK_SHORT,
       
    77 	TOK_LONG,
       
    78 	TOK_UNSIGNED,
       
    79 	TOK_FLOAT,
       
    80 	TOK_DOUBLE,
       
    81 	TOK_OPAQUE,
       
    82 	TOK_CHAR,
       
    83 	TOK_STRING,
       
    84 	TOK_BOOL,
       
    85 	TOK_VOID,
       
    86 	TOK_PROGRAM,
       
    87 	TOK_VERSION,
       
    88 	TOK_EOF
       
    89 };
       
    90 typedef enum tok_kind tok_kind;
       
    91 
       
    92 /*
       
    93  * a token 
       
    94  */
       
    95 struct token {
       
    96 	tok_kind kind;
       
    97 	char *str;
       
    98 };
       
    99 typedef struct token token;
       
   100 
       
   101 
       
   102 /*
       
   103  * routine interface 
       
   104  */
       
   105 void scanprint();
       
   106 void scan();
       
   107 void scan2();
       
   108 void scan3();
       
   109 void scan_num();
       
   110 void peek();
       
   111 int peekscan();
       
   112 void get_token();