autoconf-patches
[Top][All Lists]
Advanced

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

defined (FOO) -> defined FOO


From: Paul Eggert
Subject: defined (FOO) -> defined FOO
Date: Mon, 23 Jan 2006 16:20:38 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

I installed this minor stylistic change:

2006-01-23  Paul Eggert  <address@hidden>

        * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
        FOO" to "defined (FOO)".
        * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
        * lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
        * lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
        * tests/tools.at (ifnames): Likewise.

Index: lib/autoconf/c.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/c.m4,v
retrieving revision 1.209
diff -p -u -r1.209 c.m4
--- lib/autoconf/c.m4   11 Jan 2006 08:17:18 -0000      1.209
+++ lib/autoconf/c.m4   24 Jan 2006 00:15:42 -0000
@@ -215,7 +215,7 @@ char $1 ();
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
     something starting with __ and the normal name is an alias.  */
-#if defined (__stub_$1) || defined (__stub___$1)
+#if defined __stub_$1 || defined __stub___$1
 choke me
 #endif
 ], [return $1 ();])])
Index: lib/autoconf/functions.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/functions.m4,v
retrieving revision 1.94
diff -p -u -r1.94 functions.m4
--- lib/autoconf/functions.m4   1 Jul 2005 08:45:22 -0000       1.94
+++ lib/autoconf/functions.m4   24 Jan 2006 00:15:42 -0000
@@ -1,6 +1,6 @@
 # This file is part of Autoconf.                       -*- Autoconf -*-
 # Checking for functions.
-# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software
+# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
 # Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -259,7 +259,7 @@ AC_DEFINE(C_ALLOCA, 1, [Define to 1 if u
 
 AC_CACHE_CHECK(whether `alloca.c' needs Cray hooks, ac_cv_os_cray,
 [AC_EGREP_CPP(webecray,
-[#if defined(CRAY) && ! defined(CRAY2)
+[#if defined CRAY && ! defined CRAY2
 webecray
 #else
 wenotbecray
Index: lib/autoconf/headers.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/headers.m4,v
retrieving revision 1.44
diff -p -u -r1.44 headers.m4
--- lib/autoconf/headers.m4     1 Jul 2005 08:45:22 -0000       1.44
+++ lib/autoconf/headers.m4     24 Jan 2006 00:15:42 -0000
@@ -1,7 +1,8 @@
 # This file is part of Autoconf.                       -*- Autoconf -*-
 # Checking for headers.
 #
-# Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006 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
@@ -483,25 +484,25 @@ AC_DEFUN([AC_HEADER_STAT],
 [AC_EGREP_CPP([You lose], [#include <sys/types.h>
 #include <sys/stat.h>
 
-#if defined(S_ISBLK) && defined(S_IFDIR)
+#if defined S_ISBLK && defined S_IFDIR
 # if S_ISBLK (S_IFDIR)
 You lose.
 # endif
 #endif
 
-#if defined(S_ISBLK) && defined(S_IFCHR)
+#if defined S_ISBLK && defined S_IFCHR
 # if S_ISBLK (S_IFCHR)
 You lose.
 # endif
 #endif
 
-#if defined(S_ISLNK) && defined(S_IFREG)
+#if defined S_ISLNK && defined S_IFREG
 # if S_ISLNK (S_IFREG)
 You lose.
 # endif
 #endif
 
-#if defined(S_ISSOCK) && defined(S_IFREG)
+#if defined S_ISSOCK && defined S_IFREG
 # if S_ISSOCK (S_IFREG)
 You lose.
 # endif
Index: lib/autoconf/specific.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/specific.m4,v
retrieving revision 1.362
diff -p -u -r1.362 specific.m4
--- lib/autoconf/specific.m4    14 May 2005 07:00:40 -0000      1.362
+++ lib/autoconf/specific.m4    24 Jan 2006 00:15:42 -0000
@@ -2,7 +2,7 @@
 # Macros that test for specific, unclassified, features.
 #
 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-# 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+# 2002, 2003, 2004, 2005, 2006 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
@@ -442,7 +442,7 @@ AC_DEFUN([AC_ISC_POSIX], [AC_SEARCH_LIBS
 AU_DEFUN([AC_XENIX_DIR],
 [AC_MSG_CHECKING([for Xenix])
 AC_EGREP_CPP(yes,
-[#if defined(M_XENIX) && !defined(M_UNIX)
+[#if defined M_XENIX && ! defined M_UNIX
   yes
 @%:@endif],
             [AC_MSG_RESULT([yes]); XENIX=yes],
Index: tests/tools.at
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/tools.at,v
retrieving revision 1.78
diff -p -u -r1.78 tools.at
--- tests/tools.at      25 Jul 2005 18:10:25 -0000      1.78
+++ tests/tools.at      24 Jan 2006 00:15:42 -0000
@@ -2,7 +2,7 @@
 
 AT_BANNER([Executables (autoheader, autoupdate...).])
 
-# Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2003, 2004, 2006 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
@@ -319,7 +319,7 @@ AT_SETUP([ifnames])
 AT_DATA([iftest1.c],
 [[#ifdef DEF1
 #ifndef DEF2
-#if !defined(DEF3) && defined(DEF4) /* but not defined(DEF5) */
+#if ! defined DEF3 && defined DEF4 /* but not defined DEF5 */
     # if SPACES
        #       if      TABS
 /* #if C_COMMENTS */




reply via email to

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