Mercurial > emacs
comparison src/syntax.h @ 55319:75e1ea70fb3d
(SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT): Avoid
compiler warnings.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sun, 02 May 2004 18:46:39 +0000 |
parents | 695cf19ef79e |
children | f6fab60742ca |
comparison
equal
deleted
inserted
replaced
55318:edf85709fdb8 | 55319:75e1ea70fb3d |
---|---|
56 }; | 56 }; |
57 | 57 |
58 /* Set the syntax entry VAL for char C in table TABLE. */ | 58 /* Set the syntax entry VAL for char C in table TABLE. */ |
59 | 59 |
60 #define SET_RAW_SYNTAX_ENTRY(table, c, val) \ | 60 #define SET_RAW_SYNTAX_ENTRY(table, c, val) \ |
61 ((c) < CHAR_TABLE_SINGLE_BYTE_SLOTS \ | 61 ((((c) & 0xFF) == (c)) \ |
62 ? (XCHAR_TABLE (table)->contents[(unsigned char) (c)] = (val)) \ | 62 ? (XCHAR_TABLE (table)->contents[(unsigned char) (c)] = (val)) \ |
63 : Faset ((table), make_number (c), (val))) | 63 : Faset ((table), make_number (c), (val))) |
64 | 64 |
65 /* Fetch the syntax entry for char C in syntax table TABLE. | 65 /* Fetch the syntax entry for char C in syntax table TABLE. |
66 This macro is called only when C is less than CHAR_TABLE_ORDINARY_SLOTS. | 66 This macro is called only when C is less than CHAR_TABLE_ORDINARY_SLOTS. |
104 # define SYNTAX_ENTRY SYNTAX_ENTRY_INT | 104 # define SYNTAX_ENTRY SYNTAX_ENTRY_INT |
105 # define CURRENT_SYNTAX_TABLE current_buffer->syntax_table | 105 # define CURRENT_SYNTAX_TABLE current_buffer->syntax_table |
106 #endif | 106 #endif |
107 | 107 |
108 #define SYNTAX_ENTRY_INT(c) \ | 108 #define SYNTAX_ENTRY_INT(c) \ |
109 ((c) < CHAR_TABLE_SINGLE_BYTE_SLOTS \ | 109 ((((c) & 0xFF) == (c)) \ |
110 ? SYNTAX_ENTRY_FOLLOW_PARENT (CURRENT_SYNTAX_TABLE, \ | 110 ? SYNTAX_ENTRY_FOLLOW_PARENT (CURRENT_SYNTAX_TABLE, \ |
111 (unsigned char) (c)) \ | 111 (unsigned char) (c)) \ |
112 : Faref (CURRENT_SYNTAX_TABLE, \ | 112 : Faref (CURRENT_SYNTAX_TABLE, \ |
113 make_number (c))) | 113 make_number (c))) |
114 | 114 |