guile-commits
[Top][All Lists]
Advanced

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

[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.5-131-g5bbd6


From: Ludovic Courtès
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.5-131-g5bbd632
Date: Sun, 06 May 2012 20:24:58 +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=5bbd632fc36b14f59d51e4ba2d8e189fd3cc0f76

The branch, stable-2.0 has been updated
       via  5bbd632fc36b14f59d51e4ba2d8e189fd3cc0f76 (commit)
       via  7be3c2fcbfe2335d069a5c13b0ddf74b69383c46 (commit)
       via  82171a2ea4d81d1dd2f71142ed6021ab383d836b (commit)
      from  e9c898bf24c2faf86d3d2f61361bc52ff3abc8b2 (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 5bbd632fc36b14f59d51e4ba2d8e189fd3cc0f76
Author: Ludovic Courtès <address@hidden>
Date:   Sun May 6 22:24:47 2012 +0200

    Make `scm_unget_byte' public.
    
    * libguile/ports.h (scm_unget_byte): Make `SCM_API' instead of
      `SCM_INTERNAL'.

commit 7be3c2fcbfe2335d069a5c13b0ddf74b69383c46
Author: Ludovic Courtès <address@hidden>
Date:   Sun May 6 22:23:58 2012 +0200

    read: Avoid `void *' pointer arithmetic.
    
    * libguile/read.c (read_complete_token): Make `new_buf' a `char *' to
      avoid pointer arithmetic on `void *'.

commit 82171a2ea4d81d1dd2f71142ed6021ab383d836b
Author: Ludovic Courtès <address@hidden>
Date:   Sun May 6 22:23:12 2012 +0200

    Build with `-Wpointer-arith' when available.
    
    * configure.ac (POTENTIAL_GCC_CFLAGS): Add `-Wpointer-arith'.

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

Summary of changes:
 configure.ac     |    4 +---
 libguile/ports.h |    4 ++--
 libguile/read.c  |    2 +-
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index c506b39..3c117d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1495,8 +1495,6 @@ case "$GCC" in
     ## We had -Wstrict-prototypes in here for a bit, but Guile does too
     ## much stuff with generic function pointers for that to really be
     ## less than exasperating.
-    ## -Wpointer-arith was here too, but something changed in gcc/glibc
-    ## and it became equally exasperating (gcc 2.95 and/or glibc 2.1.2).
     ## -Wundef was removed because Gnulib prevented it (see
     ## <http://thread.gmane.org/gmane.lisp.guile.bugs/5329>.)
 
@@ -1505,7 +1503,7 @@ case "$GCC" in
     ## <http://lists.gnu.org/archive/html/guile-devel/2012-01/msg00487.html>.
 
     POTENTIAL_GCC_CFLAGS="-Wall -Wmissing-prototypes \
-      -Wdeclaration-after-statement \
+      -Wdeclaration-after-statement -Wpointer-arith \
       -Wswitch-enum -fno-strict-aliasing"
     # Do this here so we don't screw up any of the tests above that might
     # not be "warning free"
diff --git a/libguile/ports.h b/libguile/ports.h
index fcf1424..bd80c39a 100644
--- a/libguile/ports.h
+++ b/libguile/ports.h
@@ -4,7 +4,7 @@
 #define SCM_PORTS_H
 
 /* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004,
- *   2006, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+ *   2006, 2008, 2009, 2010, 2011, 2012 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
@@ -288,7 +288,7 @@ SCM_INTERNAL void scm_lfwrite_substr (SCM str, size_t 
start, size_t end,
 SCM_API void scm_flush (SCM port);
 SCM_API void scm_end_input (SCM port);
 SCM_API int scm_fill_input (SCM port);
-SCM_INTERNAL void scm_unget_byte (int c, SCM port); 
+SCM_API void scm_unget_byte (int c, SCM port);
 SCM_API void scm_ungetc (scm_t_wchar c, SCM port);
 SCM_API void scm_ungets (const char *s, int n, SCM port);
 SCM_API SCM scm_peek_char (SCM port);
diff --git a/libguile/read.c b/libguile/read.c
index 6ec38f3..12b4c56 100644
--- a/libguile/read.c
+++ b/libguile/read.c
@@ -260,7 +260,7 @@ read_complete_token (SCM port, char *buffer, size_t 
buffer_size,
             }
           else
             {
-             void *new_buf =
+             char *new_buf =
                scm_gc_malloc_pointerless (overflow_size + bytes_read, "read");
 
              memcpy (new_buf, overflow_buffer, overflow_size);


hooks/post-receive
-- 
GNU Guile



reply via email to

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