Compilation: prefer glib functions over goffice equivalents
[gnumeric.git] / plugins / guile / guile-support.c
blob57fce5f0b1df2aca63cb926278518cc41a8a37dc
1 /* -*- mode: c; c-basic-offset: 8 -*- */
3 /*
4 Authors: Ariel Rios <ariel@arcavia.com>
5 */
7 #include <gnumeric-config.h>
8 #include <gnumeric.h>
9 #include <libguile.h>
10 #include <gtk/gtk.h>
11 #include <guile/gh.h>
12 #include <position.h>
13 #include "guile-support.h"
14 #include "smob-value.h"
17 SCM
18 value_to_scm (GnmValue const *val, GnmCellRef cell_ref)
20 GnmValue *v = (GnmValue *) val;
21 return make_new_smob (v);
24 GnmValue*
25 scm_to_value (SCM value_smob)
27 return get_value_from_smob (value_smob);