summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorFrancesco Potortì <pot@gnu.org>1994-07-08 10:31:16 +0000
committerFrancesco Potortì <pot@gnu.org>1994-07-08 10:31:16 +0000
commit0c1fd2e3890fcfd8e68dac745065f0fc797f3532 (patch)
treefb2f90185d43fa22ff63ab07298056fc0308c6e7 /lib-src
parent642c364840fb39d6c5636efdcdacd6a812048b30 (diff)
downloademacs-0c1fd2e3890fcfd8e68dac745065f0fc797f3532.tar.gz
* etags.c (main): Don't barf on obsolete -t and -T switches.
(main): Print an explicative message when a switch is not known. (takeprec): recognise the `character*(*) function' syntax.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 6410c048931..e640fcdfeee 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -452,8 +452,8 @@ main (argc, argv)
case 'o':
if (tagfile)
{
- fprintf (stderr,
- "%s: -%c flag may only be given once\n", progname, opt);
+ fprintf(stderr,
+ "%s: -%c flag may only be given once.\n", progname, opt);
goto usage;
}
tagfile = optarg;
@@ -467,6 +467,13 @@ main (argc, argv)
case 'H':
print_help ();
break;
+ case 't':
+ typedefs++;
+ break;
+ case 'T':
+ typedefs++;
+ typedefs_and_cplusplus++;
+ break;
#if (!CTAGS)
@@ -481,13 +488,6 @@ main (argc, argv)
case 'B':
searchar = '?';
break;
- case 't':
- typedefs++;
- break;
- case 'T':
- typedefs++;
- typedefs_and_cplusplus++;
- break;
case 'u':
update++;
break;
@@ -504,6 +504,8 @@ main (argc, argv)
#endif /* CTAGS */
default:
+ fprintf (stderr,
+ "%s: -%c flag not recognised.\n", progname, opt);
goto usage;
}
}
@@ -2074,6 +2076,8 @@ takeprec ()
dbp++;
while (isspace (*dbp))
dbp++;
+ if (tail ("(*)"))
+ return;
if (!isdigit (*dbp))
{
--dbp; /* force failure */