projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9aa6e1
)
(yesno) [!HAVE_RPMATCH]: Remove function since we'll
author
Jim Meyering
<jim@meyering.net>
Sun, 21 Jul 1996 22:48:41 +0000
(22:48 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 21 Jul 1996 22:48:41 +0000
(22:48 +0000)
always use the rpmatch-based version.
Declare rpmatch.
lib/yesno.c
patch
|
blob
|
history
diff --git
a/lib/yesno.c
b/lib/yesno.c
index f69954d1d1ed4523bbf1f25fe3c3acf75779294b..44c437caf7bb3b7c0e7ae8bb8fa0637595f6f088 100644
(file)
--- a/
lib/yesno.c
+++ b/
lib/yesno.c
@@
-29,7
+29,8
@@
and return nonzero if that line begins with y or Y,
otherwise return 0. */
-#ifdef HAVE_RPMATCH
+int rpmatch ();
+
int
yesno ()
{
@@
-49,19
+50,3
@@
yesno ()
return rpmatch (buf) == 1;
}
-#else
-int
-yesno ()
-{
- int c;
- int rv;
-
- fflush (stderr);
- c = getchar ();
- rv = (c == 'y') || (c == 'Y');
- while (c != EOF && c != '\n')
- c = getchar ();
-
- return rv;
-}
-#endif