mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
only one define/undefine/include per option
This commit is contained in:
parent
2469c36302
commit
8e030089a7
2 changed files with 14 additions and 5 deletions
|
@ -57,8 +57,8 @@ Set code generation options. See \fBCODE GENERATION OPTIONS\fP for details.
|
|||
Compile only, do not link. Can be used in either progs.src or separate
|
||||
compilation modes.
|
||||
.TP
|
||||
.B \-D, \-\-define SYMBOL[=VAL],...
|
||||
Define symbols for the preprocessor, if it is in use.
|
||||
.B \-D, \-\-define SYMBOL[=VAL]
|
||||
Define a ymbol for the preprocessor, if it is in use.
|
||||
.TP
|
||||
.B \-F, \-\-files
|
||||
Generate files.dat. This list is created by checking the parameters to the
|
||||
|
@ -70,7 +70,7 @@ Generate debugging info. Synonym for \fB\-\-code debug\fP.
|
|||
.B \-h, \-\-help
|
||||
Show summary of options.
|
||||
.TP
|
||||
.B \-I, \-\-include DIR,...
|
||||
.B \-I, \-\-include DIR
|
||||
Add DIR to the list of directories for the preprocessor to search when looking
|
||||
for include files.
|
||||
.TP
|
||||
|
@ -109,8 +109,8 @@ Do not delete temporary files.
|
|||
.B \-s, \-\-source DIR
|
||||
look for progs.src in DIR instead of the current directory.
|
||||
.TP
|
||||
.B \-U, \-\-undefine SYMBOL,...
|
||||
Undefine preprocessor symbols, if the preprocessor is in use.
|
||||
.B \-U, \-\-undefine SYMBOL
|
||||
Undefine a preprocessor symbol, if the preprocessor is in use.
|
||||
.TP
|
||||
.B \-V, \-\-version
|
||||
Show the version of qfcc.
|
||||
|
|
|
@ -350,6 +350,8 @@ DecodeArgs (int argc, char **argv)
|
|||
options.save_temps = true;
|
||||
break;
|
||||
case 'D':{ // defines for cpp
|
||||
add_cpp_def (nva ("%s%s", "-D", optarg));
|
||||
#if 0
|
||||
char *opts = strdup (optarg);
|
||||
char *temp = strtok (opts, ",");
|
||||
|
||||
|
@ -358,9 +360,12 @@ DecodeArgs (int argc, char **argv)
|
|||
temp = strtok (NULL, ",");
|
||||
}
|
||||
free (opts);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case 'I':{ // includes
|
||||
add_cpp_def (nva ("%s%s", "-I", optarg));
|
||||
#if 0
|
||||
char *opts = strdup (optarg);
|
||||
char *temp = strtok (opts, ",");
|
||||
|
||||
|
@ -369,9 +374,12 @@ DecodeArgs (int argc, char **argv)
|
|||
temp = strtok (NULL, ",");
|
||||
}
|
||||
free (opts);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case 'U':{ // undefines
|
||||
add_cpp_def (nva ("%s%s", "-U", optarg));
|
||||
#if 0
|
||||
char *opts = strdup (optarg);
|
||||
char *temp = strtok (opts, ",");
|
||||
|
||||
|
@ -380,6 +388,7 @@ DecodeArgs (int argc, char **argv)
|
|||
temp = strtok (NULL, ",");
|
||||
}
|
||||
free (opts);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case 'M':
|
||||
|
|
Loading…
Reference in a new issue