Line | |
---|
1 | /*
|
---|
2 | Filtre pour doxygen :
|
---|
3 | - ajoute "using namespace SOPHYA;" dans les fichiers *.cc
|
---|
4 | */
|
---|
5 | #include <stdio.h>
|
---|
6 | #define LENLINE 4096
|
---|
7 |
|
---|
8 | int main(int narg,char *arg[])
|
---|
9 | {
|
---|
10 | FILE *file;
|
---|
11 | char line[LENLINE];
|
---|
12 |
|
---|
13 | /* Checks */
|
---|
14 | if ( narg <= 1 ) {
|
---|
15 | strcpy(line,"No argument for dox_filter\n");
|
---|
16 | fputs(line,stdout);
|
---|
17 | exit(-1);
|
---|
18 | }
|
---|
19 | if( ( file = fopen(arg[1],"r") ) == NULL ) {
|
---|
20 | sprintf(line,"File %s could not be opened\n",arg[1]);
|
---|
21 | fputs(line,stdout);
|
---|
22 | exit(-2);
|
---|
23 | }
|
---|
24 |
|
---|
25 | /* filter */
|
---|
26 | strcpy(line,"using namespace SOPHYA;\n");
|
---|
27 | fputs(line,stdout);
|
---|
28 | while ( fgets(line,LENLINE,file) != NULL ) fputs(line,stdout);
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.