summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Fontana <sick_soul@users.sourceforge.net>2006-03-05 10:15:22 +0000
committerClaudio Fontana <sick_soul@users.sourceforge.net>2006-03-05 10:15:22 +0000
commit8a529b8bb4c9501cdde16c8d78832206b9173a08 (patch)
treee72ff5e14b8ce416b9ee595ecf2b270137130194
parentc08caff64c2bea51dce487a9817b31fc1114df53 (diff)
downloadidutils-8a529b8bb4c9501cdde16c8d78832206b9173a08.tar.gz
idutils-8a529b8bb4c9501cdde16c8d78832206b9173a08.tar.bz2
idutils-8a529b8bb4c9501cdde16c8d78832206b9173a08.zip
* add bug report string to the help output
* src/lid.c: fix bug in pattern recognition in is_number()
-rw-r--r--ChangeLog12
-rw-r--r--src/fid.c1
-rw-r--r--src/fnid.c1
-rw-r--r--src/lid.c10
-rw-r--r--src/mkid.c1
-rw-r--r--src/xtokid.c1
6 files changed, 23 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index db7f8ce..5a8ea21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2006-03-05 Claudio Fontana <claudio@gnu.org>
+
+ * src/lid.c::isnumber(): fixed bug in pattern recognition.
+ A single 'l' or 'u' does not make a pattern a number.
+ It must come after ciphers.
+
+ * src/lid.c::help_me(): add bug report string
+ * src/mkid.c: likewise
+ * src/xtokid.c: likewise
+ * src/fid.c: likewise
+ * src/fnid.c: likewise
+
2006-02-15 Jim Meyering <jim@meyering.net>
* lib/verify.h: New file, from gnulib.
diff --git a/src/fid.c b/src/fid.c
index ae17ef6..32d076d 100644
--- a/src/fid.c
+++ b/src/fid.c
@@ -90,6 +90,7 @@ also given list the identifiers that occur in both files.\n\
--help display this help and exit\n\
--version output version information and exit\n\
"));
+ printf (_("\nReport bugs to " PACKAGE_BUGREPORT "\n\n"));
exit (0);
}
diff --git a/src/fnid.c b/src/fnid.c
index 4373fd8..3da906e 100644
--- a/src/fnid.c
+++ b/src/fnid.c
@@ -80,6 +80,7 @@ using shell-style wildcards.\n\
--help display this help and exit\n\
--version output version information and exit\n\
"));
+ printf (_("\nReport bugs to " PACKAGE_BUGREPORT "\n\n"));
exit (0);
}
diff --git a/src/lid.c b/src/lid.c
index e2fd552..e674704 100644
--- a/src/lid.c
+++ b/src/lid.c
@@ -284,6 +284,7 @@ matched identifier followed by the list of file names in which it occurs.\n\
--version output version information and exit\n\
"),
(separator_style == ss_braces ? _("braces") : _("space")));
+ printf (_("\nReport bugs to " PACKAGE_BUGREPORT "\n\n"));
exit (0);
}
@@ -1369,9 +1370,12 @@ is_number (char const *str)
str += 2;
str += strspn (str, "0123456789aAbBcCdDeEfF");
}
- else
- str += strspn (str, "0123456789");
- str += strspn (str, "uUlL");
+ else {
+ size_t offn;
+ str += (offn = strspn (str, "0123456789"));
+ if (offn)
+ str += strspn (str, "uUlL");
+ }
return (*str == '\0');
}
diff --git a/src/mkid.c b/src/mkid.c
index 2a945e6..ba62005 100644
--- a/src/mkid.c
+++ b/src/mkid.c
@@ -175,6 +175,7 @@ Note that the `--include' and `--exclude' options are mutually-exclusive.\n\
The following arguments apply to the language-specific scanners:\n\
"));
language_help_me ();
+ printf (_("\nReport bugs to " PACKAGE_BUGREPORT "\n\n"));
exit (0);
}
diff --git a/src/xtokid.c b/src/xtokid.c
index fc3c4cf..6555784 100644
--- a/src/xtokid.c
+++ b/src/xtokid.c
@@ -84,6 +84,7 @@ Print all tokens found in a source file.\n\
The following arguments apply to the language-specific scanners:\n\
"));
language_help_me ();
+ printf (_("\nReport bugs to " PACKAGE_BUGREPORT "\n\n"));
exit (0);
}