diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-12-22 17:37:49 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-12-22 17:37:49 +0200 |
commit | af6f677758c6b873fb3130b34705e2a705270a75 (patch) | |
tree | 64de0a1c1d969e5ce687e873535637c117d60935 /extension/inplace.c | |
parent | 293b5a86a9053668773e75b35682c41ca64e0db6 (diff) | |
parent | cd820dc4359b8dc1a40fedc0c5d3924ed8f88df0 (diff) | |
download | egawk-af6f677758c6b873fb3130b34705e2a705270a75.tar.gz egawk-af6f677758c6b873fb3130b34705e2a705270a75.tar.bz2 egawk-af6f677758c6b873fb3130b34705e2a705270a75.zip |
Merge branch 'feature/regex-to-api' into feature/andy
Diffstat (limited to 'extension/inplace.c')
-rw-r--r-- | extension/inplace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extension/inplace.c b/extension/inplace.c index 26c37922..5457287f 100644 --- a/extension/inplace.c +++ b/extension/inplace.c @@ -118,7 +118,7 @@ invalid_filename(const awk_string_t *filename) /* do_inplace_begin --- start in-place editing */ static awk_value_t * -do_inplace_begin(int nargs, awk_value_t *result) +do_inplace_begin(int nargs, awk_value_t *result, struct awk_ext_func *unused) { awk_value_t filename; struct stat sbuf; @@ -201,7 +201,7 @@ do_inplace_begin(int nargs, awk_value_t *result) /* do_inplace_end --- finish in-place editing */ static awk_value_t * -do_inplace_end(int nargs, awk_value_t *result) +do_inplace_end(int nargs, awk_value_t *result, struct awk_ext_func *unused) { awk_value_t filename, suffix; @@ -262,8 +262,8 @@ do_inplace_end(int nargs, awk_value_t *result) } static awk_ext_func_t func_table[] = { - { "inplace_begin", do_inplace_begin, 2 }, - { "inplace_end", do_inplace_end, 2 }, + { "inplace_begin", do_inplace_begin, 2, 2, awk_false, NULL }, + { "inplace_end", do_inplace_end, 2, 2, awk_false, NULL }, }; static awk_bool_t init_inplace(void) |