diff options
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h index 7bfc69b647b..9716b34baee 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -1615,6 +1615,13 @@ STRING_SET_CHARS (Lisp_Object string, ptrdiff_t newsize) | |||
| 1615 | XSTRING (string)->u.s.size = newsize; | 1615 | XSTRING (string)->u.s.size = newsize; |
| 1616 | } | 1616 | } |
| 1617 | 1617 | ||
| 1618 | INLINE void | ||
| 1619 | CHECK_STRING_NULL_BYTES (Lisp_Object string) | ||
| 1620 | { | ||
| 1621 | CHECK_TYPE (memchr (SSDATA (string), '\0', SBYTES (string)) == NULL, | ||
| 1622 | Qfilenamep, string); | ||
| 1623 | } | ||
| 1624 | |||
| 1618 | /* A regular vector is just a header plus an array of Lisp_Objects. */ | 1625 | /* A regular vector is just a header plus an array of Lisp_Objects. */ |
| 1619 | 1626 | ||
| 1620 | struct Lisp_Vector | 1627 | struct Lisp_Vector |