~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/include/utils/cash.h

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * cash.h
 
3
 * Written by D'Arcy J.M. Cain
 
4
 *
 
5
 * Functions to allow input and output of money normally but store
 
6
 *      and handle it as int4.
 
7
 */
 
8
 
 
9
#ifndef CASH_H
 
10
#define CASH_H
 
11
 
 
12
/* if we store this as 4 bytes, we better make it int, not long, bjm */
 
13
typedef int32 Cash;
 
14
 
 
15
extern Datum cash_in(PG_FUNCTION_ARGS);
 
16
extern Datum cash_out(PG_FUNCTION_ARGS);
 
17
extern Datum cash_recv(PG_FUNCTION_ARGS);
 
18
extern Datum cash_send(PG_FUNCTION_ARGS);
 
19
 
 
20
extern Datum cash_eq(PG_FUNCTION_ARGS);
 
21
extern Datum cash_ne(PG_FUNCTION_ARGS);
 
22
extern Datum cash_lt(PG_FUNCTION_ARGS);
 
23
extern Datum cash_le(PG_FUNCTION_ARGS);
 
24
extern Datum cash_gt(PG_FUNCTION_ARGS);
 
25
extern Datum cash_ge(PG_FUNCTION_ARGS);
 
26
extern Datum cash_cmp(PG_FUNCTION_ARGS);
 
27
 
 
28
extern Datum cash_pl(PG_FUNCTION_ARGS);
 
29
extern Datum cash_mi(PG_FUNCTION_ARGS);
 
30
 
 
31
extern Datum cash_mul_flt8(PG_FUNCTION_ARGS);
 
32
extern Datum cash_div_flt8(PG_FUNCTION_ARGS);
 
33
extern Datum flt8_mul_cash(PG_FUNCTION_ARGS);
 
34
 
 
35
extern Datum cash_mul_flt4(PG_FUNCTION_ARGS);
 
36
extern Datum cash_div_flt4(PG_FUNCTION_ARGS);
 
37
extern Datum flt4_mul_cash(PG_FUNCTION_ARGS);
 
38
 
 
39
extern Datum cash_mul_int4(PG_FUNCTION_ARGS);
 
40
extern Datum cash_div_int4(PG_FUNCTION_ARGS);
 
41
extern Datum int4_mul_cash(PG_FUNCTION_ARGS);
 
42
 
 
43
extern Datum cash_mul_int2(PG_FUNCTION_ARGS);
 
44
extern Datum int2_mul_cash(PG_FUNCTION_ARGS);
 
45
extern Datum cash_div_int2(PG_FUNCTION_ARGS);
 
46
 
 
47
extern Datum cashlarger(PG_FUNCTION_ARGS);
 
48
extern Datum cashsmaller(PG_FUNCTION_ARGS);
 
49
 
 
50
extern Datum cash_words(PG_FUNCTION_ARGS);
 
51
 
 
52
#endif   /* CASH_H */