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

Diff of /trunk/main.c

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

revision 2 by siliconforks, Wed Aug 1 13:51:53 2007 UTC revision 107 by siliconforks, Sat May 31 07:38:46 2008 UTC
# Line 1  Line 1 
1  /*  /*
2      main.c - JSCoverage main routine      main.c - JSCoverage main routine
3      Copyright (C) 2007 siliconforks.com      Copyright (C) 2007, 2008 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 17  Line 17 
17      51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.      51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */  */
19    
20    #include <config.h>
21    
22  #include <stdio.h>  #include <stdio.h>
23  #include <stdlib.h>  #include <stdlib.h>
24  #include <string.h>  #include <string.h>
# Line 35  Line 37 
37    char * source = NULL;    char * source = NULL;
38    char * destination = NULL;    char * destination = NULL;
39    
40    char ** no_instrument = xmalloc((argc - 1) * sizeof(char *));    char ** no_instrument = xnew(char *, argc - 1);
41    int num_no_instrument = 0;    int num_no_instrument = 0;
42    
43    char ** exclude = xmalloc((argc - 1) * sizeof(char *));    char ** exclude = xnew(char *, argc - 1);
44    int num_exclude = 0;    int num_exclude = 0;
45    
46    for (int i = 1; i < argc; i++) {    for (int i = 1; i < argc; i++) {
# Line 100  Line 102 
102    
103    jscoverage_init();    jscoverage_init();
104    jscoverage_instrument(source, destination, verbose, exclude, num_exclude, no_instrument, num_no_instrument);    jscoverage_instrument(source, destination, verbose, exclude, num_exclude, no_instrument, num_no_instrument);
   jscoverage_copy_resources(destination);  
105    jscoverage_cleanup();    jscoverage_cleanup();
106    
107    free(source);    free(source);

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

  ViewVC Help
Powered by ViewVC 1.1.24