1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

- Added more compatibility functions.

- Accept CPP defines for type definitions.
	- Do not parse system include files automatically for Informix mode
This commit is contained in:
Michael Meskes
2003-05-14 14:37:36 +00:00
parent 78b08584b4
commit 4e1ed3da9b
12 changed files with 225 additions and 191 deletions

View File

@ -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;
}