Complex number catagory patch
- From: Phillip J Shelton <shelton11 dingoblue net au>
- To: gnumeric-list gnome org
- Subject: Complex number catagory patch
- Date: Tue, 09 Jan 2001 07:34:21 +1000
Here is the patches for puting the complex number functions into their
own catagory.
Hope this is of use.
Phill
Index: gnumeric/src/func.c
===================================================================
RCS file: /cvs/gnome/gnumeric/src/func.c,v
retrieving revision 1.103
diff -u -r1.103 func.c
--- gnumeric/src/func.c 2000/12/01 18:26:41 1.103
+++ gnumeric/src/func.c 2001/01/08 13:04:58
@@ -28,6 +28,7 @@
extern void stat_functions_init (void);
extern void finance_functions_init (void);
extern void eng_functions_init (void);
+extern void imag_functions_init (void);
extern void lookup_functions_init (void);
extern void logical_functions_init (void);
extern void database_functions_init (void);
@@ -45,6 +46,7 @@
stat_functions_init ();
finance_functions_init ();
eng_functions_init ();
+ imag_functions_init ();
lookup_functions_init ();
logical_functions_init ();
database_functions_init ();
Index: gnumeric/src/functions/fn-eng.c
===================================================================
RCS file: /cvs/gnome/gnumeric/src/functions/fn-eng.c,v
retrieving revision 1.54
diff -u -r1.54 fn-eng.c
--- gnumeric/src/functions/fn-eng.c 2000/12/20 21:21:15 1.54
+++ gnumeric/src/functions/fn-eng.c 2001/01/08 11:24:43
@@ -1875,9 +1875,6 @@
cat, "bin2oct", "?|f", "xnum,ynum",
&help_bin2oct, gnumeric_bin2oct);
function_add_args (
- cat, "complex", "ff|s", "real,im[,suffix]",
- &help_complex, gnumeric_complex);
- function_add_args (
cat, "convert", "fss", "number,from_unit,to_unit",
&help_convert, gnumeric_convert);
function_add_args (
@@ -1911,6 +1908,26 @@
cat, "hex2oct", "?|f", "xnum,ynum",
&help_hex2oct, gnumeric_hex2oct);
function_add_args (
+ cat, "oct2bin", "?|f", "xnum,ynum",
+ &help_oct2bin, gnumeric_oct2bin);
+ function_add_args (
+ cat, "oct2dec", "?", "number",
+ &help_oct2dec, gnumeric_oct2dec);
+ function_add_args (
+ cat, "oct2hex", "?|f", "xnum,ynum",
+ &help_oct2hex, gnumeric_oct2hex);
+}
+
+void imag_functions_init (void);
+void
+imag_functions_init (void)
+{
+ FunctionCategory *cat = function_get_category (_("Complex
Numbers"));
+
+ function_add_args (
+ cat, "complex", "ff|s", "real,im[,suffix]",
+ &help_complex, gnumeric_complex);
+ function_add_args (
cat, "imabs", "?", "inumber",
&help_imabs, gnumeric_imabs);
function_add_args (
@@ -1964,13 +1981,4 @@
function_add_nodes (
cat, "imsum", "??", "inumber,inumber",
&help_imsum, gnumeric_imsum);
- function_add_args (
- cat, "oct2bin", "?|f", "xnum,ynum",
- &help_oct2bin, gnumeric_oct2bin);
- function_add_args (
- cat, "oct2dec", "?", "number",
- &help_oct2dec, gnumeric_oct2dec);
- function_add_args (
- cat, "oct2hex", "?|f", "xnum,ynum",
- &help_oct2hex, gnumeric_oct2hex);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]