diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-08-30 02:54:42 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-08-30 02:54:42 +0000 |
commit | 15d3f9f6b7849a70281f151f0def7a6d335767d7 (patch) | |
tree | 98d285e17c671a56e484e98916703280e1947a78 /src/interfaces/ecpg/compatlib/informix.c | |
parent | 166300f318f5b4795c0f7679144a1c23c0118163 (diff) | |
download | postgresql-15d3f9f6b7849a70281f151f0def7a6d335767d7.tar.gz postgresql-15d3f9f6b7849a70281f151f0def7a6d335767d7.zip |
Another pgindent run with lib typedefs added.
Diffstat (limited to 'src/interfaces/ecpg/compatlib/informix.c')
-rw-r--r-- | src/interfaces/ecpg/compatlib/informix.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c index d8d95c03ccc..8acfc1ecf07 100644 --- a/src/interfaces/ecpg/compatlib/informix.c +++ b/src/interfaces/ecpg/compatlib/informix.c @@ -15,7 +15,7 @@ char *ECPGalloc(long, int); static int -deccall2(decimal * arg1, decimal * arg2, int (*ptr) (numeric *, numeric *)) +deccall2(decimal *arg1, decimal *arg2, int (*ptr) (numeric *, numeric *)) { numeric *a1, *a2; @@ -53,7 +53,7 @@ deccall2(decimal * arg1, decimal * arg2, int (*ptr) (numeric *, numeric *)) } static int -deccall3(decimal * arg1, decimal * arg2, decimal * result, int (*ptr) (numeric *, numeric *, numeric *)) +deccall3(decimal *arg1, decimal *arg2, decimal *result, int (*ptr) (numeric *, numeric *, numeric *)) { numeric *a1, *a2, @@ -118,7 +118,7 @@ deccall3(decimal * arg1, decimal * arg2, decimal * result, int (*ptr) (numeric * /* we start with the numeric functions */ int -decadd(decimal * arg1, decimal * arg2, decimal * sum) +decadd(decimal *arg1, decimal *arg2, decimal *sum) { deccall3(arg1, arg2, sum, PGTYPESnumeric_add); @@ -131,13 +131,13 @@ decadd(decimal * arg1, decimal * arg2, decimal * sum) } int -deccmp(decimal * arg1, decimal * arg2) +deccmp(decimal *arg1, decimal *arg2) { return (deccall2(arg1, arg2, PGTYPESnumeric_cmp)); } void -deccopy(decimal * src, decimal * target) +deccopy(decimal *src, decimal *target) { memcpy(target, src, sizeof(decimal)); } @@ -162,7 +162,7 @@ ecpg_strndup(const char *str, size_t len) } int -deccvasc(char *cp, int len, decimal * np) +deccvasc(char *cp, int len, decimal *np) { char *str = ecpg_strndup(cp, len); /* decimal_in always * converts the complete @@ -208,7 +208,7 @@ deccvasc(char *cp, int len, decimal * np) } int -deccvdbl(double dbl, decimal * np) +deccvdbl(double dbl, decimal *np) { numeric *nres = PGTYPESnumeric_new(); int result = 1; @@ -229,7 +229,7 @@ deccvdbl(double dbl, decimal * np) } int -deccvint(int in, decimal * np) +deccvint(int in, decimal *np) { numeric *nres = PGTYPESnumeric_new(); int result = 1; @@ -250,7 +250,7 @@ deccvint(int in, decimal * np) } int -deccvlong(long lng, decimal * np) +deccvlong(long lng, decimal *np) { numeric *nres = PGTYPESnumeric_new(); int result = 1; @@ -271,7 +271,7 @@ deccvlong(long lng, decimal * np) } int -decdiv(decimal * n1, decimal * n2, decimal * result) +decdiv(decimal *n1, decimal *n2, decimal *result) { int i; @@ -296,7 +296,7 @@ decdiv(decimal * n1, decimal * n2, decimal * result) } int -decmul(decimal * n1, decimal * n2, decimal * result) +decmul(decimal *n1, decimal *n2, decimal *result) { int i; @@ -317,7 +317,7 @@ decmul(decimal * n1, decimal * n2, decimal * result) } int -decsub(decimal * n1, decimal * n2, decimal * result) +decsub(decimal *n1, decimal *n2, decimal *result) { int i; @@ -338,7 +338,7 @@ decsub(decimal * n1, decimal * n2, decimal * result) } int -dectoasc(decimal * np, char *cp, int len, int right) +dectoasc(decimal *np, char *cp, int len, int right) { char *str; numeric *nres = PGTYPESnumeric_new(); @@ -373,7 +373,7 @@ dectoasc(decimal * np, char *cp, int len, int right) } int -dectodbl(decimal * np, double *dblp) +dectodbl(decimal *np, double *dblp) { numeric *nres = PGTYPESnumeric_new(); int i; @@ -391,7 +391,7 @@ dectodbl(decimal * np, double *dblp) } int -dectoint(decimal * np, int *ip) +dectoint(decimal *np, int *ip) { int ret; numeric *nres = PGTYPESnumeric_new(); @@ -411,7 +411,7 @@ dectoint(decimal * np, int *ip) } int -dectolong(decimal * np, long *lngp) +dectolong(decimal *np, long *lngp) { int ret; numeric *nres = PGTYPESnumeric_new();; @@ -453,7 +453,7 @@ rdatestr(date d, char *str) * */ int -rstrdate(char *str, date * d) +rstrdate(char *str, date *d) { date dat; char strbuf[10]; @@ -511,7 +511,7 @@ rstrdate(char *str, date * d) } void -rtoday(date * d) +rtoday(date *d) { PGTYPESdate_today(d); return; @@ -530,7 +530,7 @@ rjulmdy(date d, short mdy[3]) } int -rdefmtdate(date * d, char *fmt, char *str) +rdefmtdate(date *d, char *fmt, char *str) { /* TODO: take care of DBCENTURY environment variable */ /* PGSQL functions allow all centuries */ @@ -567,7 +567,7 @@ rfmtdate(date d, char *fmt, char *str) } int -rmdyjul(short mdy[3], date * d) +rmdyjul(short mdy[3], date *d) { int mdy_int[3]; @@ -587,13 +587,13 @@ rdayofweek(date d) /* And the datetime stuff */ void -dtcurrent(timestamp * ts) +dtcurrent(timestamp *ts) { PGTYPEStimestamp_current(ts); } int -dtcvasc(char *str, timestamp * ts) +dtcvasc(char *str, timestamp *ts) { timestamp ts_tmp; int i; @@ -616,13 +616,13 @@ dtcvasc(char *str, timestamp * ts) } int -dtsub(timestamp * ts1, timestamp * ts2, interval * iv) +dtsub(timestamp *ts1, timestamp *ts2, interval *iv) { return PGTYPEStimestamp_sub(ts1, ts2, iv); } int -dttoasc(timestamp * ts, char *output) +dttoasc(timestamp *ts, char *output) { char *asctime = PGTYPEStimestamp_to_asc(*ts); @@ -632,13 +632,13 @@ dttoasc(timestamp * ts, char *output) } int -dttofmtasc(timestamp * ts, char *output, int str_len, char *fmtstr) +dttofmtasc(timestamp *ts, char *output, int str_len, char *fmtstr) { return PGTYPEStimestamp_fmt_asc(ts, output, str_len, fmtstr); } int -intoasc(interval * i, char *str) +intoasc(interval *i, char *str) { str = PGTYPESinterval_to_asc(i); @@ -963,7 +963,7 @@ rtypwidth(int sqltype, int sqllen) } int -dtcvfmtasc(char *inbuf, char *fmtstr, timestamp * dtvalue) +dtcvfmtasc(char *inbuf, char *fmtstr, timestamp *dtvalue) { return PGTYPEStimestamp_defmt_asc(inbuf, fmtstr, dtvalue); } |