aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2002-03-08 10:26:32 +0000
committerGerd Moellmann2002-03-08 10:26:32 +0000
commitd90a14e078b7e833d56495e400460bce1729a7fa (patch)
treef59a6a86a1feb2867b1140b249ec17cead7a531c /src
parentbac8c2e70ae093b10ecc6cffea1256f6d11283ef (diff)
downloademacs-d90a14e078b7e833d56495e400460bce1729a7fa.tar.gz
emacs-d90a14e078b7e833d56495e400460bce1729a7fa.zip
(SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
Diffstat (limited to 'src')
-rw-r--r--src/lisp.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lisp.h b/src/lisp.h
index cc464b95e92..234ab3ea9c7 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -1,5 +1,5 @@
1/* Fundamental definitions for GNU Emacs Lisp interpreter. 1/* Fundamental definitions for GNU Emacs Lisp interpreter.
2 Copyright (C) 1985,86,87,93,94,95,97,98,1999,2000, 2001 2 Copyright (C) 1985,86,87,93,94,95,97,98,1999,2000, 2001, 2002
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
@@ -535,6 +535,14 @@ extern Lisp_Object make_number ();
535#define ASET(ARRAY, IDX, VAL) (AREF ((ARRAY), (IDX)) = (VAL)) 535#define ASET(ARRAY, IDX, VAL) (AREF ((ARRAY), (IDX)) = (VAL))
536#define ASIZE(ARRAY) XVECTOR ((ARRAY))->size 536#define ASIZE(ARRAY) XVECTOR ((ARRAY))->size
537 537
538/* Convenience macros for dealing with Lisp strings. */
539
540#define SREF(string, index) XSTRING (string)->data[index]
541#define SDATA(string) XSTRING (string)->data
542#define SCHARS(string) XSTRING (string)->size
543#define SBYTES(string) XSTRING (string)->size_bytes
544#define SMBP(string) STRING_MULTIBYTE (string)
545
538 546
539/* Basic data type for use of intervals. See the macros in intervals.h. */ 547/* Basic data type for use of intervals. See the macros in intervals.h. */
540 548