]> granicus.if.org Git - postgresql/commitdiff
Remove <values.h> inclusions, no-longer-needed MAXINT definitions.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 28 Jul 2000 02:13:52 +0000 (02:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 28 Jul 2000 02:13:52 +0000 (02:13 +0000)
configure
configure.in
contrib/odbc/odbc.c
src/backend/optimizer/geqo/geqo_eval.c
src/backend/postmaster/postmaster.c
src/backend/utils/adt/float.c
src/backend/utils/adt/nabstime.c
src/backend/utils/adt/varbit.c
src/include/config.h.in
src/include/utils/varbit.h

index 2234d9f0636b432d12db00801f5269764496014b..9cb12f30631607a0771630f9b10f753b696a7675 100755 (executable)
--- a/configure
+++ b/configure
@@ -2285,7 +2285,7 @@ mkinstalldirs="\$(SHELL) \$(top_srcdir)/config/mkinstalldirs"
 
 
 
-for ac_prog in gawk mawk nawk awk
+for ac_prog in mawk gawk nawk awk
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
@@ -4018,7 +4018,7 @@ fi
 ##
 ## Header files
 ##
-for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/pstat.h sys/select.h sys/socket.h sys/types.h termios.h values.h
+for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/pstat.h sys/select.h sys/socket.h sys/types.h termios.h
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
index 1e125a1bbc84e8780391e1facb769a054829f75d..6078b525c059a9a64e33cf10ee3e8d18a95a8c3b 100644 (file)
@@ -796,7 +796,7 @@ fi
 ## Header files
 ##
 dnl sys/socket.h and sys/types.h are required by AC_FUNC_ACCEPT_ARGTYPES
-AC_CHECK_HEADERS([crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/pstat.h sys/select.h sys/socket.h sys/types.h termios.h values.h])
+AC_CHECK_HEADERS([crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/pstat.h sys/select.h sys/socket.h sys/types.h termios.h])
 
 AC_CHECK_HEADERS([readline/readline.h readline.h], [break])
 AC_CHECK_HEADERS([readline/history.h history.h], [break])
index efc1fa21df06c3e096f4a061a491d19fdef4d34d..2a134ee488bab07ee1585057dbb2200940812689 100644 (file)
@@ -3,19 +3,9 @@
 #include <stdlib.h>
 #include <ctype.h>
 #include <errno.h>
-
 #include <float.h>                             /* faked on sunos4 */
-
 #include <math.h>
-
 #include <limits.h>
-#ifndef MAXINT
-#define MAXINT           INT_MAX
-#endif
-
-#ifdef HAVE_VALUES_H
-#include <values.h>
-#endif
 
 #include "fmgr.h"
 #include "utils/timestamp.h"
index 269d45f1f282359e3a74cd012ac19450162ade35..7b9542cb1b21ced4fbc81c4ea6e2d7be9742b392 100644 (file)
@@ -6,7 +6,7 @@
  * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $Id: geqo_eval.c,v 1.52 2000/07/12 22:59:01 petere Exp $
+ * $Id: geqo_eval.c,v 1.53 2000/07/28 02:13:16 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -23,9 +23,6 @@
 
 #include <math.h>
 #include <limits.h>
-#ifdef HAVE_VALUES_H
-#include <values.h>
-#endif
 
 #include "optimizer/geqo.h"
 #include "optimizer/pathnode.h"
index 30023453367bad8057f3a6242080a315c36fa2df..629ab48e8c04928dbff0fcf80bcc11be063b4289 100644 (file)
@@ -11,7 +11,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.157 2000/07/17 03:05:04 tgl Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.158 2000/07/28 02:13:26 tgl Exp $
  *
  * NOTES
  *
 #include <fcntl.h>
 #include <time.h>
 #include <sys/param.h>
-
- /* moved here to prevent double define */
+/* moved here to prevent double define */
 #include <netdb.h>
-
 #include <limits.h>
-#ifdef HAVE_VALUES_H
-#include <values.h>
-#endif
 
 #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
index bfa439f41565d77ac9d2d05ade49a0c6528286cc..940724ab05f23ffde190e51bc9846a088ba408be 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.65 2000/07/17 03:05:17 tgl Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.66 2000/07/28 02:13:31 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -54,9 +54,6 @@
 #include "postgres.h"
 
 #include <limits.h>
-#ifdef HAVE_VALUES_H
-#include <values.h>
-#endif
 
 /* for finite() on Solaris */
 #ifdef HAVE_IEEEFP_H
index 2b5cd7d0bfd09f06da68070b17dd3b7a647c330c..dee675f83003d764f61a38fb1d80a171946ac8d4 100644 (file)
@@ -9,7 +9,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.72 2000/07/12 22:59:09 petere Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.73 2000/07/28 02:13:31 tgl Exp $
  *
  * NOTES
  *
 #include <float.h>
 #include <limits.h>
 
-#ifdef HAVE_VALUES_H
-#include <values.h>
-#endif
-
 #ifndef USE_POSIX_TIME
 #include <sys/timeb.h>
 #endif
index be1d5160f0fd06c536469fe3e353c71544b40344..b238bce531293d85e0adaeed39904f7964175a23 100644 (file)
@@ -4,7 +4,7 @@
  *       Functions for the built-in type bit() and varying bit().
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/utils/adt/varbit.c,v 1.5 2000/07/12 22:59:09 petere Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/utils/adt/varbit.c,v 1.6 2000/07/28 02:13:31 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <math.h>
 #include <limits.h>
 
-#ifdef HAVE_VALUES_H
-#include <values.h>
-#endif
-
 #include "fmgr.h"
 #include "utils/builtins.h"
 #include "utils/varbit.h"
index e6c23e48758c6613b2b757663660a451c21bcab3..7e5413994f8a6fcb656d3157c4a9bf43e66ea4f0 100644 (file)
@@ -8,7 +8,7 @@
  * or in config.h afterwards.  Of course, if you edit config.h, then your
  * changes will be overwritten the next time you run configure.
  *
- * $Id: config.h.in,v 1.127 2000/07/14 16:39:35 petere Exp $
+ * $Id: config.h.in,v 1.128 2000/07/28 02:13:40 tgl Exp $
  */
 
 #ifndef CONFIG_H
 /* Set to 1 if you have <termios.h> */
 #undef HAVE_TERMIOS_H
 
-/* Set to 1 if  you have <values.h> */
-#undef HAVE_VALUES_H
-
 /* Set to 1 if you have <sys/pstat.h> */
 #undef HAVE_SYS_PSTAT_H
 
index 5961bb80a5a53cf2a16d0e8c84d27f996dcdad3c..172cb4c6c4de48b220b02fb175914031a10516d6 100644 (file)
@@ -5,16 +5,13 @@
 
 #include <math.h>
 #include <limits.h>
-#ifdef HAVE_VALUES_H
-#include <values.h>
-#endif
 
 #include "utils/builtins.h"
 
 
-#define HEXDIG(z)       (z)<10 ? ((z)+'0') : ((z)-10+'A')
+#define HEXDIG(z)       ((z)<10 ? ((z)+'0') : ((z)-10+'A'))
 
-/* Modeled on struct varlena from postgres.h, bu data type is bits8 */
+/* Modeled on struct varlena from postgres.h, but data type is bits8 */
 struct varbita
 {
        int32           vl_len;