From 0ff7c9c8d183b53eb374d6024195f027d26ffa57 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 19 Dec 2006 14:49:24 +0000 Subject: [PATCH] *** empty log message *** --- ase/awk/parse.c | 4 +--- ase/test/awk/awk.c | 11 +++++------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/ase/awk/parse.c b/ase/awk/parse.c index 29486271..341dbb82 100644 --- a/ase/awk/parse.c +++ b/ase/awk/parse.c @@ -1,5 +1,5 @@ /* - * $Id: parse.c,v 1.225 2006-12-19 14:20:30 bacon Exp $ + * $Id: parse.c,v 1.226 2006-12-19 14:49:24 bacon Exp $ */ #include @@ -3363,8 +3363,6 @@ static ase_awk_nde_t* __parse_print (ase_awk_t* awk, ase_size_t line, int type) ase_awk_nde_t* out = ASE_NULL; int out_type; - ASE_AWK_ASSERT (awk, awk->token.prev.type == TOKEN_PRINT); - if (!MATCH(awk,TOKEN_SEMICOLON) && !MATCH(awk,TOKEN_GT) && !MATCH(awk,TOKEN_RSHIFT) && diff --git a/ase/test/awk/awk.c b/ase/test/awk/awk.c index facf256a..7cafa872 100644 --- a/ase/test/awk/awk.c +++ b/ase/test/awk/awk.c @@ -1,5 +1,5 @@ /* - * $Id: awk.c,v 1.144 2006-12-19 14:26:27 bacon Exp $ + * $Id: awk.c,v 1.145 2006-12-19 14:49:24 bacon Exp $ */ #include @@ -153,11 +153,11 @@ static FILE* awk_fopen (const ase_char_t* path, const ase_char_t* mode) char mode_mb[32]; size_t n; - n = wcstombs (path, path_mb, ASE_COUNTOF(path_mb)) + n = wcstombs (path_mb, path, ASE_COUNTOF(path_mb)); if (n == -1) return NULL; if (n == ASE_COUNTOF(path_mb)) path_mb[ASE_COUNTOF(path_mb)-1] = '\0'; - n = wcstombs (mode, mode_mb, ASE_COUNTOF(mode_mb)) + n = wcstombs (mode_mb, mode, ASE_COUNTOF(mode_mb)); if (n == -1) return NULL; if (n == ASE_COUNTOF(mode_mb)) path_mb[ASE_COUNTOF(mode_mb)-1] = '\0'; @@ -179,14 +179,13 @@ static FILE* awk_popen (const ase_char_t* cmd, const ase_char_t* mode) char mode_mb[32]; size_t n; - n = wcstombs (cmd, cmd_mb, ASE_COUNTOF(cmd_mb)) + n = wcstombs (cmd_mb, cmd, ASE_COUNTOF(cmd_mb)); if (n == -1) return NULL; if (n == ASE_COUNTOF(cmd_mb)) cmd_mb[ASE_COUNTOF(cmd_mb)-1] = '\0'; - n = wcstombs (mode, mode_mb, ASE_COUNTOF(mode_mb)) + n = wcstombs (mode_mb, mode, ASE_COUNTOF(mode_mb)); if (n == -1) return NULL; if (n == ASE_COUNTOF(mode_mb)) cmd_mb[ASE_COUNTOF(mode_mb)-1] = '\0'; - return popen (cmd_mb, mode_mb); #endif }