diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lisp.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lisp.h b/src/lisp.h index 8c01d9c74de..ca8cd9835ee 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -543,8 +543,11 @@ extern Lisp_Object make_number (); | |||
| 543 | 543 | ||
| 544 | #define SREF(string, index) XSTRING (string)->data[index] | 544 | #define SREF(string, index) XSTRING (string)->data[index] |
| 545 | #define SDATA(string) XSTRING (string)->data | 545 | #define SDATA(string) XSTRING (string)->data |
| 546 | #define SCHARS(string) XSTRING (string)->size | 546 | #define SCHARS(string) (XSTRING (string)->size + 0) |
| 547 | #define SBYTES(string) STRING_BYTES (XSTRING (string)) | 547 | #define SBYTES(string) (STRING_BYTES (XSTRING (string)) + 0) |
| 548 | |||
| 549 | #define STRING_SET_CHARS(string, newsize) \ | ||
| 550 | (XSTRING (string)->size = (newsize)) | ||
| 548 | 551 | ||
| 549 | 552 | ||
| 550 | /* Basic data type for use of intervals. See the macros in intervals.h. */ | 553 | /* Basic data type for use of intervals. See the macros in intervals.h. */ |