diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-04-26 23:18:01 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-04-26 23:18:01 +0300 |
commit | 67db3f45748d22ff23c03d1887cb0aac341f81bb (patch) | |
tree | 0d28c73cd159f6451549888596743a8ca71fe3ea /awkgram.y | |
parent | b1062311a3caab9ec89c0f104bd9b4334174f23c (diff) | |
download | egawk-67db3f45748d22ff23c03d1887cb0aac341f81bb.tar.gz egawk-67db3f45748d22ff23c03d1887cb0aac341f81bb.tar.bz2 egawk-67db3f45748d22ff23c03d1887cb0aac341f81bb.zip |
Cleanups in io.c and improve RS as regexp.
Diffstat (limited to 'awkgram.y')
-rw-r--r-- | awkgram.y | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -900,7 +900,7 @@ simple_stmt $1->expr_count = 0; $1->opcode = Op_K_print_rec; if ($4 == NULL) { /* no redircetion */ - $1->redir_type = 0; + $1->redir_type = redirect_none; $$ = list_create($1); } else { INSTRUCTION *ip; @@ -924,12 +924,12 @@ regular_print: if ($4 == NULL) { /* no redirection */ if ($3 == NULL) { /* printf without arg */ $1->expr_count = 0; - $1->redir_type = 0; + $1->redir_type = redirect_none; $$ = list_create($1); } else { INSTRUCTION *t = $3; $1->expr_count = count_expressions(&t, FALSE); - $1->redir_type = 0; + $1->redir_type = redirect_none; $$ = list_append(t, $1); } } else { @@ -5076,7 +5076,7 @@ mk_getline(INSTRUCTION *op, INSTRUCTION *var, INSTRUCTION *redir, int redirtype) else ip = list_create(op); op->into_var = (var != NULL); - op->redir_type = (redir != NULL) ? redirtype : 0; + op->redir_type = (redir != NULL) ? redirtype : redirect_none; return (asgn == NULL ? ip : list_append(ip, asgn)); } |