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

Diff for /src/usr.bin/rpcgen/rpc_util.c between version 1.3 and 1.4

version 1.3, 2001/07/17 02:23:59 version 1.4, 2001/07/18 22:26:00
Line 41 
Line 41 
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <unistd.h>  
 #include <ctype.h>  #include <ctype.h>
 #include "rpc_scan.h"  #include "rpc_scan.h"
 #include "rpc_parse.h"  #include "rpc_parse.h"
Line 69 
Line 68 
 /*  /*
  * Reinitialize the world   * Reinitialize the world
  */   */
 void  
 reinitialize()  reinitialize()
 {  {
         memset(curline, 0, MAXLINESIZE);          memset(curline, 0, MAXLINESIZE);
Line 81 
Line 79 
 /*  /*
  * string equality   * string equality
  */   */
 int  
 streq(a, b)  streq(a, b)
         char *a;          char *a;
         char *b;          char *b;
Line 127 
Line 124 
         *l = lst;          *l = lst;
 }  }
   
 static int  static
 findit(def, type)  findit(def, type)
         definition *def;          definition *def;
         char *type;          char *type;
Line 196 
Line 193 
         }          }
 }  }
   
 static int  static
 typedefed(def, type)  typedefed(def, type)
         definition *def;          definition *def;
         char *type;          char *type;
Line 208 
Line 205 
         }          }
 }  }
   
 int  
 isvectordef(type, rel)  isvectordef(type, rel)
         char *type;          char *type;
         relation rel;          relation rel;
Line 282 
Line 278 
  * Something went wrong, unlink any files that we may have created and then   * Something went wrong, unlink any files that we may have created and then
  * die.   * die.
  */   */
 void  
 crash()  crash()
 {  {
         int i;          int i;
Line 405 
Line 400 
         return (sp->str);          return (sp->str);
 }  }
   
 static void  static
 printbuf()  printbuf()
 {  {
         char c;          char c;
Line 414 
Line 409 
   
 #       define TABSIZE 4  #       define TABSIZE 4
   
         for (i = 0; (c = curline[i]) != '\0'; i++) {          for (i = 0; c = curline[i]; i++) {
                 if (c == '\t') {                  if (c == '\t') {
                         cnt = 8 - (i % TABSIZE);                          cnt = 8 - (i % TABSIZE);
                         c = ' ';                          c = ' ';

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