Browse Source

frontend/control.c, bug fix, "#310 Command parser problem with wrdata"

make all commands (see manual 17.5) entered manually,
  with .control section or by script case insensitive.

generally in inpcom.c everything is converted to lowercase,
  but there are exceptions, e.g. "wrdata", which might be
  followed by arguments whose case needs to be preserved.
  (most notably filenames)

Thanks to Mathias Gebhardt, who reported this bug in
  #310 Command parser problem with wrdata
  http://sourceforge.net/p/ngspice/bugs/310/
pre-master-46
h_vogt 10 years ago
committed by rlar
parent
commit
88414a58ce
  1. 2
      src/frontend/control.c

2
src/frontend/control.c

@ -195,7 +195,7 @@ docommand(wordlist *wlist)
/* Look for the command in the command list. */
for (i = 0; cp_coms[i].co_comname; i++)
if (strcmp(cp_coms[i].co_comname, s) == 0)
if (strcasecmp(cp_coms[i].co_comname, s) == 0)
break;
command = &cp_coms[i];

Loading…
Cancel
Save