comparison src/process.c @ 9952:9daedd94a204

(NETCONN_P, kill_buffer_processes): Use the new type-test macros.
author Karl Heuer <kwzh@gnu.org>
date Tue, 15 Nov 1994 23:55:26 +0000
parents ccc5562a7194
children 007d93b04e1f
comparison
equal deleted inserted replaced
9951:586bb1122715 9952:9daedd94a204
109 are connected to + name of port we are connected to) */ 109 are connected to + name of port we are connected to) */
110 110
111 #ifdef HAVE_SOCKETS 111 #ifdef HAVE_SOCKETS
112 static Lisp_Object stream_process; 112 static Lisp_Object stream_process;
113 113
114 #define NETCONN_P(p) (XGCTYPE (XPROCESS (p)->childp) == Lisp_String) 114 #define NETCONN_P(p) (GC_STRINGP (XPROCESS (p)->childp))
115 #else 115 #else
116 #define NETCONN_P(p) 0 116 #define NETCONN_P(p) 0
117 #endif /* HAVE_SOCKETS */ 117 #endif /* HAVE_SOCKETS */
118 118
119 /* Define first descriptor number available for subprocesses. */ 119 /* Define first descriptor number available for subprocesses. */
3003 kill_buffer_processes (buffer) 3003 kill_buffer_processes (buffer)
3004 Lisp_Object buffer; 3004 Lisp_Object buffer;
3005 { 3005 {
3006 Lisp_Object tail, proc; 3006 Lisp_Object tail, proc;
3007 3007
3008 for (tail = Vprocess_alist; XGCTYPE (tail) == Lisp_Cons; 3008 for (tail = Vprocess_alist; GC_CONSP (tail); tail = XCONS (tail)->cdr)
3009 tail = XCONS (tail)->cdr)
3010 { 3009 {
3011 proc = XCONS (XCONS (tail)->car)->cdr; 3010 proc = XCONS (XCONS (tail)->car)->cdr;
3012 if (XGCTYPE (proc) == Lisp_Process 3011 if (GC_PROCESSP (proc)
3013 && (NILP (buffer) || EQ (XPROCESS (proc)->buffer, buffer))) 3012 && (NILP (buffer) || EQ (XPROCESS (proc)->buffer, buffer)))
3014 { 3013 {
3015 if (NETCONN_P (proc)) 3014 if (NETCONN_P (proc))
3016 Fdelete_process (proc); 3015 Fdelete_process (proc);
3017 else if (XINT (XPROCESS (proc)->infd) >= 0) 3016 else if (XINT (XPROCESS (proc)->infd) >= 0)