aboutsummaryrefslogtreecommitdiffstats
path: root/gawkapi.h
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2013-07-02 20:52:25 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2013-07-02 20:52:25 -0400
commitd8bd9f5261761dd4ffca331d9c6055c48a0a332b (patch)
tree35815f20253c23df4bca3415dae81f3dd6df5846 /gawkapi.h
parent9ee8aeb59ad3b3873d52f3c9a2ab80b28c4c2c20 (diff)
downloadegawk-d8bd9f5261761dd4ffca331d9c6055c48a0a332b.tar.gz
egawk-d8bd9f5261761dd4ffca331d9c6055c48a0a332b.tar.bz2
egawk-d8bd9f5261761dd4ffca331d9c6055c48a0a332b.zip
Remove unused api_lookup_file hook.
Diffstat (limited to 'gawkapi.h')
-rw-r--r--gawkapi.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/gawkapi.h b/gawkapi.h
index 81217009..687147e3 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -667,15 +667,7 @@ typedef struct gawk_api {
awk_flat_array_t *data);
/*
- * Look up a currently open file. If the name is NULL, it returns
- * data for the currently open input file corresponding to FILENAME.
- * If the file is not found, it returns NULL.
- */
- const awk_input_buf_t *(*api_lookup_file)(awk_ext_id_t id,
- const char *name,
- size_t name_len);
- /*
- * Look up a file. If the name is NULL, it returns
+ * Look up a file. If the name is NULL or name_len is 0, it returns
* data for the currently open input file corresponding to FILENAME.
* If the file is not already open, it tries to open it.
* The "filetype" argument should be one of:
@@ -763,9 +755,6 @@ typedef struct gawk_api {
#define release_value(value) \
(api->api_release_value(ext_id, value))
-#define lookup_file(name, namelen) \
- (api->api_lookup_file(ext_id, name, namelen))
-
#define get_file(name, namelen, filetype, typelen) \
(api->api_get_file(ext_id, name, namelen, filetype, typelen))