[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] long-options patch to assume C89 or better
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] long-options patch to assume C89 or better |
Date: |
09 Sep 2003 13:08:47 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
I installed this:
2003-09-09 Paul Eggert <address@hidden>
* src/long-options.c: Include long-options.h first, to test interface.
Include <stdlib.h> unconditionally.
* m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
Index: lib/long-options.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/long-options.c,v
retrieving revision 1.17
diff -p -u -r1.17 long-options.c
--- lib/long-options.c 5 Nov 2002 21:45:29 -0000 1.17
+++ lib/long-options.c 9 Sep 2003 19:47:54 -0000
@@ -1,5 +1,7 @@
/* Utility to accept --help and --version options as unobtrusively as possible.
- Copyright (C) 1993-1994, 1998-1999, 2000, 2002 Free Software Foundation,
Inc.
+
+ Copyright (C) 1993, 1994, 1998, 1999, 2000, 2002, 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
@@ -21,13 +23,12 @@
# include <config.h>
#endif
+#include "long-options.h"
+
#include <stdio.h>
#include <getopt.h>
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
-#include "long-options.h"
#include "version-etc.h"
static struct option const long_options[] =
Index: m4/long-options.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/long-options.m4,v
retrieving revision 1.1
diff -p -u -r1.1 long-options.m4
--- m4/long-options.m4 31 Dec 2002 13:42:07 -0000 1.1
+++ m4/long-options.m4 9 Sep 2003 19:47:54 -0000
@@ -1,5 +1,5 @@
-# long-options.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# long-options.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
@@ -9,5 +9,5 @@ dnl the same distribution terms as the r
AC_DEFUN([gl_LONG_OPTIONS],
[
dnl Prerequisites of lib/long-options.c.
- AC_CHECK_HEADERS_ONCE(stdlib.h)
+ :
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] long-options patch to assume C89 or better,
Paul Eggert <=