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 |
21 |
#include <stdlib.h> |
#include <stdlib.h> |
22 |
#include <string.h> |
#include <string.h> |
23 |
|
|
24 |
|
#include "config.h" |
25 |
#include "instrument.h" |
#include "instrument.h" |
26 |
#include "instrument-js.h" |
#include "instrument-js.h" |
27 |
#include "resource-manager.h" |
#include "resource-manager.h" |
101 |
|
|
102 |
jscoverage_init(); |
jscoverage_init(); |
103 |
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); |
|
104 |
jscoverage_cleanup(); |
jscoverage_cleanup(); |
105 |
|
|
106 |
free(source); |
free(source); |