Index: doc/writing-functions.sgml =================================================================== RCS file: /cvs/gnome/gnumeric/doc/writing-functions.sgml,v retrieving revision 1.5 diff -u -p -r1.5 writing-functions.sgml --- doc/writing-functions.sgml 2000/07/31 22:03:53 1.5 +++ doc/writing-functions.sgml 2002/02/18 21:06:26 @@ -59,8 +59,8 @@ add2numbers (FunctionEvalInfo *ei, Value The function should return a newly allocated Value structure. Arguments are passed in the argv array and they contain Value -structures (look in gnumeric/src/expr.h for the definition of the -Value structure). +structures (look in gnumeric/src/value.h for the definition of the +_Value union, which is typedef'ed to Value in gnumeric.h). The first parameter, ei is a pointer to the FunctionEvalInfo structure, this looks like this: ( from expr.h ) @@ -109,11 +109,11 @@ add2numbers (FunctionEvalPos *ei, Value switch (argv [1].type){ case VALUE_INTEGER: - number_a = argv [1].v.v_int; + number_b = argv [1].v.v_int; break; case VALUE_FLOAT: - number_a = argv [1].v.v_float; + number_b = argv [1].v.v_float; break; default: Index: doc/C/editing.sgml =================================================================== RCS file: /cvs/gnome/gnumeric/doc/C/editing.sgml,v retrieving revision 1.10 diff -u -p -r1.10 editing.sgml --- doc/C/editing.sgml 2002/01/10 23:20:26 1.10 +++ doc/C/editing.sgml 2002/02/18 21:06:26 @@ -11,8 +11,9 @@ A string is any set of letters, or of letters and numbers. The only limitations are that strings cannot - contain newlines, and they may not begin with the equals - or at symbols (= and @). See for an example of entering a string. Index: doc/C/func.defs =================================================================== RCS file: /cvs/gnome/gnumeric/doc/C/func.defs,v retrieving revision 1.32 diff -u -p -r1.32 func.defs --- doc/C/func.defs 2002/01/22 06:46:37 1.32 +++ doc/C/func.defs 2002/02/18 21:06:30 @@ -3009,12 +3009,12 @@ RAND() returns a random number greater t @SEEALSO=RANDBETWEEN - FUNCTION=RandBernoulli - SYNTAX=RandBernoulli(p) - DESCRIPTION=RandBernoulli returns a Bernoulli distributed random number. -If @p < 0 or @p > 1 RandBernoulli returns #NUM! error. + FUNCTION=RANDBERNOULLI + SYNTAX=RANDBERNOULLI(p) + DESCRIPTION=RANDBERNOULLI returns a Bernoulli distributed random number. +If @p < 0 or @p > 1 RANDBERNOULLI returns #NUM! error. @EXAMPLES= -RandBernoulli(0.5). +RANDBERNOULLI(0.5). @SEEALSO=RAND,RANDBETWEEN @@ -3028,37 +3028,37 @@ RANDBETWEEN(3,7). @SEEALSO=RAND - FUNCTION=RandBinom - SYNTAX=RandBinom(p,trials) - DESCRIPTION=RandBinom returns a binomialy distributed random number. -If @p < 0 or @p > 1 RandBinom returns #NUM! error. If @trials < 0 RandBinom returns #NUM! error. + FUNCTION=RANDBINOM + SYNTAX=RANDBINOM(p,trials) + DESCRIPTION=RANDBINOM returns a binomialy distributed random number. +If @p < 0 or @p > 1 RANDBINOM returns #NUM! error. If @trials < 0 RANDBINOM returns #NUM! error. @EXAMPLES= -RandBinom(0.5,2). +RANDBINOM(0.5,2). @SEEALSO=RAND,RANDBETWEEN - FUNCTION=RandExp - SYNTAX=RandExp(b) - DESCRIPTION=RandExp returns a exponentially distributed random number. + FUNCTION=RANDEXP + SYNTAX=RANDEXP(b) + DESCRIPTION=RANDEXP returns a exponentially distributed random number. @EXAMPLES= -RandExp(0.5). +RANDEXP(0.5). @SEEALSO=RAND,RANDBETWEEN @FUNCTION=RANDNEGBINOM @SYNTAX=RANDNEGBINOM(p,failures) - DESCRIPTION=RANDNEGBINOM returns a negitive binomialy distributed random number. + DESCRIPTION=RANDNEGBINOM returns a negative binomially-distributed random number. If @p < 0 or @p > 1, RANDNEGBINOM returns #NUM! error. If @failures RANDNEGBINOM returns #NUM! error. @EXAMPLES= RANDNEGBINOM(0.5,2). @SEEALSO=RAND,RANDBETWEEN - FUNCTION=RandPoisson - SYNTAX=RandPoisson(lambda) - DESCRIPTION=RandPoisson returns a poisson distributed random number. + FUNCTION=RANDPOISSON + SYNTAX=RANDPOISSON(lambda) + DESCRIPTION=RANDPOISSON returns a poisson distributed random number. @EXAMPLES= -RandPoisson(3). +RANDPOISSON(3). @SEEALSO=RAND,RANDBETWEEN Index: doc/C/number-format.sgml =================================================================== RCS file: /cvs/gnome/gnumeric/doc/C/number-format.sgml,v retrieving revision 1.15 diff -u -p -r1.15 number-format.sgml --- doc/C/number-format.sgml 2002/01/10 00:19:38 1.15 +++ doc/C/number-format.sgml 2002/02/18 21:06:30 @@ -961,12 +961,13 @@ If you choose one of the options Stop, Warning, or - Information, you must enter the message - that will be show to the user in the error or warning - dialog. Otherwise, the dialog will be empty so it will be - completely useless. You need to enter the title (which will be - used as the window title for the dialog window) and the message - itself. For example, the values shown in will + Information, you should enter a message + that will be shown to the user in the error or warning + dialog. Otherwise, gnumeric will choose a message itself, + which may not clearly indicate the relevant validation criteria. + You should also enter a title, which will be + used as the window title for the dialog window. + For example, the values shown in will produce the dialog shown in . Index: doc/C/solver.sgml =================================================================== RCS file: /cvs/gnome/gnumeric/doc/C/solver.sgml,v retrieving revision 1.7 diff -u -p -r1.7 solver.sgml --- doc/C/solver.sgml 2001/12/15 04:41:43 1.7 +++ doc/C/solver.sgml 2002/02/18 21:06:30 @@ -82,10 +82,10 @@ As you can see, we have put the model variables into cells - B3:D3. They are currently all zeros. The cell E4 contains the + B3:D3. They are currently all zeros. The cell E3 contains the objective function definition. The easiest way to define it is to use SUMPRODUCT build-in function. Thus in our model, we have the - formula `=SUMPRODUCT(B3:D3,B4:D4)' in E4. + formula `=SUMPRODUCT(B3:D3,B4:D4)' in E3. The constraints are defined in rows seven to ten. Since the coefficients of these functions are in columns B, C and D we will @@ -106,7 +106,7 @@ - Since we have the objective function in E4 type this into + Since we have the objective function in E3 type this into the `Set Target Cell:' entry. We are about to maximize this function, thus the radiobutton `Max' should be pressed on. By default, the problem is assumed to be maximization problem. The Index: src/expr.h =================================================================== RCS file: /cvs/gnome/gnumeric/src/expr.h,v retrieving revision 1.118 diff -u -p -r1.118 expr.h --- src/expr.h 2001/12/25 20:19:06 1.118 +++ src/expr.h 2002/02/18 21:06:35 @@ -72,7 +76,7 @@ struct _ExprBinary { ExprTree *value_b; }; -/* We could brek this out into multiple types to be more space efficient */ +/* We could break this out into multiple types to be more space efficient */ struct _ExprName { Operation const oper; int ref_count; Index: src/func.c =================================================================== RCS file: /cvs/gnome/gnumeric/src/func.c,v retrieving revision 1.128 diff -u -p -r1.128 func.c --- src/func.c 2002/01/08 18:46:23 1.128 +++ src/func.c 2002/02/18 21:06:35 @@ -30,7 +30,7 @@ /* These are not supported yet */ typedef enum { FUNCTION_RETURNS_ARRAY = 0x01, /* eg transpose(), mmult() */ - FUNCTION_RECALC_ALWAYS = 0x02, /* eg now() */ + FUNCTION_RECALC_ALWAYS = 0x02, /* eg now(), today() */ /* For functions that are not exactly compatible with various import * formats. We need to recalc their results to avoid changing values Index: src/workbook-edit.c =================================================================== RCS file: /cvs/gnome/gnumeric/src/workbook-edit.c,v retrieving revision 1.72 diff -u -p -r1.72 workbook-edit.c --- src/workbook-edit.c 2002/01/12 08:06:59 1.72 +++ src/workbook-edit.c 2002/02/18 21:06:48 @@ -4,7 +4,7 @@ * * Author: * Miguel de Icaza (miguel helixcode com) - * Jody GOldberg (jody gnome org) + * Jody Goldberg (jody gnome org) * * (C) 2000-2001 Ximian, Inc. */ Index: src/functions/fn-math.c =================================================================== RCS file: /cvs/gnome/gnumeric/src/functions/fn-math.c,v retrieving revision 1.158 diff -u -p -r1.158 fn-math.c --- src/functions/fn-math.c 2002/01/17 14:02:36 1.158 +++ src/functions/fn-math.c 2002/02/18 21:06:59 @@ -1232,14 +1232,14 @@ gnumeric_rand (FunctionEvalInfo *ei, Val /***************************************************************************/ static char *help_randexp = { - N_("@FUNCTION=RandExp\n" - "@SYNTAX=RandExp(b)\n" + N_("@FUNCTION=RANDEXP\n" + "@SYNTAX=RANDEXP(b)\n" "@DESCRIPTION=" - "RandExp returns a exponentially distributed random number. " + "RANDEXP returns a exponentially-distributed random number. " "\n" "@EXAMPLES=\n" - "RandExp(0.5).\n" + "RANDEXP(0.5).\n" "\n" "@SEEALSO=RAND,RANDBETWEEN") }; @@ -1255,14 +1255,14 @@ gnumeric_randexp (FunctionEvalInfo *ei, /***************************************************************************/ static char *help_randpoisson = { - N_("@FUNCTION=RandPoisson\n" - "@SYNTAX=RandPoisson(lambda)\n" + N_("@FUNCTION=RANDPOISSON\n" + "@SYNTAX=RANDPOISSON(lambda)\n" "@DESCRIPTION=" - "RandPoisson returns a poisson distributed random number. " + "RANDPOISSON returns a poisson-distributed random number. " "\n" "@EXAMPLES=\n" - "RandPoisson(3).\n" + "RANDPOISSON(3).\n" "\n" "@SEEALSO=RAND,RANDBETWEEN") }; @@ -1281,17 +1281,17 @@ gnumeric_randpoisson (FunctionEvalInfo * /***************************************************************************/ static char *help_randbinom = { - N_("@FUNCTION=RandBinom\n" - "@SYNTAX=RandBinom(p,trials)\n" + N_("@FUNCTION=RANDBINOM\n" + "@SYNTAX=RANDBINOM(p,trials)\n" "@DESCRIPTION=" - "RandBinom returns a binomialy distributed random number. " + "RANDBINOM returns a binomially-distributed random number. " "\n" - "If @p < 0 or @p > 1 RandBinom returns #NUM! error. " - "If @trials < 0 RandBinom returns #NUM! error. " + "If @p < 0 or @p > 1 RANDBINOM returns #NUM! error. " + "If @trials < 0 RANDBINOM returns #NUM! error. " "\n" "@EXAMPLES=\n" - "RandBinom(0.5,2).\n" + "RANDBINOM(0.5,2).\n" "\n" "@SEEALSO=RAND,RANDBETWEEN") }; @@ -1315,7 +1315,7 @@ static char *help_randnegbinom = { "@SYNTAX=RANDNEGBINOM(p,failures)\n" "@DESCRIPTION=" - "RANDNEGBINOM returns a negitive binomialy distributed random " + "RANDNEGBINOM returns a negative binomially-distributed random " "number. " "\n" "If @p < 0 or @p > 1, RANDNEGBINOM returns #NUM! error. " @@ -1342,16 +1342,16 @@ gnumeric_randnegbinom (FunctionEvalInfo /***************************************************************************/ static char *help_randbernoulli = { - N_("@FUNCTION=RandBernoulli\n" - "@SYNTAX=RandBernoulli(p)\n" + N_("@FUNCTION=RANDBERNOULLI\n" + "@SYNTAX=RANDBERNOULLI(p)\n" "@DESCRIPTION=" - "RandBernoulli returns a Bernoulli distributed random number. " + "RANDBERNOULLI returns a Bernoulli-distributed random number. " "\n" - "If @p < 0 or @p > 1 RandBernoulli returns #NUM! error. " + "If @p < 0 or @p > 1 RANDBERNOULLI returns #NUM! error. " "\n" "@EXAMPLES=\n" - "RandBernoulli(0.5).\n" + "RANDBERNOULLI(0.5).\n" "\n" "@SEEALSO=RAND,RANDBETWEEN") };