comparison src/alloc.c @ 52837:1bbf3f566879

(lisp_align_malloc): If BASE is 0, call memory_full.
author Richard M. Stallman <rms@gnu.org>
date Mon, 13 Oct 2003 18:45:03 +0000
parents 623355edbb1d
children e8f5463f3d5b
comparison
equal deleted inserted replaced
52836:a832ae359532 52837:1bbf3f566879
754 abase = err ? (base = NULL) : base; 754 abase = err ? (base = NULL) : base;
755 } 755 }
756 #else 756 #else
757 base = malloc (ABLOCKS_BYTES); 757 base = malloc (ABLOCKS_BYTES);
758 abase = ALIGN (base, BLOCK_ALIGN); 758 abase = ALIGN (base, BLOCK_ALIGN);
759 if (base == 0)
760 {
761 UNBLOCK_INPUT;
762 memory_full ();
763 }
759 #endif 764 #endif
760 765
761 aligned = (base == abase); 766 aligned = (base == abase);
762 if (!aligned) 767 if (!aligned)
763 ((void**)abase)[-1] = base; 768 ((void**)abase)[-1] = base;