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,v


From: Jan Djärv
Subject: [Emacs-diffs] Changes to emacs/src/syntax.h,v
Date: Thu, 07 Feb 2008 12:46:39 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Jan Djärv <jhd>        08/02/07 12:46:39

Index: syntax.h
===================================================================
RCS file: /cvsroot/emacs/emacs/src/syntax.h,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -b -r1.49 -r1.50
--- syntax.h    1 Feb 2008 16:00:58 -0000       1.49
+++ syntax.h    7 Feb 2008 12:46:39 -0000       1.50
@@ -256,7 +256,7 @@
  */
 
 #define SETUP_SYNTAX_TABLE(FROM, COUNT)                                        
\
-if (1)                                                                 \
+do                                                                     \
   {                                                                    \
     gl_state.b_property = BEGV;                                                
\
     gl_state.e_property = ZV + 1;                                      \
@@ -269,7 +269,7 @@
         update_syntax_table ((COUNT) > 0 ? (FROM) : (FROM) - 1, (COUNT),\
                             1, Qnil);                                  \
   }                                                                    \
-else
+while (0)
 
 /* Same as above, but in OBJECT.  If OBJECT is nil, use current buffer.
    If it is t, ignore properties altogether.
@@ -279,7 +279,7 @@
    So if it is a buffer, we set the offset field to BEGV.  */
 
 #define SETUP_SYNTAX_TABLE_FOR_OBJECT(OBJECT, FROM, COUNT)             \
-if (1)                                                                 \
+do                                                                     \
   {                                                                    \
     gl_state.object = (OBJECT);                                                
\
     if (BUFFERP (gl_state.object))                                     \
@@ -314,7 +314,7 @@
                            + (COUNT > 0 ? 0 :  -1)),                   \
                           COUNT, 1, gl_state.object);                  \
   }                                                                    \
-else
+while (0)
 
 struct gl_state_s
 {




reply via email to

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