diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2008-04-09 08:58:49 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2008-04-09 08:58:49 +0200 |
commit | be2e21fa2c597b8c10609711aabab6805f257bd5 (patch) | |
tree | c2648a05c5595837d1f33e5e31e2cdb4c02db76a | |
parent | 757b0345a8a55fcf0af5e12b17cdab15ca8de1d6 (diff) | |
download | mupdf-be2e21fa2c597b8c10609711aabab6805f257bd5.tar.xz |
Use proper type for decoder stage instead of enum.
-rw-r--r-- | stream/filt_faxd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/stream/filt_faxd.c b/stream/filt_faxd.c index 37631684..a94ebac9 100644 --- a/stream/filt_faxd.c +++ b/stream/filt_faxd.c @@ -4,13 +4,13 @@ #include "filt_faxd.h" #include "filt_faxc.h" -enum +typedef enum fax_stage_e { SNORMAL, /* neutral state, waiting for any code */ SMAKEUP, /* got a 1d makeup code, waiting for terminating code */ SEOL, /* at eol, needs output buffer space */ SH1, SH2 /* in H part 1 and 2 (both makeup and terminating codes) */ -}; +} fax_stage_e; /* TODO: uncompressed */ @@ -34,7 +34,9 @@ struct fz_faxd_s int bidx; unsigned int word; - int stage, a, c, dim, eolc; + fax_stage_e stage; + + int a, c, dim, eolc; unsigned char *ref; unsigned char *dst; }; |