stupid pointers
This commit is contained in:
parent
54eacd0b20
commit
5b23583d1f
2 changed files with 7 additions and 6 deletions
|
|
@ -2,10 +2,11 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#undef sqrt
|
#undef sqrt
|
||||||
#define sqrt p9_sqrt
|
#define sqrt p9_sqrt
|
||||||
#define YYSTYPE int /* DEC v. GNU garbage */
|
#define YYSTYPE uintptr_t /* DEC v. GNU garbage */
|
||||||
|
|
||||||
enum charclass {
|
enum charclass {
|
||||||
OTHER, OLET, ILET, DIG, LPAR, RPAR, SLASH, PLUS, ILETF, ILETJ, VBAR,
|
OTHER, OLET, ILET, DIG, LPAR, RPAR, SLASH, PLUS, ILETF, ILETJ, VBAR,
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,8 @@ tbox : TO box %prec TO { $$ = $2; }
|
||||||
;
|
;
|
||||||
|
|
||||||
box : '{' eqn '}' { $$ = $2; }
|
box : '{' eqn '}' { $$ = $2; }
|
||||||
| QTEXT { text(QTEXT, (char *) $1); }
|
| QTEXT { text(QTEXT, (char *)$1); }
|
||||||
| CONTIG { text(CONTIG, (char *) $1); }
|
| CONTIG { text(CONTIG, (char *)$1); }
|
||||||
| SPACE { text(SPACE, (char *) 0); }
|
| SPACE { text(SPACE, (char *) 0); }
|
||||||
| THIN { text(THIN, (char *) 0); }
|
| THIN { text(THIN, (char *) 0); }
|
||||||
| TAB { text(TAB, (char *) 0); }
|
| TAB { text(TAB, (char *) 0); }
|
||||||
|
|
@ -80,10 +80,10 @@ box : '{' eqn '}' { $$ = $2; }
|
||||||
int : INT { setintegral(); }
|
int : INT { setintegral(); }
|
||||||
;
|
;
|
||||||
|
|
||||||
fwd : FWD text { $$ = atoi((char *) $1); } ;
|
fwd : FWD text { $$ = atoi((char *)$1); } ;
|
||||||
up : UP text { $$ = atoi((char *) $1); } ;
|
up : UP text { $$ = atoi((char *) $1); } ;
|
||||||
back : BACK text { $$ = atoi((char *) $1); } ;
|
back : BACK text { $$ = atoi((char *)$1); } ;
|
||||||
down : DOWN text { $$ = atoi((char *) $1); } ;
|
down : DOWN text { $$ = atoi((char *)$1); } ;
|
||||||
|
|
||||||
diacrit : HAT { $$ = HAT; }
|
diacrit : HAT { $$ = HAT; }
|
||||||
| VEC { $$ = VEC; }
|
| VEC { $$ = VEC; }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue