OSDN Git Service

Unixware patches from Billy G. Allie.
authorBruce Momjian <bruce@momjian.us>
Sun, 4 Oct 1998 15:38:58 +0000 (15:38 +0000)
committerBruce Momjian <bruce@momjian.us>
Sun, 4 Oct 1998 15:38:58 +0000 (15:38 +0000)
src/include/c.h
src/pl/plpgsql/src/pl_exec.c
src/test/regress/checkresults

index 02d469b..ffbf750 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: c.h,v 1.45 1998/09/01 04:33:57 momjian Exp $
+ * $Id: c.h,v 1.46 1998/10/04 15:38:55 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -61,8 +61,9 @@
 #define false  ((char) 0)
 #define true   ((char) 1)
 #ifndef __cplusplus
+#ifndef bool
 typedef char bool;
-
+#endif   /* ndef bool */
 #endif  /* not C++ */
 typedef bool *BoolPtr;
 
index b414d15..8a14cc7 100644 (file)
@@ -3,7 +3,7 @@
  *                       procedural language
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.3 1998/09/01 04:40:22 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.4 1998/10/04 15:38:57 momjian Exp $
  *
  *       This software is copyrighted by Jan Wieck - Hamburg.
  *
@@ -1243,9 +1243,9 @@ exec_stmt_fori(PLpgSQL_execstate * estate, PLpgSQL_stmt_fori * stmt)
                 * ----------
                 */
                if (stmt->reverse)
-                       ((int4) (var->value))--;
+                       (int4)var->value--;
                else
-                       ((int4) (var->value))++;
+                       (int4)var->value++;
        }
 
        return PLPGSQL_RC_OK;
index 6fffa08..39783cf 100755 (executable)
@@ -7,7 +7,7 @@
 for file in `cat "$@" | grep 'failed$' | cut -d " " -f 1`
 do
        echo "======   $file   ======"
-       diff -uw expected/$file.out results
+       diff -w expected/$file.out results
 done