Commit Graph

30 Commits

Author SHA1 Message Date
Boie, Andrew P
0da6ddc169 add support for '@' parameters
These indicate to the compiler that additional command line options
should be read from a text file. If encountered, read the file,
tokenize any arguments, and if any are found, do an in-place replacement
of the '@' parameter with the arguments within the file.

args_insert() added to insert a set of arguments into a position within
another set of arguments.

args_init_from_gcc_atfile() reads and processes the argument files using the
quoting/escape conventions that GCC expects.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2012-08-07 15:41:46 +02:00
Joel Rosdahl
a213940718 Revert "add support for '@' parameters"
This reverts commit e11912151c, which was
pushed erroneously.
2012-08-01 16:24:29 +02:00
Boie, Andrew P
e11912151c add support for '@' parameters
These indicate to the compiler that additional command line options
should be read from a text file. If encountered, read the file,
tokenize any arguments, and if any are found, do an in-place replacement
of the '@' parameter with the arguments within the file.

args_insert() added to insert a set of arguments into a position within
another set of arguments.

args_init_from_string() has been improved so that any character may be
included by prefixing that character with a backslash, and support for
quoted arguments which pass special characters within the quotation marks
unmodified.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2012-08-01 09:57:29 +02:00
Joel Rosdahl
0a6b820cc4 Use bool, true and false for boolean values 2010-08-29 13:26:55 +02:00
Joel Rosdahl
1b298bb748 Remove includes that are redundant after system.h introduction 2010-08-29 12:02:44 +02:00
Joel Rosdahl
0812885d9d Fix bug in args_strip() 2010-08-22 12:31:04 +02:00
Joel Rosdahl
ff2089c914 Use reentrant strtok_r() instead of strtok() 2010-08-14 21:19:32 +02:00
Joel Rosdahl
e0f5d3aa58 Make args_init_from_string() split on more whitespace characters 2010-08-14 21:14:08 +02:00
Joel Rosdahl
861184b725 Add args_set() function 2010-08-14 21:14:07 +02:00
Joel Rosdahl
530dfe7c11 Format code to use a more consistent coding style 2010-08-01 17:20:33 +02:00
Joel Rosdahl
a98cbbc465 Introduce and use function-like macros str_eq() and str_startswith() 2010-08-01 17:20:15 +02:00
Joel Rosdahl
0aee1a3498 Allow argument to args_free() to be NULL 2010-07-17 19:08:40 +02:00
Joel Rosdahl
4e07d0ea7d Implement args_extend function 2010-07-17 18:49:12 +02:00
Joel Rosdahl
d907a7c966 Fix off-by-one error in args_to_string 2010-07-17 18:32:02 +02:00
Joel Rosdahl
ca8330398f Get rid of the ARGS typedef; use struct args explicitly 2010-07-17 18:31:56 +02:00
Joel Rosdahl
033d21e329 Add CHECK macros for ARGS 2010-07-16 14:40:21 +02:00
Joel Rosdahl
d674630d24 Add args_init_from_string function 2010-07-15 19:20:33 +02:00
Joel Rosdahl
2d3de36d24 Add args_copy function 2010-06-02 23:28:36 +02:00
Joel Rosdahl
dd153c944a Fix handling of -finput-charset when CCACHE_CPP2 is in effect 2010-06-02 20:25:36 +02:00
Joel Rosdahl
e1c9e3f330 Switch license to GPLv3+ 2010-04-22 22:47:16 +02:00
Joel Rosdahl
ecf85fc492 Remove standard includes from ccache.h 2010-02-17 21:03:27 +01:00
Joel Rosdahl
dca11d321b Remove trailing whitespace 2010-01-05 18:53:01 +01:00
Andrew Tridgell
8b50a88c21 use error checking alloc functions in a few more places 2004-09-06 14:47:19 +02:00
Andrew Tridgell
d77d4396a7 added support for CCACHE_PREFIX option 2003-02-16 03:28:35 +01:00
Andrew Tridgell
70b4385dbe added args_strip() function for stripping --cacche-* options in
failed()
2003-02-08 06:49:22 +01:00
Andrew Tridgell
4bf504a663 fixed some warnings 2003-01-06 03:10:15 +01:00
Andrew Tridgell
65042f0269 fixed a couple of minor memory leaks 2002-04-01 05:58:57 +02:00
Andrew Tridgell
db1f80c11f added args_pop() for neater args processing 2002-03-27 09:40:13 +01:00
Andrew Tridgell
b97c2c60e2 added some docs and comments ... 2002-03-27 00:58:31 +01:00
Andrew Tridgell
f42859a15c first version of C compilercache 2002-03-26 15:46:43 +01:00