Mercurial > emacs
changeset 2187:12b50e8d3b1c
(INTEGERP, SYMBOLP, MARKERP, STRINGP, VECTORP): New macros.
(COMPILEDP, BUFFERP, SUBRP, PROCESSP, FRAMEP, WINDOWP): New macros.
(WINDOW_CONFIGURATIONP, FLOATP): New macros.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 15 Mar 1993 05:44:21 +0000 |
parents | 82e8ee492593 |
children | f74e9c948380 |
files | src/lisp.h |
diffstat | 1 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lisp.h Mon Mar 15 05:43:15 1993 +0000 +++ b/src/lisp.h Mon Mar 15 05:44:21 1993 +0000 @@ -586,8 +586,21 @@ #define NUMBERP(x) (XTYPE (x) == Lisp_Int) #endif -/* #define LISTP(x) (XTYPE ((x)) == Lisp_Cons)*/ +#define INTEGERP(x) (XTYPE ((x)) == Lisp_Int) +#define SYMBOLP(x) (XTYPE ((x)) == Lisp_Symbol) +#define MARKERP(x) (XTYPE ((x)) == Lisp_Marker) +#define STRINGP(x) (XTYPE ((x)) == Lisp_String) +#define VECTORP(x) (XTYPE ((x)) == Lisp_Vector) #define CONSP(x) (XTYPE ((x)) == Lisp_Cons) +#define COMPILEDP(x) (XTYPE ((x)) == Lisp_Compiled) +#define BUFFERP(x) (XTYPE ((x)) == Lisp_Buffer) +#define SUBRP(x) (XTYPE ((x)) == Lisp_Subr) +#define PROCESSP(x) (XTYPE ((x)) == Lisp_Process) +#define FRAMEP(x) (XTYPE ((x)) == Lisp_Frame) +#define WINDOWP(x) (XTYPE ((x)) == Lisp_Window) +#define WINDOW_CONFIGURATIONP(x) (XTYPE ((x)) == Lisp_Window_Configuration) +#define FLOATP(x) (XTYPE ((x)) == Lisp_Float) + #define EQ(x, y) (XFASTINT (x) == XFASTINT (y)) #define GC_EQ(x, y) (XGCTYPE (x) == XGCTYPE (y) && XPNTR (x) == XPNTR (y))