Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Space not allowed between -D command line option its argument #106

Open
ngwood opened this issue Jan 12, 2022 · 1 comment
Open

Space not allowed between -D command line option its argument #106

ngwood opened this issue Jan 12, 2022 · 1 comment

Comments

@ngwood
Copy link
Contributor

ngwood commented Jan 12, 2022

The manpage for admsXml suggests a space is allowed between a -D command line option and its argument.

       -D NAME
              predefine NAME as a macro, with definition `1'

       -D NAME=DEFINITION
              predefine NAME as a macro, with definition DEFINITION

Currently it isn't.

This is handled by adms_preprocessor_get_define_from_argv in preprocessorMain.c rather than the getlist_from_argv defined in admsXml.c.

@ngwood
Copy link
Contributor Author

ngwood commented Jan 13, 2022

It looks like both getlist_from_argv and adms_preprocessor_get_define_from_argv will need updating to accommodate this feature robustly. Also, the -D option is also not the only one affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant