]> code.delx.au - gnu-emacs/commitdiff
* alloc.c (check_sblock, check_string_bytes, check_string_free_list): Protoize.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 18 Apr 2011 04:45:15 +0000 (21:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 18 Apr 2011 04:45:15 +0000 (21:45 -0700)
src/ChangeLog
src/alloc.c

index b7a4a6701e04575b2e749702d010058fae3a682c..3ca41d7b51bc67ae4133b994dbe229c22457139e 100644 (file)
@@ -18,6 +18,7 @@
        (allocate_buffer): Don't assume sizeof (struct buffer) is a
        multiple of sizeof (EMACS_INT); it need not be, if
        alignof(EMACS_INT) < sizeof (EMACS_INT).
+       (check_sblock, check_string_bytes, check_string_free_list): Protoize.
 
 2011-04-17  Chong Yidong  <cyd@stupidchicken.com>
 
index fbc075be3becaaec3d8246acb831b34f85e70139..f2aeaa938ebc0d573da1362e492d8be6563d934e 100644 (file)
@@ -1674,9 +1674,6 @@ init_strings (void)
 
 static int check_string_bytes_count;
 
-static void check_string_bytes (int);
-static void check_sblock (struct sblock *);
-
 #define CHECK_STRING_BYTES(S)  STRING_BYTES (S)
 
 
@@ -1698,8 +1695,7 @@ string_bytes (struct Lisp_String *s)
 /* Check validity of Lisp strings' string_bytes member in B.  */
 
 static void
-check_sblock (b)
-     struct sblock *b;
+check_sblock (struct sblock *b)
 {
   struct sdata *from, *end, *from_end;
 
@@ -1732,8 +1728,7 @@ check_sblock (b)
    recently allocated strings.  Used for hunting a bug.  */
 
 static void
-check_string_bytes (all_p)
-     int all_p;
+check_string_bytes (int all_p)
 {
   if (all_p)
     {
@@ -1761,7 +1756,7 @@ check_string_bytes (all_p)
    This may catch buffer overrun from a previous string.  */
 
 static void
-check_string_free_list ()
+check_string_free_list (void)
 {
   struct Lisp_String *s;