diff options
| author | Ken Brown | 2013-08-15 12:37:15 -0400 |
|---|---|---|
| committer | Ken Brown | 2013-08-15 12:37:15 -0400 |
| commit | 0fe73012cda7153f85cff32db8df442a0859fa5b (patch) | |
| tree | 27f37c1b0d7b4e3e9eba3df00bcf5ca9d72651c2 /src | |
| parent | 691a357f3afffc2f40a6f04dea072933dcdf8bc0 (diff) | |
| download | emacs-0fe73012cda7153f85cff32db8df442a0859fa5b.tar.gz emacs-0fe73012cda7153f85cff32db8df442a0859fa5b.zip | |
Revert last change to gmalloc.c; update some comments.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/emacs.c | 3 | ||||
| -rw-r--r-- | src/gmalloc.c | 9 |
3 files changed, 8 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 46591eb1952..c12b32ebc71 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-08-15 Ken Brown <kbrown@cornell.edu> | ||
| 2 | |||
| 3 | * emacs.c (main): Update comment about G_SLICE_ALWAYS_MALLOC. | ||
| 4 | * gmalloc.c (memalign) [CYGWIN]: Revert last change; it's not | ||
| 5 | needed. | ||
| 6 | |||
| 1 | 2013-08-15 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2013-08-15 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 8 | ||
| 3 | Fix minor problems found by static checking. | 9 | Fix minor problems found by static checking. |
diff --git a/src/emacs.c b/src/emacs.c index 3c80d3ed753..05384145330 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -696,7 +696,8 @@ main (int argc, char **argv) | |||
| 696 | #endif | 696 | #endif |
| 697 | 697 | ||
| 698 | #ifdef G_SLICE_ALWAYS_MALLOC | 698 | #ifdef G_SLICE_ALWAYS_MALLOC |
| 699 | /* This is used by the Cygwin build. */ | 699 | /* This is used by the Cygwin build. It's not needed starting with |
| 700 | cygwin-1.7.24, but it doesn't do any harm. */ | ||
| 700 | xputenv ("G_SLICE=always-malloc"); | 701 | xputenv ("G_SLICE=always-malloc"); |
| 701 | #endif | 702 | #endif |
| 702 | 703 | ||
diff --git a/src/gmalloc.c b/src/gmalloc.c index 42ac0b03985..bc1d85ac5fb 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c | |||
| @@ -1558,15 +1558,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. * | |||
| 1558 | 1558 | ||
| 1559 | void *(*__memalign_hook) (size_t size, size_t alignment); | 1559 | void *(*__memalign_hook) (size_t size, size_t alignment); |
| 1560 | 1560 | ||
| 1561 | /* As of version 1.7.24, Cygwin allows applications to provide their | ||
| 1562 | own posix_memalign (but not memalign). But posix_memalign as | ||
| 1563 | defined in this file calls memalign, so we have to rename the | ||
| 1564 | latter in order to make sure that posix_memalign calls Emacs's | ||
| 1565 | memalign. */ | ||
| 1566 | #ifdef CYGWIN | ||
| 1567 | #define memalign emacs_memalign | ||
| 1568 | #endif | ||
| 1569 | |||
| 1570 | void * | 1561 | void * |
| 1571 | memalign (size_t alignment, size_t size) | 1562 | memalign (size_t alignment, size_t size) |
| 1572 | { | 1563 | { |