aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-03-26 21:38:48 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-03-26 21:38:48 +0200
commit389a62c56e6a09a5e3348aa46b52288a533c653e (patch)
tree3ce0524a160c0b8bef3296f0e704bb85a0b1352a /awkgram.y
parent2981962139f8a726f5568d8ab1004e078214cea3 (diff)
parent15635ff21b6f1a0951f0ff5de6ddaf0edab8edd7 (diff)
downloadegawk-389a62c56e6a09a5e3348aa46b52288a533c653e.tar.gz
egawk-389a62c56e6a09a5e3348aa46b52288a533c653e.tar.bz2
egawk-389a62c56e6a09a5e3348aa46b52288a533c653e.zip
Merge branch 'xgawk' into xgawk-build
Diffstat (limited to 'awkgram.y')
-rw-r--r--awkgram.y10
1 files changed, 7 insertions, 3 deletions
diff --git a/awkgram.y b/awkgram.y
index 0b47568b..18e758f9 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -1845,7 +1845,7 @@ static const struct token tokentab[] = {
{"int", Op_builtin, LEX_BUILTIN, A(1), do_int},
{"isarray", Op_builtin, LEX_BUILTIN, GAWKX|A(1), do_isarray},
{"length", Op_builtin, LEX_LENGTH, A(0)|A(1), do_length},
-{"load", Op_symbol, LEX_LOAD, GAWKX, 0},
+{"load", Op_symbol, LEX_LOAD, GAWKX, 0},
{"log", Op_builtin, LEX_BUILTIN, A(1), do_log},
{"lshift", Op_builtin, LEX_BUILTIN, GAWKX|A(2), do_lshift},
{"match", Op_builtin, LEX_BUILTIN, NOT_OLD|A(2)|A(3), do_match},
@@ -2288,8 +2288,12 @@ add_srcfile(int stype, char *src, SRCFILE *thisfile, int *already_included, int
*errcode = errno_val;
return NULL;
}
- fatal(_("can't open %s `%s' for reading (%s)"),
- ((stype == SRC_EXTLIB) ? "shared library" : "source file"), src, errno_val ? strerror(errno_val) : _("reason unknown"));
+ /* use full messages to ease translation */
+ fatal(stype == SRC_EXTLIB
+ ? _("can't open source file `%s' for reading (%s)")
+ : _("can't open shared library `%s' for reading (%s)"),
+ src,
+ errno_val ? strerror(errno_val) : _("reason unknown"));
}
for (s = srcfiles->next; s != srcfiles; s = s->next) {