Mercurial > emacs
annotate src/s/umax.h @ 10404:631f1dac6f7a
Global polishing, some bugs corrected, dynamic allocation used instead
of fixed length static buffers in many places.
* etags.c (FILEPOS, GET_CHARNO, GET_FILEPOS, max, LINENO): Deleted.
(append_to_tagfile, typedefs, typedefs_and_cplusplus,
constantypedefs, update, vgrind_style, no_warnings,
cxref_style, cplusplus, noindentypedefs): Were int, now logical.
(permit_duplicates): Was a var, now a #define.
(filename_lb): Was global, now local to main.
(main): Open the tag file when in cxref mode.
Use a BUFSIZ size buffer for making the shell commands.
Look at the return value from the system routine.
Exit when cannot open the tag file.
(process_file): Open the file and pass the FILE* to find_entries.
(find_entries): Now void, because does not open the file itself.
(pfnote): Recovering from lack of memory does not work. Removed.
Use savenstr and simplify the code.
(free_tree): Only free the name space if node is named.
(structtag): Now a pointer, not a fixed length array of chars.
(consider_token): Don't take a token as argument. Use savenstr
when saving a tag in structtag. Callers changed.
(TOKEN): Structure changed. Now used only in C_entries.
(TOKEN_SAVED_P, SAVE_TOKEN, RESTORE_TOKEN): Deleted.
(C_entries): nameb and savenameb deleted. Use dinamic allocation.
(pfcnt): Deleted. Users updated.
(getit, Asm_labels, Pascal_functions, L_getit, get_scheme,
TEX_getit, prolog_getit): Use dinamic allocation for storing
the tag instead of a fixed size buffer.
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Thu, 12 Jan 1995 17:05:37 +0000 |
parents | 191acacfa1ec |
children | ee40177f6c68 |
rev | line source |
---|---|
457 | 1 /* Definitions file for GNU Emacs running on UMAX 4.2 |
2 Copyright (C) 1985, 1986 Free Software Foundation, Inc. | |
3 | |
4 This file is part of GNU Emacs. | |
5 | |
6 GNU Emacs is free software; you can redistribute it and/or modify | |
7 it under the terms of the GNU General Public License as published by | |
3699 | 8 the Free Software Foundation; either version 2, or (at your option) |
457 | 9 any later version. |
10 | |
11 GNU Emacs is distributed in the hope that it will be useful, | |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 GNU General Public License for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
17 along with GNU Emacs; see the file COPYING. If not, write to | |
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
19 | |
20 | |
21 /* | |
22 * Define symbols to identify the version of Unix this is. | |
23 * Define all the symbols that apply correctly. | |
24 */ | |
25 | |
26 /* #define UNIPLUS */ | |
27 /* #define USG5 */ | |
28 /* #define USG */ | |
29 /* #define BSD4_1 */ | |
30 #define BSD4_2 | |
31 /* #define BSD4_3 */ | |
32 #define BSD | |
33 #define UMAX4_2 | |
34 #define UMAX | |
35 /* #define VMS */ | |
36 | |
37 /* SYSTEM_TYPE should indicate the kind of system you are using. | |
38 It sets the Lisp variable system-type. */ | |
39 | |
40 #define SYSTEM_TYPE "berkeley-unix" | |
41 | |
42 /* NOMULTIPLEJOBS should be defined if your system's shell | |
43 does not have "job control" (the ability to stop a program, | |
44 run some other program, then continue the first one). */ | |
45 | |
46 /* #define NOMULTIPLEJOBS */ | |
47 | |
48 /* Emacs can read input using SIGIO and buffering characters itself, | |
49 or using CBREAK mode and making C-g cause SIGINT. | |
50 The choice is controlled by the variable interrupt_input. | |
51 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO) | |
52 | |
53 SIGIO can be used only on systems that implement it (4.2 and 4.3). | |
3591
507f64624555
Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents:
457
diff
changeset
|
54 CBREAK mode has two disadvantages |
457 | 55 1) At least in 4.2, it is impossible to handle the Meta key properly. |
56 I hear that in system V this problem does not exist. | |
57 2) Control-G causes output to be discarded. | |
58 I do not know whether this can be fixed in system V. | |
59 | |
60 Another method of doing input is planned but not implemented. | |
61 It would have Emacs fork off a separate process | |
62 to read the input and send it to the true Emacs process | |
63 through a pipe. | |
64 */ | |
65 | |
66 #define INTERRUPT_INPUT | |
67 | |
68 /* Letter to use in finding device name of first pty, | |
69 if system supports pty's. 'a' means it is /dev/ptya0 */ | |
70 | |
71 #define FIRST_PTY_LETTER 'p' | |
72 | |
73 /* | |
74 * Define HAVE_PTYS if the system supports pty devices. | |
75 */ | |
76 | |
77 #define HAVE_PTYS | |
78 | |
79 /* Define this macro if system defines a type `union wait'. */ | |
80 | |
81 #define HAVE_UNION_WAIT | |
82 | |
83 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ | |
84 | |
85 #define HAVE_SOCKETS | |
86 | |
87 /* | |
88 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | |
89 * The 4.2 opendir, etc., library functions. | |
90 */ | |
91 | |
92 /* #define NONSYSTEM_DIR_LIBRARY */ | |
93 | |
94 /* Define this symbol if your system has the functions bcopy, etc. */ | |
95 | |
96 #define BSTRING | |
97 | |
98 /* subprocesses should be defined if you want to | |
99 have code for asynchronous subprocesses | |
100 (as used in M-x compile and M-x shell). | |
101 This is generally OS dependent, and not supported | |
102 under most USG systems. */ | |
103 | |
104 #define subprocesses | |
105 | |
106 /* If your system uses COFF (Common Object File Format) then define the | |
107 preprocessor symbol "COFF". */ | |
108 | |
109 #define COFF | |
110 | |
111 /* define MAIL_USE_FLOCK if the mailer uses flock | |
112 to interlock access to /usr/spool/mail/$USER. | |
113 The alternative is that a lock file named | |
114 /usr/spool/mail/$USER.lock. */ | |
115 | |
116 #define MAIL_USE_FLOCK | |
117 | |
118 /* Define CLASH_DETECTION if you want lock files to be written | |
119 so that Emacs can tell instantly when you try to modify | |
120 a file that someone else has modified in his Emacs. */ | |
121 | |
122 #define CLASH_DETECTION | |
123 | |
124 /* We use the Berkeley (and usg5.2.2) interface to nlist. */ | |
125 | |
126 #define NLIST_STRUCT | |
127 | |
128 /* The file containing the kernel's symbol table is called /vmunix. */ | |
129 | |
130 #define KERNEL_FILE "/vmunix" | |
131 | |
132 /* The symbol in the kernel where the load average is found | |
133 is named _avenrun. */ | |
134 | |
135 #define LDAV_SYMBOL "_avenrun" | |
136 | |
137 /* Here, on a separate page, add any special hacks needed | |
138 to make Emacs work on this system. For example, | |
139 you might define certain system call names that don't | |
140 exist on your system, or that do different things on | |
141 your system and must be used only through an encapsulation | |
142 (Which you should place, by convention, in sysdep.c). */ | |
143 | |
144 /* Specify alignment requirement for start of text and data sections | |
145 in the executable file. */ | |
146 | |
147 #define SECTION_ALIGNMENT pagemask | |
148 | |
149 | |
150 #define SEGMENT_MASK (64 * 1024 - 1) | |
151 | |
152 | |
153 /* crt0.c needs this for compilation because it uses asm. */ | |
154 | |
155 #define C_SWITCH_ASM -q nodirect_code | |
156 | |
157 /* Encore machines with APC processor boards align sections on 4M | |
158 boundaries, so it is not easy to remap the start of the text segment | |
159 in the unexec() routine. For them you need the following two lines. | |
160 For DPC processors you can enable these or not, as you wish, but | |
161 you will get better performance without them. */ | |
162 | |
163 /* #define NO_REMAP | |
164 #define TEXT_START 0 | |
165 */ | |
4485 | 166 |
167 /* (Assume) we do have vfork. */ | |
168 | |
169 #define HAVE_VFORK | |
5966 | 170 |
171 /* Process groups work in the traditional BSD manner. */ | |
172 | |
173 #define BSD_PGRPS |