aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorFrancesco Potortì2005-11-18 13:57:25 +0000
committerFrancesco Potortì2005-11-18 13:57:25 +0000
commit2e0bea68fab0abb20615f84be2faaeaf141f42fe (patch)
tree2a44ae4303aa472c7a6651fbbad1cc1619aaec41 /lib-src
parentfe45ad152a8528e795c3d852bf3c2cd18ffe6e02 (diff)
downloademacs-2e0bea68fab0abb20615f84be2faaeaf141f42fe.tar.gz
emacs-2e0bea68fab0abb20615f84be2faaeaf141f42fe.zip
Cxref mode writes to stdout: do not close tagf,
which has never been opened. Specify in the --help that vgrind writes to stdout.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog5
-rw-r--r--lib-src/etags.c18
2 files changed, 15 insertions, 8 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 2f584879147..bab6d6cea38 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,8 @@
12005-11-18 Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp> (tiny change)
2
3 * etags.c (main): Cxref mode writes to stdout: do not close tagf,
4 which was never opened.
5
12005-10-20 Olli Savia <ops@iki.fi> (tiny change) 62005-10-20 Olli Savia <ops@iki.fi> (tiny change)
2 7
3 * etags.c: Undef STDIN if defined. (LynxOS defines it in system 8 * etags.c: Undef STDIN if defined. (LynxOS defines it in system
diff --git a/lib-src/etags.c b/lib-src/etags.c
index de0a2cf950b..fecf7904117 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -41,7 +41,7 @@
41 * configuration file containing regexp definitions for etags. 41 * configuration file containing regexp definitions for etags.
42 */ 42 */
43 43
44char pot_etags_version[] = "@(#) pot revision number is 17.14"; 44char pot_etags_version[] = "@(#) pot revision number is 17.15";
45 45
46#define TRUE 1 46#define TRUE 1
47#define FALSE 0 47#define FALSE 0
@@ -479,7 +479,7 @@ static bool packages_only; /* --packages-only: in Ada, only tag packages*/
479 479
480/* STDIN is defined in LynxOS system headers */ 480/* STDIN is defined in LynxOS system headers */
481#ifdef STDIN 481#ifdef STDIN
482#undef STDIN 482# undef STDIN
483#endif 483#endif
484 484
485#define STDIN 0x1001 /* returned by getopt_long on --parse-stdin */ 485#define STDIN 0x1001 /* returned by getopt_long on --parse-stdin */
@@ -994,9 +994,9 @@ Relative ones are stored relative to the output file's directory.\n");
994 if (CTAGS) 994 if (CTAGS)
995 { 995 {
996 puts ("-v, --vgrind\n\ 996 puts ("-v, --vgrind\n\
997 Generates an index of items intended for human consumption,\n\ 997 Print on the standard output an index of items intended for\n\
998 similar to the output of vgrind. The index is sorted, and\n\ 998 human consumption, similar to the output of vgrind. The index\n\
999 gives the page number of each item."); 999 is sorted, and gives the page number of each item.");
1000 puts ("-w, --no-warn\n\ 1000 puts ("-w, --no-warn\n\
1001 Suppress warning messages about entries defined in multiple\n\ 1001 Suppress warning messages about entries defined in multiple\n\
1002 files."); 1002 files.");
@@ -1428,7 +1428,8 @@ main (argc, argv)
1428 1428
1429 if (!CTAGS || cxref_style) 1429 if (!CTAGS || cxref_style)
1430 { 1430 {
1431 put_entries (nodehead); /* write the remaining tags (ETAGS) */ 1431 /* Write the remaining tags to tagf (ETAGS) or stdout (CXREF). */
1432 put_entries (nodehead);
1432 free_tree (nodehead); 1433 free_tree (nodehead);
1433 nodehead = NULL; 1434 nodehead = NULL;
1434 if (!CTAGS) 1435 if (!CTAGS)
@@ -1442,10 +1443,11 @@ main (argc, argv)
1442 1443
1443 while (nincluded_files-- > 0) 1444 while (nincluded_files-- > 0)
1444 fprintf (tagf, "\f\n%s,include\n", *included_files++); 1445 fprintf (tagf, "\f\n%s,include\n", *included_files++);
1446
1447 if (fclose (tagf) == EOF)
1448 pfatal (tagfile);
1445 } 1449 }
1446 1450
1447 if (fclose (tagf) == EOF)
1448 pfatal (tagfile);
1449 exit (EXIT_SUCCESS); 1451 exit (EXIT_SUCCESS);
1450 } 1452 }
1451 1453