diff options
| author | Joakim Verona | 2015-01-15 14:54:25 +0100 |
|---|---|---|
| committer | Joakim Verona | 2015-01-15 14:54:25 +0100 |
| commit | 0298a2c6a10bc3b79cb2f45a1961dd7ac6da4e6d (patch) | |
| tree | 6c7ea25ac137f5764d931e841598a3c1ea434ab0 /src/lisp.h | |
| parent | a1124bc117e41019de49c82d13d1a72a50df977d (diff) | |
| parent | 0e97c44c3699c4606a04f589828acdf9c03f447e (diff) | |
| download | emacs-0298a2c6a10bc3b79cb2f45a1961dd7ac6da4e6d.tar.gz emacs-0298a2c6a10bc3b79cb2f45a1961dd7ac6da4e6d.zip | |
merge master
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/src/lisp.h b/src/lisp.h index 9e1f1501464..b6608daa20e 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -610,7 +610,6 @@ INLINE bool (VECTORLIKEP) (Lisp_Object); | |||
| 610 | INLINE bool WINDOWP (Lisp_Object); | 610 | INLINE bool WINDOWP (Lisp_Object); |
| 611 | INLINE struct Lisp_Save_Value *XSAVE_VALUE (Lisp_Object); | 611 | INLINE struct Lisp_Save_Value *XSAVE_VALUE (Lisp_Object); |
| 612 | INLINE struct Lisp_Symbol *(XSYMBOL) (Lisp_Object); | 612 | INLINE struct Lisp_Symbol *(XSYMBOL) (Lisp_Object); |
| 613 | INLINE enum Lisp_Type (XTYPE) (Lisp_Object); | ||
| 614 | INLINE void *(XUNTAG) (Lisp_Object, int); | 613 | INLINE void *(XUNTAG) (Lisp_Object, int); |
| 615 | 614 | ||
| 616 | /* Defined in chartab.c. */ | 615 | /* Defined in chartab.c. */ |
| @@ -825,9 +824,6 @@ DEFINE_GDB_SYMBOL_END (VALMASK) | |||
| 825 | #define MOST_POSITIVE_FIXNUM (EMACS_INT_MAX >> INTTYPEBITS) | 824 | #define MOST_POSITIVE_FIXNUM (EMACS_INT_MAX >> INTTYPEBITS) |
| 826 | #define MOST_NEGATIVE_FIXNUM (-1 - MOST_POSITIVE_FIXNUM) | 825 | #define MOST_NEGATIVE_FIXNUM (-1 - MOST_POSITIVE_FIXNUM) |
| 827 | 826 | ||
| 828 | /* Extract the pointer hidden within A. */ | ||
| 829 | LISP_MACRO_DEFUN (XPNTR, void *, (Lisp_Object a), (a)) | ||
| 830 | |||
| 831 | #if USE_LSB_TAG | 827 | #if USE_LSB_TAG |
| 832 | 828 | ||
| 833 | LISP_MACRO_DEFUN (make_number, Lisp_Object, (EMACS_INT n), (n)) | 829 | LISP_MACRO_DEFUN (make_number, Lisp_Object, (EMACS_INT n), (n)) |
| @@ -917,6 +913,9 @@ XUNTAG (Lisp_Object a, int type) | |||
| 917 | 913 | ||
| 918 | #endif /* ! USE_LSB_TAG */ | 914 | #endif /* ! USE_LSB_TAG */ |
| 919 | 915 | ||
| 916 | /* Extract the pointer hidden within A. */ | ||
| 917 | LISP_MACRO_DEFUN (XPNTR, void *, (Lisp_Object a), (a)) | ||
| 918 | |||
| 920 | /* Extract A's value as an unsigned integer. */ | 919 | /* Extract A's value as an unsigned integer. */ |
| 921 | INLINE EMACS_UINT | 920 | INLINE EMACS_UINT |
| 922 | XUINT (Lisp_Object a) | 921 | XUINT (Lisp_Object a) |
| @@ -1694,10 +1693,9 @@ CHAR_TABLE_EXTRA_SLOTS (struct Lisp_Char_Table *ct) | |||
| 1694 | - CHAR_TABLE_STANDARD_SLOTS); | 1693 | - CHAR_TABLE_STANDARD_SLOTS); |
| 1695 | } | 1694 | } |
| 1696 | 1695 | ||
| 1697 | /* Make sure that sub char-table contents slot | 1696 | /* Make sure that sub char-table contents slot is where we think it is. */ |
| 1698 | is aligned on a multiple of Lisp_Objects. */ | 1697 | verify (offsetof (struct Lisp_Sub_Char_Table, contents) |
| 1699 | verify ((offsetof (struct Lisp_Sub_Char_Table, contents) | 1698 | == offsetof (struct Lisp_Vector, contents[SUB_CHAR_TABLE_OFFSET])); |
| 1700 | - offsetof (struct Lisp_Sub_Char_Table, depth)) % word_size == 0); | ||
| 1701 | 1699 | ||
| 1702 | /*********************************************************************** | 1700 | /*********************************************************************** |
| 1703 | Symbols | 1701 | Symbols |
| @@ -4060,10 +4058,23 @@ struct re_registers; | |||
| 4060 | extern struct re_pattern_buffer *compile_pattern (Lisp_Object, | 4058 | extern struct re_pattern_buffer *compile_pattern (Lisp_Object, |
| 4061 | struct re_registers *, | 4059 | struct re_registers *, |
| 4062 | Lisp_Object, bool, bool); | 4060 | Lisp_Object, bool, bool); |
| 4063 | extern ptrdiff_t fast_string_match (Lisp_Object, Lisp_Object); | 4061 | extern ptrdiff_t fast_string_match_internal (Lisp_Object, Lisp_Object, |
| 4062 | Lisp_Object); | ||
| 4063 | |||
| 4064 | INLINE ptrdiff_t | ||
| 4065 | fast_string_match (Lisp_Object regexp, Lisp_Object string) | ||
| 4066 | { | ||
| 4067 | return fast_string_match_internal (regexp, string, Qnil); | ||
| 4068 | } | ||
| 4069 | |||
| 4070 | INLINE ptrdiff_t | ||
| 4071 | fast_string_match_ignore_case (Lisp_Object regexp, Lisp_Object string) | ||
| 4072 | { | ||
| 4073 | return fast_string_match_internal (regexp, string, Vascii_canon_table); | ||
| 4074 | } | ||
| 4075 | |||
| 4064 | extern ptrdiff_t fast_c_string_match_ignore_case (Lisp_Object, const char *, | 4076 | extern ptrdiff_t fast_c_string_match_ignore_case (Lisp_Object, const char *, |
| 4065 | ptrdiff_t); | 4077 | ptrdiff_t); |
| 4066 | extern ptrdiff_t fast_string_match_ignore_case (Lisp_Object, Lisp_Object); | ||
| 4067 | extern ptrdiff_t fast_looking_at (Lisp_Object, ptrdiff_t, ptrdiff_t, | 4078 | extern ptrdiff_t fast_looking_at (Lisp_Object, ptrdiff_t, ptrdiff_t, |
| 4068 | ptrdiff_t, ptrdiff_t, Lisp_Object); | 4079 | ptrdiff_t, ptrdiff_t, Lisp_Object); |
| 4069 | extern ptrdiff_t find_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t, ptrdiff_t, | 4080 | extern ptrdiff_t find_newline (ptrdiff_t, ptrdiff_t, ptrdiff_t, ptrdiff_t, |