[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] yesno merge from coreutils
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] yesno merge from coreutils |
Date: |
Fri, 06 Aug 2004 16:00:16 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
I installed this:
2004-08-06 Paul Eggert <address@hidden>
* modules/yesno: Add lib/yesno.h.
* lib/yesno.h: New file.
* lib/yesno.c: Include it.
(yesno): Now returns bool.
Index: modules/yesno
===================================================================
RCS file: /cvsroot/gnulib/gnulib/modules/yesno,v
retrieving revision 1.3
retrieving revision 1.5
diff -p -u -r1.3 -r1.5
--- modules/yesno 20 Jan 2003 10:02:38 -0000 1.3
+++ modules/yesno 6 Aug 2004 22:57:52 -0000 1.5
@@ -4,6 +4,7 @@ Read a response from the user, and its c
Files:
lib/yesno.c
+lib/yesno.h
m4/yesno.m4
Depends-on:
@@ -14,9 +15,10 @@ configure.ac:
gl_YESNO
Makefile.am:
-lib_SOURCES += yesno.c
+lib_SOURCES += yesno.c yesno.h
Include:
+"yesno.h"
Maintainer:
Jim Meyering
Index: lib/yesno.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/yesno.c,v
retrieving revision 1.10
diff -p -u -r1.10 yesno.c
--- lib/yesno.c 11 Sep 2003 08:46:51 -0000 1.10
+++ lib/yesno.c 6 Aug 2004 22:55:27 -0000
@@ -1,5 +1,5 @@
/* yesno.c -- read a yes/no response from stdin
- Copyright (C) 1990, 1998, 2001, 2003 Free Software Foundation, Inc.
+ Copyright (C) 1990, 1998, 2001, 2003, 2004 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
@@ -19,6 +19,8 @@
# include <config.h>
#endif
+#include "yesno.h"
+
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
@@ -30,7 +32,7 @@
extern int rpmatch (char const *response);
-int
+bool
yesno (void)
{
/* We make some assumptions here:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] yesno merge from coreutils,
Paul Eggert <=