comparison src/rangetab.h @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents 74fd4e045ea6
children 11054d720c21
comparison
equal deleted inserted replaced
411:12e008d41344 412:697ef44129c6
21 21
22 /* Synched up with: Not in FSF. */ 22 /* Synched up with: Not in FSF. */
23 23
24 /* Extracted from rangetab.c by O. Galibert, 1998. */ 24 /* Extracted from rangetab.c by O. Galibert, 1998. */
25 25
26 #ifndef INCLUDED_rangetab_h_ 26 #ifndef _XEMACS_RANGETAB_H_
27 #define INCLUDED_rangetab_h_ 27 #define _XEMACS_RANGETAB_H_
28 28
29 typedef struct range_table_entry range_table_entry; 29 typedef struct range_table_entry range_table_entry;
30 struct range_table_entry 30 struct range_table_entry
31 { 31 {
32 EMACS_INT first; 32 EMACS_INT first;
42 struct Lisp_Range_Table 42 struct Lisp_Range_Table
43 { 43 {
44 struct lcrecord_header header; 44 struct lcrecord_header header;
45 range_table_entry_dynarr *entries; 45 range_table_entry_dynarr *entries;
46 }; 46 };
47 typedef struct Lisp_Range_Table Lisp_Range_Table;
48 47
49 DECLARE_LRECORD (range_table, Lisp_Range_Table); 48 DECLARE_LRECORD (range_table, struct Lisp_Range_Table);
50 #define XRANGE_TABLE(x) XRECORD (x, range_table, Lisp_Range_Table) 49 #define XRANGE_TABLE(x) \
50 XRECORD (x, range_table, struct Lisp_Range_Table)
51 #define XSETRANGE_TABLE(x, p) XSETRECORD (x, p, range_table) 51 #define XSETRANGE_TABLE(x, p) XSETRECORD (x, p, range_table)
52 #define RANGE_TABLEP(x) RECORDP (x, range_table) 52 #define RANGE_TABLEP(x) RECORDP (x, range_table)
53 #define GC_RANGE_TABLEP(x) GC_RECORDP (x, range_table)
53 #define CHECK_RANGE_TABLE(x) CHECK_RECORD (x, range_table) 54 #define CHECK_RANGE_TABLE(x) CHECK_RECORD (x, range_table)
54 55
55 #endif /* INCLUDED_rangetab_h_ */ 56 #endif