Browse Source

numparam/xpressn.c, don't mess the case of quoted strings

and drop `dico_t.option' which is nowhere set
pre-master-46
rlar 10 years ago
parent
commit
fdfaf0c84a
  1. 1
      src/frontend/numparam/numparam.h
  2. 4
      src/frontend/numparam/xpressn.c

1
src/frontend/numparam/numparam.h

@ -48,7 +48,6 @@ typedef struct entry_s {
typedef struct { /* the input scanner data structure */
SPICE_DSTRING srcfile; /* last piece of source file name */
SPICE_DSTRING option; /* one-character translator options */
SPICE_DSTRING lookup_buf; /* useful temp buffer for quick symbol lookup */
int srcline;
int oldline;

4
src/frontend/numparam/xpressn.c

@ -245,7 +245,6 @@ initdico(dico_t *dico)
int asize = 10; /* default allocation depth of the synbol stack */
COMPATMODE_T compat_mode;
spice_dstring_init(&(dico->option));
spice_dstring_init(&(dico->srcfile));
dico->srcline = -1;
@ -1116,9 +1115,6 @@ evaluate(dico_t *dico, SPICE_DSTRINGPTR qstr_p, char *t, unsigned char mode)
j++;
char c = /* ibf->bf[j]; */ entry->sbbase[j];
if (cpos('3', spice_dstring_value(&dico->option)) <= 0)
c = upcase(c); /* spice-2 */
if ((c == '\"') || (c < ' '))
break;

Loading…
Cancel
Save