Mercurial > emacs
changeset 9107:46461644055b
(translate_id): Use type test macros.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 27 Sep 1994 01:11:24 +0000 |
parents | 40a353de483c |
children | c0287cefc0f8 |
files | src/vmsfns.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vmsfns.c Tue Sep 27 01:07:23 1994 +0000 +++ b/src/vmsfns.c Tue Sep 27 01:11:24 1994 +0000 @@ -680,8 +680,8 @@ int prcnam[2]; if (NILP (pid) - || XTYPE (pid) == Lisp_String && XSTRING (pid)->size == 0 - || XTYPE (pid) == Lisp_Int && XFASTINT (pid) == 0) + || STRINGP (pid) && XSTRING (pid)->size == 0 + || INTEGERP (pid) && XFASTINT (pid) == 0) { code = owner ? JPI$_OWNER : JPI$_PID; status = lib$getjpi (&code, 0, 0, &id); @@ -691,7 +691,7 @@ vmserrstr (status)); return (id); } - if (XTYPE (pid) == Lisp_Int) + if (INTEGERP (pid)) return (XFASTINT (pid)); CHECK_STRING (pid, 0); pid = Fupcase (pid);