diff options
Diffstat (limited to 'src/process.h')
| -rw-r--r-- | src/process.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/process.h b/src/process.h index dafa870b620..43cc7ea33c0 100644 --- a/src/process.h +++ b/src/process.h | |||
| @@ -26,10 +26,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 26 | #include "gnutls.h" | 26 | #include "gnutls.h" |
| 27 | #endif | 27 | #endif |
| 28 | 28 | ||
| 29 | /* Most code should use this macro to access | 29 | /* Most code should use these macros to set |
| 30 | Lisp fields in struct Lisp_Process. */ | 30 | Lisp fields in struct Lisp_Process. */ |
| 31 | 31 | ||
| 32 | #define PVAR(w, field) ((w)->INTERNAL_FIELD (field)) | 32 | #define PSET(p, field, value) ((p)->field = (value)) |
| 33 | 33 | ||
| 34 | /* This structure records information about a subprocess | 34 | /* This structure records information about a subprocess |
| 35 | or network connection. */ | 35 | or network connection. */ |
| @@ -39,65 +39,65 @@ struct Lisp_Process | |||
| 39 | struct vectorlike_header header; | 39 | struct vectorlike_header header; |
| 40 | 40 | ||
| 41 | /* Name of subprocess terminal. */ | 41 | /* Name of subprocess terminal. */ |
| 42 | Lisp_Object INTERNAL_FIELD (tty_name); | 42 | Lisp_Object tty_name; |
| 43 | 43 | ||
| 44 | /* Name of this process */ | 44 | /* Name of this process */ |
| 45 | Lisp_Object INTERNAL_FIELD (name); | 45 | Lisp_Object name; |
| 46 | 46 | ||
| 47 | /* List of command arguments that this process was run with. | 47 | /* List of command arguments that this process was run with. |
| 48 | Is set to t for a stopped network process; nil otherwise. */ | 48 | Is set to t for a stopped network process; nil otherwise. */ |
| 49 | Lisp_Object INTERNAL_FIELD (command); | 49 | Lisp_Object command; |
| 50 | 50 | ||
| 51 | /* (funcall FILTER PROC STRING) (if FILTER is non-nil) | 51 | /* (funcall FILTER PROC STRING) (if FILTER is non-nil) |
| 52 | to dispose of a bunch of chars from the process all at once */ | 52 | to dispose of a bunch of chars from the process all at once */ |
| 53 | Lisp_Object INTERNAL_FIELD (filter); | 53 | Lisp_Object filter; |
| 54 | 54 | ||
| 55 | /* (funcall SENTINEL PROCESS) when process state changes */ | 55 | /* (funcall SENTINEL PROCESS) when process state changes */ |
| 56 | Lisp_Object INTERNAL_FIELD (sentinel); | 56 | Lisp_Object sentinel; |
| 57 | 57 | ||
| 58 | /* (funcall LOG SERVER CLIENT MESSAGE) when a server process | 58 | /* (funcall LOG SERVER CLIENT MESSAGE) when a server process |
| 59 | accepts a connection from a client. */ | 59 | accepts a connection from a client. */ |
| 60 | Lisp_Object INTERNAL_FIELD (log); | 60 | Lisp_Object log; |
| 61 | 61 | ||
| 62 | /* Buffer that output is going to */ | 62 | /* Buffer that output is going to */ |
| 63 | Lisp_Object INTERNAL_FIELD (buffer); | 63 | Lisp_Object buffer; |
| 64 | 64 | ||
| 65 | /* t if this is a real child process. For a network or serial | 65 | /* t if this is a real child process. For a network or serial |
| 66 | connection, it is a plist based on the arguments to | 66 | connection, it is a plist based on the arguments to |
| 67 | make-network-process or make-serial-process. */ | 67 | make-network-process or make-serial-process. */ |
| 68 | 68 | ||
| 69 | Lisp_Object INTERNAL_FIELD (childp); | 69 | Lisp_Object childp; |
| 70 | 70 | ||
| 71 | /* Plist for programs to keep per-process state information, parameters, etc. */ | 71 | /* Plist for programs to keep per-process state information, parameters, etc. */ |
| 72 | Lisp_Object INTERNAL_FIELD (plist); | 72 | Lisp_Object plist; |
| 73 | 73 | ||
| 74 | /* Symbol indicating the type of process: real, network, serial */ | 74 | /* Symbol indicating the type of process: real, network, serial */ |
| 75 | Lisp_Object INTERNAL_FIELD (type); | 75 | Lisp_Object type; |
| 76 | 76 | ||
| 77 | /* Marker set to end of last buffer-inserted output from this process */ | 77 | /* Marker set to end of last buffer-inserted output from this process */ |
| 78 | Lisp_Object INTERNAL_FIELD (mark); | 78 | Lisp_Object mark; |
| 79 | 79 | ||
| 80 | /* Symbol indicating status of process. | 80 | /* Symbol indicating status of process. |
| 81 | This may be a symbol: run, open, or closed. | 81 | This may be a symbol: run, open, or closed. |
| 82 | Or it may be a list, whose car is stop, exit or signal | 82 | Or it may be a list, whose car is stop, exit or signal |
| 83 | and whose cdr is a pair (EXIT_CODE . COREDUMP_FLAG) | 83 | and whose cdr is a pair (EXIT_CODE . COREDUMP_FLAG) |
| 84 | or (SIGNAL_NUMBER . COREDUMP_FLAG). */ | 84 | or (SIGNAL_NUMBER . COREDUMP_FLAG). */ |
| 85 | Lisp_Object INTERNAL_FIELD (status); | 85 | Lisp_Object status; |
| 86 | 86 | ||
| 87 | /* Coding-system for decoding the input from this process. */ | 87 | /* Coding-system for decoding the input from this process. */ |
| 88 | Lisp_Object INTERNAL_FIELD (decode_coding_system); | 88 | Lisp_Object decode_coding_system; |
| 89 | 89 | ||
| 90 | /* Working buffer for decoding. */ | 90 | /* Working buffer for decoding. */ |
| 91 | Lisp_Object INTERNAL_FIELD (decoding_buf); | 91 | Lisp_Object decoding_buf; |
| 92 | 92 | ||
| 93 | /* Coding-system for encoding the output to this process. */ | 93 | /* Coding-system for encoding the output to this process. */ |
| 94 | Lisp_Object INTERNAL_FIELD (encode_coding_system); | 94 | Lisp_Object encode_coding_system; |
| 95 | 95 | ||
| 96 | /* Working buffer for encoding. */ | 96 | /* Working buffer for encoding. */ |
| 97 | Lisp_Object INTERNAL_FIELD (encoding_buf); | 97 | Lisp_Object encoding_buf; |
| 98 | 98 | ||
| 99 | /* Queue for storing waiting writes */ | 99 | /* Queue for storing waiting writes */ |
| 100 | Lisp_Object INTERNAL_FIELD (write_queue); | 100 | Lisp_Object write_queue; |
| 101 | 101 | ||
| 102 | #ifdef HAVE_GNUTLS | 102 | #ifdef HAVE_GNUTLS |
| 103 | Lisp_Object gnutls_cred_type; | 103 | Lisp_Object gnutls_cred_type; |