Difference for common/arch.c from version 1.7 to 1.8


version 1.7 version 1.8
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_arch_c =   * static char *rcsid_arch_c =
  *   "$Id: arch.c,v 1.7 2001/04/09 00:57:13 michtoen Exp $";   *   "$Id: arch.c,v 1.8 2001/04/09 06:59:46 mwedel Exp $";
  */   */
   
 /*  /*
Line 25
 
Line 25
   
     The author can be reached via e-mail to mwedel@scruz.net      The author can be reached via e-mail to mwedel@scruz.net
 */  */
   
 #include <global.h>  #include <global.h>
 #include <arch.h>  #include <arch.h>
 #include <funcpoint.h>  #include <funcpoint.h>
 #include <loader.h>  #include <loader.h>
   
 /* IF TIME_ARCH_LOAD set, does a little timing on the archetype load. */  /* IF set, does a little timing on the archetype load. */
 #ifdef TIME_ARCH_LOAD  #define TIME_ARCH_LOAD 0
 #ifdef GETTIMEOFDAY_TWO_ARGS  
 #define GETTIMEOFDAY(last_time) gettimeofday(last_time, (struct timezone *) NULL);  
 #else  
 #define GETTIMEOFDAY(last_time) gettimeofday(last_time);  
 #endif  
 #endif  
   
 static archetype *arch_table[ARCHTABLE];  static archetype *arch_table[ARCHTABLE];
 int arch_cmp=0; /* How many strcmp's */  int arch_cmp=0; /* How many strcmp's */
Line 269
 
Line 264
     FILE *fp;      FILE *fp;
     char filename[MAX_BUF];      char filename[MAX_BUF];
     int comp;      int comp;
 #ifdef TIME_ARCH_LOAD  #if TIME_ARCH_LOAD
     struct timeval tv1,tv2;      struct timeval tv1,tv2;
 #endif  #endif
   
Line 281
 
Line 276
     }      }
     clear_archetable();      clear_archetable();
     LOG(llevDebug," arch-pass 1...");      LOG(llevDebug," arch-pass 1...");
 #ifdef TIME_ARCH_LOAD  #if TIME_ARCH_LOAD
  GETTIMEOFDAY(&tv1);   GETTIMEOFDAY(&tv1);
 #endif  #endif
     first_arch_pass(fp);      first_arch_pass(fp);
 #ifdef TIME_ARCH_LOAD  #if TIME_ARCH_LOAD
     { int sec, usec;      { int sec, usec;
  GETTIMEOFDAY(&tv2);   GETTIMEOFDAY(&tv2);
  sec = tv2.tv_sec - tv1.tv_sec;   sec = tv2.tv_sec - tv1.tv_sec;


Legend:
line(s) removed in v.1.7 
line(s) changed
 line(s) added in v.1.8

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:05