OSDN Git Service

Fix:
authorMarc G. Fournier <scrappy@hub.org>
Thu, 15 Jan 1998 20:54:52 +0000 (20:54 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Thu, 15 Jan 1998 20:54:52 +0000 (20:54 +0000)
nodeAgg.c: WARN -> NOTICE for elog
parse_oper.c: was created after patch for fmgr_info, so function call wrong
scan.c: regenerated for i386_solaris using flex 2.5.4
gethostname.c: required prototype for gethostname() function
config.h.in: create prototype for isinfo() function

isinf.c: "fake" isinf() under i386_solaris using fpclass() call...

src/backend/executor/nodeAgg.c
src/backend/parser/parse_oper.c
src/backend/parser/scan.c
src/backend/port/gethostname.c
src/backend/port/isinf.c [new file with mode: 0644]
src/include/config.h.in

index feda58b..91c5e43 100644 (file)
@@ -437,7 +437,7 @@ ExecAgg(Agg *node)
                                args[0] = (char *) value2[i];
                        }
                        else
-                               elog(WARN, "ExecAgg: no valid transition functions??");
+                               elog(NOTICE, "ExecAgg: no valid transition functions??");
                        value1[i] = (Datum) fmgr_c(&aggfns->finalfn,
                                                (FmgrValues *) args, &(nulls[i]));
                }
index ebd7d1c..66961ca 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.5 1998/01/05 03:32:29 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.6 1998/01/15 20:54:28 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -401,11 +401,9 @@ unary_oper_get_candidates(char *op,
 
        *candidates = NULL;
 
-       fmgr_info(NameEqualRegProcedure, (func_ptr *) &opKey[0].sk_func,
-                         &opKey[0].sk_nargs);
+       fmgr_info(NameEqualRegProcedure, (func_ptr *) &opKey[0].sk_func);
        opKey[0].sk_argument = NameGetDatum(op);
-       fmgr_info(CharacterEqualRegProcedure, (func_ptr *) &opKey[1].sk_func,
-                         &opKey[1].sk_nargs);
+       fmgr_info(CharacterEqualRegProcedure, (func_ptr *) &opKey[1].sk_func);
        opKey[1].sk_argument = CharGetDatum(rightleft);
 
        /* currently, only "unknown" can be coerced */
index 6881712..002d0e7 100644 (file)
@@ -1,7 +1,7 @@
 /* A lexical scanner generated by flex */
 
 /* Scanner skeleton version:
- * $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.7 1998/01/13 19:28:29 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.8 1998/01/15 20:54:30 scrappy Exp $
  */
 
 #define FLEX_SCANNER
@@ -539,7 +539,7 @@ char *yytext;
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.7 1998/01/13 19:28:29 scrappy Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.8 1998/01/15 20:54:30 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
index 780e1c6..66449d8 100644 (file)
@@ -1,10 +1,12 @@
-/* $Id: gethostname.c,v 1.2 1997/12/19 13:34:26 scrappy Exp $ */
+/* $Id: gethostname.c,v 1.3 1998/01/15 20:54:34 scrappy Exp $ */
 
 #include <sys/types.h>
 #include <string.h>
 
 #include <sys/utsname.h>
 
+#include "config.h"
+
 int
 gethostname(char *name, int namelen)
 {
diff --git a/src/backend/port/isinf.c b/src/backend/port/isinf.c
new file mode 100644 (file)
index 0000000..ca5d22b
--- /dev/null
@@ -0,0 +1,15 @@
+/* $Id: isinf.c,v 1.1 1998/01/15 20:54:37 scrappy Exp $ */
+
+#include <ieeefp.h>
+#include <math.h>  
+
+#include "config.h"
+
+
+int
+isinf(double x)
+{
+       if((fpclass(x) == FP_PINF) || (fpclass(x) == FP_NINF)) return 1;
+       else return 0;
+}
+
index 00db98f..1e99ac3 100644 (file)
@@ -52,6 +52,9 @@
 
 /* Set to 1 if you have isinf() */
 #undef HAVE_ISINF
+#ifndef HAVE_ISINF
+int isinf(double x);
+#endif
 
 /* Set to 1 if you have tzset() */
 #undef HAVE_TZSET
@@ -59,7 +62,7 @@
 /* Set to 1 if you have gethostname() */
 #undef HAVE_GETHOSTNAME
 #ifndef HAVE_GETHOSTNAME
-extern int  gethostname(char *name, int namelen);
+int  gethostname(char *name, int namelen);
 #endif
 
 /* Set to 1 if you have int timezone */