xpressn.c, drop "Defd" enum, to be incorporated into a bigger enum
This commit is contained in:
parent
76c7cd6fbd
commit
297778127b
|
|
@ -13,8 +13,6 @@ typedef enum {Nodekey = '#'} _nNodekey; /* Introduces node symbol */
|
||||||
typedef enum {Intro = '&'} _nIntro; /* Introduces preprocessor tokens */
|
typedef enum {Intro = '&'} _nIntro; /* Introduces preprocessor tokens */
|
||||||
typedef enum {Comment = '*'} _nComment; /* Spice Comment lines */
|
typedef enum {Comment = '*'} _nComment; /* Spice Comment lines */
|
||||||
typedef enum {Psp = '{'} _nPsp; /* Ps expression */
|
typedef enum {Psp = '{'} _nPsp; /* Ps expression */
|
||||||
typedef enum {Defd = 6} _nDefd; /* serial numb. of 'defined' keyword.
|
|
||||||
The others are not used (yet) */
|
|
||||||
|
|
||||||
typedef char *auxtable; /* dummy */
|
typedef char *auxtable; /* dummy */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1016,7 +1016,7 @@ opfunctkey(tdico *dico,
|
||||||
state = S_binop;
|
state = S_binop;
|
||||||
level = 3;
|
level = 3;
|
||||||
break;
|
break;
|
||||||
case Defd:
|
case 6:
|
||||||
c = '?';
|
c = '?';
|
||||||
state = S_atom;
|
state = S_atom;
|
||||||
level = 0;
|
level = 0;
|
||||||
|
|
@ -1260,7 +1260,7 @@ formula(tdico *dico, const char *s, const char *s_end, bool *perror)
|
||||||
c = opfunctkey(dico, kw, c, &state, &level, &error);
|
c = opfunctkey(dico, kw, c, &state, &level, &error);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (kw == Defd) {
|
if (kw == 6) {
|
||||||
u = exists(dico, s_end, &s, &error);
|
u = exists(dico, s_end, &s, &error);
|
||||||
}
|
}
|
||||||
} else if (((c == '.') || ((c >= '0') && (c <= '9')))) {
|
} else if (((c == '.') || ((c >= '0') && (c <= '9')))) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue