summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-29 15:35:37 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-29 15:35:37 +0000
commit0ba09d829c0f1a6dfdfa7ebb9f67b0bc3b8d32cb (patch)
treed061a4eff9540a1fff5cfeca79d08ac962a5b056
parent5a674ddca6e026c9fc9037fcbd393b894791e130 (diff)
fix state definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--enc/gb18030.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enc/gb18030.c b/enc/gb18030.c
index ebea708..231b961 100644
--- a/enc/gb18030.c
+++ b/enc/gb18030.c
@@ -62,7 +62,7 @@ static const char GB18030_MAP[] = {
CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, CM, C1
};
-typedef enum { FAILURE = -2, ACCEPT = -1, S0 = 0, S1 } state_t;
+typedef enum { FAILURE = -2, ACCEPT = -1, S0 = 0, S1, S2, S3 } state_t;
#define A ACCEPT
#define F FAILURE
static const signed char trans[][0x100] = {