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

Diff of /trunk/instrument.c

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

revision 95 by siliconforks, Wed May 7 22:50:00 2008 UTC revision 124 by siliconforks, Sun Jun 1 14:35:47 2008 UTC
# 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 "instrument.h"  #include "instrument.h"
23    
24  #include <assert.h>  #include <assert.h>
# Line 50  Line 52 
52      return FILE_TYPE_HTML;      return FILE_TYPE_HTML;
53    }    }
54    else {    else {
55      return FILE_TYPE_UNKNOWN;      return FILE_TYPE_OTHER;
56    }    }
57  }  }
58    
# Line 81  Line 83 
83    if (instrumenting) {    if (instrumenting) {
84      enum FileType file_type = get_file_type(source_file);      enum FileType file_type = get_file_type(source_file);
85      switch (file_type) {      switch (file_type) {
86      case FILE_TYPE_UNKNOWN:      case FILE_TYPE_OTHER:
87      case FILE_TYPE_HTML:      case FILE_TYPE_HTML:
88        copy_file(source_file, destination_file);        copy_file(source_file, destination_file);
89        break;        break;
# Line 204  Line 206 
206    }    }
207    free_dir_list(list);    free_dir_list(list);
208  }  }
   
 void jscoverage_copy_resources(const char * destination_directory) {  
   copy_resource("jscoverage.html", destination_directory);  
   copy_resource("jscoverage.css", destination_directory);  
   copy_resource("jscoverage.js", destination_directory);  
   copy_resource("jscoverage-throbber.gif", destination_directory);  
   copy_resource("jscoverage-sh_main.js", destination_directory);  
   copy_resource("jscoverage-sh_javascript.js", destination_directory);  
   copy_resource("jscoverage-sh_nedit.css", destination_directory);  
 }  

Legend:
Removed from v.95  
changed lines
  Added in v.124

  ViewVC Help
Powered by ViewVC 1.1.24