View source code
Display the source code in dmd/root/response.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function dmd.root.response.response_expand

#include int response_expand(int *pargc,char ***pargv);

bool response_expand (
  ref dmd.root.array.Array!(const(char)*) args
);

Expand any response files in command line. Response files are arguments that look like: @NAME The name is first searched for in the environment. If it is not there, it is searched for as a file name. Arguments are separated by spaces, tabs, or newlines. These can be imbedded within arguments by enclosing the argument in '' or "". Recursively expands nested response files.

To use, put the line: response_expand(&argc,&argv); as the first executable statement in main(int argc, char **argv). argc and argv are adjusted to be the new command line arguments after response file expansion.

Digital Mars's MAKE program can be notified that a program can accept long command lines via environment variables by preceding the rule line for the program with a *.

Returns

0 success !=0 failure (argc, argv unchanged)

Authors

Walter Bright

License

Boost License 1.0