aboutsummaryrefslogtreecommitdiffstats
path: root/gawkapi.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-09-29 05:18:54 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-09-29 05:18:54 +0300
commit31d26ad56d0616672303d2d949a3772afc35e33b (patch)
treec935860462668bccd66f3c554e334bbf33041b97 /gawkapi.h
parent25a11929d27188ef28be2b671f895df347a15024 (diff)
downloadegawk-31d26ad56d0616672303d2d949a3772afc35e33b.tar.gz
egawk-31d26ad56d0616672303d2d949a3772afc35e33b.tar.bz2
egawk-31d26ad56d0616672303d2d949a3772afc35e33b.zip
Minor improvements in api header, test, and filefuncs.
Diffstat (limited to 'gawkapi.h')
-rw-r--r--gawkapi.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gawkapi.h b/gawkapi.h
index 090cf797..d8215450 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -865,17 +865,17 @@ static awk_bool_t (*init_func)(void) = NULL;
/* OR: */
static awk_bool_t
-init_my_module(void)
+init_my_extension(void)
{
...
}
-static awk_bool_t (*init_func)(void) = init_my_module;
+static awk_bool_t (*init_func)(void) = init_my_extension;
dl_load_func(func_table, some_name, "name_space_in_quotes")
#endif
-#define dl_load_func(func_table, module, name_space) \
+#define dl_load_func(func_table, extension, name_space) \
int dl_load(const gawk_api_t *const api_p, awk_ext_id_t id) \
{ \
size_t i, j; \
@@ -886,7 +886,7 @@ int dl_load(const gawk_api_t *const api_p, awk_ext_id_t id) \
\
if (api->major_version != GAWK_API_MAJOR_VERSION \
|| api->minor_version < GAWK_API_MINOR_VERSION) { \
- fprintf(stderr, #module ": version mismatch with gawk!\n"); \
+ fprintf(stderr, #extension ": version mismatch with gawk!\n"); \
fprintf(stderr, "\tmy version (%d, %d), gawk version (%d, %d)\n", \
GAWK_API_MAJOR_VERSION, GAWK_API_MINOR_VERSION, \
api->major_version, api->minor_version); \
@@ -898,7 +898,7 @@ int dl_load(const gawk_api_t *const api_p, awk_ext_id_t id) \
if (func_table[i].name == NULL) \
break; \
if (! add_ext_func(name_space, & func_table[i])) { \
- warning(ext_id, #module ": could not add %s\n", \
+ warning(ext_id, #extension ": could not add %s\n", \
func_table[i].name); \
errors++; \
} \
@@ -906,7 +906,7 @@ int dl_load(const gawk_api_t *const api_p, awk_ext_id_t id) \
\
if (init_func != NULL) { \
if (! init_func()) { \
- warning(ext_id, #module ": initialization function failed\n"); \
+ warning(ext_id, #extension ": initialization function failed\n"); \
errors++; \
} \
} \