aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-12-30 17:43:34 +0000
committerrsc <devnull@localhost>2005-12-30 17:43:34 +0000
commit5b23583d1fe973544c40cdc43bfbea072a667675 (patch)
treef181981645199a409e238c9ba9eb6cd0f1a344ed /src
parent54eacd0b20a4018abcf16eab490e0f553267239a (diff)
downloadplan9port-5b23583d1fe973544c40cdc43bfbea072a667675.tar.gz
plan9port-5b23583d1fe973544c40cdc43bfbea072a667675.tar.bz2
plan9port-5b23583d1fe973544c40cdc43bfbea072a667675.zip
stupid pointers
Diffstat (limited to 'src')
-rw-r--r--src/cmd/eqn/e.h3
-rw-r--r--src/cmd/eqn/eqn.y10
2 files changed, 7 insertions, 6 deletions
diff --git a/src/cmd/eqn/e.h b/src/cmd/eqn/e.h
index 4f5282ec..f34c46cf 100644
--- a/src/cmd/eqn/e.h
+++ b/src/cmd/eqn/e.h
@@ -2,10 +2,11 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
+#include <stdint.h>
#undef sqrt
#define sqrt p9_sqrt
-#define YYSTYPE int /* DEC v. GNU garbage */
+#define YYSTYPE uintptr_t /* DEC v. GNU garbage */
enum charclass {
OTHER, OLET, ILET, DIG, LPAR, RPAR, SLASH, PLUS, ILETF, ILETJ, VBAR,
diff --git a/src/cmd/eqn/eqn.y b/src/cmd/eqn/eqn.y
index 74796d7f..952478ca 100644
--- a/src/cmd/eqn/eqn.y
+++ b/src/cmd/eqn/eqn.y
@@ -44,8 +44,8 @@ tbox : TO box %prec TO { $$ = $2; }
;
box : '{' eqn '}' { $$ = $2; }
- | QTEXT { text(QTEXT, (char *) $1); }
- | CONTIG { text(CONTIG, (char *) $1); }
+ | QTEXT { text(QTEXT, (char *)$1); }
+ | CONTIG { text(CONTIG, (char *)$1); }
| SPACE { text(SPACE, (char *) 0); }
| THIN { text(THIN, (char *) 0); }
| TAB { text(TAB, (char *) 0); }
@@ -80,10 +80,10 @@ box : '{' eqn '}' { $$ = $2; }
int : INT { setintegral(); }
;
-fwd : FWD text { $$ = atoi((char *) $1); } ;
+fwd : FWD text { $$ = atoi((char *)$1); } ;
up : UP text { $$ = atoi((char *) $1); } ;
-back : BACK text { $$ = atoi((char *) $1); } ;
-down : DOWN text { $$ = atoi((char *) $1); } ;
+back : BACK text { $$ = atoi((char *)$1); } ;
+down : DOWN text { $$ = atoi((char *)$1); } ;
diacrit : HAT { $$ = HAT; }
| VEC { $$ = VEC; }