[BACK]Return to rpc_parse.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rpcgen

Diff for /src/usr.bin/rpcgen/rpc_parse.c between version 1.2 and 1.3

version 1.2, 1996/06/26 05:38:37 version 1.3, 2001/07/17 02:23:59
Line 48 
Line 48 
   
 #define ARGNAME "arg"  #define ARGNAME "arg"
   
 static isdefined __P((definition *));  static void isdefined __P((definition *));
 static def_struct __P((definition *));  static void def_struct __P((definition *));
 static def_program __P((definition *));  static void def_program __P((definition *));
 static def_enum __P((definition *));  static void def_enum __P((definition *));
 static def_const __P((definition *));  static void def_const __P((definition *));
 static def_union __P((definition *));  static void def_union __P((definition *));
 static def_typedef __P((definition *));  static void def_typedef __P((definition *));
 static get_declaration __P((declaration *, defkind));  static void get_declaration __P((declaration *, defkind));
 static get_prog_declaration __P((declaration *, defkind, int));  static void get_prog_declaration __P((declaration *, defkind, int));
 static get_type __P((char **, char **, defkind));  static void get_type __P((char **, char **, defkind));
 static unsigned_dec __P((char **));  static void unsigned_dec __P((char **));
   
 /*  /*
  * return the next definition you see   * return the next definition you see
Line 100 
Line 100 
         return (defp);          return (defp);
 }  }
   
 static  static void
 isdefined(defp)  isdefined(defp)
         definition *defp;          definition *defp;
 {  {
         STOREVAL(&defined, defp);          STOREVAL(&defined, defp);
 }  }
   
 static  static void
 def_struct(defp)  def_struct(defp)
         definition *defp;          definition *defp;
 {  {
Line 135 
Line 135 
         *tailp = NULL;          *tailp = NULL;
 }  }
   
 static  static void
 def_program(defp)  def_program(defp)
         definition *defp;          definition *defp;
 {  {
Line 241 
Line 241 
 }  }
   
   
 static  static void
 def_enum(defp)  def_enum(defp)
         definition *defp;          definition *defp;
 {  {
Line 271 
Line 271 
         *tailp = NULL;          *tailp = NULL;
 }  }
   
 static  static void
 def_const(defp)  def_const(defp)
         definition *defp;          definition *defp;
 {  {
Line 285 
Line 285 
         defp->def.co = tok.str;          defp->def.co = tok.str;
 }  }
   
 static  static void
 def_union(defp)  def_union(defp)
         definition *defp;          definition *defp;
 {  {
   token tok;    token tok;
   declaration dec;    declaration dec;
   case_list *cases,*tcase;    case_list *cases;
   case_list **tailp;    case_list **tailp;
   int flag;    int flag;
   
Line 383 
Line 383 
   
 /* check that the given name is not one that would eventually result in  /* check that the given name is not one that would eventually result in
    xdr routines that would conflict with internal XDR routines. */     xdr routines that would conflict with internal XDR routines. */
 static check_type_name( name, new_type )  static void
 int new_type;  check_type_name( name, new_type )
 char* name;          int new_type;
           char* name;
 {  {
   int i;    int i;
   char tmp[100];    char tmp[100];
Line 408 
Line 409 
   }    }
 }  }
   
 static  static void
 def_typedef(defp)  def_typedef(defp)
         definition *defp;          definition *defp;
 {  {
Line 424 
Line 425 
         defp->def.ty.array_max = dec.array_max;          defp->def.ty.array_max = dec.array_max;
 }  }
   
 static  static void
 get_declaration(dec, dkind)  get_declaration(dec, dkind)
         declaration *dec;          declaration *dec;
         defkind dkind;          defkind dkind;
Line 477 
Line 478 
         }          }
 }  }
   
 static  static void
 get_prog_declaration(dec, dkind, num)  get_prog_declaration(dec, dkind, num)
         declaration *dec;          declaration *dec;
         defkind dkind;          defkind dkind;
Line 546 
Line 547 
   
   
   
 static  static void
 get_type(prefixp, typep, dkind)  get_type(prefixp, typep, dkind)
         char **prefixp;          char **prefixp;
         char **typep;          char **typep;
Line 598 
Line 599 
         }          }
 }  }
   
 static  static void
 unsigned_dec(typep)  unsigned_dec(typep)
         char **typep;          char **typep;
 {  {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3