Commit graph

22 commits

Author SHA1 Message Date
ceriel
5c83e7dbb5 Header --> Id 1994-06-24 11:31:16 +00:00
ceriel
df1ed9426d Do not use '#endif/#else xxx'; it is not allowed for ANSI C 1991-12-17 15:28:58 +00:00
ceriel
1bab6dbcaf Several fixes 1990-11-01 09:33:51 +00:00
ceriel
a932246479 Fix: did not work with ALIGNMENT < MIN_SIZE 1990-03-21 16:45:39 +00:00
eck
0296dc2371 fixed wrong assertion 1990-03-21 13:33:14 +00:00
ceriel
fc5c0ddc52 several fixes in the CHECK part 1990-01-18 17:11:41 +00:00
ceriel
5e2915d143 bug fix: the in_store test did not work when NON_STANDARD was defined,
because in this case, the bit tested resided in user area
1989-11-30 17:29:00 +00:00
ceriel
ac489d50a3 Corrected assertion 1989-11-30 15:12:11 +00:00
ceriel
cccb0dd197 if malloc can return 0 on a 0 argument, free should also accept 0 1989-10-31 09:44:21 +00:00
ceriel
95cfd33824 corrected assertions 1989-10-24 12:58:23 +00:00
ceriel
8279a37642 made more ANSI conformant 1989-08-09 16:25:50 +00:00
ceriel
990e7a67da Added some assertions 1989-07-31 12:55:33 +00:00
ceriel
b1ee8fe36b fixed a problem with the store: we sometimes lost some memory 1989-07-17 15:13:09 +00:00
ceriel
4797a7d4ce make realloc behave like most Unix realloc versions when handed a
null pointer
1989-03-29 12:58:18 +00:00
ceriel
5a4933ff7f Try to allocate to the next power of 2, instead of just aligning
with GRABSIZE; This way, malloc(1000000) followed by free() followed by
another malloc(1000000) will result in the same block being allocated,
because first_present will now find it
1989-02-10 09:18:19 +00:00
ceriel
45bb3b1413 try another SBRK 1988-07-11 14:06:11 +00:00
ceriel
bb3dc913a2 improved; delayed frees did not work anyway 1988-07-05 11:50:11 +00:00
ceriel
d5c423adaf better check if a block was already freed 1988-01-14 11:35:07 +00:00
ceriel
a2d921040d first free-ing and then reallocing did not work properly.
Now, free does nothing, except remembering that a block was freed.
malloc, realloc and free check for this.
1987-08-14 11:52:17 +00:00
ceriel
4f0cb4abe1 Added Rcs Id 1987-03-10 09:24:02 +00:00
ceriel
b8835cee3f Added copyright notice 1987-03-09 15:15:03 +00:00
ceriel
3788350d7c Initial revision 1987-01-06 11:25:09 +00:00