From 41ad623325a240ba0faac183205ba44a9d6783ab Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Thu, 21 Mar 2002 12:37:23 +0000 Subject: [PATCH] Test for network process support with featurep. --- lisp/simple.el | 4 ++-- src/ChangeLog | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index 57493bb06e2..29a0f2a34ac 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -4206,7 +4206,7 @@ See also `normal-erase-is-backspace'." ;;; make-network-process wrappers -(if (fboundp 'make-network-process) +(if (featurep 'make-network-process) (progn (defun open-network-stream (name buffer host service) @@ -4271,7 +4271,7 @@ does not use these function." (make-network-process :name name :buffer buffer :service service :server t :noquery t))) -)) ;; (fboundp 'make-network-process) +)) ;; (featurep 'make-network-process) ;; compatibility diff --git a/src/ChangeLog b/src/ChangeLog index d215a29bd70..05a22d7e8ee 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,31 @@ +2002-03-21 Kim F. Storm + + * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch + removed the wrong version of the DEFUN macro; fixed it. + + * fns.c (Ffeaturep): Allow subfeature to be a list (test using + Fmember rather than Fmemq). + (Fprovide): Check that subfeatures is a list. + + * process.c (QCfeature, QCdatagram): Removed variables. + (QCtype, Qdatagram): New variables. + (network_process_featurep): Removed function. + (Fmake_network_process): Removed :feature check. + Use :type 'datagram instead of :datagram t to create a datagram + socket. This allows us to add other connection types (e.g. raw + sockets) later in a consistent manner. + (init_process) [subprocess]: Provide list of supported subfeatures + for feature make-network-process. + (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram. + Intern and staticpro QCtype and Qdatagram. + (syms_of_process) [!subprocess]: Intern and staticpro QCtype. + + * xfns.c: (QCtype): Remove duplicate declaration and + initialization (is now declared in process.c). + + * w32fns.c: (QCtype): Remove duplicate declaration and + initialization (is now declared in process.c). + 2002-03-21 Richard M. Stallman * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro. -- 2.39.2