/[emacs]/emacs/src/alloc.c
ViewVC logotype

Diff of /emacs/src/alloc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.341 by monnier, Sat May 29 00:00:17 2004 UTC revision 1.342 by rms, Sat May 29 16:10:27 2004 UTC
# Line 754  lisp_align_malloc (nbytes, type) Line 754  lisp_align_malloc (nbytes, type)
754  #ifdef HAVE_POSIX_MEMALIGN  #ifdef HAVE_POSIX_MEMALIGN
755        {        {
756          int err = posix_memalign (&base, BLOCK_ALIGN, ABLOCKS_BYTES);          int err = posix_memalign (&base, BLOCK_ALIGN, ABLOCKS_BYTES);
757          abase = err ? (base = NULL) : base;          if (err)
758              base = NULL;
759            abase = base;
760        }        }
761  #else  #else
762        base = malloc (ABLOCKS_BYTES);        base = malloc (ABLOCKS_BYTES);
763        abase = ALIGN (base, BLOCK_ALIGN);        abase = ALIGN (base, BLOCK_ALIGN);
764    #endif
765    
766        if (base == 0)        if (base == 0)
767          {          {
768            UNBLOCK_INPUT;            UNBLOCK_INPUT;
769            memory_full ();            memory_full ();
770          }          }
 #endif  
771    
772        aligned = (base == abase);        aligned = (base == abase);
773        if (!aligned)        if (!aligned)

Legend:
Removed from v.1.341  
changed lines
  Added in v.1.342

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26