diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-09-15 13:08:31 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-09-15 13:08:31 (GMT) |
commit | 0faaca01de4e9fa2039c7fdd34f60b138f665249 (patch) | |
tree | dfc95748319b9285f975bf6225313dfb5686f16c /generic/tclTomMath.decls | |
parent | 130ba65bbe11f114680bbd9f9d45ec3b5de0caef (diff) | |
download | tcl-0faaca01de4e9fa2039c7fdd34f60b138f665249.zip tcl-0faaca01de4e9fa2039c7fdd34f60b138f665249.tar.gz tcl-0faaca01de4e9fa2039c7fdd34f60b138f665249.tar.bz2 |
'const'ify more libtommath functions. All functions in generic/tclTomMath.decls (used by Tcl) are done now.
Diffstat (limited to 'generic/tclTomMath.decls')
-rw-r--r-- | generic/tclTomMath.decls | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclTomMath.decls b/generic/tclTomMath.decls index d628cfe..10df919 100644 --- a/generic/tclTomMath.decls +++ b/generic/tclTomMath.decls @@ -33,7 +33,7 @@ declare 2 { int TclBN_mp_add(const mp_int *a, const mp_int *b, mp_int *c) } declare 3 { - int TclBN_mp_add_d(mp_int *a, mp_digit b, mp_int *c) + int TclBN_mp_add_d(const mp_int *a, mp_digit b, mp_int *c) } declare 4 { int TclBN_mp_and(const mp_int *a, const mp_int *b, mp_int *c) @@ -153,20 +153,20 @@ declare 42 { int TclBN_mp_sub(const mp_int *a, const mp_int *b, mp_int *c) } declare 43 { - int TclBN_mp_sub_d(mp_int *a, mp_digit b, mp_int *c) + int TclBN_mp_sub_d(const mp_int *a, mp_digit b, mp_int *c) } declare 44 { - int TclBN_mp_to_unsigned_bin(mp_int *a, unsigned char *b) + int TclBN_mp_to_unsigned_bin(const mp_int *a, unsigned char *b) } declare 45 { - int TclBN_mp_to_unsigned_bin_n(mp_int *a, unsigned char *b, + int TclBN_mp_to_unsigned_bin_n(const mp_int *a, unsigned char *b, unsigned long *outlen) } declare 46 { - int TclBN_mp_toradix_n(mp_int *a, char *str, int radix, int maxlen) + int TclBN_mp_toradix_n(const mp_int *a, char *str, int radix, int maxlen) } declare 47 { - int TclBN_mp_unsigned_bin_size(mp_int *a) + int TclBN_mp_unsigned_bin_size(const mp_int *a) } declare 48 { int TclBN_mp_xor(const mp_int *a, const mp_int *b, mp_int *c) |