1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-20 04:30:55 -08:00
Commit graph

9 commits

Author SHA1 Message Date
Gareth Rees
0260380dd3 Rename cbstest.c to fbmtest.c (free block management test) and generalize it so that it tests both the cbs and freelist modules.
Split FreelistFind into FreelistFindFirst and FreelistFindLast so that the interface exactly matches the CBS interface.
Fix errors in freelist.c: missing computation of size in FreelistBlockSetLimit; update linked list correct in coalesceRight case in FreelistInsert.
Avoid compiler warnings in freelist.c.
In cbs.c: use $U for Booleans ($B is for bit tables).

Copied from Perforce
 Change: 182397
 ServerID: perforce.ravenbrook.com
2013-06-02 21:34:23 +01:00
Gareth Rees
db9328da7a Use range objects in the cbs interface instead of base, limit pairs. the idea is that freelist and cbs should offer similar interfaces so that the testing code can be shared.
Copied from Perforce
 Change: 182364
 ServerID: perforce.ravenbrook.com
2013-05-31 16:29:26 +01:00
Gareth Rees
87019f4ee2 Fix review comments from <https://info.ravenbrook.com/mail/2013/05/28/22-21-11/0/>:
* Rename RangeOverlap to RangesOverlap.
* MVFF shouldn't assume that CBSInsert and CBSDelete can't fail.
* Remove unused function mps_mvff_stat.
* Don't call range methods in RangeCheck.
* RangeInit can't fail, so return void.

Copied from Perforce
 Change: 182297
 ServerID: perforce.ravenbrook.com
2013-05-29 12:19:19 +01:00
Gareth Rees
ef4c41df55 Ensure the emergency branch compiles and runs on lii6gc:
No need for <string.h> in mpsi.c (this defines a function "index" on Linux).
Need more headers in range.c so that it will compile on its own.
Need UNUSED() declarations for some variables in cbstest.c.

Copied from Perforce
 Change: 182113
 ServerID: perforce.ravenbrook.com
2013-05-23 13:42:08 +01:00
Gareth Rees
5af8afd540 New function rangeisaligned; add avert to other range functions.
Copied from Perforce
 Change: 182069
 ServerID: perforce.ravenbrook.com
2013-05-22 09:41:45 +01:00
Gareth Rees
e40f8440dc Follow rules in design/sig.
Copied from Perforce
 Change: 182052
 ServerID: perforce.ravenbrook.com
2013-05-21 18:41:03 +01:00
Gareth Rees
2c47024e35 Range design.
Copied from Perforce
 Change: 182035
 ServerID: perforce.ravenbrook.com
2013-05-21 14:52:27 +01:00
Gareth Rees
943b0c5fe8 Add function versions of range{base,limit,size} macros: these can be useful when debugging.
Copied from Perforce
 Change: 182029
 ServerID: perforce.ravenbrook.com
2013-05-21 13:20:29 +01:00
Gareth Rees
082f12d68e New module range handles common operations on address ranges.
Copied from Perforce
 Change: 182015
 ServerID: perforce.ravenbrook.com
2013-05-20 20:45:52 +01:00