diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2008-04-09 08:53:33 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2008-04-09 08:53:33 +0200 |
commit | 757b0345a8a55fcf0af5e12b17cdab15ca8de1d6 (patch) | |
tree | a661d7ea0ed3cd5957f3bf6fa7c5fe2d548cfc7e /include | |
parent | 0e9cf380af7c206ec7b9f0631beaa254efe21db8 (diff) | |
download | mupdf-757b0345a8a55fcf0af5e12b17cdab15ca8de1d6.tar.xz |
Changed token enum into proper type, easing debugging.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/syntax.h | 6 |
1 files changed, 3 insertions, 3 deletions
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); |