projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.
[gnulib.git]
/
lib
/
argmatch.c
diff --git
a/lib/argmatch.c
b/lib/argmatch.c
index
ba1da3f
..
005be88
100644
(file)
--- a/
lib/argmatch.c
+++ b/
lib/argmatch.c
@@
-1,5
+1,5
@@
/* argmatch.c -- find a match for a string in an array
/* argmatch.c -- find a match for a string in an array
- Copyright (C) 1990, 1998, 1999, 200
0
Free Software Foundation, Inc.
+ Copyright (C) 1990, 1998, 1999, 200
1
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-38,6
+38,8
@@
#include "error.h"
#include "quotearg.h"
#include "error.h"
#include "quotearg.h"
+#include "quote.h"
+#include "unlocked-io.h"
/* When reporting an invalid argument, show nonprinting characters
by using the quoting style ARGMATCH_QUOTING_STYLE. Do not use
/* When reporting an invalid argument, show nonprinting characters
by using the quoting style ARGMATCH_QUOTING_STYLE. Do not use
@@
-156,10
+158,11
@@
void
argmatch_invalid (const char *context, const char *value, int problem)
{
char const *format = (problem == -1
argmatch_invalid (const char *context, const char *value, int problem)
{
char const *format = (problem == -1
- ? _("invalid argument %s for
`%s'
")
- : _("ambiguous argument %s for
`%s'
"));
+ ? _("invalid argument %s for
%s
")
+ : _("ambiguous argument %s for
%s
"));
- error (0, 0, format, quotearg_style (ARGMATCH_QUOTING_STYLE, value), context);
+ error (0, 0, format, quotearg_n_style (0, ARGMATCH_QUOTING_STYLE, value),
+ quote_n (1, context));
}
/* List the valid arguments for argmatch.
}
/* List the valid arguments for argmatch.