diff options
| author | Paul Eggert | 2011-04-17 21:45:15 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-17 21:45:15 -0700 |
| commit | d0f4e1f5ac162d9c32381c65a0bc7b456e189826 (patch) | |
| tree | a12bbeeeb3ebbb5b710e6c64a2e0c42b7ed9f0f6 /src | |
| parent | 36372bf93fc75b5f85d04007268e98840d1699c5 (diff) | |
| download | emacs-d0f4e1f5ac162d9c32381c65a0bc7b456e189826.tar.gz emacs-d0f4e1f5ac162d9c32381c65a0bc7b456e189826.zip | |
* alloc.c (check_sblock, check_string_bytes, check_string_free_list): Protoize.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 1 | ||||
| -rw-r--r-- | src/alloc.c | 11 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b7a4a6701e0..3ca41d7b51b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | (allocate_buffer): Don't assume sizeof (struct buffer) is a | 18 | (allocate_buffer): Don't assume sizeof (struct buffer) is a |
| 19 | multiple of sizeof (EMACS_INT); it need not be, if | 19 | multiple of sizeof (EMACS_INT); it need not be, if |
| 20 | alignof(EMACS_INT) < sizeof (EMACS_INT). | 20 | alignof(EMACS_INT) < sizeof (EMACS_INT). |
| 21 | (check_sblock, check_string_bytes, check_string_free_list): Protoize. | ||
| 21 | 22 | ||
| 22 | 2011-04-17 Chong Yidong <cyd@stupidchicken.com> | 23 | 2011-04-17 Chong Yidong <cyd@stupidchicken.com> |
| 23 | 24 | ||
diff --git a/src/alloc.c b/src/alloc.c index fbc075be3be..f2aeaa938eb 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -1674,9 +1674,6 @@ init_strings (void) | |||
| 1674 | 1674 | ||
| 1675 | static int check_string_bytes_count; | 1675 | static int check_string_bytes_count; |
| 1676 | 1676 | ||
| 1677 | static void check_string_bytes (int); | ||
| 1678 | static void check_sblock (struct sblock *); | ||
| 1679 | |||
| 1680 | #define CHECK_STRING_BYTES(S) STRING_BYTES (S) | 1677 | #define CHECK_STRING_BYTES(S) STRING_BYTES (S) |
| 1681 | 1678 | ||
| 1682 | 1679 | ||
| @@ -1698,8 +1695,7 @@ string_bytes (struct Lisp_String *s) | |||
| 1698 | /* Check validity of Lisp strings' string_bytes member in B. */ | 1695 | /* Check validity of Lisp strings' string_bytes member in B. */ |
| 1699 | 1696 | ||
| 1700 | static void | 1697 | static void |
| 1701 | check_sblock (b) | 1698 | check_sblock (struct sblock *b) |
| 1702 | struct sblock *b; | ||
| 1703 | { | 1699 | { |
| 1704 | struct sdata *from, *end, *from_end; | 1700 | struct sdata *from, *end, *from_end; |
| 1705 | 1701 | ||
| @@ -1732,8 +1728,7 @@ check_sblock (b) | |||
| 1732 | recently allocated strings. Used for hunting a bug. */ | 1728 | recently allocated strings. Used for hunting a bug. */ |
| 1733 | 1729 | ||
| 1734 | static void | 1730 | static void |
| 1735 | check_string_bytes (all_p) | 1731 | check_string_bytes (int all_p) |
| 1736 | int all_p; | ||
| 1737 | { | 1732 | { |
| 1738 | if (all_p) | 1733 | if (all_p) |
| 1739 | { | 1734 | { |
| @@ -1761,7 +1756,7 @@ check_string_bytes (all_p) | |||
| 1761 | This may catch buffer overrun from a previous string. */ | 1756 | This may catch buffer overrun from a previous string. */ |
| 1762 | 1757 | ||
| 1763 | static void | 1758 | static void |
| 1764 | check_string_free_list () | 1759 | check_string_free_list (void) |
| 1765 | { | 1760 | { |
| 1766 | struct Lisp_String *s; | 1761 | struct Lisp_String *s; |
| 1767 | 1762 | ||