mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-28 16:21:07 -08:00
(translate_id): Use type test macros.
This commit is contained in:
parent
c426bed2aa
commit
f2d800a4e8
1 changed files with 3 additions and 3 deletions
|
|
@ -680,8 +680,8 @@ translate_id (pid, owner)
|
|||
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 @@ translate_id (pid, owner)
|
|||
vmserrstr (status));
|
||||
return (id);
|
||||
}
|
||||
if (XTYPE (pid) == Lisp_Int)
|
||||
if (INTEGERP (pid))
|
||||
return (XFASTINT (pid));
|
||||
CHECK_STRING (pid, 0);
|
||||
pid = Fupcase (pid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue