Mercurial > emacs
annotate src/s/aix3-1.h @ 1717:aa7d6d57504b
* frame.h (struct frame): New fields `can_have_scrollbars' and
`has_vertical_scrollbars'.
(FRAME_CAN_HAVE_SCROLLBARS, FRAME_HAS_VERTICAL_SCROLLBARS): New
accessors, for both the MULTI_FRAME and non-MULTI_FRAME.
(VERTICAL_SCROLLBAR_WIDTH, WINDOW_VERTICAL_SCROLLBAR,
WINDOW_VERTICAL_SCROLLBAR_COLUMN,
WINDOW_VERTICAL_SCROLLBAR_HEIGHT): New macros.
* window.h (struct window): New field `vertical_scrollbar'.
* xterm.h (struct x_display): vertical_scrollbars,
judge_timestamp, vertical_scrollbar_extra: New fields.
(struct scrollbar): New struct.
(VERTICAL_SCROLLBAR_PIXEL_WIDTH, VERTICAL_SCROLLBAR_PIXEL_HEIGHT,
VERTICAL_SCROLLBAR_LEFT_BORDER, VERTICAL_SCROLLBAR_RIGHT_BORDER,
VERTICAL_SCROLLBAR_TOP_BORDER, VERTICAL_SCROLLBAR_BOTTOM_BORDER,
CHAR_TO_PIXEL_WIDTH, CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_WIDTH,
PIXEL_TO_CHAR_HEIGHT): New accessors and macros.
* frame.c (make_frame): Initialize the `can_have_scrollbars' and
`has_vertical_scrollbars' fields of the frame.
* term.c (term_init): Note that TERMCAP terminals don't support
scrollbars.
(mouse_position_hook): Document new args.
(set_vertical_scrollbar_hook, condemn_scrollbars_hook,
redeem_scrollbar_hook, judge_scrollbars_hook): New hooks.
* termhooks.h: Declare and document them.
(enum scrollbar_part): New type.
(struct input_event): Describe the new form of the scrollbar_click
event type. Change `part' from a Lisp_Object to an enum
scrollbar_part. Add a new field `scrollbar'.
* keyboard.c (kbd_buffer_get_event): Pass appropriate new
parameters to *mouse_position_hook, and make_lispy_movement.
* xfns.c (x_set_vertical_scrollbar): New function.
(x_figure_window_size): Use new macros to calculate frame size.
(Fx_create_frame): Note that X Windows frames do support scroll
bars. Default to "yes".
* xterm.c: #include <X11/cursorfont.h> and "window.h".
(x_vertical_scrollbar_cursor): New variable.
(x_term_init): Initialize it.
(last_mouse_bar, last_mouse_bar_frame, last_mouse_part,
last_mouse_scroll_range_start, last_mouse_scroll_range_end): New
variables.
(XTmouse_position): Use them to return scrollbar movement events.
Take new arguments, for that purpose.
(x_window_to_scrollbar, x_scrollbar_create,
x_scrollbar_set_handle, x_scrollbar_remove, x_scrollbar_move,
XTset_scrollbar, XTcondemn_scrollbars, XTredeem_scrollbar,
XTjudge_scrollbars, x_scrollbar_expose,
x_scrollbar_background_expose, x_scrollbar_handle_click,
x_scrollbar_handle_motion): New functions to implement scrollbars.
(x_term_init): Set the termhooks.h hooks to point to them.
(x_set_window_size): Use new macros to calculate frame size. Set
vertical_scrollbar_extra field.
(x_make_frame_visible): Use the frame accessor
FRAME_HAS_VERTICAL_SCROLLBARS to decide if we need to map the
frame's subwindows as well.
(XTread_socket): Use new size-calculation macros from xterm.h when
processing ConfigureNotify events.
(x_wm_set_size_hint): Use PIXEL_TO_CHAR_WIDTH and
PIXEL_TO_CHAR_HEIGHT macros.
* ymakefile (xdisp.o): This now depends on termhooks.h.
(xterm.o): This now depends on window.h.
| author | Jim Blandy <jimb@redhat.com> |
|---|---|
| date | Thu, 24 Dec 1992 06:17:18 +0000 |
| parents | 3d87587ddc4e |
| children | df8b67adcee3 |
| rev | line source |
|---|---|
| 456 | 1 /* Definitions file for GNU Emacs running on IBM AIX version 3.1 |
| 2 Copyright (C) 1985, 1986 Free Software Foundation, Inc. | |
| 3 | |
| 4 This file is part of GNU Emacs. | |
| 5 | |
| 6 GNU Emacs is distributed in the hope that it will be useful, | |
| 7 but WITHOUT ANY WARRANTY. No author or distributor | |
| 8 accepts responsibility to anyone for the consequences of using it | |
| 9 or for whether it serves any particular purpose or works at all, | |
| 10 unless he says so in writing. Refer to the GNU Emacs General Public | |
| 11 License for full details. | |
| 12 | |
| 13 Everyone is granted permission to copy, modify and redistribute | |
| 14 GNU Emacs, but only under the conditions described in the | |
| 15 GNU Emacs General Public License. A copy of this license is | |
| 16 supposed to have been given to you along with GNU Emacs so you | |
| 17 can know your rights and responsibilities. It should be in a | |
| 18 file named COPYING. Among other things, the copyright notice | |
| 19 and this notice must be preserved on all copies. */ | |
| 20 | |
| 21 | |
| 22 /* | |
| 23 * Define symbols to identify the version of Unix this is. | |
| 24 * Define all the symbols that apply correctly. | |
| 25 */ | |
| 26 | |
| 27 #define USG /* System III, System V, etc */ | |
| 28 #define USG5 | |
| 29 | |
| 30 /* Specify IBM AIX version of system */ | |
| 31 | |
| 32 #ifndef AIX | |
| 33 #define AIX | |
| 34 #endif | |
| 35 | |
| 36 /* turn off c prototypes */ | |
| 37 #ifndef _NO_PROTO | |
| 38 #define _NO_PROTO | |
| 39 #endif | |
| 40 | |
| 41 /* This symbol should be defined on AIX Version 3 ??????? */ | |
| 42 #ifndef _AIX | |
| 43 #define _AIX | |
| 44 #endif | |
| 45 | |
| 46 /* Specify "_BSD" to invoke Berkeley compatibility in header files */ | |
| 47 /*#ifndef _BSD | |
| 48 #define _BSD | |
| 49 #endif | |
| 50 */ | |
| 51 | |
| 52 /* SYSTEM_TYPE should indicate the kind of system you are using. | |
| 53 It sets the Lisp variable system-type. */ | |
| 54 | |
| 55 #define SYSTEM_TYPE "aix-v3" | |
| 56 | |
| 57 | |
| 58 /* nomultiplejobs should be defined if your system's shell | |
| 59 does not have "job control" (the ability to stop a program, | |
| 60 run some other program, then continue the first one). */ | |
| 61 | |
| 62 /* #define NOMULTIPLEJOBS */ | |
| 63 | |
| 64 /* Default is to set interrupt_input to 0: don't do input buffering within Emacs */ | |
| 65 | |
| 66 /* #define INTERRUPT_INPUT */ | |
| 67 | |
|
1374
3d87587ddc4e
(PTY_ITERATION, etc.): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
1088
diff
changeset
|
68 /* In AIX, you allocate a pty by opening /dev/ptc to get the master side. |
|
3d87587ddc4e
(PTY_ITERATION, etc.): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
1088
diff
changeset
|
69 To get the name of the slave side, you just ttyname() the master side. */ |
| 456 | 70 |
|
1374
3d87587ddc4e
(PTY_ITERATION, etc.): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
1088
diff
changeset
|
71 #define PTY_ITERATION for (c = 0; !c ; c++) |
|
3d87587ddc4e
(PTY_ITERATION, etc.): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
1088
diff
changeset
|
72 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc"); |
|
3d87587ddc4e
(PTY_ITERATION, etc.): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
1088
diff
changeset
|
73 #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd)); |
| 456 | 74 |
| 75 /* | |
| 76 * Define HAVE_TERMIO if the system provides sysV-style ioctls | |
| 77 * for terminal control. | |
| 78 */ | |
| 79 | |
| 80 #define HAVE_TERMIO | |
| 81 | |
| 82 /* | |
| 83 * Define HAVE_TIMEVAL if the system supports the BSD style clock values. | |
| 84 * Look in <sys/time.h> for a timeval structure. | |
| 85 */ | |
| 86 | |
| 87 #define HAVE_TIMEVAL | |
| 88 | |
| 89 /* | |
| 90 * Define HAVE_SELECT if the system supports the `select' system call. | |
| 91 */ | |
| 92 | |
| 93 #define HAVE_SELECT | |
| 94 | |
| 95 /* | |
| 96 * Define HAVE_PTYS if the system supports pty devices. | |
| 97 */ | |
| 98 | |
| 99 #define HAVE_PTYS | |
| 100 | |
| 101 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ | |
| 102 | |
| 103 #define HAVE_SOCKETS | |
| 104 | |
| 105 /* | |
| 106 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | |
| 107 * The 4.2 opendir, etc., library functions. | |
| 108 */ | |
| 109 | |
| 110 /* #define NONSYSTEM_DIR_LIBRARY */ | |
| 111 | |
| 112 /* | |
| 113 * Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir | |
| 114 * library functions. Almost, but not quite the same as | |
| 115 * the 4.2 functions | |
| 116 */ | |
| 117 | |
| 118 #define SYSV_SYSTEM_DIR | |
| 119 | |
| 120 /* Define this symbol if your system has the functions bcopy, etc. */ | |
| 121 | |
| 122 #define BSTRING | |
| 123 | |
| 124 /* subprocesses should be defined if you want to | |
| 125 have code for asynchronous subprocesses | |
| 126 (as used in M-x compile and M-x shell). | |
| 127 This is supposed to work now on system V release 2. */ | |
| 128 | |
| 129 #define subprocesses | |
| 130 | |
| 131 /* If your system uses COFF (Common Object File Format) then define the | |
| 132 preprocessor symbol "COFF". */ | |
| 133 | |
| 134 /* #define COFF */ | |
| 135 | |
| 136 /* define MAIL_USE_FLOCK if the mailer uses flock | |
| 137 to interlock access to /usr/spool/mail/$USER. | |
| 138 The alternative is that a lock file named | |
| 139 /usr/spool/mail/$USER.lock. */ | |
| 140 | |
| 141 /* #define MAIL_USE_FLOCK */ | |
| 142 | |
| 143 /* Define CLASH_DETECTION if you want lock files to be written | |
| 144 so that Emacs can tell instantly when you try to modify | |
| 145 a file that someone else has modified in his Emacs. */ | |
| 146 | |
| 147 /* #define CLASH_DETECTION */ | |
| 148 | |
| 149 /* Define SHORTNAMES if the C compiler can distinguish only | |
| 150 short names. It means that the stuff in ../shortnames | |
| 151 must be run to convert the long names to short ones. */ | |
| 152 | |
| 153 /* #define SHORTNAMES */ | |
| 154 | |
| 155 /* We do NOT use the Berkeley (and usg5.2.2) interface to nlist. */ | |
| 156 | |
| 157 /* #define NLIST_STRUCT */ | |
| 158 | |
| 159 /* The file containing the kernel's symbol table is called /unix. */ | |
| 160 | |
| 161 #define KERNEL_FILE "/unix" | |
| 162 | |
| 163 /* The symbol in the kernel where the load average is found | |
| 164 is named avenrun. */ | |
| 165 | |
| 166 #define LDAV_SYMBOL "avenrun" | |
| 167 | |
| 168 /* Special itemss needed to make Emacs run on this system. */ | |
| 169 | |
| 170 /* | |
| 171 * Make the sigsetmask function go away. Don't know what the | |
| 172 * ramifications of this are, but doesn't seem possible to | |
| 173 * emulate it properly anyway at this point. | |
| 174 */ | |
| 175 | |
| 176 #define sigsetmask(mask) /* Null expansion */ | |
| 177 | |
| 178 /* setjmp and longjmp can safely replace _setjmp and _longjmp, | |
| 179 but they will run slower. */ | |
| 180 | |
| 181 #define _setjmp setjmp | |
| 182 #define _longjmp longjmp | |
| 183 | |
| 184 /* On USG systems the system calls are interruptable by signals | |
| 185 that the user program has elected to catch. Thus the system call | |
| 186 must be retried in these cases. To handle this without massive | |
| 187 changes in the source code, we remap the standard system call names | |
| 188 to names for our own functions in sysdep.c that do the system call | |
| 189 with retries. */ | |
| 190 | |
| 191 #define read sys_read | |
| 192 #define open sys_open | |
| 193 #define write sys_write | |
| 194 | |
| 195 #define INTERRUPTIBLE_OPEN | |
| 196 #define INTERRUPTIBLE_IO | |
| 197 | |
| 198 /* On USG systems these have different names */ | |
| 199 | |
| 200 #define index strchr | |
| 201 #define rindex strrchr | |
| 202 | |
| 203 /* USG systems tend to put everything declared static | |
| 204 into the initialized data area, which becomes pure after dumping Emacs. | |
| 205 Foil this. Emacs carefully avoids static vars inside functions. */ | |
| 206 | |
| 207 #undef static | |
| 208 | |
| 209 /* Compiler bug bites on many systems when default ADDR_CORRECT is used. */ | |
| 210 | |
| 211 /* #define ADDR_CORRECT(x) (x) */ | |
| 212 | |
| 624 | 213 #define LINKER cc |
| 456 | 214 |
| 215 /* Prevent -lg from being used for debugging. Not needed. */ | |
| 216 | |
| 217 #define LIBS_DEBUG | |
| 218 | |
| 219 /* No need to specify -lc when linking. */ | |
| 220 | |
| 221 #define LIB_STANDARD | |
| 222 | |
| 223 /* Use terminfo instead of termcap. */ | |
| 224 | |
| 225 #define TERMINFO | |
| 226 | |
| 227 /* The following definition seems to be needed in AIX version 3.1.6.8. | |
| 228 It may not have been needed in certain earlier versions. */ | |
| 229 #define HAVE_TCATTR | |
| 230 | |
| 231 #define SYSTEM_MALLOC | |
| 232 | |
| 1088 | 233 /* Use the gethostname system call. */ |
| 234 #define HAVE_GETHOSTNAME |
