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

Diff of /trunk/jscoverage-server.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 427 by siliconforks, Wed Feb 18 16:08:33 2009 UTC
# Line 1  Line 1 
1  /*  /*
2      jscoverage-server.c - JSCoverage server main routine      jscoverage-server.c - JSCoverage server main routine
3      Copyright (C) 2008 siliconforks.com      Copyright (C) 2008, 2009 siliconforks.com
4    
5      This program is free software; you can redistribute it and/or modify      This program is free software; you can redistribute it and/or modify
6      it under the terms of the GNU General Public License as published by      it under the terms of the GNU General Public License as published by
# 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 1163  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.311  
changed lines
  Added in v.427

  ViewVC Help
Powered by ViewVC 1.1.24