From 28cc888f31b82786fdc77855f90e4db69e88678a Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 26 Dec 2006 10:25:19 +0000 Subject: [PATCH] *** empty log message *** --- ase/test/awk/awk.c | 11 ++++++++--- ase/test/awk/regress.sh | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ase/test/awk/awk.c b/ase/test/awk/awk.c index 0c7e0891..010409d5 100644 --- a/ase/test/awk/awk.c +++ b/ase/test/awk/awk.c @@ -1,5 +1,5 @@ /* - * $Id: awk.c,v 1.150 2006-12-25 12:01:01 bacon Exp $ + * $Id: awk.c,v 1.151 2006-12-26 10:25:19 bacon Exp $ */ #include @@ -42,6 +42,10 @@ #include #endif +#ifndef PATH_MAX +#define PATH_MAX 2048 +#endif + struct src_io { const ase_char_t* input_file; @@ -150,6 +154,7 @@ static FILE* awk_fopen (const ase_char_t* path, const ase_char_t* mode) #elif defined(ASE_CHAR_IS_MCHAR) return fopen (path, mode); #else + char path_mb[PATH_MAX + 1]; char mode_mb[32]; size_t n; @@ -783,7 +788,7 @@ static int __main (int argc, ase_char_t* argv[]) #endif const ase_char_t* mfn = ASE_NULL; - opt = /*ASE_AWK_IMPLICIT | */ + opt = ASE_AWK_IMPLICIT | ASE_AWK_EXPLICIT | ASE_AWK_UNIQUEAFN | ASE_AWK_HASHSIGN | @@ -792,7 +797,7 @@ static int __main (int argc, ase_char_t* argv[]) ASE_AWK_SHIFT | ASE_AWK_EXTIO | /*ASE_AWK_COPROC |*/ - //ASE_AWK_BLOCKLESS | + ASE_AWK_BLOCKLESS | ASE_AWK_STRINDEXONE | ASE_AWK_STRIPSPACES | ASE_AWK_NEXTOFILE; diff --git a/ase/test/awk/regress.sh b/ase/test/awk/regress.sh index cc5592bf..d7e2e225 100755 --- a/ase/test/awk/regress.sh +++ b/ase/test/awk/regress.sh @@ -31,8 +31,8 @@ run_script_for_test() echo ">> RUNNING $script" ./awk "$script" "$data" > "$output.$pid" - diff -y "$output" "$output.$pid" - #diff "$output" "$output.$pid" + #diff -y "$output" "$output.$pid" + diff "$output" "$output.$pid" if [ $? -ne 0 ] then rm -f "$output.$pid"