aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.h
diff options
context:
space:
mode:
authorKenichi Handa2012-07-17 07:09:08 +0900
committerKenichi Handa2012-07-17 07:09:08 +0900
commit8c536f15bf95916d56bb50495d22b7da7e09fff9 (patch)
treeac6f8bf5103bdbd1d6a75f05def9bc7aa9e96547 /src/syntax.h
parent21a8caaa4af24f258e6c7f80c1fc913b00aee044 (diff)
parentc05cf3902ae658cc8bf413124245c9e1cdcca2d7 (diff)
downloademacs-8c536f15bf95916d56bb50495d22b7da7e09fff9.tar.gz
emacs-8c536f15bf95916d56bb50495d22b7da7e09fff9.zip
merge trunk
Diffstat (limited to 'src/syntax.h')
-rw-r--r--src/syntax.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/syntax.h b/src/syntax.h
index a5d7ec5aced..6edb1585795 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 (EMACS_INT, EMACS_INT, int, Lisp_Object); 22extern void update_syntax_table (ptrdiff_t, EMACS_INT, int, 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. */
@@ -258,7 +258,7 @@ do \
258 else if (EQ (gl_state.object, Qt)) \ 258 else if (EQ (gl_state.object, Qt)) \
259 { \ 259 { \
260 gl_state.b_property = 0; \ 260 gl_state.b_property = 0; \
261 gl_state.e_property = MOST_POSITIVE_FIXNUM; \ 261 gl_state.e_property = PTRDIFF_MAX; \
262 gl_state.offset = 0; \ 262 gl_state.offset = 0; \
263 } \ 263 } \
264 else \ 264 else \
@@ -277,15 +277,15 @@ while (0)
277struct gl_state_s 277struct gl_state_s
278{ 278{
279 Lisp_Object object; /* The object we are scanning. */ 279 Lisp_Object object; /* The object we are scanning. */
280 EMACS_INT start; /* Where to stop. */ 280 ptrdiff_t start; /* Where to stop. */
281 EMACS_INT stop; /* Where to stop. */ 281 ptrdiff_t stop; /* Where to stop. */
282 int use_global; /* Whether to use global_code 282 int use_global; /* Whether to use global_code
283 or c_s_t. */ 283 or c_s_t. */
284 Lisp_Object global_code; /* Syntax code of current char. */ 284 Lisp_Object global_code; /* Syntax code of current char. */
285 Lisp_Object current_syntax_table; /* Syntax table for current pos. */ 285 Lisp_Object current_syntax_table; /* Syntax table for current pos. */
286 Lisp_Object old_prop; /* Syntax-table prop at prev pos. */ 286 Lisp_Object old_prop; /* Syntax-table prop at prev pos. */
287 EMACS_INT b_property; /* First index where c_s_t is valid. */ 287 ptrdiff_t b_property; /* First index where c_s_t is valid. */
288 EMACS_INT e_property; /* First index where c_s_t is 288 ptrdiff_t e_property; /* First index where c_s_t is
289 not valid. */ 289 not valid. */
290 INTERVAL forward_i; /* Where to start lookup on forward */ 290 INTERVAL forward_i; /* Where to start lookup on forward */
291 INTERVAL backward_i; /* or backward movement. The 291 INTERVAL backward_i; /* or backward movement. The
@@ -295,8 +295,8 @@ struct gl_state_s
295 intervals too, depending 295 intervals too, depending
296 on: */ 296 on: */
297 /* Offset for positions specified to UPDATE_SYNTAX_TABLE. */ 297 /* Offset for positions specified to UPDATE_SYNTAX_TABLE. */
298 EMACS_INT offset; 298 ptrdiff_t offset;
299}; 299};
300 300
301extern struct gl_state_s gl_state; 301extern struct gl_state_s gl_state;
302extern EMACS_INT scan_words (EMACS_INT, EMACS_INT); 302extern ptrdiff_t scan_words (ptrdiff_t, EMACS_INT);