xpressn.c, fetchid(), #1/15 swap arguments
This commit is contained in:
parent
0178dcd5f3
commit
af0ba9bed5
|
|
@ -696,7 +696,7 @@ parseunit(const char *s)
|
|||
|
||||
|
||||
static const char *
|
||||
fetchid(SPICE_DSTRINGPTR t, const char *s_end, const char *iptr)
|
||||
fetchid(SPICE_DSTRINGPTR t, const char *iptr, const char *s_end)
|
||||
/* copy next identifier from s into t, advance and return scan index i */
|
||||
{
|
||||
char c;
|
||||
|
|
@ -1053,7 +1053,7 @@ formula(dico_t *dico, const char *s, const char *s_end, bool *perror)
|
|||
s = kptr;
|
||||
fu = 0;
|
||||
} else if (alfa(c)) {
|
||||
s = fetchid(&tstr, s_end, s); /* user id, but sort out keywords */
|
||||
s = fetchid(&tstr, s, s_end); /* user id, but sort out keywords */
|
||||
state = S_atom;
|
||||
{
|
||||
fu = keyword(fmathS, spice_dstring_value(&tstr)); /* numeric function? */
|
||||
|
|
|
|||
Loading…
Reference in New Issue