mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-28 21:21:50 +02:00
Rename cash_words_out to cash_words.
This commit is contained in:
parent
76adc09571
commit
364985542b
@ -9,7 +9,7 @@
|
|||||||
* workings can be found in the book "Software Solutions in C" by
|
* workings can be found in the book "Software Solutions in C" by
|
||||||
* Dale Schumacher, Academic Press, ISBN: 0-12-632360-7.
|
* Dale Schumacher, Academic Press, ISBN: 0-12-632360-7.
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.42 2000/07/06 05:48:11 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.43 2000/07/07 18:49:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
@ -673,12 +673,12 @@ cashsmaller(Cash *c1, Cash *c2)
|
|||||||
} /* cashsmaller() */
|
} /* cashsmaller() */
|
||||||
|
|
||||||
|
|
||||||
/* cash_words_out()
|
/* cash_words()
|
||||||
* This converts a int4 as well but to a representation using words
|
* This converts a int4 as well but to a representation using words
|
||||||
* Obviously way North American centric - sorry
|
* Obviously way North American centric - sorry
|
||||||
*/
|
*/
|
||||||
Datum
|
Datum
|
||||||
cash_words_out(PG_FUNCTION_ARGS)
|
cash_words(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
Cash value = PG_GETARG_CASH(0);
|
Cash value = PG_GETARG_CASH(0);
|
||||||
char buf[128];
|
char buf[128];
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: pg_proc.h,v 1.143 2000/07/06 05:48:22 tgl Exp $
|
* $Id: pg_proc.h,v 1.144 2000/07/07 18:49:54 momjian Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* The script catalog/genbki.sh reads this file and generates .bki
|
* The script catalog/genbki.sh reads this file and generates .bki
|
||||||
@ -1124,7 +1124,7 @@ DATA(insert OID = 886 ( cash_in PGUID 11 f t t t 1 f 790 "0" 100 0 0 100
|
|||||||
DESCR("(internal)");
|
DESCR("(internal)");
|
||||||
DATA(insert OID = 887 ( cash_out PGUID 11 f t t t 1 f 23 "0" 100 0 0 100 cash_out - ));
|
DATA(insert OID = 887 ( cash_out PGUID 11 f t t t 1 f 23 "0" 100 0 0 100 cash_out - ));
|
||||||
DESCR("(internal)");
|
DESCR("(internal)");
|
||||||
DATA(insert OID = 1273 ( cash_words_out PGUID 12 f t t t 1 f 25 "790" 100 0 0 100 cash_words_out - ));
|
DATA(insert OID = 1273 ( cash_words PGUID 12 f t t t 1 f 25 "790" 100 0 0 100 cash_words - ));
|
||||||
DESCR("output amount as words");
|
DESCR("output amount as words");
|
||||||
DATA(insert OID = 888 ( cash_eq PGUID 11 f t t t 2 f 16 "790 790" 100 0 0 100 cash_eq - ));
|
DATA(insert OID = 888 ( cash_eq PGUID 11 f t t t 2 f 16 "790 790" 100 0 0 100 cash_eq - ));
|
||||||
DESCR("equal");
|
DESCR("equal");
|
||||||
|
@ -44,6 +44,6 @@ extern Datum cash_div_int2(PG_FUNCTION_ARGS);
|
|||||||
extern Cash *cashlarger(Cash *c1, Cash *c2);
|
extern Cash *cashlarger(Cash *c1, Cash *c2);
|
||||||
extern Cash *cashsmaller(Cash *c1, Cash *c2);
|
extern Cash *cashsmaller(Cash *c1, Cash *c2);
|
||||||
|
|
||||||
extern Datum cash_words_out(PG_FUNCTION_ARGS);
|
extern Datum cash_words(PG_FUNCTION_ARGS);
|
||||||
|
|
||||||
#endif /* CASH_H */
|
#endif /* CASH_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user