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/numutils.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/numutils.c')
-rw-r--r-- | src/backend/utils/adt/numutils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/utils/adt/numutils.c b/src/backend/utils/adt/numutils.c index 3d4956afe2e..ea188e70f31 100644 --- a/src/backend/utils/adt/numutils.c +++ b/src/backend/utils/adt/numutils.c @@ -3,7 +3,7 @@ * numutils.c * utility functions for I/O of built-in numeric types. * - * integer: itoa, ltoa + * integer: pg_itoa, pg_ltoa * floating point: ftoa, atof1 * * Portions Copyright (c) 1996-2000, PostgreSQL, Inc @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.41 2000/07/12 22:59:09 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.42 2000/08/01 18:29:35 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -116,27 +116,27 @@ pg_atoi(char *s, int size, int c) } /* - * itoa - converts a short int to its string represention + * pg_itoa - converts a short int to its string represention * * Note: * previously based on ~ingres/source/gutil/atoi.c * now uses vendor's sprintf conversion */ void -itoa(int i, char *a) +pg_itoa(int16 i, char *a) { sprintf(a, "%hd", (short) i); } /* - * ltoa - converts a long int to its string represention + * pg_ltoa - converts a long int to its string represention * * Note: * previously based on ~ingres/source/gutil/atoi.c * now uses vendor's sprintf conversion */ void -ltoa(int32 l, char *a) +pg_ltoa(int32 l, char *a) { sprintf(a, "%d", l); } |