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
Open sidebar
emacs
emacs
Commits
d90a14e0
Commit
d90a14e0
authored
Mar 08, 2002
by
Gerd Moellmann
Browse files
(SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
parent
bac8c2e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/lisp.h
src/lisp.h
+9
-1
No files found.
src/lisp.h
View file @
d90a14e0
/* Fundamental definitions for GNU Emacs Lisp interpreter.
Copyright (C) 1985,86,87,93,94,95,97,98,1999,2000, 2001
Copyright (C) 1985,86,87,93,94,95,97,98,1999,2000, 2001
, 2002
Free Software Foundation, Inc.
This file is part of GNU Emacs.
...
...
@@ -535,6 +535,14 @@ extern Lisp_Object make_number ();
#define ASET(ARRAY, IDX, VAL) (AREF ((ARRAY), (IDX)) = (VAL))
#define ASIZE(ARRAY) XVECTOR ((ARRAY))->size
/* Convenience macros for dealing with Lisp strings. */
#define SREF(string, index) XSTRING (string)->data[index]
#define SDATA(string) XSTRING (string)->data
#define SCHARS(string) XSTRING (string)->size
#define SBYTES(string) XSTRING (string)->size_bytes
#define SMBP(string) STRING_MULTIBYTE (string)
/* Basic data type for use of intervals. See the macros in intervals.h. */
...
...
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