aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorFrancesco Potortì1999-11-19 12:46:32 +0000
committerFrancesco Potortì1999-11-19 12:46:32 +0000
commitc8b04710a0e1415a526757b3dcd6d6bb6c03a175 (patch)
tree51eddc069686fb051002f7eb189d5fa00e3b3f65 /lib-src
parente208136267e073b9f9838ccc75085ec109eb6cc9 (diff)
downloademacs-c8b04710a0e1415a526757b3dcd6d6bb6c03a175.tar.gz
emacs-c8b04710a0e1415a526757b3dcd6d6bb6c03a175.zip
1999-11-19 Francesco Potorti` <F.Potorti@cnuce.cnr.it>
* etags.c (_GNU_SOURCE): Define only if undefined. (get_scheme): Declaration deleted. (main): error was called with an integer as second arg, instead of a char pointer. (canonicalize_filename): Bug removed. 1999-11-18 Dave Love <d.love@dl.ac.uk> * etags.c (C_entries): Rename label `intoken', avoiding K&R lossage from name clash with macro.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index aa21e2be3f2..552a09d2f01 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -31,12 +31,14 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
31 * Francesco Potorti` (pot@gnu.org) is the current maintainer. 31 * Francesco Potorti` (pot@gnu.org) is the current maintainer.
32 */ 32 */
33 33
34char pot_etags_version[] = "@(#) pot revision number is 13.31"; 34char pot_etags_version[] = "@(#) pot revision number is 13.33";
35 35
36#define TRUE 1 36#define TRUE 1
37#define FALSE 0 37#define FALSE 0
38 38
39#define _GNU_SOURCE /* enables some compiler checks on GNU */ 39#ifndef _GNU_SOURCE
40# define _GNU_SOURCE /* enables some compiler checks on GNU */
41#endif
40#ifndef DEBUG 42#ifndef DEBUG
41# define DEBUG FALSE 43# define DEBUG FALSE
42#endif 44#endif
@@ -934,7 +936,7 @@ main (argc, argv)
934 case 'o': 936 case 'o':
935 if (tagfile) 937 if (tagfile)
936 { 938 {
937 error ("-%c option may only be given once.", opt); 939 error ("-o option may only be given once.", (char *)NULL);
938 suggest_asking_for_help (); 940 suggest_asking_for_help ();
939 } 941 }
940 tagfile = optarg; 942 tagfile = optarg;
@@ -1012,7 +1014,7 @@ main (argc, argv)
1012 1014
1013 if (nincluded_files == 0 && file_count == 0) 1015 if (nincluded_files == 0 && file_count == 0)
1014 { 1016 {
1015 error ("no input files specified.", 0); 1017 error ("no input files specified.", (char *)NULL);
1016 suggest_asking_for_help (); 1018 suggest_asking_for_help ();
1017 } 1019 }
1018 1020
@@ -2786,7 +2788,7 @@ C_entries (c_ext, inf)
2786 lp += 2; 2788 lp += 2;
2787 toklen += 2; 2789 toklen += 2;
2788 c = lp[-1]; 2790 c = lp[-1];
2789 goto intoken; 2791 goto intok;
2790 } 2792 }
2791 else 2793 else
2792 { 2794 {
@@ -2881,7 +2883,7 @@ C_entries (c_ext, inf)
2881 } 2883 }
2882 } /* if (endtoken (c)) */ 2884 } /* if (endtoken (c)) */
2883 else if (intoken (c)) 2885 else if (intoken (c))
2884 intoken: 2886 intok:
2885 { 2887 {
2886 toklen++; 2888 toklen++;
2887 continue; 2889 continue;
@@ -4113,8 +4115,6 @@ Postscript_functions (inf)
4113 * look for (set! xyzzy 4115 * look for (set! xyzzy
4114 */ 4116 */
4115 4117
4116void get_scheme ();
4117
4118void 4118void
4119Scheme_functions (inf) 4119Scheme_functions (inf)
4120 FILE *inf; 4120 FILE *inf;
@@ -5401,13 +5401,13 @@ canonicalize_filename (fn)
5401 register char *fn; 5401 register char *fn;
5402{ 5402{
5403#ifdef DOS_NT 5403#ifdef DOS_NT
5404 /* Canonicalize drive letter case. */
5405 if (islower (fn[0]))
5406 fn[0] = toupper (fn[0]);
5404 /* Convert backslashes to slashes. */ 5407 /* Convert backslashes to slashes. */
5405 for (; *fn != '\0'; fn++) 5408 for (; *fn != '\0'; fn++)
5406 if (*fn == '\\') 5409 if (*fn == '\\')
5407 *fn = '/'; 5410 *fn = '/';
5408 /* Canonicalize drive letter case. */
5409 if (islower (path[0]))
5410 path[0] = toupper (path[0]);
5411#else 5411#else
5412 /* No action. */ 5412 /* No action. */
5413 fn = NULL; /* shut up the compiler */ 5413 fn = NULL; /* shut up the compiler */