aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.h
diff options
context:
space:
mode:
authorTom Tromey2013-07-06 23:18:58 -0600
committerTom Tromey2013-07-06 23:18:58 -0600
commit6dacdad5fcb278e5a16b38bb81786aac9ca27be4 (patch)
treef5f331ea361ba0f99e0f9b638d183ad492a7da31 /src/syntax.h
parent0a6f2ff0c8ceb29703e76cddd46ea3f176dd873a (diff)
parent219afb88d9d484393418820d1c08dc93299110ec (diff)
downloademacs-6dacdad5fcb278e5a16b38bb81786aac9ca27be4.tar.gz
emacs-6dacdad5fcb278e5a16b38bb81786aac9ca27be4.zip
merge from trunk
this merges frmo trunk and fixes various build issues. this needed a few ugly tweaks. this hangs in "make check" now
Diffstat (limited to 'src/syntax.h')
-rw-r--r--src/syntax.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/syntax.h b/src/syntax.h
index c9af240df0c..58d39b9059c 100644
--- a/src/syntax.h
+++ b/src/syntax.h
@@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public License
19along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 19along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
20 20
21 21
22extern void update_syntax_table (ptrdiff_t, EMACS_INT, int, Lisp_Object); 22extern void update_syntax_table (ptrdiff_t, EMACS_INT, bool, Lisp_Object);
23 23
24/* The standard syntax table is stored where it will automatically 24/* The standard syntax table is stored where it will automatically
25 be used in all new buffers. */ 25 be used in all new buffers. */
@@ -99,7 +99,7 @@ enum syntaxcode
99 _syntax_temp = SYNTAX_ENTRY (c); \ 99 _syntax_temp = SYNTAX_ENTRY (c); \
100 (CONSP (_syntax_temp) \ 100 (CONSP (_syntax_temp) \
101 ? XINT (XCAR (_syntax_temp)) \ 101 ? XINT (XCAR (_syntax_temp)) \
102 : (int) Swhitespace); }) 102 : Swhitespace); })
103 103
104#define SYNTAX_MATCH(c) \ 104#define SYNTAX_MATCH(c) \
105 ({ Lisp_Object _syntax_temp; \ 105 ({ Lisp_Object _syntax_temp; \
@@ -112,14 +112,14 @@ extern Lisp_Object syntax_temp;
112#define SYNTAX(c) \ 112#define SYNTAX(c) \
113 (syntax_temp = SYNTAX_ENTRY ((c)), \ 113 (syntax_temp = SYNTAX_ENTRY ((c)), \
114 (CONSP (syntax_temp) \ 114 (CONSP (syntax_temp) \
115 ? (enum syntaxcode) (XINT (XCAR (syntax_temp)) & 0xff) \ 115 ? (enum syntaxcode) (XINT (XCAR (syntax_temp)) & 0xff) \
116 : Swhitespace)) 116 : Swhitespace))
117 117
118#define SYNTAX_WITH_FLAGS(c) \ 118#define SYNTAX_WITH_FLAGS(c) \
119 (syntax_temp = SYNTAX_ENTRY ((c)), \ 119 (syntax_temp = SYNTAX_ENTRY ((c)), \
120 (CONSP (syntax_temp) \ 120 (CONSP (syntax_temp) \
121 ? XINT (XCAR (syntax_temp)) \ 121 ? XINT (XCAR (syntax_temp)) \
122 : (int) Swhitespace)) 122 : Swhitespace))
123 123
124#define SYNTAX_MATCH(c) \ 124#define SYNTAX_MATCH(c) \
125 (syntax_temp = SYNTAX_ENTRY ((c)), \ 125 (syntax_temp = SYNTAX_ENTRY ((c)), \
@@ -130,17 +130,17 @@ extern Lisp_Object syntax_temp;
130 130
131 131
132/* Whether the syntax of the character C has the prefix flag set. */ 132/* Whether the syntax of the character C has the prefix flag set. */
133extern int syntax_prefix_flag_p (int c); 133extern bool syntax_prefix_flag_p (int c);
134 134
135/* This array, indexed by a character, contains the syntax code which that 135/* This array, indexed by a character less than 256, contains the
136 character signifies (as a char). For example, 136 syntax code which that character signifies (as an unsigned char).
137 (enum syntaxcode) syntax_spec_code['w'] is Sword. */ 137 For example, syntax_spec_code['w'] == Sword. */
138 138
139extern unsigned char syntax_spec_code[0400]; 139extern unsigned char const syntax_spec_code[0400];
140 140
141/* Indexed by syntax code, give the letter that describes it. */ 141/* Indexed by syntax code, give the letter that describes it. */
142 142
143extern char syntax_code_spec[16]; 143extern char const syntax_code_spec[16];
144 144
145/* Convert the byte offset BYTEPOS into a character position, 145/* Convert the byte offset BYTEPOS into a character position,
146 for the object recorded in gl_state with SETUP_SYNTAX_TABLE_FOR_OBJECT. 146 for the object recorded in gl_state with SETUP_SYNTAX_TABLE_FOR_OBJECT.