guile-commits
[Top][All Lists]
Advanced

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

[Guile-commits] GNU Guile branch, master, updated. release_1-9-5-21-g9bd


From: Ludovic Courtès
Subject: [Guile-commits] GNU Guile branch, master, updated. release_1-9-5-21-g9bd48cb
Date: Wed, 25 Nov 2009 22:48:53 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=9bd48cb17b4ce685f94f974442d452485a1017d6

The branch, master has been updated
       via  9bd48cb17b4ce685f94f974442d452485a1017d6 (commit)
       via  1040b2053150f91a8c1123dd94a51881c8b8e2f0 (commit)
      from  a7348a497d0dcb3cc85ac0d82b289e86f6c360cc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9bd48cb17b4ce685f94f974442d452485a1017d6
Author: Ludovic Courtès <address@hidden>
Date:   Wed Nov 25 23:46:17 2009 +0100

    Remove uses of discouraged constructs.
    
    * libguile/vm-i-scheme.c, libguile/vm-i-system.c, libguile/vm.c: Replace
      uses of discouraged constructs by their current counterparts.

commit 1040b2053150f91a8c1123dd94a51881c8b8e2f0
Author: Ludovic Courtès <address@hidden>
Date:   Wed Nov 25 23:44:14 2009 +0100

    Don't build `inet-aton' and `inet-ntoa' when --disable-networking.
    
    * libguile/deprecated.c (scm_inet_aton, scm_inet_ntoa): Conditionalize
      on `HAVE_NETWORKING'.

-----------------------------------------------------------------------

Summary of changes:
 libguile/deprecated.c  |    7 +++++--
 libguile/vm-i-scheme.c |   18 +++++++++---------
 libguile/vm-i-system.c |   14 +++++++-------
 libguile/vm.c          |    8 ++++----
 4 files changed, 25 insertions(+), 22 deletions(-)

diff --git a/libguile/deprecated.c b/libguile/deprecated.c
index 30e939b..bef3c90 100644
--- a/libguile/deprecated.c
+++ b/libguile/deprecated.c
@@ -1465,7 +1465,9 @@ scm_i_fluidp (SCM x)
 
 /* Networking.  */
 
-SCM_DEFINE (scm_inet_aton, "inet-aton", 1, 0, 0, 
+#ifdef HAVE_NETWORKING
+
+SCM_DEFINE (scm_inet_aton, "inet-aton", 1, 0, 0,
             (SCM address),
            "Convert an IPv4 Internet address from printable string\n"
            "(dotted decimal notation) to an integer.  E.g.,\n\n"
@@ -1482,7 +1484,7 @@ SCM_DEFINE (scm_inet_aton, "inet-aton", 1, 0, 0,
 #undef FUNC_NAME
 
 
-SCM_DEFINE (scm_inet_ntoa, "inet-ntoa", 1, 0, 0, 
+SCM_DEFINE (scm_inet_ntoa, "inet-ntoa", 1, 0, 0,
             (SCM inetid),
            "Convert an IPv4 Internet address to a printable\n"
            "(dotted decimal notation) string.  E.g.,\n\n"
@@ -1498,6 +1500,7 @@ SCM_DEFINE (scm_inet_ntoa, "inet-ntoa", 1, 0, 0,
 }
 #undef FUNC_NAME
 
+#endif /* HAVE_NETWORKING */
 
 
 void
diff --git a/libguile/vm-i-scheme.c b/libguile/vm-i-scheme.c
index b95a45a..52f5b11 100644
--- a/libguile/vm-i-scheme.c
+++ b/libguile/vm-i-scheme.c
@@ -32,37 +32,37 @@
 VM_DEFINE_FUNCTION (100, not, "not", 1)
 {
   ARGS1 (x);
-  RETURN (SCM_BOOL (scm_is_false_or_nil (x)));
+  RETURN (scm_from_bool (scm_is_false_or_nil (x)));
 }
 
 VM_DEFINE_FUNCTION (101, not_not, "not-not", 1)
 {
   ARGS1 (x);
-  RETURN (SCM_BOOL (!scm_is_false_or_nil (x)));
+  RETURN (scm_from_bool (!scm_is_false_or_nil (x)));
 }
 
 VM_DEFINE_FUNCTION (102, eq, "eq?", 2)
 {
   ARGS2 (x, y);
-  RETURN (SCM_BOOL (SCM_EQ_P (x, y)));
+  RETURN (scm_from_bool (SCM_EQ_P (x, y)));
 }
 
 VM_DEFINE_FUNCTION (103, not_eq, "not-eq?", 2)
 {
   ARGS2 (x, y);
-  RETURN (SCM_BOOL (!SCM_EQ_P (x, y)));
+  RETURN (scm_from_bool (!SCM_EQ_P (x, y)));
 }
 
 VM_DEFINE_FUNCTION (104, nullp, "null?", 1)
 {
   ARGS1 (x);
-  RETURN (SCM_BOOL (scm_is_null_or_nil (x)));
+  RETURN (scm_from_bool (scm_is_null_or_nil (x)));
 }
 
 VM_DEFINE_FUNCTION (105, not_nullp, "not-null?", 1)
 {
   ARGS1 (x);
-  RETURN (SCM_BOOL (!scm_is_null_or_nil (x)));
+  RETURN (scm_from_bool (!scm_is_null_or_nil (x)));
 }
 
 VM_DEFINE_FUNCTION (106, eqv, "eqv?", 2)
@@ -90,13 +90,13 @@ VM_DEFINE_FUNCTION (107, equal, "equal?", 2)
 VM_DEFINE_FUNCTION (108, pairp, "pair?", 1)
 {
   ARGS1 (x);
-  RETURN (SCM_BOOL (SCM_CONSP (x)));
+  RETURN (scm_from_bool (SCM_CONSP (x)));
 }
 
 VM_DEFINE_FUNCTION (109, listp, "list?", 1)
 {
   ARGS1 (x);
-  RETURN (SCM_BOOL (scm_ilength (x) >= 0));
+  RETURN (scm_from_bool (scm_ilength (x) >= 0));
 }
 
 
@@ -161,7 +161,7 @@ VM_DEFINE_INSTRUCTION (114, set_cdr, "set-cdr!", 0, 2, 0)
 {                                                              \
   ARGS2 (x, y);                                                        \
   if (SCM_I_INUMP (x) && SCM_I_INUMP (y))                      \
-    RETURN (SCM_BOOL (SCM_I_INUM (x) crel SCM_I_INUM (y)));    \
+    RETURN (scm_from_bool (SCM_I_INUM (x) crel SCM_I_INUM (y)));  \
   SYNC_REGISTER ();                                             \
   RETURN (srel (x, y));                                         \
 }
diff --git a/libguile/vm-i-system.c b/libguile/vm-i-system.c
index a85bd99..df8424c 100644
--- a/libguile/vm-i-system.c
+++ b/libguile/vm-i-system.c
@@ -486,13 +486,13 @@ VM_DEFINE_INSTRUCTION (36, br_if_not, "br-if-not", 3, 0, 
0)
 VM_DEFINE_INSTRUCTION (37, br_if_eq, "br-if-eq", 3, 0, 0)
 {
   sp--; /* underflow? */
-  BR (SCM_EQ_P (sp[0], sp[1]));
+  BR (scm_is_eq (sp[0], sp[1]));
 }
 
 VM_DEFINE_INSTRUCTION (38, br_if_not_eq, "br-if-not-eq", 3, 0, 0)
 {
   sp--; /* underflow? */
-  BR (!SCM_EQ_P (sp[0], sp[1]));
+  BR (!scm_is_eq (sp[0], sp[1]));
 }
 
 VM_DEFINE_INSTRUCTION (39, br_if_null, "br-if-null", 3, 0, 0)
@@ -877,7 +877,7 @@ VM_DEFINE_INSTRUCTION (54, goto_args, "goto/args", 1, -1, 1)
           POP (values);
           values = scm_struct_ref (values, SCM_INUM0);
           nvalues = scm_ilength (values);
-          PUSH_LIST (values, SCM_NULLP);
+          PUSH_LIST (values, scm_is_null);
           goto vm_return_values;
         }
       else
@@ -970,7 +970,7 @@ VM_DEFINE_INSTRUCTION (57, mv_call, "mv-call", 4, -1, 1)
           POP (values);
           values = scm_struct_ref (values, SCM_INUM0);
           len = scm_length (values);
-          PUSH_LIST (values, SCM_NULLP);
+          PUSH_LIST (values, scm_is_null);
           PUSH (len);
           ip = mvra;
         }
@@ -1043,7 +1043,7 @@ VM_DEFINE_INSTRUCTION (60, call_cc, "call/cc", 0, 1, 1)
       /* multiple values returned to continuation */
       SCM values;
       values = scm_struct_ref (cont, SCM_INUM0);
-      if (SCM_NULLP (values))
+      if (scm_is_null (values))
         goto vm_error_no_values;
       /* non-tail context does not accept multiple values? */
       PUSH (SCM_CAR (values));
@@ -1078,7 +1078,7 @@ VM_DEFINE_INSTRUCTION (61, goto_cc, "goto/cc", 0, 1, 1)
       SCM values;
       values = scm_struct_ref (cont, SCM_INUM0);
       nvalues = scm_ilength (values);
-      PUSH_LIST (values, SCM_NULLP);
+      PUSH_LIST (values, scm_is_null);
       goto vm_return_values;
     }
   else
@@ -1188,7 +1188,7 @@ VM_DEFINE_INSTRUCTION (64, return_values_star, 
"return/values*", 1, -1, -1)
     
   nvalues--;
   POP (l);
-  while (SCM_CONSP (l))
+  while (scm_is_pair (l))
     {
       PUSH (SCM_CAR (l));
       l = SCM_CDR (l);
diff --git a/libguile/vm.c b/libguile/vm.c
index e37d25e..2262aa2 100644
--- a/libguile/vm.c
+++ b/libguile/vm.c
@@ -154,9 +154,9 @@ static void enfalsen_frame (void *p)
 static void
 vm_dispatch_hook (struct scm_vm *vp, SCM hook, SCM hook_args)
 {
-  if (!SCM_FALSEP (vp->trace_frame))
+  if (!scm_is_false (vp->trace_frame))
     return;
-  
+
   scm_dynwind_begin (0);
   /* FIXME, stack holder should be the vm */
   vp->trace_frame = scm_c_make_vm_frame (SCM_BOOL_F, vp->fp, vp->sp, vp->ip, 
0);
@@ -229,7 +229,7 @@ vm_make_boot_program (long nargs)
 static SCM
 resolve_variable (SCM what, SCM program_module)
 {
-  if (SCM_LIKELY (SCM_SYMBOLP (what))) 
+  if (SCM_LIKELY (scm_is_symbol (what)))
     {
       if (SCM_LIKELY (scm_module_system_booted_p
                       && scm_is_true (program_module)))
@@ -434,7 +434,7 @@ SCM_DEFINE (scm_vm_p, "vm?", 1, 0, 0,
            "")
 #define FUNC_NAME s_scm_vm_p
 {
-  return SCM_BOOL (SCM_VM_P (obj));
+  return scm_from_bool (SCM_VM_P (obj));
 }
 #undef FUNC_NAME
 


hooks/post-receive
-- 
GNU Guile




reply via email to

[Prev in Thread] Current Thread [Next in Thread]