/[jscoverage]/trunk/util.c
ViewVC logotype

Diff of /trunk/util.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 364 by siliconforks, Sun Oct 26 21:08:56 2008 UTC revision 370 by siliconforks, Mon Oct 27 20:34:27 2008 UTC
# Line 61  Line 61 
61    exit(EXIT_FAILURE);    exit(EXIT_FAILURE);
62  }  }
63    
64    void fatal_source(const char * source_file, unsigned int line_number, const char * format, ...) {
65      fprintf(stderr, "%s:%s:%u: ", program, source_file, line_number);
66      va_list ap;
67      va_start(ap, format);
68      vfprintf(stderr, format, ap);
69      va_end(ap);
70      fputc('\n', stderr);
71      exit(EXIT_FAILURE);
72    }
73    
74  void version(void) {  void version(void) {
75    printf("%s %s\n", program, VERSION);    printf("%s %s\n", program, VERSION);
76    printf("Character encoding support: ");    printf("Character encoding support: ");

Legend:
Removed from v.364  
changed lines
  Added in v.370

  ViewVC Help
Powered by ViewVC 1.1.24