]> git.eshelyaron.com Git - emacs.git/commitdiff
* alloc.c: Remove one incorrect comment and fix another.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Apr 2012 06:39:21 +0000 (23:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Apr 2012 06:39:21 +0000 (23:39 -0700)
src/ChangeLog
src/alloc.c

index 7172ba605f5e58f817b64339a0e132e9a8e99613..e321a70d4c37b36e7824970da8359723388c0b40 100644 (file)
@@ -8,6 +8,7 @@
        GC_MALLOC_CHECK) && GC_MALLOC_CHECK), to match when it's used.
        (NEED_MEM_INSERT): New macro.
        (mem_insert, mem_insert_fixup) [!NEED_MEM_INSERT]: Remove; unused.
+       Remove one incorrect comment and fix another.
 
        Fix minor ralloc.c problems found by static checking.
        See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html
index 9589ae05e95c81c6ef90947e8b5a0e1fbba42cb8..400b11c296aabd95aa461090797fb7c20aaea6c0 100644 (file)
@@ -948,9 +948,6 @@ lisp_free (POINTER_TYPE *block)
 /* The entry point is lisp_align_malloc which returns blocks of at most
    BLOCK_BYTES and guarantees they are aligned on a BLOCK_ALIGN boundary.  */
 
-/* Use posix_memalloc if the system has it and we're using the system's
-   malloc (because our gmalloc.c routines don't have posix_memalign although
-   its memalloc could be used).  */
 #if defined (HAVE_POSIX_MEMALIGN) && defined (SYSTEM_MALLOC)
 #define USE_POSIX_MEMALIGN 1
 #endif
@@ -1007,7 +1004,7 @@ struct ablocks
   struct ablock blocks[ABLOCKS_SIZE];
 };
 
-/* Size of the block requested from malloc or memalign.  */
+/* Size of the block requested from malloc or posix_memalign.  */
 #define ABLOCKS_BYTES (sizeof (struct ablocks) - BLOCK_PADDING)
 
 #define ABLOCK_ABASE(block) \