emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/syntax.h


From: Dave Love
Subject: [Emacs-diffs] Changes to emacs/src/syntax.h
Date: Thu, 09 May 2002 13:59:01 -0400

Index: emacs/src/syntax.h
diff -c emacs/src/syntax.h:1.36 emacs/src/syntax.h:1.37
*** emacs/src/syntax.h:1.36     Tue Dec 14 19:20:44 1999
--- emacs/src/syntax.h  Thu Oct 11 21:37:49 2001
***************
*** 252,258 ****
  
  #define UPDATE_SYNTAX_TABLE_BACKWARD(charpos)                 \
    (parse_sexp_lookup_properties                                       \
!    && (charpos) <= gl_state.b_property                                \
     ? (update_syntax_table ((charpos) + gl_state.offset, -1, 0,        \
                           gl_state.object),                    \
        1)                                                      \
--- 252,258 ----
  
  #define UPDATE_SYNTAX_TABLE_BACKWARD(charpos)                 \
    (parse_sexp_lookup_properties                                       \
!    && (charpos) < gl_state.b_property                         \
     ? (update_syntax_table ((charpos) + gl_state.offset, -1, 0,        \
                           gl_state.object),                    \
        1)                                                      \
***************
*** 262,268 ****
  
  #define UPDATE_SYNTAX_TABLE(charpos)                          \
    (parse_sexp_lookup_properties                                       \
!    && (charpos) <= gl_state.b_property                                \
     ? (update_syntax_table ((charpos) + gl_state.offset, -1, 0,        \
                           gl_state.object),                    \
        1)                                                      \
--- 262,268 ----
  
  #define UPDATE_SYNTAX_TABLE(charpos)                          \
    (parse_sexp_lookup_properties                                       \
!    && (charpos) < gl_state.b_property                         \
     ? (update_syntax_table ((charpos) + gl_state.offset, -1, 0,        \
                           gl_state.object),                    \
        1)                                                      \
***************
*** 284,290 ****
  #define SETUP_SYNTAX_TABLE(FROM, COUNT)                                       
\
  if (1)                                                                        
\
    {                                                                   \
!     gl_state.b_property = BEGV - 1;                                   \
      gl_state.e_property = ZV + 1;                                     \
      gl_state.object = Qnil;                                           \
      gl_state.use_global = 0;                                          \
--- 284,290 ----
  #define SETUP_SYNTAX_TABLE(FROM, COUNT)                                       
\
  if (1)                                                                        
\
    {                                                                   \
!     gl_state.b_property = BEGV;                                               
\
      gl_state.e_property = ZV + 1;                                     \
      gl_state.object = Qnil;                                           \
      gl_state.use_global = 0;                                          \
***************
*** 311,335 ****
      if (BUFFERP (gl_state.object))                                    \
        {                                                                       
\
        struct buffer *buf = XBUFFER (gl_state.object);                 \
!       gl_state.b_property = 0;                                        \
        gl_state.e_property = BUF_ZV (buf) - BUF_BEGV (buf) + 1;        \
        gl_state.offset = BUF_BEGV (buf) - 1;                           \
        }                                                                       
\
      else if (NILP (gl_state.object))                                  \
        {                                                                       
\
!       gl_state.b_property = 0;                                        \
        gl_state.e_property = ZV - BEGV + 1;                            \
        gl_state.offset = BEGV - 1;                                     \
        }                                                                       
\
      else if (EQ (gl_state.object, Qt))                                        
\
        {                                                                       
\
!       gl_state.b_property = - 1;                                      \
        gl_state.e_property = 1500000000;                               \
        gl_state.offset = 0;                                            \
        }                                                                       
\
      else                                                              \
        {                                                                       
\
!       gl_state.b_property = -1;                                       \
        gl_state.e_property = 1 + XSTRING (gl_state.object)->size;      \
        gl_state.offset = 0;                                            \
        }                                                                       
\
--- 311,335 ----
      if (BUFFERP (gl_state.object))                                    \
        {                                                                       
\
        struct buffer *buf = XBUFFER (gl_state.object);                 \
!       gl_state.b_property = 1;                                        \
        gl_state.e_property = BUF_ZV (buf) - BUF_BEGV (buf) + 1;        \
        gl_state.offset = BUF_BEGV (buf) - 1;                           \
        }                                                                       
\
      else if (NILP (gl_state.object))                                  \
        {                                                                       
\
!       gl_state.b_property = 1;                                        \
        gl_state.e_property = ZV - BEGV + 1;                            \
        gl_state.offset = BEGV - 1;                                     \
        }                                                                       
\
      else if (EQ (gl_state.object, Qt))                                        
\
        {                                                                       
\
!       gl_state.b_property = 0;                                        \
        gl_state.e_property = 1500000000;                               \
        gl_state.offset = 0;                                            \
        }                                                                       
\
      else                                                              \
        {                                                                       
\
!       gl_state.b_property = 0;                                        \
        gl_state.e_property = 1 + XSTRING (gl_state.object)->size;      \
        gl_state.offset = 0;                                            \
        }                                                                       
\
***************
*** 352,359 ****
    Lisp_Object global_code;            /* Syntax code of current char. */
    Lisp_Object current_syntax_table;   /* Syntax table for current pos. */
    Lisp_Object old_prop;                       /* Syntax-table prop at prev 
pos. */
!   int b_property;                     /* Last index where c_s_t is 
!                                          not valid. */
    int e_property;                     /* First index where c_s_t is
                                           not valid. */
    INTERVAL forward_i;                 /* Where to start lookup on forward */
--- 352,358 ----
    Lisp_Object global_code;            /* Syntax code of current char. */
    Lisp_Object current_syntax_table;   /* Syntax table for current pos. */
    Lisp_Object old_prop;                       /* Syntax-table prop at prev 
pos. */
!   int b_property;                     /* First index where c_s_t is valid. */
    int e_property;                     /* First index where c_s_t is
                                           not valid. */
    INTERVAL forward_i;                 /* Where to start lookup on forward */
***************
*** 365,372 ****
                                           on: */
    /* Offset for positions specified to UPDATE_SYNTAX_TABLE.  */
    int offset;
-   char left_ok;
-   char right_ok;
  };
  
  extern struct gl_state_s gl_state;
--- 364,369 ----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]