annotate src/s/esix.h @ 43723:5cd450d9f443
* etags.c: Honour #line directives.
(no_line_directive): New global var; set it for old behaviour.
(main): Remove some #ifdef in the getopt switch.
(add_node, put_entries): Code added to merge different chunks of
nodes referring to the same file. Currently the tags are just
appended, without any check for duplicates.
(Perl_functions): Do not special case ctags.
(readline): Identify #line directives and do the right thing.
(nocharno, invalidcharno): New global vars.
(process_file): Reset nocharno.
(readline): Set nocharno.
(pfnote): Read nocharno and maybe put invalidcharno in node.
(total_size_of_entries, put_entries): Use invalidcharno.
* etags.c: Keep the whole tag table in memory, even in etags mode.
(main): Call put_entries here even in CTAGS mode.
(main, process_file): Check the return values of fclose and pclose.
(process_file): Do not call put_entries after parsing each file.
(process_file): Canonicalise file names even for ctags.
(process_file): Set curfile here...
(find_entries): ... not here any more.
(add_node): In etags mode, build a linked list of entries (on
right pointer) for each file, and link the first entry of each
file on left nodes.
(put_entries): Print here the name of the file.
(put_entries): Print the entries starting from the first file.
(number_len, total_size_of_entries): Define these only iin etags
mode, make the second work only on the right nodes.
* etags.c: Make all global variables static.
author |
Francesco Potortì <pot@gnu.org> |
date |
Tue, 05 Mar 2002 11:28:26 +0000 |
parents |
191acacfa1ec |
children |
695cf19ef79e |
rev |
line source |
457
|
1 /* Definitions for ESIX, a variant of v.5.3 for the 386. */
|
|
2 /* These are based on reports for ESIX 5.3.2 D. */
|
|
3
|
|
4 #include "usg5-3.h"
|
|
5
|
|
6 /* Some versions of V.3 have this, but not all. ESIX does. */
|
|
7 #define HAVE_PTYS
|
|
8 #define SYSV_PTYS
|
|
9
|
|
10 /* Have -lg be used for debugging. */
|
|
11 #undef LIBS_DEBUG
|
|
12 #define LIBS_DEBUG -lg
|
|
13
|
|
14 /* If using Roell's X server, define X11R4 */
|
|
15 #ifdef X11R4 /* Roell's X server */
|
|
16 #define select sys_select /* Emacs select() not good enough? */
|
|
17 #undef LIBX11_SYSTEM
|
|
18 #define LIBX11_SYSTEM -lpt
|
|
19 #endif /* X11R4 */
|
|
20
|
|
21 /* ESIX does not need <sys/sioctl.h>, but needs <sys/ptem.h> */
|
|
22 #define NO_SIOCTL_H
|
|
23 #define NEED_PTEM_H
|
|
24 #define BROKEN_FIONREAD
|