From 757b0345a8a55fcf0af5e12b17cdab15ca8de1d6 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Wed, 9 Apr 2008 08:53:33 +0200 Subject: Changed token enum into proper type, easing debugging. --- include/mupdf/syntax.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/mupdf/syntax.h b/include/mupdf/syntax.h index f9602c35..5f5e7d9f 100644 --- a/include/mupdf/syntax.h +++ b/include/mupdf/syntax.h @@ -2,7 +2,7 @@ * tokenizer and low-level object parser */ -enum +typedef enum pdf_token_e { PDF_TERROR, PDF_TEOF, PDF_TOARRAY, PDF_TCARRAY, @@ -14,10 +14,10 @@ enum PDF_TSTREAM, PDF_TENDSTREAM, PDF_TXREF, PDF_TTRAILER, PDF_TSTARTXREF, PDF_NTOKENS -}; +} pdf_token_e; /* lex.c */ -fz_error *pdf_lex(int *token, fz_stream *f, unsigned char *buf, int n, int *len); +fz_error *pdf_lex(pdf_token_e *tok, fz_stream *f, unsigned char *buf, int n, int *len); /* parse.c */ fz_error *pdf_parsearray(fz_obj **op, fz_stream *f, char *buf, int cap); -- cgit v1.2.3