aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-04-26 23:18:01 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-04-26 23:18:01 +0300
commit67db3f45748d22ff23c03d1887cb0aac341f81bb (patch)
tree0d28c73cd159f6451549888596743a8ca71fe3ea /awkgram.y
parentb1062311a3caab9ec89c0f104bd9b4334174f23c (diff)
downloadegawk-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.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/awkgram.y b/awkgram.y
index 73c45f60..22d8889d 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -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));
}