summaryrefslogtreecommitdiff
path: root/src/syntax.h
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1992-06-23 01:41:24 +0000
committerRichard M. Stallman <rms@gnu.org>1992-06-23 01:41:24 +0000
commitb51d90557d91427b44a5a30aecd773ee84a505f2 (patch)
tree10ff81bf4b3e4b810f82fc78bd4e071e9d95fb5c /src/syntax.h
parent0883189df0300bbfd5a9e34a7a4173b65187f2f6 (diff)
downloademacs-b51d90557d91427b44a5a30aecd773ee84a505f2.tar.gz
*** empty log message ***
Diffstat (limited to 'src/syntax.h')
-rw-r--r--src/syntax.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/syntax.h b/src/syntax.h
index 6bd9757c3a8..49905d9757c 100644
--- a/src/syntax.h
+++ b/src/syntax.h
@@ -49,13 +49,13 @@ enum syntaxcode
};
#define SYNTAX(c) \
- ((enum syntaxcode) (XINT (XVECTOR (current_buffer->syntax_table)->contents[c]) & 0377))
+ ((enum syntaxcode) (XINT (XVECTOR (current_buffer->syntax_table)->contents[(unsigned char) (c)]) & 0377))
/* The next 8 bits of the number is a character,
the matching delimiter in the case of Sopen or Sclose. */
#define SYNTAX_MATCH(c) \
- ((XINT (XVECTOR (current_buffer->syntax_table)->contents[c]) >> 8) & 0377)
+ ((XINT (XVECTOR (current_buffer->syntax_table)->contents[(unsigned char) (c)]) >> 8) & 0377)
/* Then there are five single-bit flags that have the following meanings:
1. This character is the first of a two-character comment-start sequence.
@@ -67,19 +67,19 @@ enum syntaxcode
and whose second character has flag 2 will be interpreted as a comment start. */
#define SYNTAX_COMSTART_FIRST(c) \
- ((XINT (XVECTOR (current_buffer->syntax_table)->contents[c]) >> 16) & 1)
+ ((XINT (XVECTOR (current_buffer->syntax_table)->contents[(unsigned char) (c)]) >> 16) & 1)
#define SYNTAX_COMSTART_SECOND(c) \
- ((XINT (XVECTOR (current_buffer->syntax_table)->contents[c]) >> 17) & 1)
+ ((XINT (XVECTOR (current_buffer->syntax_table)->contents[(unsigned char) (c)]) >> 17) & 1)
#define SYNTAX_COMEND_FIRST(c) \
- ((XINT (XVECTOR (current_buffer->syntax_table)->contents[c]) >> 18) & 1)
+ ((XINT (XVECTOR (current_buffer->syntax_table)->contents[(unsigned char) (c)]) >> 18) & 1)
#define SYNTAX_COMEND_SECOND(c) \
- ((XINT (XVECTOR (current_buffer->syntax_table)->contents[c]) >> 19) & 1)
+ ((XINT (XVECTOR (current_buffer->syntax_table)->contents[(unsigned char) (c)]) >> 19) & 1)
#define SYNTAX_PREFIX(c) \
- ((XINT (XVECTOR (current_buffer->syntax_table)->contents[c]) >> 20) & 1)
+ ((XINT (XVECTOR (current_buffer->syntax_table)->contents[(unsigned char) (c)]) >> 20) & 1)
/* This array, indexed by a character, contains the syntax code which that
character signifies (as a char). For example,