|
Lines 147-152
Link Here
|
| 147 |
FALSE, /* --tag-relative */ |
147 |
FALSE, /* --tag-relative */ |
| 148 |
FALSE, /* --totals */ |
148 |
FALSE, /* --totals */ |
| 149 |
FALSE, /* --line-directives */ |
149 |
FALSE, /* --line-directives */ |
|
|
150 |
NULL, /* --buildroot */ |
| 150 |
#ifdef DEBUG |
151 |
#ifdef DEBUG |
| 151 |
0, 0 /* -D, -b */ |
152 |
0, 0 /* -D, -b */ |
| 152 |
#endif |
153 |
#endif |
|
Lines 267-272
Link Here
|
| 267 |
{0," Should paths be relative to location of tag file [no; yes when -e]?"}, |
268 |
{0," Should paths be relative to location of tag file [no; yes when -e]?"}, |
| 268 |
{1," --totals=[yes|no]"}, |
269 |
{1," --totals=[yes|no]"}, |
| 269 |
{1," Print statistics about source and tag files [no]."}, |
270 |
{1," Print statistics about source and tag files [no]."}, |
|
|
271 |
{1," --buildroot=path"}, |
| 272 |
{1," Base directory to strip from file names."}, |
| 270 |
{1," --verbose=[yes|no]"}, |
273 |
{1," --verbose=[yes|no]"}, |
| 271 |
{1," Enable verbose messages describing actions on each source file."}, |
274 |
{1," Enable verbose messages describing actions on each source file."}, |
| 272 |
{1," --version"}, |
275 |
{1," --version"}, |
|
Lines 859-864
Link Here
|
| 859 |
} |
862 |
} |
| 860 |
} |
863 |
} |
| 861 |
|
864 |
|
|
|
865 |
static void processBuildrootOption ( |
| 866 |
const char *const option, const char *const parameter) |
| 867 |
{ |
| 868 |
freeString (&Option.buildRoot); |
| 869 |
if (! isAbsolutePath(parameter)) |
| 870 |
error (FATAL, "Value for \"%s\" must be absolute path",option); |
| 871 |
Option.buildRoot = stringCopy (parameter); |
| 872 |
} |
| 873 |
|
| 862 |
static void processFilterTerminatorOption ( |
874 |
static void processFilterTerminatorOption ( |
| 863 |
const char *const option __unused__, const char *const parameter) |
875 |
const char *const option __unused__, const char *const parameter) |
| 864 |
{ |
876 |
{ |
|
Lines 1362-1367
Link Here
|
| 1362 |
*/ |
1374 |
*/ |
| 1363 |
|
1375 |
|
| 1364 |
static parametricOption ParametricOptions [] = { |
1376 |
static parametricOption ParametricOptions [] = { |
|
|
1377 |
{ "buildroot", processBuildrootOption, TRUE }, |
| 1365 |
{ "etags-include", processEtagsInclude, FALSE }, |
1378 |
{ "etags-include", processEtagsInclude, FALSE }, |
| 1366 |
{ "exclude", processExcludeOption, FALSE }, |
1379 |
{ "exclude", processExcludeOption, FALSE }, |
| 1367 |
{ "excmd", processExcmdOption, FALSE }, |
1380 |
{ "excmd", processExcmdOption, FALSE }, |
|
Lines 1767-1772
Link Here
|
| 1767 |
freeString (&Option.tagFileName); |
1780 |
freeString (&Option.tagFileName); |
| 1768 |
freeString (&Option.fileList); |
1781 |
freeString (&Option.fileList); |
| 1769 |
freeString (&Option.filterTerminator); |
1782 |
freeString (&Option.filterTerminator); |
|
|
1783 |
freeString (&Option.buildRoot); |
| 1770 |
|
1784 |
|
| 1771 |
freeList (&Excluded); |
1785 |
freeList (&Excluded); |
| 1772 |
freeList (&Option.ignore); |
1786 |
freeList (&Option.ignore); |