bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] yesno patch to assume C89 or better


From: Bruno Haible
Subject: [Bug-gnulib] yesno patch to assume C89 or better
Date: Wed, 10 Sep 2003 16:24:49 +0200
User-agent: KMail/1.5

May I commit this patch, Jim?

        * lib/yesno.c: Include <stdlib.h> unconditionally.
        (rpmatch): Add prototype.
        * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.

*** lib/yesno.c 17 Nov 2001 13:29:42 -0000      1.8
--- lib/yesno.c 10 Sep 2003 13:47:02 -0000
***************
*** 1,5 ****
  /* yesno.c -- read a yes/no response from stdin
!    Copyright (C) 1990, 1998, 2001 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
--- 1,5 ----
  /* yesno.c -- read a yes/no response from stdin
!    Copyright (C) 1990, 1998, 2001, 2003 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
***************
*** 20,28 ****
  #endif
  
  #include <ctype.h>
! #if HAVE_STDLIB_H
! # include <stdlib.h>
! #endif
  #include <stdio.h>
  #include "unlocked-io.h"
  
--- 20,26 ----
  #endif
  
  #include <ctype.h>
! #include <stdlib.h>
  #include <stdio.h>
  #include "unlocked-io.h"
  
***************
*** 30,36 ****
     and return nonzero if that line begins with y or Y,
     otherwise return 0. */
  
! int rpmatch ();
  
  int
  yesno ()
--- 28,34 ----
     and return nonzero if that line begins with y or Y,
     otherwise return 0. */
  
! extern int rpmatch (const char *response);
  
  int
  yesno ()
*** m4/yesno.m4 31 Dec 2002 13:42:07 -0000      1.1
--- m4/yesno.m4 10 Sep 2003 13:47:02 -0000
***************
*** 1,5 ****
! # yesno.m4 serial 1
! dnl Copyright (C) 2002 Free Software Foundation, Inc.
  dnl This file is free software, distributed under the terms of the GNU
  dnl General Public License.  As a special exception to the GNU General
  dnl Public License, this file may be distributed as part of a program
--- 1,5 ----
! # yesno.m4 serial 2
! dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
  dnl This file is free software, distributed under the terms of the GNU
  dnl General Public License.  As a special exception to the GNU General
  dnl Public License, this file may be distributed as part of a program
***************
*** 8,13 ****
  
  AC_DEFUN([gl_YESNO],
  [
!   dnl Prerequisites of lib/yesno.c.
!   AC_CHECK_HEADERS_ONCE(stdlib.h)
  ])
--- 8,13 ----
  
  AC_DEFUN([gl_YESNO],
  [
!   dnl No prerequisites of lib/yesno.c.
!   :
  ])





reply via email to

[Prev in Thread] Current Thread [Next in Thread]