annotate src/s/esix5r4.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 c1ddce9c1e2c
children 695cf19ef79e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1101
3e06965680fd entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 /* Definitions for ESIX System V 4.0.4, a variant of V.4 for the 386. */
3475
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
2 /* Redone by zircon!joe@uunet.uu.net (Joe Kelsey). */
1101
3e06965680fd entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3
3e06965680fd entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4 #include "usg5-4.h"
3e06965680fd entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5
3475
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
6 #define SYSTEM_MALLOC 1
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
7 #if defined (HAVE_XFREE386)
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
8 # undef LIB_STANDARD
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
9 # define LIB_STANDARD -lc
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
10 #else
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
11 # define LIB_X11_LIB -lsocket -lc -lX11
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
12 # undef LIB_STANDARD
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
13 # ifdef ORDINARY_LINK
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
14 # define LIB_STANDARD -lnsl -lns -lelf /usr/ucblib/libucb.a
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
15 # else
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
16 # define LIB_STANDARD -lnsl -lns -lelf /usr/ucblib/libucb.a /usr/ccs/lib/crtn.o
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
17 # endif
1101
3e06965680fd entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18
3e06965680fd entered into RCS
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19 /* Resolve BSD string functions in X Window library from libucb.a. */
3475
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
20 # define BSTRING
1428
4fa17744d7ee (BROKEN_FIONREAD): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 1101
diff changeset
21
3475
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
22 /* zircon!joe says this makes X windows work. */
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
23 # define BROKEN_FIONREAD
c1ddce9c1e2c Redone by Joe Kelsey.
Richard M. Stallman <rms@gnu.org>
parents: 1428
diff changeset
24 #endif