Displaying 4 results from an estimated 4 matches for "usage_error".
2015 Nov 06
2
[PATCH supermin] build: use a custom test driver
...f that program.
+
+# This file is maintained in Automake, please report
+# bugs to <bug-automake@gnu.org> or send patches to
+# <automake-patches@gnu.org>.
+
+# Make unconditional expansion of undefined variables an error. This
+# helps a lot in preventing typo-related bugs.
+set -u
+
+usage_error ()
+{
+ echo "$0: $*" >&2
+ print_usage >&2
+ exit 2
+}
+
+print_usage ()
+{
+ cat <<END
+Usage:
+ test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
+ [--expect-failure={yes|no}] [--color-tests={yes|no}]
+ [--enable-hard-errors...
2017 Apr 14
1
error message for flac --sign
...flac/main.c
+++ b/src/flac/main.c
@@ -817,7 +817,7 @@ int parse_option(int short_option, const char *long_option, const char *option_a
else if(0 == strncmp(option_argument, "unsigned", strlen(option_argument)))
option_values.format_is_unsigned_samples = true;
else
- return usage_error("ERROR: argument to --sign must be \"signed\" or \"uint32_t\"\n");
+ return usage_error("ERROR: argument to --sign must be \"signed\" or \"unsigned\"\n");
}
else if(0 == strcmp(long_option, "residual-gnuplot")) {
opt...
2012 Feb 10
2
Compiling flac for OSX 10.4
...../../OGG/libogg-1.3.0/macosx/build/Release
--with-ogg-includes=$PWD/../../OGG/libogg-1.3.0/include; make
I end up with the following error
In file included from main.c:26:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error:
stdarg.h: No such file or directory
main.c: In function ?usage_error?:
main.c:1116: warning: implicit declaration of function ?va_start?
main.c:1120: warning: implicit declaration of function ?va_end?
make[3]: *** [main.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I suspect this has something to do wi...
2012 Apr 17
1
[PATCH] Remove local_strtoull, windows has equivalent function _strtoui64
...ption_a
FLAC__ASSERT(0 != option_argument);
{
char *end;
-#ifdef _MSC_VER
FLAC__int64 i;
- i = local__strtoll(option_argument, &end);
-#else
- long long i;
i = strtoll(option_argument, &end, 10);
-#endif
if(0 == strlen(option_argument) || *end)
return usage_error("ERROR: --%s must be a number\n", long_option);
option_values.format_input_size = (off_t)i;
@@ -2222,29 +2213,3 @@ char *local_strdup(const char *source)
die("out of memory during strdup()");
return ret;
}
-
-#ifdef _MSC_VER
-/* There's no strtoll() in MSVC6 so we...