[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.5 and 1.6

version 1.5, 2001/11/07 18:44:28 version 1.6, 2001/11/24 19:17:47
Line 188 
Line 188 
                         decls->decl = dec;                          decls->decl = dec;
                         tailp = &decls->next;                          tailp = &decls->next;
                         /* get args */                          /* get args */
                         while(peekscan(TOK_COMMA, &tok)) {                          while (peekscan(TOK_COMMA, &tok)) {
                           num_args++;                            num_args++;
                           get_prog_declaration(&dec, DEF_STRUCT,                            get_prog_declaration(&dec, DEF_STRUCT,
                                                num_args);                                                 num_args);
Line 326 
Line 326 
             cases->case_name = tok.str;              cases->case_name = tok.str;
             scan(TOK_COLON, &tok);              scan(TOK_COLON, &tok);
   
           }while(peekscan(TOK_CASE,&tok));            } while (peekscan(TOK_CASE,&tok));
       }        }
     else      else
       if(flag)        if(flag)
Line 359 
Line 359 
   }    }
 }  }
   
 static char* reserved_words[] = {  static char *reserved_words[] = {
         "array",          "array",
         "bytes",          "bytes",
         "destroy",          "destroy",
Line 375 
Line 375 
         NULL          NULL
 };  };
   
 static char* reserved_types[] = {  static char *reserved_types[] = {
         "opaque",          "opaque",
         "string",          "string",
         NULL          NULL
Line 385 
Line 385 
    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 check_type_name( name, new_type )
 int new_type;  int new_type;
 char* name;  char *name;
 {  {
   int i;    int i;
   char tmp[100];    char tmp[100];
Line 504 
Line 504 
                 sprintf(name, "%s%d", ARGNAME, num); /* default name of argument */                  sprintf(name, "%s%d", ARGNAME, num); /* default name of argument */
   
         dec->name = (char *)strdup(name);          dec->name = (char *)strdup(name);
   
         if (streq(dec->type, "void")) {          if (streq(dec->type, "void")) {
                 return;                  return;
         }          }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6