diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2020-03-09 12:54:05 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2020-03-09 12:54:05 +0200 |
commit | 6514b3a2f5ed8c593d7d49526a27122989e673d0 (patch) | |
tree | ee1d50a6b52e633e1ba7617aeee4c7b667f3534a /ext.c | |
parent | e26cf22ad5c7d772ecc0c195bfbc612f1bb1f5b6 (diff) | |
download | egawk-6514b3a2f5ed8c593d7d49526a27122989e673d0.tar.gz egawk-6514b3a2f5ed8c593d7d49526a27122989e673d0.tar.bz2 egawk-6514b3a2f5ed8c593d7d49526a27122989e673d0.zip |
First round of message improvements.
Diffstat (limited to 'ext.c')
-rw-r--r-- | ext.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -57,19 +57,19 @@ load_ext(const char *lib_name) fatal(_("load_ext: received NULL lib_name")); if ((dl = dlopen(lib_name, flags)) == NULL) - fatal(_("load_ext: cannot open library `%s' (%s)"), lib_name, + fatal(_("load_ext: cannot open library `%s': %s"), lib_name, dlerror()); /* Per the GNU Coding standards */ gpl_compat = (int *) dlsym(dl, "plugin_is_GPL_compatible"); if (gpl_compat == NULL) - fatal(_("load_ext: library `%s': does not define `plugin_is_GPL_compatible' (%s)"), + fatal(_("load_ext: library `%s': does not define `plugin_is_GPL_compatible': %s"), lib_name, dlerror()); install_func = (int (*)(const gawk_api_t *const, awk_ext_id_t)) dlsym(dl, INIT_FUNC); if (install_func == NULL) - fatal(_("load_ext: library `%s': cannot call function `%s' (%s)"), + fatal(_("load_ext: library `%s': cannot call function `%s': %s"), lib_name, INIT_FUNC, dlerror()); if (install_func(& api_impl, NULL /* ext_id */) == 0) @@ -97,7 +97,7 @@ make_builtin(const char *name_space, const awk_ext_func_t *funcinfo) assert(name_space != NULL); if (name_space[0] == '\0' || strcmp(name_space, awk_namespace) == 0) { if (check_special(name) >= 0) - fatal(_("make_builtin: can't use gawk built-in `%s' as function name"), name); + fatal(_("make_builtin: cannot use gawk built-in `%s' as function name"), name); f = lookup(name); install_name = estrdup(name, strlen(name)); @@ -106,9 +106,9 @@ make_builtin(const char *name_space, const awk_ext_func_t *funcinfo) return awk_false; if (check_special(name_space) >= 0) - fatal(_("make_builtin: can't use gawk built-in `%s' as namespace name"), name_space); + fatal(_("make_builtin: cannot use gawk built-in `%s' as namespace name"), name_space); if (check_special(name) >= 0) - fatal(_("make_builtin: can't use gawk built-in `%s' as function name"), name); + fatal(_("make_builtin: cannot use gawk built-in `%s' as function name"), name); size_t len = strlen(name_space) + 2 + strlen(name) + 1; char *buf; @@ -123,7 +123,7 @@ make_builtin(const char *name_space, const awk_ext_func_t *funcinfo) // found it, but it shouldn't be there if we want to install this function if (f->type == Node_func) { /* user-defined function */ - fatal(_("make_builtin: can't redefine function `%s'"), name); + fatal(_("make_builtin: cannot redefine function `%s'"), name); } else if (f->type == Node_ext_func) { /* multiple extension() calls etc. */ if (do_lint) |