diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-03-26 21:36:37 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-03-26 21:36:37 +0200 |
commit | 15635ff21b6f1a0951f0ff5de6ddaf0edab8edd7 (patch) | |
tree | ef4d017b04e45f934ca2130e622262aa952e62a3 /awkgram.y | |
parent | 2e14bf32d257e86fb4db379211c1f86af2b23165 (diff) | |
download | egawk-15635ff21b6f1a0951f0ff5de6ddaf0edab8edd7.tar.gz egawk-15635ff21b6f1a0951f0ff5de6ddaf0edab8edd7.tar.bz2 egawk-15635ff21b6f1a0951f0ff5de6ddaf0edab8edd7.zip |
Some minor style edits in code and doc.
Diffstat (limited to 'awkgram.y')
-rw-r--r-- | awkgram.y | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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) { |