Commit 7ae01d7f authored by Ariel Rios's avatar Ariel Rios Committed by Ariel Rios

We now include guile/gh.h so we can transform from doubles to scm numbers.

1999-12-09  Ariel Rios <jarios@usa.net>

	* plugin.c: We now include guile/gh.h so we can transform from doubles to scm numbers.
	  (value_to_scm): In VALUE_INTEGER we now use gh_double2scm to pass the double unto
	  scheme. In this way we remove the bug that crashed gnumeric when we passed a rational number.

	* functions.scm: (test) A test function was added. Since it's only created for hacking purposes
	  'tis commented.
parent 89af559e
1999-12-09 Ariel Rios <jarios@usa.net>
* plugin.c: We now include guile/gh.h so we can transform from doubles to scm numbers.
(value_to_scm): In VALUE_INTEGER we now use gh_double2scm to pass the double unto
scheme. In this way we remove the bug that crashed gnumeric when we passed a rational number.
* functions.scm: (test) A test function was added. Since it's only created for hacking purposes
'tis commented.
1999-12-08 Ariel Rios <jarios@usa.net>
* plugin.c: (func_marshal_func) We now use func_def_count_arg to get the count
......
......@@ -80,5 +80,18 @@ is greater than 0 and 0 if NUMBER is equal 0."
@DESCRIPTION=Returns the fibonnacci computation for number."
fibo)
;;;;;;;;;;;;proof
;(define (test n)
; n)
;(register-function
;"test" "f"
;"@FUNCTION=TEST
;@SYNTAX=TEST(num)
;@DESCRIPTION=Prueba"
;test)
......@@ -5,6 +5,7 @@
#include <stdio.h>
#include <libguile.h>
#include <gnome.h>
#include <guile/gh.h>
#include "../../src/gnumeric.h"
#include "../../src/symbol.h"
......@@ -95,9 +96,9 @@ value_to_scm (Value *val, CellRef cell_ref)
case VALUE_INTEGER :
return scm_long2num(val->v.v_int);
case VALUE_FLOAT :
return scm_dbl2big(val->v.v_float);
case VALUE_FLOAT :
return gh_double2scm(val->v.v_float);
case VALUE_CELLRANGE :
return scm_cons(scm_symbolfrom0str("cell-range"),
scm_cons(cell_ref_to_scm(val->v.cell_range.cell_a, cell_ref),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment