annotate src/s/386bsd.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 0cbb394cbd82
children 23a1cea22d13
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3381
de9c7511a85c *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 3380
diff changeset
1 /* s/ file for 386bsd system. */
de9c7511a85c *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 3380
diff changeset
2
3380
1d5d0d96bfbc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3 /* Get most of the stuff from bsd4.3 */
1d5d0d96bfbc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4 #include "bsd4-3.h"
1d5d0d96bfbc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5
4271
fd05e9662279 (LOCALTIME_CACHE): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 4234
diff changeset
6 #undef LIB_STANDARD
fd05e9662279 (LOCALTIME_CACHE): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 4234
diff changeset
7 #define LIB_STANDARD -lc $(GNULIB_VAR)
fd05e9662279 (LOCALTIME_CACHE): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 4234
diff changeset
8
3590
d5f22061277d entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 3417
diff changeset
9 /* The following should be set to /netbsd if you are running netbsd > 0.8
3380
1d5d0d96bfbc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10 Or just link /netbsd -> /386bsd */
1d5d0d96bfbc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 #undef KERNEL_FILE
1d5d0d96bfbc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 #define KERNEL_FILE "/386bsd"
1d5d0d96bfbc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13
1d5d0d96bfbc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
1d5d0d96bfbc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15
1d5d0d96bfbc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 /* Need to use GNU make, as system make has problems */
1d5d0d96bfbc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 #define MAKE_COMMAND gmake
1d5d0d96bfbc Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 #define LIBS_DEBUG
3417
88e091efba6c *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 3381
diff changeset
19
88e091efba6c *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 3381
diff changeset
20 /* For mem-limits.h. */
88e091efba6c *** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents: 3381
diff changeset
21 #define BSD4_2
4234
19f077831e72 (DECLARE_GETPWUID_WITH_UID_T): Declared.
Richard M. Stallman <rms@gnu.org>
parents: 3590
diff changeset
22
19f077831e72 (DECLARE_GETPWUID_WITH_UID_T): Declared.
Richard M. Stallman <rms@gnu.org>
parents: 3590
diff changeset
23 /* This affects a declaration in xrdb.c. */
19f077831e72 (DECLARE_GETPWUID_WITH_UID_T): Declared.
Richard M. Stallman <rms@gnu.org>
parents: 3590
diff changeset
24 #define DECLARE_GETPWUID_WITH_UID_T