chiark / gitweb /
update wip; see cvs diff from 1.12 before checkin
[chiark-tcl.git] / hbytes / chiark_tcl_hbytes.h
1 /*
2  */
3
4 #ifndef CHIARK_TCL_HBYTES_H
5 #define CHIARK_TCL_HBYTES_H
6
7 #include "hbytes.h"
8
9 typedef struct {
10   Byte *start; /* byl bytes */
11   Tcl_Obj *data; /* may be 0 to mean empty */
12 } AddrMap_Entry;
13
14 struct AddrMap_Value {
15   int byl, used, space;
16   AddrMap_Entry *entries;
17   /* Entries are sorted by start.  Each entry gives value (or lack of
18    * it) for all A st START <= A < NEXT-START.  Last entry has value
19    * (or lack of it) for all A >= START.  First entry is always
20    * present and always has start all-bits-0. */
21 }; /* internalRep.otherValuePtr */
22
23 #include "hbytes+tcmdif.h"
24
25 #endif /*CHIARK_TCL_HBYTES_H*/