aboutsummaryrefslogtreecommitdiffstats
path: root/extension/inplace.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-12-22 17:29:53 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-12-22 17:29:53 +0200
commit2af62b50e5b9574c0e169fb4d99c4912e56eef1f (patch)
treef4f264291d6597090fb36fc7f7cd725a105f557c /extension/inplace.c
parent1358693d2464c89a8d715fa6104ed36b48e45990 (diff)
parent0f15f82e19b32823fe3fdf51052389ca3b60e92e (diff)
downloadegawk-2af62b50e5b9574c0e169fb4d99c4912e56eef1f.tar.gz
egawk-2af62b50e5b9574c0e169fb4d99c4912e56eef1f.tar.bz2
egawk-2af62b50e5b9574c0e169fb4d99c4912e56eef1f.zip
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'extension/inplace.c')
-rw-r--r--extension/inplace.c8
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)