diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-08-01 18:29:35 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-08-01 18:29:35 +0000 |
commit | 463f1f5cdaecf229dcd1d3d16e969bf3a7aa9a73 (patch) | |
tree | e212492457fbf4f54cb12c160cc3f8a602256871 /src/backend/utils/adt/int.c | |
parent | 92bd532c1e8b65f4f4d09ffb453782b29d6d1e42 (diff) | |
download | postgresql-463f1f5cdaecf229dcd1d3d16e969bf3a7aa9a73.tar.gz postgresql-463f1f5cdaecf229dcd1d3d16e969bf3a7aa9a73.zip |
Convert all remaining float4 and float8 functions to new fmgr style.
At this point I think it'd be possible to make float4 be pass-by-value
without too much work --- and float8 too on machines where Datum is
8 bytes. Something to try when the mood strikes, anyway.
Diffstat (limited to 'src/backend/utils/adt/int.c')
-rw-r--r-- | src/backend/utils/adt/int.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/utils/adt/int.c b/src/backend/utils/adt/int.c index 7133142c0b6..b1153c30d17 100644 --- a/src/backend/utils/adt/int.c +++ b/src/backend/utils/adt/int.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.41 2000/07/17 03:05:17 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.42 2000/08/01 18:29:35 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -65,7 +65,7 @@ int2out(PG_FUNCTION_ARGS) int16 arg1 = PG_GETARG_INT16(0); char *result = (char *) palloc(7); /* sign, 5 digits, '\0' */ - itoa((int) arg1, result); + pg_itoa(arg1, result); PG_RETURN_CSTRING(result); } @@ -123,7 +123,7 @@ int2vectorout(PG_FUNCTION_ARGS) { if (num != 0) *rp++ = ' '; - ltoa(int2Array[num], rp); + pg_itoa(int2Array[num], rp); while (*++rp != '\0') ; } @@ -187,7 +187,7 @@ int44out(PG_FUNCTION_ARGS) walk = result; for (i = 0; i < 4; i++) { - itoa(an_array[i], walk); + pg_ltoa(an_array[i], walk); while (*++walk != '\0') ; *walk++ = ' '; @@ -221,7 +221,7 @@ int4out(PG_FUNCTION_ARGS) int32 arg1 = PG_GETARG_INT32(0); char *result = (char *) palloc(12); /* sign, 10 digits, '\0' */ - ltoa(arg1, result); + pg_ltoa(arg1, result); PG_RETURN_CSTRING(result); } @@ -259,7 +259,7 @@ int2_text(PG_FUNCTION_ARGS) int16 arg1 = PG_GETARG_INT16(0); text *result = (text *) palloc(7+VARHDRSZ); /* sign,5 digits, '\0' */ - itoa((int) arg1, VARDATA(result)); + pg_itoa(arg1, VARDATA(result)); VARATT_SIZEP(result) = strlen(VARDATA(result)) + VARHDRSZ; PG_RETURN_TEXT_P(result); } @@ -290,7 +290,7 @@ int4_text(PG_FUNCTION_ARGS) int32 arg1 = PG_GETARG_INT32(0); text *result = (text *) palloc(12+VARHDRSZ); /* sign,10 digits,'\0' */ - ltoa(arg1, VARDATA(result)); + pg_ltoa(arg1, VARDATA(result)); VARATT_SIZEP(result) = strlen(VARDATA(result)) + VARHDRSZ; PG_RETURN_TEXT_P(result); } |