1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-25 13:17:41 +03:00

We store Cash/money as int of size 4, so make it an int rather than a long.

This commit is contained in:
Bruce Momjian
1997-08-22 07:13:01 +00:00
parent 7515bb484e
commit 021778eed3
3 changed files with 11 additions and 10 deletions

View File

@@ -3,13 +3,14 @@
* Written by D'Arcy J.M. Cain
*
* Functions to allow input and output of money normally but store
* and handle it as long integers.
* and handle it as int4.
*/
#ifndef CASH_H
#define CASH_H
typedef long int Cash;
/* if we store this as 4 bytes, we better make it int, not long, bjm */
typedef signed int Cash;
extern const char *cash_out(Cash *value);
extern Cash *cash_in(const char *str);