[gnumeric] Doc: fix doc generation for vararg functions



commit 6da04800e9232e60703c953fada7fb2be4f5d3b0
Author: Morten Welinder <terra gnome org>
Date:   Sat Nov 17 19:56:51 2018 -0500

    Doc: fix doc generation for vararg functions

 ChangeLog  | 5 +++++
 NEWS       | 1 +
 src/func.c | 2 +-
 3 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6cd26085f..0d9508a51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-11-17  Morten Welinder  <terra gnome org>
+
+       * src/func.c (gnm_func_set_varargs): Correctly signal a vararg
+       function by setting max argumnets to maxint.
+
 2018-11-16  Morten Welinder  <terra gnome org>
 
        * src/commands.c (get_new_objects): unref the unaffected objects.
diff --git a/NEWS b/NEWS
index 527693085..4162fa6f0 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ Morten:
        * Fix applix encoding and escape problems.  [#363]
        * New LAMBERTW function.
        * Plug sheet object leak with paste.
+       * Fix documentation problem for vararg functions.
 
 --------------------------------------------------------------------------
 Gnumeric 1.12.43
diff --git a/src/func.c b/src/func.c
index 452cd65fa..f15f83f0c 100644
--- a/src/func.c
+++ b/src/func.c
@@ -361,7 +361,7 @@ gnm_func_set_varargs (GnmFunc *func, GnmFuncNodes fn, const char *spec)
        func->nodes_func = fn;
        func->arg_spec = g_strdup (spec);
        func->min_args = 0;
-       func->min_args = G_MAXINT;
+       func->max_args = G_MAXINT;
 
        if (spec) {
                const char *p = strchr (spec, '|');


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]