aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Brown2013-08-15 12:37:15 -0400
committerKen Brown2013-08-15 12:37:15 -0400
commit0fe73012cda7153f85cff32db8df442a0859fa5b (patch)
tree27f37c1b0d7b4e3e9eba3df00bcf5ca9d72651c2 /src
parent691a357f3afffc2f40a6f04dea072933dcdf8bc0 (diff)
downloademacs-0fe73012cda7153f85cff32db8df442a0859fa5b.tar.gz
emacs-0fe73012cda7153f85cff32db8df442a0859fa5b.zip
Revert last change to gmalloc.c; update some comments.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/emacs.c3
-rw-r--r--src/gmalloc.c9
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 @@
12013-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
12013-08-15 Paul Eggert <eggert@cs.ucla.edu> 72013-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
1559void *(*__memalign_hook) (size_t size, size_t alignment); 1559void *(*__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
1570void * 1561void *
1571memalign (size_t alignment, size_t size) 1562memalign (size_t alignment, size_t size)
1572{ 1563{