Browse Source

nupa_substitute(), verify `s' beeing unused now

pre-master-46
rlar 9 years ago
parent
commit
18f69116e8
  1. 6
      src/frontend/numparam/xpressn.c

6
src/frontend/numparam/xpressn.c

@ -1187,7 +1187,7 @@ insertnumber(dico_t *dico, int i, char *s, SPICE_DSTRINGPTR ustr_p)
bool
nupa_substitute(dico_t *dico, char * const s, char *r)
nupa_substitute(dico_t *dico, char * const s_, char *r)
/* s: pointer to original source line.
r: pointer to result line, already heavily modified wrt s
anywhere we find a 10-char numstring in r, substitute it.
@ -1204,8 +1204,8 @@ nupa_substitute(dico_t *dico, char * const s, char *r)
spice_dstring_init(&qstr);
spice_dstring_init(&tstr);
const char *iptr;
iptr = s;
const char * const s_end = strchr(s, '\0');
iptr = s_;
const char * const s_end = strchr(s_, '\0');
const char *kptr;
while ((iptr < s_end) && !err) {

Loading…
Cancel
Save