From d6a725f4c8b4dfe0ce1c918e165da5447d2bf330 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 1 Mar 2007 07:48:51 +0000 Subject: [PATCH] *** empty log message *** --- ase/awk/rex.c | 14 ++++---------- ase/pack.h | 4 +++- ase/test/awk/wordfreq.awk | 3 ++- ase/unpack.h | 4 +++- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/ase/awk/rex.c b/ase/awk/rex.c index fe88586b..ac1c7a5e 100644 --- a/ase/awk/rex.c +++ b/ase/awk/rex.c @@ -1,5 +1,5 @@ /* - * $Id: rex.c,v 1.75 2007-03-01 07:43:54 bacon Exp $ + * $Id: rex.c,v 1.76 2007-03-01 07:48:51 bacon Exp $ * * {License} */ @@ -434,7 +434,7 @@ static int __build_pattern0 (builder_t* builder) { ase_size_t zero = 0; ase_size_t old_size; - ase_size_t pos_nb, pos_el; + ase_size_t pos_nb; rhdr_t* rhdr; int n; @@ -443,8 +443,6 @@ static int __build_pattern0 (builder_t* builder) /* secure space for header and set the header fields to zero */ pos_nb = builder->code.size; ADD_CODE (builder, &zero, ASE_SIZEOF(zero)); - - pos_el = builder->code.size; ADD_CODE (builder, &zero, ASE_SIZEOF(zero)); /* handle the first branch */ @@ -490,7 +488,7 @@ static int __build_branch (builder_t* builder) int n; ase_size_t zero = 0; ase_size_t old_size; - ase_size_t pos_na, pos_bl; + ase_size_t pos_na; code_t* cmd; bhdr_t* bhdr; @@ -498,8 +496,6 @@ static int __build_branch (builder_t* builder) pos_na = builder->code.size; ADD_CODE (builder, &zero, ASE_SIZEOF(zero)); - - pos_bl = builder->code.size; ADD_CODE (builder, &zero, ASE_SIZEOF(zero)); while (1) @@ -644,15 +640,13 @@ static int __build_charset (builder_t* builder, code_t* cmd) { ase_size_t zero = 0; ase_size_t old_size; - ase_size_t pos_csc, pos_csl; + ase_size_t pos_csc; cshdr_t* cshdr; old_size = builder->code.size; pos_csc = builder->code.size; ADD_CODE (builder, &zero, ASE_SIZEOF(zero)); - - pos_csl = builder->code.size; ADD_CODE (builder, &zero, ASE_SIZEOF(zero)); if (builder->ptn.curc.type == CT_NORMAL && diff --git a/ase/pack.h b/ase/pack.h index 38a0cdc4..06dd0f89 100644 --- a/ase/pack.h +++ b/ase/pack.h @@ -1,5 +1,5 @@ /* - * $Id: pack.h,v 1.5 2007-02-23 10:33:20 bacon Exp $ + * $Id: pack.h,v 1.6 2007-03-01 07:44:58 bacon Exp $ * * {License} */ @@ -12,4 +12,6 @@ #pragma pack(push,1) #elif defined(__DECC) #pragma pack(push,1) +#else + #pragma pack(1) #endif diff --git a/ase/test/awk/wordfreq.awk b/ase/test/awk/wordfreq.awk index 364f4d94..4e922ab3 100644 --- a/ase/test/awk/wordfreq.awk +++ b/ase/test/awk/wordfreq.awk @@ -10,7 +10,8 @@ for (i = 1; i <= NF; i++) freq[$i]++; } - +#/[^kkka-bcx-dd-y]|abc|def/ + END { for (word in freq) print word, freq[word]; diff --git a/ase/unpack.h b/ase/unpack.h index cb43b11b..017339cf 100644 --- a/ase/unpack.h +++ b/ase/unpack.h @@ -1,5 +1,5 @@ /* - * $Id: unpack.h,v 1.5 2007-02-23 10:33:20 bacon Exp $ + * $Id: unpack.h,v 1.6 2007-03-01 07:44:58 bacon Exp $ * * {License} */ @@ -12,4 +12,6 @@ #pragma pack(pop) #elif defined(__DECC) #pragma pack(pop) +#else + #pragma pack() #endif