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

Diff of /trunk/util.c

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

revision 191 by siliconforks, Tue Sep 23 03:49:29 2008 UTC revision 311 by siliconforks, Mon Oct 13 17:51:29 2008 UTC
# Line 61  Line 61 
61    exit(EXIT_FAILURE);    exit(EXIT_FAILURE);
62  }  }
63    
64    void version(void) {
65      printf("%s %s\n", program, VERSION);
66      printf("Character encoding support: ");
67    #if HAVE_ICONV
68      printf("iconv\n");
69    #elif HAVE_MULTIBYTETOWIDECHAR
70      printf("MultiByteToWideChar\n");
71    #else
72      printf("none\n");
73    #endif
74      exit(EXIT_SUCCESS);
75    }
76    
77  size_t addst(size_t x, size_t y) {  size_t addst(size_t x, size_t y) {
78    if (SIZE_MAX - x < y) {    if (SIZE_MAX - x < y) {
79      fatal("integer overflow");      fatal("integer overflow");

Legend:
Removed from v.191  
changed lines
  Added in v.311

  ViewVC Help
Powered by ViewVC 1.1.24