Skip to content

Commit b913dd1

Browse files
committed
Add prototypes for oracle-compat functions. Rename geo-*.c adt to geo_*.c
1 parent d8023a0 commit b913dd1

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

src/backend/utils/adt/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for utils/adt
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.4 1997/03/04 05:32:04 scrappy Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.5 1997/03/09 20:40:50 momjian Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -18,7 +18,7 @@ INCLUDE_OPT = -I../.. \
1818
CFLAGS+=$(INCLUDE_OPT)
1919

2020
OBJS = acl.o arrayfuncs.o arrayutils.o bool.o char.o chunk.o date.o \
21-
datum.o dt.o filename.o float.o geo-ops.o geo-selfuncs.o int.o \
21+
datum.o dt.o filename.o float.o geo_ops.o geo_selfuncs.o int.o \
2222
misc.o nabstime.o name.o not_in.o numutils.o oid.o \
2323
oidname.o oidint2.o oidint4.o oracle_compat.o \
2424
regexp.o regproc.o selfuncs.o \

src/backend/utils/adt/geo-ops.c renamed to src/backend/utils/adt/geo_ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/geo-ops.c,v 1.3 1996/11/03 06:53:06 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.1 1997/03/09 20:40:55 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/

src/backend/utils/adt/geo-selfuncs.c renamed to src/backend/utils/adt/geo_selfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/geo-selfuncs.c,v 1.2 1996/11/10 03:03:13 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_selfuncs.c,v 1.1 1997/03/09 20:40:57 momjian Exp $
1212
*
1313
* XXX These are totally bogus.
1414
*

src/backend/utils/adt/oracle_compat.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
/*
22
* Edmund Mergl <E.Mergl@bawue.de>
33
*
4-
* $Id: oracle_compat.c,v 1.1 1997/03/04 05:32:06 scrappy Exp $
4+
* $Id: oracle_compat.c,v 1.2 1997/03/09 20:40:58 momjian Exp $
55
*
66
*/
77

88

99
#include <ctype.h>
1010
#include "postgres.h"
1111

12+
#include "utils/builtins.h" /* where function declarations go */
1213

1314
/********************************************************************
1415
*

src/include/utils/builtins.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: builtins.h,v 1.9 1997/02/19 20:11:05 momjian Exp $
9+
* $Id: builtins.h,v 1.10 1997/03/09 20:41:02 momjian Exp $
1010
*
1111
* NOTES
1212
* This should normally only be included by fmgr.h.
@@ -486,6 +486,18 @@ extern bool textlike(struct varlena *s, struct varlena *p);
486486
extern bool textnlike(struct varlena *s, struct varlena *p);
487487
extern int like(char *text, char *p);
488488

489+
/* oracle_compat.c */
490+
491+
extern text *lower(text *string);
492+
extern text *upper(text *string);
493+
extern text *initcap(text *string);
494+
extern text *lpad(text *string1, int4 len, text *string2);
495+
extern text *rpad(text *string1, int4 len, text *string2);
496+
extern text *ltrim(text *string, text *set);
497+
extern text *rtrim(text *string, text *set);
498+
extern text *substr(text *string, int4 m, int4 n);
499+
extern text *translate(text *string, char from, char to);
500+
489501
/* acl.c */
490502

491503
#endif /* BUILTINS_H */

0 commit comments

Comments
 (0)