[seed] [mpfr] Finish integrating mpfr module into build system



commit 0c0f41d84d2ea976e51d6f135253f4f9ec43121c
Author: Matt ARSENAULT <arsenm2 rpi edu>
Date:   Thu Jul 2 16:14:59 2009 -0400

    [mpfr] Finish integrating mpfr module into build system

 configure.ac             |    3 +--
 modules/mpfr/Makefile.am |    2 +-
 modules/mpfr/mpfr.c      |   10 +++-------
 3 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7b916a7..1265437 100644
--- a/configure.ac
+++ b/configure.ac
@@ -162,7 +162,7 @@ AC_ARG_ENABLE(example-module,
 AM_CONDITIONAL(BUILD_EXAMPLE_MODULE, test "x$want_example_module" = "xyes")
 AC_SUBST(BUILD_EXAMPLE_MODULE)
 
-dnl ==== dbus? ====
+dnl ==== dbus ====
 AC_ARG_ENABLE(dbus-module,
 			  AC_HELP_STRING([--enable-dbus-module],
 							 [enable the dbus Seed module. [default=yes]]),
@@ -285,7 +285,6 @@ if test x"$want_mpfr_module" == x"yes" ; then
 			other_LIBS=$with_mpfr
 		fi
 
-        #this section...I don't get what it's doing
 		AC_SEARCH_LIBS(mpfr_init2,mpfr,,AC_MSG_ERROR([mpfr not found]),$other_LIBS)
 		if test x"$ac_cv_search_mpfr_call" = x"none required" ; then
 			MPFR_LDFLAGS=$other_LIBS
diff --git a/modules/mpfr/Makefile.am b/modules/mpfr/Makefile.am
index a70dab2..8ccf612 100644
--- a/modules/mpfr/Makefile.am
+++ b/modules/mpfr/Makefile.am
@@ -5,7 +5,7 @@ seedlibdir = ${libdir}/seed
 seedlib_LTLIBRARIES = \
 	libmpfr.la
 
-libgettext_la_SOURCES = \
+libmpfr_la_SOURCES = \
 	mpfr.c
 
 AM_CPPFLAGS = \
diff --git a/modules/mpfr/mpfr.c b/modules/mpfr/mpfr.c
index e55579a..9aaa6e4 100644
--- a/modules/mpfr/mpfr.c
+++ b/modules/mpfr/mpfr.c
@@ -4,7 +4,7 @@
 SeedObject ns_ref;
 SeedEngine * eng;
 
-static void
+static SeedValue
 seed_mpfr_init2 (SeedContext ctx,
                  SeedObject function,
                  SeedObject this_object,
@@ -37,7 +37,7 @@ seed_mpfr_init2 (SeedContext ctx,
 
     mpfr_init2(ptr, prec);
 
-    return;
+    return seed_make_null(ctx);
 }
 
 SeedObject
@@ -45,16 +45,12 @@ seed_module_init(SeedEngine *local_eng)
 {
     SeedGlobalContext ctx = local_eng->context;
     ns_ref = seed_make_object (ctx, NULL, NULL);
-    seed_value_protect (ctx, namespace_ref);
+    seed_value_protect (ctx, ns_ref);
 
     seed_create_function(ctx, "init2",
                          (SeedFunctionCallback) seed_mpfr_init2,
                          ns_ref);
 
-    seed_object_set_property(ctx, namespace_ref, "LC_CTYPE",
-                             seed_value_from_long(ctx, LC_CTYPE, NULL));
-
-
     return ns_ref;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]