diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-03-06 18:11:20 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-03-06 18:11:20 +0200 |
commit | d68261197e99fe472e0d75cefd30db4c4e43775e (patch) | |
tree | cadf600fc0fa195b1fe369d319a496e2cdbbf95c /src/gsql_lib.c | |
parent | 68015bc90675e797d2d0269a6581da0cc497f7e7 (diff) | |
download | gamma-d68261197e99fe472e0d75cefd30db4c4e43775e.tar.gz gamma-d68261197e99fe472e0d75cefd30db4c4e43775e.tar.bz2 |
Remove uses of scm_i_ functions.
* src/gsql_lib.c (scm_makenum): Remove.
* src/guile-sql.h (scm_makenum): Remove.
* src/mysql.c, src/pgsql.c: Use scm_to_ulong
instead of scm_makenum.
Diffstat (limited to 'src/gsql_lib.c')
-rw-r--r-- | src/gsql_lib.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/gsql_lib.c b/src/gsql_lib.c index 223b223..be2e15f 100644 --- a/src/gsql_lib.c +++ b/src/gsql_lib.c @@ -20,25 +20,6 @@ #include <guile-sql.h> #include <app.h> -SCM -scm_makenum (unsigned long val) -#ifndef HAVE_SCM_LONG2NUM -{ - if (SCM_FIXABLE ((long) val)) - return scm_from_int (val); - -#ifdef SCM_BIGDIG - return scm_i_long2big (val); -#else /* SCM_BIGDIG */ - return scm_make_real ((double) val); -#endif /* SCM_BIGDIG */ -} -#else -{ - return scm_long2num (val); -} -#endif - static struct gamma_parmdcl * find_parmdcl(struct gamma_parmdcl *dcl, const char *name) { |