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

Diff of /trunk/jscoverage.c

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

revision 311 by siliconforks, Mon Oct 13 17:51:29 2008 UTC revision 361 by siliconforks, Sun Oct 26 05:28:03 2008 UTC
# Line 61  Line 61 
61      else if (strcmp(argv[i], "--no-highlight") == 0) {      else if (strcmp(argv[i], "--no-highlight") == 0) {
62        jscoverage_highlight = false;        jscoverage_highlight = false;
63      }      }
64        else if (strcmp(argv[i], "--mozilla") == 0) {
65          jscoverage_mozilla = true;
66          jscoverage_set_js_version("180");
67        }
68      else if (strcmp(argv[i], "--no-instrument") == 0) {      else if (strcmp(argv[i], "--no-instrument") == 0) {
69        i++;        i++;
70        if (i == argc) {        if (i == argc) {
# Line 95  Line 99 
99      else if (strncmp(argv[i], "--encoding=", 11) == 0) {      else if (strncmp(argv[i], "--encoding=", 11) == 0) {
100        jscoverage_encoding = argv[i] + 11;        jscoverage_encoding = argv[i] + 11;
101      }      }
102        else if (strcmp(argv[i], "--js-version") == 0) {
103          i++;
104          if (i == argc) {
105            fatal_command_line("--js-version: option requires an argument");
106          }
107          jscoverage_set_js_version(argv[i]);
108        }
109        else if (strncmp(argv[i], "--js-version=", 13) == 0) {
110          jscoverage_set_js_version(argv[i] + 13);
111        }
112      else if (strncmp(argv[i], "-", 1) == 0) {      else if (strncmp(argv[i], "-", 1) == 0) {
113        fatal_command_line("unrecognized option `%s'", argv[i]);        fatal_command_line("unrecognized option `%s'", argv[i]);
114      }      }

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

  ViewVC Help
Powered by ViewVC 1.1.24