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

Diff of /trunk/jscoverage.c

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

revision 107 by siliconforks, Sat May 31 07:38:46 2008 UTC revision 174 by siliconforks, Sat Sep 20 23:27:14 2008 UTC
# Line 23  Line 23 
23  #include <stdlib.h>  #include <stdlib.h>
24  #include <string.h>  #include <string.h>
25    
26    #include "global.h"
27  #include "instrument.h"  #include "instrument.h"
28  #include "instrument-js.h"  #include "instrument-js.h"
29  #include "resource-manager.h"  #include "resource-manager.h"
30  #include "util.h"  #include "util.h"
31    
32    const char * jscoverage_encoding = "ISO-8859-1";
33    
34  int main(int argc, char ** argv) {  int main(int argc, char ** argv) {
35    int verbose = 0;    int verbose = 0;
36    
# Line 79  Line 82 
82        exclude[num_exclude] = argv[i] + 10;        exclude[num_exclude] = argv[i] + 10;
83        num_exclude++;        num_exclude++;
84      }      }
85        else if (strcmp(argv[i], "--encoding") == 0) {
86          i++;
87          if (i == argc) {
88            fatal("--encoding: option requires an argument");
89          }
90          jscoverage_encoding = argv[i];
91        }
92        else if (strncmp(argv[i], "--encoding=", 11) == 0) {
93          jscoverage_encoding = argv[i] + 11;
94        }
95      else if (strncmp(argv[i], "-", 1) == 0) {      else if (strncmp(argv[i], "-", 1) == 0) {
96        fatal("unrecognized option `%s'", argv[i]);        fatal("unrecognized option `%s'", argv[i]);
97      }      }

Legend:
Removed from v.107  
changed lines
  Added in v.174

  ViewVC Help
Powered by ViewVC 1.1.24