diff options
| author | Tom Tromey <tromey@redhat.com> | 2012-08-20 07:34:41 -0600 |
|---|---|---|
| committer | Tom Tromey <tromey@redhat.com> | 2012-08-20 07:34:41 -0600 |
| commit | 49bc1a9dfc6e81a370bf12157c3c573743ee200a (patch) | |
| tree | 24df8b040aff367adc11a2c676334ec238651e1d /src/process.h | |
| parent | b94de893429bbfbb27572c8c3118fcc876957adb (diff) | |
| parent | a05731a0cc2553af0469bd9b7d6ac10cd2e6a817 (diff) | |
| download | emacs-49bc1a9dfc6e81a370bf12157c3c573743ee200a.tar.gz | |
Merge from trunk
Diffstat (limited to 'src/process.h')
| -rw-r--r-- | src/process.h | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/src/process.h b/src/process.h index 1ddfe915357..db000464cb5 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/>. */ #include "gnutls.h" #endif -/* Most code should use these macros to set - Lisp fields in struct Lisp_Process. */ - -#define PSET(p, field, value) ((p)->field = (value)) +INLINE_HEADER_BEGIN +#ifndef PROCESS_INLINE +# define PROCESS_INLINE INLINE +#endif /* This structure records information about a subprocess or network connection. */ @@ -168,6 +168,23 @@ struct Lisp_Process #define ChannelMask(n) (1 << (n)) +/* Most code should use these functions to set Lisp fields in struct + process. */ + +PROCESS_INLINE void +pset_childp (struct Lisp_Process *p, Lisp_Object val) +{ + p->childp = val; +} + +#ifdef HAVE_GNUTLS +PROCESS_INLINE void +pset_gnutls_cred_type (struct Lisp_Process *p, Lisp_Object val) +{ + p->gnutls_cred_type = val; +} +#endif + /* True if we are about to fork off a synchronous process or if we are waiting for it. */ extern int synch_process_alive; @@ -213,3 +230,5 @@ extern void add_write_fd (int fd, fd_callback func, void *data); extern void delete_write_fd (int fd); extern void update_processes_for_thread_death (Lisp_Object); + +INLINE_HEADER_END |
