annotate src/s/bsd386.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 953fdf4f10b3
children 695cf19ef79e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3360
1a1a1822affa Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 /* s/ file for bsd386 system. */
1a1a1822affa Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2
1a1a1822affa Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3 #include "bsd4-3.h"
1a1a1822affa Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4
8777
aa4159cad5ed (__bsdi__): Define, unless already defined.
Richard M. Stallman <rms@gnu.org>
parents: 7805
diff changeset
5 #ifndef __bsdi__
aa4159cad5ed (__bsdi__): Define, unless already defined.
Richard M. Stallman <rms@gnu.org>
parents: 7805
diff changeset
6 #define __bsdi__ 1
aa4159cad5ed (__bsdi__): Define, unless already defined.
Richard M. Stallman <rms@gnu.org>
parents: 7805
diff changeset
7 #endif
aa4159cad5ed (__bsdi__): Define, unless already defined.
Richard M. Stallman <rms@gnu.org>
parents: 7805
diff changeset
8
aa4159cad5ed (__bsdi__): Define, unless already defined.
Richard M. Stallman <rms@gnu.org>
parents: 7805
diff changeset
9 #define DECLARE_GETPWUID_WITH_UID_T
aa4159cad5ed (__bsdi__): Define, unless already defined.
Richard M. Stallman <rms@gnu.org>
parents: 7805
diff changeset
10
3360
1a1a1822affa Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 #define SIGNALS_VIA_CHARACTERS
1a1a1822affa Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12
1a1a1822affa Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
1a1a1822affa Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 #define A_TEXT_OFFSET(x) (sizeof (struct exec))
1a1a1822affa Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
1a1a1822affa Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16
1a1a1822affa Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 #define LIBS_DEBUG
1a1a1822affa Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 #define LIB_X11_LIB -L/usr/X11/lib -lX11
1a1a1822affa Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19 #define LIBS_SYSTEM -lutil -lkvm -lcompat
3361
ac036d67c431 *** empty log message ***
Karl Heuer <kwzh@gnu.org>
parents: 3360
diff changeset
20
29771
953fdf4f10b3 (HAVE_GETLOADAVG): Define it as 1.
Kenichi Handa <handa@m17n.org>
parents: 28640
diff changeset
21 #define HAVE_GETLOADAVG 1
28640
7f198d98ac14 Revert HAVE_GETLOADAVG changes.
Dave Love <fx@gnu.org>
parents: 28593
diff changeset
22
5970
d6a5848451f3 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 5918
diff changeset
23 #undef BSD_PGRPS
7505
9553f0614817 (LOCALTIME_CACHE): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5970
diff changeset
24
7743
0e058c7168b6 (TABDLY, TAB3): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7505
diff changeset
25 /* System uses OXTABS instead of the expected TAB3.
0e058c7168b6 (TABDLY, TAB3): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7505
diff changeset
26 (Copied from netbsd.h.) */
0e058c7168b6 (TABDLY, TAB3): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7505
diff changeset
27 #define TABDLY OXTABS
0e058c7168b6 (TABDLY, TAB3): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7505
diff changeset
28 #define TAB3 OXTABS
0e058c7168b6 (TABDLY, TAB3): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7505
diff changeset
29
0e058c7168b6 (TABDLY, TAB3): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7505
diff changeset
30 #define SYSV_SYSTEM_DIR
7805
94a6c666e4ef (BSD): Redefine.
Richard M. Stallman <rms@gnu.org>
parents: 7743
diff changeset
31
8984
5aa06240226f (HAVE_TERMIOS, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8777
diff changeset
32 #define HAVE_TERMIOS
5aa06240226f (HAVE_TERMIOS, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8777
diff changeset
33 #define NO_TERMIO
5aa06240226f (HAVE_TERMIOS, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8777
diff changeset
34
7805
94a6c666e4ef (BSD): Redefine.
Richard M. Stallman <rms@gnu.org>
parents: 7743
diff changeset
35 #define WAITTYPE int
94a6c666e4ef (BSD): Redefine.
Richard M. Stallman <rms@gnu.org>
parents: 7743
diff changeset
36 /* get this since it won't be included if WAITTYPE is defined */
94a6c666e4ef (BSD): Redefine.
Richard M. Stallman <rms@gnu.org>
parents: 7743
diff changeset
37 #ifdef emacs
94a6c666e4ef (BSD): Redefine.
Richard M. Stallman <rms@gnu.org>
parents: 7743
diff changeset
38 #include <sys/wait.h>
94a6c666e4ef (BSD): Redefine.
Richard M. Stallman <rms@gnu.org>
parents: 7743
diff changeset
39 #endif
94a6c666e4ef (BSD): Redefine.
Richard M. Stallman <rms@gnu.org>
parents: 7743
diff changeset
40 #define WRETCODE(w) WEXITSTATUS(w)
94a6c666e4ef (BSD): Redefine.
Richard M. Stallman <rms@gnu.org>
parents: 7743
diff changeset
41 #ifndef WCOREDUMP
94a6c666e4ef (BSD): Redefine.
Richard M. Stallman <rms@gnu.org>
parents: 7743
diff changeset
42 #define WCOREDUMP(w) ((w) & 0200)
94a6c666e4ef (BSD): Redefine.
Richard M. Stallman <rms@gnu.org>
parents: 7743
diff changeset
43 #endif
8984
5aa06240226f (HAVE_TERMIOS, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8777
diff changeset
44
11724
32167f40a60a (GETPGRP_NO_ARG): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 8984
diff changeset
45 #define GETPGRP_NO_ARG 1