Commit Graph

55 Commits

Author SHA1 Message Date
Christian Grothoff
306a08a71c
-rename TALER_amount_get_zero to TALER_amount_set_zero 2021-07-23 13:02:04 +02:00
Christian Grothoff
249ba03c36
expose 2^52 amount value limit in header, check that limit in test cases, add TALER_amount_multiply and TALER_amount_divide2 operations 2021-07-10 14:55:35 +02:00
Christian Grothoff
2aca3b5eff
use enum instead of int 2020-08-29 11:55:40 +02:00
Christian Grothoff
6256bdb15a
implement #6478, but untested as shown by FIXMEs 2020-08-12 20:12:39 +02:00
Christian Grothoff
051ccdf0e7
fix #6215~15757 2020-04-23 12:05:27 +02:00
Christian Grothoff
c79a95c7d2
write overflow check nicer (#6215) 2020-04-23 12:02:52 +02:00
Christian Grothoff
84a40be0bc
fix #6170 and rest of #6164 2020-04-08 23:52:01 +02:00
Christian Grothoff
02736e40c2
fix ftbfs 2020-04-03 20:47:34 +02:00
Christian Grothoff
e9de3374a9
fix #6148 2020-04-02 14:01:41 +02:00
Christian Grothoff
a039926bb6
fix #6147 2020-04-02 13:47:21 +02:00
Christian Grothoff
340ac36199
fix #6146 2020-04-02 11:34:52 +02:00
Christian Grothoff
3404fda463
typos 2020-03-31 20:57:11 +02:00
Christian Grothoff
c898a1e13b
clean up closer logic, improve error handling, simplify logic, add comments 2020-03-15 20:42:47 +01:00
Christian Grothoff
72764dc5f1
doxygen fixes 2020-02-29 17:13:43 +01:00
Christian Grothoff
b290ca30c0
fix 2020-01-20 01:40:29 +01:00
Florian Dold
12468e1fd8
denom->amount 2020-01-19 22:01:27 +01:00
Christian Grothoff
59398cfd76
separate util.c and url.c 2020-01-19 20:33:07 +01:00
Christian Grothoff
600592dbf6
fix rounding, extend test 2020-01-19 20:11:32 +01:00
Christian Grothoff
e4cfa3d640
annotate 2020-01-19 19:44:29 +01:00
Christian Grothoff
5da9cfc51c
clean up amount logic, fix 2^53 check 2020-01-19 19:39:14 +01:00
Christian Grothoff
d22a52cc7a
fix copyright headers as per CA 2020-01-19 19:21:58 +01:00
Christian Grothoff
96ac20c3bb
fix FTBFS 2020-01-18 14:01:56 +01:00
Christian Grothoff
9317d6d69d
doxygen work 2020-01-18 13:23:17 +01:00
Florian Dold
7378b5a081
amount rounding a la Christian 2020-01-17 18:59:15 +01:00
Florian Dold
da5b3ba8ae
round amounts based on config, do unit test for rounding 2020-01-15 15:17:25 +01:00
Christian Grothoff
4d6ef1da29
eliminate libtalerwire 2020-01-13 18:16:01 +01:00
Christian Grothoff
b46fe9aa21
reindenting with uncrustify 2019-10-05 15:42:08 +02:00
Florian Dold
eb55997084
re-format code 2019-08-25 16:18:24 +02:00
Christian Grothoff
30903b9386
reduce code duplication 2019-06-18 13:20:43 +02:00
Marcello Stanisci
1f007d83fd
4692. Fix global return code. 2019-02-11 19:55:00 +01:00
Christian Grothoff
2d08d612f6
refuse endian conversion for invalid amounts 2018-01-01 23:07:36 +01:00
Christian Grothoff
169962d769
lets use 52, the number of bits stored 2017-11-02 18:42:12 +01:00
Christian Grothoff
84998f9d05
fix #5167 2017-11-02 17:40:14 +01:00
Christian Grothoff
e5aed9e5cb
fix signed calls to isalpha/isdigit/isspace etc. 2017-10-06 19:53:48 +02:00
Christian Grothoff
a38fa32484
fixing misc auditor issues 2017-03-20 02:29:33 +01:00
Christian Grothoff
ae3e850c94
update getopt config parsing style to match 'getopt' GNUnet branch API change 2017-03-15 12:01:06 +01:00
Christian Grothoff
0214e426a6
add amount division API and test case 2017-03-06 16:35:30 +01:00
Marcello Stanisci
59c6856284 fixing #4594 2016-07-07 17:55:25 +02:00
Christian Grothoff
0ff76b5abb fix test to ensure DB invariants are met 2016-04-04 16:47:11 +02:00
Christian Grothoff
80f6c4240e -fix (C) notices 2016-01-19 14:39:00 +01:00
Christian Grothoff
beceb3bc16 implementing #3905 2015-07-20 10:34:32 +02:00
Christian Grothoff
3eddd802dc -fix ftbfs in wallet-only mode 2015-07-15 11:40:51 +02:00
Christian Grothoff
dde1ff8821 fix type 2015-07-05 13:18:49 +02:00
Christian Grothoff
c3ab96b242 more documenting, checking for consistency between prepared statements and functional logic 2015-06-03 15:41:09 +02:00
Christian Grothoff
5827630699 starting with tests for libtalerutil 2015-04-13 17:20:46 +02:00
Christian Grothoff
eca4f1a8fe -doxygen fixes 2015-03-28 15:42:07 +01:00
Sree Harsha Totakura
7730a08349 util: avoid memcpy over overlapping memory
memcpy used to copy the currency string in TALER_amount_get_zero can copy from
overlapping memory regions.  This happens when the diff parameter to
TALER_amount_substract is same as a1 parameter.
2015-03-26 19:39:16 +01:00
Christian Grothoff
23bf1eee74 fix #3716: make sure amount-API offers proper checks against overflow and other issues 2015-03-18 18:55:41 +01:00
Christian Grothoff
4eeaff1355 documentation, comments 2015-03-17 11:37:21 +01:00
Sree Harsha Totakura
f8a77d3ca9 util: Use TALER_CURRENCY_LEN instead of sizeof() 2015-03-16 11:08:52 +01:00