Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
0e35bfd8
Commit
0e35bfd8
authored
Feb 28, 1997
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY): Cast arg C to
`unsigned char' before indexing syntax table directly.
parent
78f9a1f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
src/syntax.h
src/syntax.h
+10
-8
No files found.
src/syntax.h
View file @
0e35bfd8
...
...
@@ -53,10 +53,10 @@ enum syntaxcode
/* Set the syntax entry VAL for char C in table TABLE. */
#define SET_RAW_SYNTAX_ENTRY(table, c, val) \
((
unsigned)(c) < 128
\
? (XCHAR_TABLE (table)->contents[(unsigned) (c)] = (val)) \
: Faset ((table),
(unsigned)
(c), (val)))
#define SET_RAW_SYNTAX_ENTRY(table, c, val)
\
((
c) < CHAR_TABLE_ORDINARY_SLOTS
\
? (XCHAR_TABLE (table)->contents[(unsigned
char
) (c)] = (val)) \
: Faset ((table),
make_number
(c), (val)))
/* Fetch the syntax entry for char C in syntax table TABLE.
This macro is called only when C is less than CHAR_TABLE_ORDINARY_SLOTS.
...
...
@@ -89,10 +89,12 @@ extern Lisp_Object syntax_parent_lookup ();
This returns the whole entry (normally a cons cell).
Do Inheritance. */
#define SYNTAX_ENTRY(c) \
((unsigned) (c) < CHAR_TABLE_ORDINARY_SLOTS \
? SYNTAX_ENTRY_FOLLOW_PARENT (current_buffer->syntax_table, (unsigned) (c))\
: Faref (current_buffer->syntax_table, make_number (c)))
#define SYNTAX_ENTRY(c) \
((c) < CHAR_TABLE_ORDINARY_SLOTS \
? SYNTAX_ENTRY_FOLLOW_PARENT (current_buffer->syntax_table, \
(unsigned char) (c)) \
: Faref (current_buffer->syntax_table, make_number ((c))))
/* Extract the information from the entry for character C
in the current syntax table. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment