Mercurial > emacs
annotate src/s/irix6-5.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 | 67fa8a547b3d |
children | 930c3f92138a 663e60c7887e |
rev | line source |
---|---|
23913 | 1 #define IRIX6 |
2 #define IRIX6_5 | |
3 #include "irix5-0.h" | |
4 | |
30505
a0367b506722
(IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
Dave Love <fx@gnu.org>
parents:
27490
diff
changeset
|
5 #if _MIPS_SZLONG == 64 /* -mabi=64 (gcc) or -64 (MIPSpro) */ |
31925 | 6 #define _LP64 /* lisp.h takes care of the rest */ |
30505
a0367b506722
(IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
Dave Love <fx@gnu.org>
parents:
27490
diff
changeset
|
7 #endif /* _MIPS_SZLONG */ |
23913 | 8 |
9 /* This macro definition, which we inherited from irix5-0.h, | |
10 is needed in configure on Irix 5, but gets in the way there | |
11 on Irix 6. So get rid of it except in Makefile.in where we need it. */ | |
12 #ifndef THIS_IS_MAKEFILE | |
13 #undef C_SWITCH_SYSTEM | |
14 #endif | |
15 | |
16 /* The only supported configuration of GCC under IRIX6.x produces | |
17 n32 MIPS ABI binaries and also supports -g. */ | |
18 #ifdef __GNUC__ | |
19 #undef C_DEBUG_SWITCH | |
20 #define C_DEBUG_SWITCH -g | |
25338
8a6fbe59406d
(C_DEBUG_SWITCH): Set for debug and optimize.
Dave Love <fx@gnu.org>
parents:
23913
diff
changeset
|
21 #else |
27490
2567edc84238
Revert last change after change to irix5-0.h.
Dave Love <fx@gnu.org>
parents:
27440
diff
changeset
|
22 /* Optimize, inaccurate debugging, increase limit on size of what's |
2567edc84238
Revert last change after change to irix5-0.h.
Dave Love <fx@gnu.org>
parents:
27440
diff
changeset
|
23 optimized. |
2567edc84238
Revert last change after change to irix5-0.h.
Dave Love <fx@gnu.org>
parents:
27440
diff
changeset
|
24 |
2567edc84238
Revert last change after change to irix5-0.h.
Dave Love <fx@gnu.org>
parents:
27440
diff
changeset
|
25 This should also be applicable other than on Irix 6.5, but I don't |
2567edc84238
Revert last change after change to irix5-0.h.
Dave Love <fx@gnu.org>
parents:
27440
diff
changeset
|
26 know for which compiler versions. -- fx */ |
2567edc84238
Revert last change after change to irix5-0.h.
Dave Love <fx@gnu.org>
parents:
27440
diff
changeset
|
27 #define C_DEBUG_SWITCH -g3 -O -OPT:Olimit=3500 |
23913 | 28 #endif |
29 | |
30 #undef SA_RESTART | |
31 | |
30505
a0367b506722
(IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
Dave Love <fx@gnu.org>
parents:
27490
diff
changeset
|
32 /* Cancel the #define that is in irix5-0.h. */ |
23913 | 33 #undef ospeed |
30505
a0367b506722
(IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
Dave Love <fx@gnu.org>
parents:
27490
diff
changeset
|
34 |
34612
67fa8a547b3d
#undef bcopy & al here. Include strings.h.
Gerd Moellmann <gerd@gnu.org>
parents:
31925
diff
changeset
|
35 /* If we keep the #defines from usg5-4.h, we lose when using the X |
67fa8a547b3d
#undef bcopy & al here. Include strings.h.
Gerd Moellmann <gerd@gnu.org>
parents:
31925
diff
changeset
|
36 headers because (at least) the bzero definition breaks their use of |
67fa8a547b3d
#undef bcopy & al here. Include strings.h.
Gerd Moellmann <gerd@gnu.org>
parents:
31925
diff
changeset
|
37 strings.h. Including strings.h here gets us prototypes for them. |
67fa8a547b3d
#undef bcopy & al here. Include strings.h.
Gerd Moellmann <gerd@gnu.org>
parents:
31925
diff
changeset
|
38 (They're in libc though also they seem to be intrinsics in the SGI |
67fa8a547b3d
#undef bcopy & al here. Include strings.h.
Gerd Moellmann <gerd@gnu.org>
parents:
31925
diff
changeset
|
39 (Cray) compiler at least at version 7.3). -- fx */ |
67fa8a547b3d
#undef bcopy & al here. Include strings.h.
Gerd Moellmann <gerd@gnu.org>
parents:
31925
diff
changeset
|
40 #undef bcopy |
67fa8a547b3d
#undef bcopy & al here. Include strings.h.
Gerd Moellmann <gerd@gnu.org>
parents:
31925
diff
changeset
|
41 #undef bcmp |
67fa8a547b3d
#undef bcopy & al here. Include strings.h.
Gerd Moellmann <gerd@gnu.org>
parents:
31925
diff
changeset
|
42 #undef bzero |
67fa8a547b3d
#undef bcopy & al here. Include strings.h.
Gerd Moellmann <gerd@gnu.org>
parents:
31925
diff
changeset
|
43 #ifndef NOT_C_CODE |
67fa8a547b3d
#undef bcopy & al here. Include strings.h.
Gerd Moellmann <gerd@gnu.org>
parents:
31925
diff
changeset
|
44 #include <strings.h> |
67fa8a547b3d
#undef bcopy & al here. Include strings.h.
Gerd Moellmann <gerd@gnu.org>
parents:
31925
diff
changeset
|
45 #endif |
67fa8a547b3d
#undef bcopy & al here. Include strings.h.
Gerd Moellmann <gerd@gnu.org>
parents:
31925
diff
changeset
|
46 |
67fa8a547b3d
#undef bcopy & al here. Include strings.h.
Gerd Moellmann <gerd@gnu.org>
parents:
31925
diff
changeset
|
47 #undef TIOCSIGSEND /* defined in usg5-4.h */ |