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. v2.1.0-134-g789dd40


From: Mark H Weaver
Subject: [Guile-commits] GNU Guile branch, master, updated. v2.1.0-134-g789dd40
Date: Thu, 08 Aug 2013 05:28:31 +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=789dd40b8b3c3dab230cbb407c8435b430d6a18a

The branch, master has been updated
       via  789dd40b8b3c3dab230cbb407c8435b430d6a18a (commit)
      from  5270bb5bdbc4a036b9d4f73aa378b291f90ae04a (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 789dd40b8b3c3dab230cbb407c8435b430d6a18a
Author: Mark H Weaver <address@hidden>
Date:   Thu Aug 8 01:23:04 2013 -0400

    Fix --without-threads and SCM_DEBUG_TYPING_STRICTNESS==2 builds.
    
    * libguile/hashtab.c (scm_hashv_ref, scm_hashv_set_x,
      scm_hashv_remove_x, scm_hash_ref, scm_hash_set_x, scm_hash_remove_x):
    * libguile/strports.c (scm_mkstrport):
    * libguile/weak-vector.c (weak_vector_ref): Add missing SCM_UNPACK.
    
    * libguile/ports.c (lock_port, unlock_port): Cast MUTEX to the
      expected type.

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

Summary of changes:
 libguile/hashtab.c     |   16 +++++++++-------
 libguile/ports.c       |    4 ++--
 libguile/strports.c    |    2 +-
 libguile/weak-vector.c |    5 +++--
 4 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/libguile/hashtab.c b/libguile/hashtab.c
index fff48b8..30d781f 100644
--- a/libguile/hashtab.c
+++ b/libguile/hashtab.c
@@ -1,5 +1,5 @@
 /* Copyright (C) 1995, 1996, 1998, 1999, 2000, 2001, 2003, 2004, 2006,
- *   2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+ *   2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License
@@ -524,7 +524,8 @@ SCM_DEFINE (scm_hashv_ref, "hashv-ref", 2, 1, 0,
 
   if (SCM_WEAK_TABLE_P (table))
     return scm_c_weak_table_ref (table, scm_ihashv (key, -1),
-                                 assv_predicate, SCM_PACK (key), dflt);
+                                 assv_predicate,
+                                 (void *) SCM_UNPACK (key), dflt);
 
   return scm_hash_fn_ref (table, key, dflt,
                          (scm_t_hash_fn) scm_ihashv,
@@ -544,7 +545,7 @@ SCM_DEFINE (scm_hashv_set_x, "hashv-set!", 3, 0, 0,
   if (SCM_WEAK_TABLE_P (table))
     {
       scm_c_weak_table_put_x (table, scm_ihashv (key, -1),
-                              assv_predicate, SCM_PACK (key),
+                              assv_predicate, (void *) SCM_UNPACK (key),
                               key, val);
       return val;
     }
@@ -566,7 +567,7 @@ SCM_DEFINE (scm_hashv_remove_x, "hashv-remove!", 2, 0, 0,
   if (SCM_WEAK_TABLE_P (table))
     {
       scm_c_weak_table_remove_x (table, scm_ihashv (key, -1),
-                                 assv_predicate, SCM_PACK (key));
+                                 assv_predicate, (void *) SCM_UNPACK (key));
       /* See note in hashq-remove!.  */
       return SCM_BOOL_F;
     }
@@ -630,7 +631,8 @@ SCM_DEFINE (scm_hash_ref, "hash-ref", 2, 1, 0,
 
   if (SCM_WEAK_TABLE_P (table))
     return scm_c_weak_table_ref (table, scm_ihash (key, -1),
-                                 assoc_predicate, SCM_PACK (key), dflt);
+                                 assoc_predicate,
+                                 (void *) SCM_UNPACK (key), dflt);
 
   return scm_hash_fn_ref (table, key, dflt,
                          (scm_t_hash_fn) scm_ihash,
@@ -651,7 +653,7 @@ SCM_DEFINE (scm_hash_set_x, "hash-set!", 3, 0, 0,
   if (SCM_WEAK_TABLE_P (table))
     {
       scm_c_weak_table_put_x (table, scm_ihash (key, -1),
-                              assoc_predicate, SCM_PACK (key),
+                              assoc_predicate, (void *) SCM_UNPACK (key),
                               key, val);
       return val;
     }
@@ -674,7 +676,7 @@ SCM_DEFINE (scm_hash_remove_x, "hash-remove!", 2, 0, 0,
   if (SCM_WEAK_TABLE_P (table))
     {
       scm_c_weak_table_remove_x (table, scm_ihash (key, -1),
-                                 assoc_predicate, SCM_PACK (key));
+                                 assoc_predicate, (void *) SCM_UNPACK (key));
       /* See note in hashq-remove!.  */
       return SCM_BOOL_F;
     }
diff --git a/libguile/ports.c b/libguile/ports.c
index 20c9081..7934379 100644
--- a/libguile/ports.c
+++ b/libguile/ports.c
@@ -1353,13 +1353,13 @@ SCM_DEFINE (scm_set_port_conversion_strategy_x, 
"set-port-conversion-strategy!",
 static void
 lock_port (void *mutex)
 {
-  scm_i_pthread_mutex_lock (mutex);
+  scm_i_pthread_mutex_lock ((scm_i_pthread_mutex_t *) mutex);
 }
 
 static void
 unlock_port (void *mutex)
 {
-  scm_i_pthread_mutex_unlock (mutex);
+  scm_i_pthread_mutex_unlock ((scm_i_pthread_mutex_t *) mutex);
 }
 
 void
diff --git a/libguile/strports.c b/libguile/strports.c
index f10ede9..5910894 100644
--- a/libguile/strports.c
+++ b/libguile/strports.c
@@ -297,7 +297,7 @@ scm_mkstrport (SCM pos, SCM str, long modes, const char 
*caller)
   z = scm_c_make_port_with_encoding (scm_tc16_strport, modes,
                                      "UTF-8",
                                      scm_i_default_port_conversion_handler (),
-                                     (scm_t_bits)buf);
+                                     SCM_UNPACK (buf));
 
   pt = SCM_PTAB_ENTRY (z);
 
diff --git a/libguile/weak-vector.c b/libguile/weak-vector.c
index 3e90b3d..30e2ed6 100644
--- a/libguile/weak-vector.c
+++ b/libguile/weak-vector.c
@@ -1,4 +1,5 @@
-/* Copyright (C) 1995,1996,1998,2000,2001, 2003, 2006, 2008, 2009, 2010, 2011, 
2012 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1998, 2000, 2001, 2003, 2006, 2008, 2009,
+ *   2010, 2011, 2012, 2013 Free Software Foundation, Inc.
  * 
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License
@@ -129,7 +130,7 @@ weak_vector_ref (void *data)
 {
   struct weak_vector_ref_data *d = data;
 
-  return SCM_SIMPLE_VECTOR_REF (d->wv, d->k);
+  return (void *) SCM_UNPACK (SCM_SIMPLE_VECTOR_REF (d->wv, d->k));
 }
 
 SCM


hooks/post-receive
-- 
GNU Guile



reply via email to

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