Browse Source

xpressn.c, fetchid(), #2/15 rename `iptr' --> `s'

pre-master-46
rlar 11 years ago
parent
commit
7142e0e1fc
  1. 14
      src/frontend/numparam/xpressn.c

14
src/frontend/numparam/xpressn.c

@ -696,24 +696,24 @@ parseunit(const char *s)
static const char * static const char *
fetchid(SPICE_DSTRINGPTR t, const char *iptr, const char *s_end)
fetchid(SPICE_DSTRINGPTR t, const char *s, const char *s_end)
/* copy next identifier from s into t, advance and return scan index i */ /* copy next identifier from s into t, advance and return scan index i */
{ {
char c; char c;
bool ok; bool ok;
c = *iptr++;
c = *s++;
while (!alfa(c) && (iptr < s_end))
c = *iptr++;
while (!alfa(c) && (s < s_end))
c = *s++;
spice_dstring_reinit(t); spice_dstring_reinit(t);
cadd(t, upcase(c)); cadd(t, upcase(c));
do do
{ {
c = *iptr++;
if (iptr > s_end)
c = *s++;
if (s > s_end)
c = '\0'; c = '\0';
c = upcase(c); c = upcase(c);
@ -724,7 +724,7 @@ fetchid(SPICE_DSTRINGPTR t, const char *iptr, const char *s_end)
} while (ok); } while (ok);
return iptr - 1; /* return updated iptr */
return s - 1; /* return updated s */
} }

Loading…
Cancel
Save