diff options
| author | Jim Blandy | 1992-04-24 08:11:54 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-04-24 08:11:54 +0000 |
| commit | 4746118aca2d5cbdd054b4af4814d56550dfbc79 (patch) | |
| tree | 370e07c6950794f936bc8d434cb0560d883e4a0b /src/lisp.h | |
| parent | d4327fecc103493bc8275c3580b05c06c9fcc019 (diff) | |
| download | emacs-4746118aca2d5cbdd054b4af4814d56550dfbc79.tar.gz emacs-4746118aca2d5cbdd054b4af4814d56550dfbc79.zip | |
*** empty log message ***
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/lisp.h b/src/lisp.h index 1e5d4bf9365..c7dd07058eb 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | /* Fundamental definitions for GNU Emacs Lisp interpreter. | 1 | /* Fundamental definitions for GNU Emacs Lisp interpreter. |
| 2 | Copyright (C) 1985, 1986, 1987 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 1986, 1987, 1992 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| 6 | GNU Emacs is free software; you can redistribute it and/or modify | 6 | GNU Emacs is free software; you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
| 8 | the Free Software Foundation; either version 1, or (at your option) | 8 | the Free Software Foundation; either version 2, or (at your option) |
| 9 | any later version. | 9 | any later version. |
| 10 | 10 | ||
| 11 | GNU Emacs is distributed in the hope that it will be useful, | 11 | GNU Emacs is distributed in the hope that it will be useful, |
| @@ -506,15 +506,19 @@ typedef unsigned char UCHAR; | |||
| 506 | 506 | ||
| 507 | /* Data type checking */ | 507 | /* Data type checking */ |
| 508 | 508 | ||
| 509 | #ifdef NULL | ||
| 510 | #undef NULL | ||
| 511 | #endif | ||
| 512 | #define NILP(x) (XFASTINT (x) == XFASTINT (Qnil)) | 509 | #define NILP(x) (XFASTINT (x) == XFASTINT (Qnil)) |
| 513 | 510 | ||
| 511 | #ifdef LISP_FLOAT_TYPE | ||
| 512 | #define NUMBERP(x) (XTYPE (x) == Lisp_Int || XTYPE (x) == Lisp_Float) | ||
| 513 | #else | ||
| 514 | #define NUMBERP(x) (XTYPE (x) == Lisp_Int) | ||
| 515 | #endif | ||
| 516 | |||
| 514 | /* #define LISTP(x) (XTYPE ((x)) == Lisp_Cons)*/ | 517 | /* #define LISTP(x) (XTYPE ((x)) == Lisp_Cons)*/ |
| 515 | #define CONSP(x) (XTYPE ((x)) == Lisp_Cons) | 518 | #define CONSP(x) (XTYPE ((x)) == Lisp_Cons) |
| 516 | #define EQ(x, y) (XFASTINT (x) == XFASTINT (y)) | 519 | #define EQ(x, y) (XFASTINT (x) == XFASTINT (y)) |
| 517 | 520 | ||
| 521 | |||
| 518 | #define CHECK_LIST(x, i) \ | 522 | #define CHECK_LIST(x, i) \ |
| 519 | { if ((XTYPE ((x)) != Lisp_Cons) && !NILP (x)) x = wrong_type_argument (Qlistp, (x)); } | 523 | { if ((XTYPE ((x)) != Lisp_Cons) && !NILP (x)) x = wrong_type_argument (Qlistp, (x)); } |
| 520 | 524 | ||