aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.h
diff options
context:
space:
mode:
authorJoakim Verona2013-07-02 22:46:17 +0200
committerJoakim Verona2013-07-02 22:46:17 +0200
commit3718127221fbbc31f8ebd027ab7c95403dbe9118 (patch)
treeef422898f3344c8f94f6ecf63eb583122bbf2bd8 /src/syntax.h
parent1ce45b902c67b8a0dda8d71bd2812de29a9988a6 (diff)
parenta3b49114c186d84404226af75ae7905bd1cd018f (diff)
downloademacs-3718127221fbbc31f8ebd027ab7c95403dbe9118.tar.gz
emacs-3718127221fbbc31f8ebd027ab7c95403dbe9118.zip
Merge branch 'trunk' into xwidget
Conflicts: src/window.c
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.