annotate src/s/irix4-0.h @ 32752:923b8d6d8277

Initial check-in: changes for building Emacs under Mac OS. 2000-10-23 Andrew Choi <akochoi@i-cable.com> * dispextern.h [macintosh]: Include macgui.h instead of macterm.h. * dispnew.c [macintosh]: Include macterm.h. (init_display) [macintosh]: initialization for window system. * emacs.c (main) [macintosh]: Call syms_of_textprop, syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm, syms_of_search, x_term_init, and init_keyboard before calling init_window_once. Also, call syms_of_xmenu. * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of default fontset to Monaco. * frame.c [macintosh]: Include macterm.h. Remove declarations of NewMacWindow and DisposeMacWindow. (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame instead of calling NewMacWindow and setting fields of f->output_data.mac directly. Call init_frame_faces. (Fdelete_frame) [macintosh]: Remove unused code. (Fmodify_frame_parameters) [macintosh]: Call x_set_frame_parameters instead of mac_set_frame_parameters. * frame.h [macintosh]: Define menu_bar_lines field in struct frame. Define FRAME_EXTERNAL_MENU_BAR macro. * keyboard.c [macintosh]: Include macterm.h. (kbd_buffer_get_event) [macintosh]: Generate delete_window_event and menu_bar_activate_event type events as for X and NT. (make_lispy_event) [macintosh]: Construct lisp events of type MENU_BAR_EVENT as for X and NT. * sysdep.c [macintosh]: Remove declaration for sys_signal. Include stdlib.h. Remove definition of Vx_bitmap_file_path. (sys_subshell) [macintosh]: Remove definition entirely. (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and Vwindow_system_version here. Remove initialization of Vx_bitmap_file_path. (read_input_waiting): Correct the number of parameters passed to read_socket_hook. Move all Macintosh functions to mac/mac.c. * term.c [macintosh]: Include macterm.h. * window.c [macintosh]: Include macterm.h. * xdisp.c [macintosh]: Include macterm.h. Declare set_frame_menubar and pending_menu_activation. (echo_area_display) [macintosh]: Do not return if terminal frame is the selected frame. (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f). Allow only the selected frame to set menu bar. (redisplay_window) [macintosh]: Obtain menu bar to redisplay by calling FRAME_EXTERNAL_MENU_BAR (f). (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f). * xfaces.c [macintosh]: Include macterm.h. Define x_display_info and check_x. Declare XCreateGC. Define x_create_gc and x_free_gc. Initialize font_sort_order. (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT, but call x_list_fonts instead of w32_list_fonts. (Finternal_face_x_get_resource) [macintosh]: Do not call display_x_get_resource. (prepare_face_for_display) [macintosh]: Set xgcv.font. (realize_x_face) [macintosh]: Load the font if it is specified in ATTRS. (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt. * cus-edit.el (custom-button-face): Use 3D look for mac. (custom-button-pressed-face): Likewise. * faces.el (set-face-attributes-from-resources): Handle mac frames in the same way as x and w32 frames. (face-valid-attribute-values): Likewise. (read-face-attribute): Likewise. (defined-colors): Likewise. (color-defined-p): Likewise. (color-values): Likewise. (display-grayscale-p): Likewise. (face-set-after-frame-default): Likewise. (mode-line): Same default face as for x and w32. (tool-bar): Likewise. * frame.el: Remove call to frame-notice-user-settings at end of the file. * info.el (Info-fontify-node): make underlines invisible for mac as for x, pc, and w32 frame types. * term/mac-win.el: New file.
author Andrew Choi <akochoi@shaw.ca>
date Sun, 22 Oct 2000 16:50:16 +0000
parents ddad63427df2
children 4be8406ebef9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1493
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 #include "irix3-3.h"
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3 #define USG5_3
3305
47c0b5462b2d (IRIX4): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 3111
diff changeset
4 #define IRIX4
18759
7b452f99a32f (XPointer): Define XPointer.
Richard M. Stallman <rms@gnu.org>
parents: 18702
diff changeset
5 /* XPointer is not defined in the older X headers -- JPff@maths.bath.ac.uk */
7b452f99a32f (XPointer): Define XPointer.
Richard M. Stallman <rms@gnu.org>
parents: 18702
diff changeset
6 #define XPointer caddr_t
1493
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 #define HAVE_ALLOCA
3098
6aee2746a385 (C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3026
diff changeset
9 #ifndef NOT_C_CODE
6aee2746a385 (C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3026
diff changeset
10 #include <alloca.h>
6aee2746a385 (C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3026
diff changeset
11 #endif
6aee2746a385 (C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3026
diff changeset
12
6aee2746a385 (C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3026
diff changeset
13 #undef NEED_SIOCTL
1493
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14
10077
ee5e9fbcd051 (NEED_UNISTD_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8892
diff changeset
15 /* Include unistd.h, even though we don't define POSIX. */
ee5e9fbcd051 (NEED_UNISTD_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8892
diff changeset
16 #define NEED_UNISTD_H
ee5e9fbcd051 (NEED_UNISTD_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8892
diff changeset
17
3111
864024ebf526 (SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 3098
diff changeset
18 /* Make process_send_signal work by "typing" a signal character on the pty. */
864024ebf526 (SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 3098
diff changeset
19 #define SIGNALS_VIA_CHARACTERS
864024ebf526 (SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 3098
diff changeset
20
18702
df65a2e6eb4e (C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents: 10077
diff changeset
21 #ifndef __GNUC__
1493
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22 /* use K&R C */
18702
df65a2e6eb4e (C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents: 10077
diff changeset
23 /* We need to increase the expression tree space with -Wf,-XNh
df65a2e6eb4e (C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents: 10077
diff changeset
24 (ghazi@caip.rutgers.edu 7/8/97.)
df65a2e6eb4e (C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents: 10077
diff changeset
25 */
23843
b250f3dae8d9 (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
Karl Heuer <kwzh@gnu.org>
parents: 18759
diff changeset
26 #define C_SWITCH_SYSTEM -cckr -Wf,-XNh4000
1856
c4768d9b6a2f (C_SWITCH_MACHINE): Don't define if GCC.
Richard M. Stallman <rms@gnu.org>
parents: 1493
diff changeset
27 #endif
1493
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 we'll just define WNOHANG right here.
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32 (An implicit decl is good enough for wait3.) */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34 #define WNOHANG 0x1
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36 /* No need to use sprintf to get the tty name--we get that from _getpty. */
2992
8c74c4712164 Changes for SGI from Matthew J Brown <mjb@doc.ic.ac.uk>.
Jim Blandy <jimb@redhat.com>
parents: 2223
diff changeset
37 #undef PTY_TTY_NAME_SPRINTF
1493
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38 #define PTY_TTY_NAME_SPRINTF
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39 /* No need to get the pty name at all. */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40 #define PTY_NAME_SPRINTF
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41 /* We need only try once to open a pty. */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
42 #define PTY_ITERATION
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
43 /* Here is how to do it. */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
44 /* It is necessary to prevent SIGCHLD signals within _getpty.
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45 So we block them. */
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
46 #define PTY_OPEN \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
47 { \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
48 int mask = sigblock (sigmask (SIGCHLD)); \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
49 char *name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
50 sigsetmask(mask); \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
51 if (name == 0) \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52 return -1; \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53 if (fd < 0) \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
54 return -1; \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
55 if (fstat (fd, &stb) < 0) \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
56 return -1; \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
57 strcpy (pty_name, name); \
b207a60243f6 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
58 }