comparison src/vmsfns.c @ 9107:46461644055b

(translate_id): Use type test macros.
author Karl Heuer <kwzh@gnu.org>
date Tue, 27 Sep 1994 01:11:24 +0000
parents 1fc792473491
children ac7375e60931
comparison
equal deleted inserted replaced
9106:40a353de483c 9107:46461644055b
678 int status, code, id, i, numeric, size; 678 int status, code, id, i, numeric, size;
679 char * p; 679 char * p;
680 int prcnam[2]; 680 int prcnam[2];
681 681
682 if (NILP (pid) 682 if (NILP (pid)
683 || XTYPE (pid) == Lisp_String && XSTRING (pid)->size == 0 683 || STRINGP (pid) && XSTRING (pid)->size == 0
684 || XTYPE (pid) == Lisp_Int && XFASTINT (pid) == 0) 684 || INTEGERP (pid) && XFASTINT (pid) == 0)
685 { 685 {
686 code = owner ? JPI$_OWNER : JPI$_PID; 686 code = owner ? JPI$_OWNER : JPI$_PID;
687 status = lib$getjpi (&code, 0, 0, &id); 687 status = lib$getjpi (&code, 0, 0, &id);
688 if (! (status & 1)) 688 if (! (status & 1))
689 error ("Cannot find %s: %s", 689 error ("Cannot find %s: %s",
690 owner ? "owner process" : "process id", 690 owner ? "owner process" : "process id",
691 vmserrstr (status)); 691 vmserrstr (status));
692 return (id); 692 return (id);
693 } 693 }
694 if (XTYPE (pid) == Lisp_Int) 694 if (INTEGERP (pid))
695 return (XFASTINT (pid)); 695 return (XFASTINT (pid));
696 CHECK_STRING (pid, 0); 696 CHECK_STRING (pid, 0);
697 pid = Fupcase (pid); 697 pid = Fupcase (pid);
698 size = XSTRING (pid)->size; 698 size = XSTRING (pid)->size;
699 p = XSTRING (pid)->data; 699 p = XSTRING (pid)->data;