/[jscoverage]/tags/jscoverage-0.4/jscoverage-server.c
ViewVC logotype

Diff of /tags/jscoverage-0.4/jscoverage-server.c

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

revision 278 by siliconforks, Sat Oct 11 22:38:50 2008 UTC revision 339 by siliconforks, Fri Oct 24 16:13:57 2008 UTC
# Line 444  Line 444 
444      case '\t':      case '\t':
445        fputs("\\t", f);        fputs("\\t", f);
446        break;        break;
447        /* IE doesn't support this */
448        /*
449      case '\v':      case '\v':
450        fputs("\\v", f);        fputs("\\v", f);
451        break;        break;
452        */
453      case '"':      case '"':
454        fputs("\\\"", f);        fputs("\\\"", f);
455        break;        break;
# Line 853  Line 856 
856      free(encoding);      free(encoding);
857      Stream_delete(input_stream);      Stream_delete(input_stream);
858      if (result == JSCOVERAGE_ERROR_ENCODING_NOT_SUPPORTED) {      if (result == JSCOVERAGE_ERROR_ENCODING_NOT_SUPPORTED) {
859        send_response(client_exchange, 502, "Encoding not supported\n");        send_response(client_exchange, 500, "Encoding not supported\n");
860        goto done;        goto done;
861      }      }
862      else if (result == JSCOVERAGE_ERROR_INVALID_BYTE_SEQUENCE) {      else if (result == JSCOVERAGE_ERROR_INVALID_BYTE_SEQUENCE) {
# Line 1111  Line 1114 
1114        exit(EXIT_SUCCESS);        exit(EXIT_SUCCESS);
1115      }      }
1116      else if (strcmp(argv[i], "-V") == 0 || strcmp(argv[i], "--version") == 0) {      else if (strcmp(argv[i], "-V") == 0 || strcmp(argv[i], "--version") == 0) {
1117        printf("jscoverage-server %s\n", VERSION);        version();
       exit(EXIT_SUCCESS);  
1118      }      }
1119      else if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--verbose") == 0) {      else if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--verbose") == 0) {
1120        verbose = 1;        verbose = 1;
# Line 1164  Line 1166 
1166        ip_address = argv[i] + 13;        ip_address = argv[i] + 13;
1167      }      }
1168    
1169        else if (strcmp(argv[i], "--js-version") == 0) {
1170          i++;
1171          if (i == argc) {
1172            fatal_command_line("--js-version: option requires an argument");
1173          }
1174          jscoverage_set_js_version(argv[i]);
1175        }
1176        else if (strncmp(argv[i], "--js-version=", 13) == 0) {
1177          jscoverage_set_js_version(argv[i] + 13);
1178        }
1179    
1180      else if (strcmp(argv[i], "--no-highlight") == 0) {      else if (strcmp(argv[i], "--no-highlight") == 0) {
1181        jscoverage_highlight = false;        jscoverage_highlight = false;
1182      }      }

Legend:
Removed from v.278  
changed lines
  Added in v.339

  ViewVC Help
Powered by ViewVC 1.1.24