diff options
| author | Dan Nicolaescu | 2011-04-25 14:36:06 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2011-04-25 14:36:06 -0700 |
| commit | f2d3ba6f13adac8f2fb8595f3425cb8d085bd9c4 (patch) | |
| tree | 7db0bf65f48a43c4c9cabb713902a0e1ae08062e | |
| parent | d090ed6c781562b18042321f6780914ad84ffe2d (diff) | |
| download | emacs-f2d3ba6f13adac8f2fb8595f3425cb8d085bd9c4.tar.gz emacs-f2d3ba6f13adac8f2fb8595f3425cb8d085bd9c4.zip | |
Convert some function definitions to standard C.
* src/alloc.c (check_sblock, check_string_bytes)
(check_string_free_list): Convert to standard C.
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/alloc.c | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0350d36ea06..1985cdc3768 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-04-25 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * alloc.c (check_sblock, check_string_bytes) | ||
| 4 | (check_string_free_list): Convert to standard C. | ||
| 5 | |||
| 1 | 2011-04-25 Teodor Zlatanov <tzz@lifelogs.com> | 6 | 2011-04-25 Teodor Zlatanov <tzz@lifelogs.com> |
| 2 | 7 | ||
| 3 | * w32.c (emacs_gnutls_push): Fix typo. | 8 | * w32.c (emacs_gnutls_push): Fix typo. |
diff --git a/src/alloc.c b/src/alloc.c index 412527b41a0..be640b6a52c 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -1706,8 +1706,7 @@ string_bytes (struct Lisp_String *s) | |||
| 1706 | /* Check validity of Lisp strings' string_bytes member in B. */ | 1706 | /* Check validity of Lisp strings' string_bytes member in B. */ |
| 1707 | 1707 | ||
| 1708 | static void | 1708 | static void |
| 1709 | check_sblock (b) | 1709 | check_sblock (struct sblock *b) |
| 1710 | struct sblock *b; | ||
| 1711 | { | 1710 | { |
| 1712 | struct sdata *from, *end, *from_end; | 1711 | struct sdata *from, *end, *from_end; |
| 1713 | 1712 | ||
| @@ -1740,8 +1739,7 @@ check_sblock (b) | |||
| 1740 | recently allocated strings. Used for hunting a bug. */ | 1739 | recently allocated strings. Used for hunting a bug. */ |
| 1741 | 1740 | ||
| 1742 | static void | 1741 | static void |
| 1743 | check_string_bytes (all_p) | 1742 | check_string_bytes (int all_p) |
| 1744 | int all_p; | ||
| 1745 | { | 1743 | { |
| 1746 | if (all_p) | 1744 | if (all_p) |
| 1747 | { | 1745 | { |
| @@ -1769,7 +1767,7 @@ check_string_bytes (all_p) | |||
| 1769 | This may catch buffer overrun from a previous string. */ | 1767 | This may catch buffer overrun from a previous string. */ |
| 1770 | 1768 | ||
| 1771 | static void | 1769 | static void |
| 1772 | check_string_free_list () | 1770 | check_string_free_list (void) |
| 1773 | { | 1771 | { |
| 1774 | struct Lisp_String *s; | 1772 | struct Lisp_String *s; |
| 1775 | 1773 | ||