*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: builtins.h,v 1.15 1997/04/15 17:41:35 scrappy Exp $
+ * $Id: builtins.h,v 1.16 1997/04/27 19:24:13 thomas Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
extern char *boolout(long b);
extern bool booleq(int8 arg1, int8 arg2);
extern bool boolne(int8 arg1, int8 arg2);
+extern bool boollt(int8 arg1, int8 arg2);
+extern bool boolgt(int8 arg1, int8 arg2);
/* char.c */
extern int32 charin(char *ch);
/* geo_ops.c, geo_selfuncs.c */
/* misc.c */
-extern bool NullValue(Datum value, bool *isNull);
-extern bool NonNullValue(Datum value, bool *isNull);
+extern bool nullvalue(Datum value, bool *isNull);
+extern bool nonnullvalue(Datum value, bool *isNull);
extern bool oidrand(Oid o, int32 X);
extern bool oidsrand(int32 X);
extern int32 userfntest(int i);
+/* define macros to replace mixed-case function calls - tgl 97/04/27 */
+#define NullValue(v,b) nullvalue(v,b)
+#define NonNullValue(v,b) nonnullvalue(v,b)
+
/* not_in.c */
extern bool int4notin(int16 not_in_arg, char *relation_and_attr);
extern bool oidnotin(Oid the_oid, char *compare);
/* regproc.c */
extern int32 regprocin(char *proname);
extern char *regprocout(RegProcedure proid);
-extern Oid RegprocToOid(RegProcedure rp);
+extern Oid regproctooid(RegProcedure rp);
+
+/* define macro to replace mixed-case function call - tgl 97/04/27 */
+#define RegprocToOid(rp) regproctooid(rp)
/* selfuncs.c */
extern float64 eqsel(Oid opid, Oid relid, AttrNumber attno, char *value, int32 flag);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: dt.h,v 1.6 1997/04/25 18:40:45 scrappy Exp $
+ * $Id: dt.h,v 1.7 1997/04/27 19:24:16 thomas Exp $
*
*-------------------------------------------------------------------------
*/
extern bool datetime_ge(DateTime *dt1, DateTime *dt2);
extern bool datetime_gt(DateTime *dt1, DateTime *dt2);
extern bool datetime_finite(DateTime *datetime);
+extern DateTime *datetime_smaller(DateTime *dt1, DateTime *dt2);
+extern DateTime *datetime_larger(DateTime *dt1, DateTime *dt2);
extern TimeSpan *timespan_in(char *str);
extern char *timespan_out(TimeSpan *span);
extern bool timespan_ge(TimeSpan *span1, TimeSpan *span2);
extern bool timespan_gt(TimeSpan *span1, TimeSpan *span2);
extern bool timespan_finite(TimeSpan *span);
+extern TimeSpan *timespan_smaller(TimeSpan *span1, TimeSpan *span2);
+extern TimeSpan *timespan_larger(TimeSpan *span1, TimeSpan *span2);
extern text *datetime_text(DateTime *datetime);
extern DateTime *text_datetime(text *str);