Qucs / ADMS

ADMS is a code generator for the Verilog-AMS language
GNU General Public License v3.0
94 stars 32 forks source link

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

Open ngwood opened 2 years ago

ngwood commented 2 years ago

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 commented 2 years ago

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.