GNU Emacs is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 1, or (at your option)
+the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Emacs is distributed in the hope that it will be useful,
You should have received a copy of the GNU General Public License
along with GNU Emacs; see the file COPYING. If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
/* Written by Mukesh Prasad. */
#include <ctype.h>
#undef NULL
-#include "config.h"
+#include <config.h>
#include "lisp.h"
#include <descrip.h>
#include <dvidef.h>
prev->next = next;
else
process_list = next;
- if (! NULL (ptr->exit_handler))
+ if (! NILP (ptr->exit_handler))
Feval (Fcons (ptr->exit_handler, Fcons (make_number (ptr->name),
Qnil)));
sys$dassgn (ptr->mbx_chan);
free (ptr);
return Qnil;
}
- if (NULL (input_handler))
+ if (NILP (input_handler))
input_handler = Qdefault_subproc_input_handler;
ptr->input_handler = input_handler;
ptr->exit_handler = exit_handler;
have_process_input = 0;
start_mbx_input ();
clear_waiting_for_input (); /* Otherwise Ctl-g will cause crash. JCB */
- if (! NULL (expr))
+ if (! NILP (expr))
Feval (expr);
}
prev->next = next;
else
process_list = next;
- if (! NULL (ptr->exit_handler))
+ if (! NILP (ptr->exit_handler))
Feval (Fcons (ptr->exit_handler, Fcons (make_number (ptr->name),
Qnil)));
sys$dassgn (ptr->mbx_chan);
}
if (! found)
error ("Unknown privilege name %s", XSTRING (priv)->data);
- if (NULL (getprv))
+ if (NILP (getprv))
{
- if (sys$setprv (NULL (value) ? 0 : 1, prvmask, 0, 0) == SS$_NORMAL)
+ if (sys$setprv (NILP (value) ? 0 : 1, prvmask, 0, 0) == SS$_NORMAL)
return Qt;
return Qnil;
}
char * p;
int prcnam[2];
- if (NULL (pid)
- || XTYPE (pid) == Lisp_String && XSTRING (pid)->size == 0
- || XTYPE (pid) == Lisp_Int && XFASTINT (pid) == 0)
+ if (NILP (pid)
+ || STRINGP (pid) && XSTRING (pid)->size == 0
+ || INTEGERP (pid) && XFASTINT (pid) == 0)
{
code = owner ? JPI$_OWNER : JPI$_PID;
status = lib$getjpi (&code, 0, 0, &id);
vmserrstr (status));
return (id);
}
- if (XTYPE (pid) == Lisp_Int)
+ if (INTEGERP (pid))
return (XFASTINT (pid));
CHECK_STRING (pid, 0);
pid = Fupcase (pid);