archetyp@uxh.cso.uiuc.edu (Joseph R Pickert) (11/13/90)
Here a change to commands/mac/rmaker/smalloc.c so that it works on 68000 machines (Plus, SE, etc.) *** 1.5.10/commands/mac/rmaker/smalloc.c Fri Aug 3 20:52:07 1990 --- 1.5.10.1/commands/mac/rmaker/smalloc.c Mon Nov 12 12:00:09 1990 *************** *** 6,13 **** { char *p, *malloc(); p = sbrk(0); ! if (brk(p+size) != (char *)0) { fatal("Exhausted mem\n"); } ! return p; } --- 6,13 ---- { char *p, *malloc(); p = sbrk(0); ! if (brk(p+size+sizeof(long)) != (char *)0) { fatal("Exhausted mem\n"); } ! return (p + sizeof(long) - ((long) p % sizeof(long))); }