Mercurial > hg > xemacs-beta
annotate src/process.h @ 793:e38acbeb1cae
[xemacs-hg @ 2002-03-29 04:46:17 by ben]
lots o' fixes
etc/ChangeLog: New file.
Separated out all entries for etc/ into their own ChangeLog.
Includes entries for the following files:
etc/BABYL, etc/BETA, etc/CHARSETS, etc/DISTRIB, etc/Emacs.ad,
etc/FTP, etc/GNUS-NEWS, etc/GOATS, etc/HELLO, etc/INSTALL,
etc/MACHINES, etc/MAILINGLISTS, etc/MSDOS, etc/MYTHOLOGY, etc/NEWS,
etc/OXYMORONS, etc/PACKAGES, etc/README, etc/TUTORIAL,
etc/TUTORIAL.de, etc/TUTORIAL.ja, etc/TUTORIAL.ko, etc/TUTORIAL.se,
etc/aliases.ksh, etc/altrasoft-logo.xpm, etc/check_cygwin_setup.sh,
etc/custom/example-themes/europe-theme.el,
etc/custom/example-themes/ex-custom-file,
etc/custom/example-themes/example-theme.el, etc/e/eterm.ti,
etc/edt-user.doc, etc/enriched.doc, etc/etags.1, etc/gnuserv.1,
etc/gnuserv.README, etc/package-index.LATEST.gpg,
etc/package-index.LATEST.pgp, etc/photos/jan.png, etc/recycle.xpm,
etc/refcard.tex, etc/sample.Xdefaults, etc/sample.emacs,
etc/sgml/CATALOG, etc/sgml/HTML32.dtd, etc/skk/SKK.tut.E,
etc/smilies/Face_ase.xbm, etc/smilies/Face_ase2.xbm,
etc/smilies/Face_ase3.xbm, etc/smilies/Face_smile.xbm,
etc/smilies/Face_weep.xbm, etc/sounds, etc/toolbar,
etc/toolbar/workshop-cap-up.xpm, etc/xemacs-ja.1, etc/xemacs.1,
etc/yow.lines, etc\BETA, etc\NEWS, etc\README, etc\TUTORIAL,
etc\TUTORIAL.de, etc\check_cygwin_setup.sh, etc\sample.init.el,
etc\unicode\README, etc\unicode\mule-ucs\*, etc\unicode\other\*
unicode/unicode-consortium/8859-16.TXT: New file.
mule/english.el: Define this charset now, since a bug was fixed that formerly
prevented it.
mule/ethio-util.el: Fix compile errors involving Unicode `characters', which should be
integers.
Makefile.in.in: Always include gui.c, to fix compile error when TTY-only.
EmacsFrame.c, abbrev.c, alloc.c, buffer.c, buffer.h, bytecode.c, bytecode.h, callint.c, callproc.c, casetab.c, casetab.h, charset.h, chartab.c, chartab.h, cmds.c, console-msw.c, console-msw.h, console-tty.c, console-x.c, console-x.h, console.c, console.h, data.c, database.c, device-gtk.c, device-msw.c, device-x.c, device.c, device.h, dialog-msw.c, doc.c, doprnt.c, dumper.c, dynarr.c, editfns.c, eldap.c, eldap.h, elhash.c, elhash.h, emacs.c, eval.c, event-Xt.c, event-gtk.c, event-msw.c, event-stream.c, event-tty.c, event-unixoid.c, events.c, events.h, extents.c, extents.h, faces.c, faces.h, file-coding.c, file-coding.h, fileio.c, filelock.c, fns.c, frame-gtk.c, frame-msw.c, frame-tty.c, frame-x.c, frame.c, frame.h, free-hook.c, general-slots.h, glyphs-eimage.c, glyphs-gtk.c, glyphs-msw.c, glyphs-widget.c, glyphs-x.c, glyphs.c, glyphs.h, gpmevent.c, gtk-xemacs.c, gui-msw.c, gui-x.c, gui-x.h, gui.c, gui.h, gutter.c, gutter.h, indent.c, input-method-xlib.c, insdel.c, keymap.c, keymap.h, lisp-disunion.h, lisp-union.h, lisp.h, lread.c, lrecord.h, lstream.c, lstream.h, marker.c, menubar-gtk.c, menubar-msw.c, menubar-x.c, menubar.c, minibuf.c, mule-canna.c, mule-ccl.c, mule-charset.c, mule-wnnfns.c, native-gtk-toolbar.c, objects-msw.c, objects-tty.c, objects-x.c, objects.c, objects.h, opaque.c, opaque.h, postgresql.c, postgresql.h, print.c, process-unix.c, process.c, process.h, rangetab.c, rangetab.h, redisplay-gtk.c, redisplay-msw.c, redisplay-output.c, redisplay-tty.c, redisplay-x.c, redisplay.c, scrollbar-gtk.c, scrollbar-msw.c, scrollbar-x.c, scrollbar.c, scrollbar.h, search.c, select-gtk.c, select-x.c, sound.c, specifier.c, specifier.h, strftime.c, symbols.c, symeval.h, syntax.h, text.c, text.h, toolbar-common.c, toolbar-msw.c, toolbar.c, toolbar.h, tooltalk.c, tooltalk.h, ui-gtk.c, ui-gtk.h, undo.c, vm-limit.c, window.c, window.h: Eliminate XSETFOO. Replace all usages with wrap_foo().
Make symbol->name a Lisp_Object, not Lisp_String *. Eliminate
nearly all uses of Lisp_String * in favor of Lisp_Object, and
correct macros so most of them favor Lisp_Object.
Create new error-behavior ERROR_ME_DEBUG_WARN -- output warnings,
but at level `debug' (usually ignored). Use it when instantiating
specifiers, so problems can be debugged. Move
log-warning-minimum-level into C so that we can optimize
ERROR_ME_DEBUG_WARN.
Fix warning levels consistent with new definitions.
Add default_ and parent fields to char table; not yet implemented.
New fun Dynarr_verify(); use for further error checking on Dynarrs.
Rearrange code at top of lisp.h in conjunction with dynarr changes.
Fix eifree(). Use Eistrings in various places
(format_event_object(), where_is_to_char(), and callers thereof)
to avoid fixed-size strings buffers. New fun write_eistring().
Reindent and fix GPM code to follow standards.
Set default MS Windows font to Lucida Console (same size as
Courier New but less interline spacing, so more lines fit).
Increase default frame size on Windows to 50 lines. (If that's too
big for the workspace, the frame will be shrunk as necessary.)
Fix problem with text files with no newlines (). (Change
`convert-eol' coding system to use `nil' for autodetect,
consistent with make-coding-system.)
Correct compile warnings in vm-limit.c.
Fix handling of reverse-direction charsets to avoid errors when
opening (e.g.) mule-ucs/lisp/reldata/uiso8859-6.el.
Recode some object printing methods to use write_fmt_string()
instead of a fixed buffer and sprintf.
Turn on display of png comments as warnings (level `info'), now
that they're unobtrusive.
Revamped the sound documentation.
Fixed bug in redisplay w.r.t. hscroll/truncation/continuation
glyphs causing jumping up and down of the lines, since they're
bigger than the line size. (It was seen most obviously when
there's a horizontal scroll bar, e.g. do C-h a glyph or something
like that.) The problem was that the glyph-contrib-p setting on
glyphs was ignored even if it was set properly, which it wasn't
until now.
author | ben |
---|---|
date | Fri, 29 Mar 2002 04:49:13 +0000 |
parents | 943eaba38521 |
children | a634e3b7acc8 |
rev | line source |
---|---|
428 | 1 /* Definitions for asynchronous process control in XEmacs. |
2 Copyright (C) 1985, 1992, 1993, 1994 Free Software Foundation, Inc. | |
3 | |
4 This file is part of XEmacs. | |
5 | |
6 XEmacs is free software; you can redistribute it and/or modify it | |
7 under the terms of the GNU General Public License as published by the | |
8 Free Software Foundation; either version 2, or (at your option) any | |
9 later version. | |
10 | |
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
17 along with XEmacs; see the file COPYING. If not, write to | |
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
19 Boston, MA 02111-1307, USA. */ | |
20 | |
440 | 21 #ifndef INCLUDED_process_h_ |
22 #define INCLUDED_process_h_ | |
428 | 23 |
24 #if defined (NO_SUBPROCESSES) | |
25 #undef XPROCESS | |
26 #undef CHECK_PROCESS | |
27 #define PROCESSP(x) 0 | |
28 #define PROCESS_LIVE_P(x) 0 | |
29 #define Fprocess_status(x) Qnil | |
30 #define Fget_process(x) Qnil | |
31 #define Fget_buffer_process(x) Qnil | |
32 #define kill_buffer_processes(x) 0 | |
33 #define close_process_descs() 0 | |
34 #define init_xemacs_process() 0 | |
35 void wait_without_blocking (void); | |
36 | |
37 #else /* not NO_SUBPROCESSES */ | |
38 | |
442 | 39 /* struct Lisp_Process is defined in procimpl.h; only process-*.c need |
40 to know about the guts of it. */ | |
428 | 41 |
440 | 42 DECLARE_LRECORD (process, Lisp_Process); |
43 #define XPROCESS(x) XRECORD (x, process, Lisp_Process) | |
617 | 44 #define wrap_process(p) wrap_record (p, process) |
428 | 45 #define PROCESSP(x) RECORDP (x, process) |
46 #define CHECK_PROCESS(x) CHECK_RECORD (x, process) | |
440 | 47 #define PROCESS_LIVE_P(x) (!NILP ((x)->pipe_instream)) |
48 | |
49 #define CHECK_LIVE_PROCESS(x) do { \ | |
50 CHECK_PROCESS (x); \ | |
51 if (! PROCESS_LIVE_P (XPROCESS (x))) \ | |
52 dead_wrong_type_argument (Qprocess_live_p, (x)); \ | |
53 } while (0) | |
428 | 54 |
55 #ifdef emacs | |
56 | |
57 EXFUN (Fprocess_kill_without_query, 2); | |
58 EXFUN (Fprocess_id, 1); | |
59 | |
771 | 60 extern Lisp_Object Qprocess_live_p; |
61 | |
428 | 62 Lisp_Object connect_to_file_descriptor (Lisp_Object name, |
63 Lisp_Object buffer, | |
64 Lisp_Object infd, | |
65 Lisp_Object outfd); | |
440 | 66 int connected_via_filedesc_p (Lisp_Process *p); |
428 | 67 void kill_buffer_processes (Lisp_Object buffer); |
68 void close_process_descs (void); | |
69 | |
70 void set_process_filter (Lisp_Object proc, | |
71 Lisp_Object filter, int filter_does_read); | |
72 | |
73 /* True iff we are about to fork off a synchronous process or if we | |
74 are waiting for it. */ | |
75 extern volatile int synch_process_alive; | |
76 | |
77 /* Nonzero => this is a string explaining death of synchronous subprocess. */ | |
442 | 78 extern const char *synch_process_death; |
428 | 79 |
80 /* If synch_process_death is zero, | |
81 this is exit code of synchronous subprocess. */ | |
82 extern int synch_process_retcode; | |
83 | |
84 | |
85 void update_process_status (Lisp_Object p, | |
86 Lisp_Object status_symbol, | |
87 int exit_code, int core_dumped); | |
88 | |
440 | 89 void get_process_streams (Lisp_Process *p, |
428 | 90 Lisp_Object *instr, Lisp_Object *outstr); |
440 | 91 int get_process_selected_p (Lisp_Process *p); |
92 void set_process_selected_p (Lisp_Process *p, int selected_p); | |
428 | 93 |
440 | 94 Lisp_Process *get_process_from_usid (USID usid); |
428 | 95 |
96 #ifdef HAVE_SOCKETS | |
97 int network_connection_p (Lisp_Object process); | |
98 #else | |
99 #define network_connection_p(x) 0 | |
100 #endif | |
101 | |
102 extern Lisp_Object Qclosed, Qmulticast, Qopen, Qrun, Qstop, Qtcp, Qudp; | |
103 extern Lisp_Object Vprocess_connection_type, Vprocess_list; | |
104 | |
105 /* Report all recent events of a change in process status | |
106 (either run the sentinel or output a message). | |
107 This is done while Emacs is waiting for keyboard input. */ | |
108 void status_notify (void); | |
109 void kick_status_notify (void); | |
110 | |
111 void deactivate_process (Lisp_Object proc); | |
112 | |
442 | 113 #ifdef WIN32_NATIVE |
428 | 114 int |
115 #else | |
116 void | |
117 #endif | |
118 child_setup (int in, int out, int err, | |
771 | 119 Intbyte **new_argv, Lisp_Object current_dir); |
428 | 120 |
121 Charcount read_process_output (Lisp_Object proc); | |
122 | |
442 | 123 const char *signal_name (int signum); |
428 | 124 |
125 Lisp_Object canonicalize_host_name (Lisp_Object host); | |
126 | |
127 #endif /* not NO_SUBPROCESSES */ | |
128 | |
129 /* The name of the file open to get a null file, or a data sink. | |
130 MS-DOS, and OS/2 redefine this. */ | |
131 #ifndef NULL_DEVICE | |
132 #define NULL_DEVICE "/dev/null" | |
133 #endif | |
134 | |
135 /* A string listing the possible suffixes used for executable files, | |
136 separated by colons. MS-DOS, and OS/2 redefine this. */ | |
137 #ifndef EXEC_SUFFIXES | |
138 #define EXEC_SUFFIXES "" | |
139 #endif | |
140 | |
141 #endif /* emacs */ | |
142 | |
440 | 143 #endif /* INCLUDED_process_h_ */ |