aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/compatlib
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2003-05-14 14:37:36 +0000
committerMichael Meskes <meskes@postgresql.org>2003-05-14 14:37:36 +0000
commit4e1ed3da9b3be389875f63e6c5656856290a72b3 (patch)
tree3427f6e7466411b9ed6f6810aafacc2e69963100 /src/interfaces/ecpg/compatlib
parent78b08584b43d2608a10eb41e5d9430baa4d6f52a (diff)
downloadpostgresql-4e1ed3da9b3be389875f63e6c5656856290a72b3.tar.gz
postgresql-4e1ed3da9b3be389875f63e6c5656856290a72b3.zip
- Added more compatibility functions.
- Accept CPP defines for type definitions. - Do not parse system include files automatically for Informix mode
Diffstat (limited to 'src/interfaces/ecpg/compatlib')
-rw-r--r--src/interfaces/ecpg/compatlib/informix.c36
1 files changed, 30 insertions, 6 deletions
diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c
index 2f8087fefcc..27d2f9acd79 100644
--- a/src/interfaces/ecpg/compatlib/informix.c
+++ b/src/interfaces/ecpg/compatlib/informix.c
@@ -609,6 +609,28 @@ rfmtlong(long lng_val, char *fmt, char *outbuf)
return 0;
}
+void
+rupshift(char *str)
+{
+ for (; *str != '\0'; str++)
+ if (islower(*str)) *str = toupper(*str);
+ return;
+}
+
+int
+byleng(char *str, int len)
+{
+ for (len--; str[len] && str[len] == ' '; len--);
+ return (len+1);
+}
+
+void
+ldchar(char *src, int len, char *dest)
+{
+ memmove(dest, src, len);
+ dest[len]=0;
+}
+
int
rgetmsg(int msgnum, char *s, int maxsize)
{
@@ -639,13 +661,15 @@ rtypmsize(int type, int len)
return 0;
}
-void
-rupshift(char *str)
+int
+rtypwidth(int sqltype, int sqllen)
{
- for (; *str != '\0'; str++)
- if (islower(*str)) *str = toupper(*str);
- return;
+ return 0;
}
-
+int
+dtcvfmtasc (char *inbuf, char *fmtstr, dtime_t *dtvalue)
+{
+ return 0;
+}