Patch for inp_str.c to accep 0x for base 16
cjohnsto at ihug.com.au
Sat Oct 23 11:53:02 CEST 2004
This is the first time I have sent anything to this list so please be
patient. I decided to contribute to GMP so I took a look a the tasks file.
Attached are a tar file with the files I changed to implement and add
testing for the task: " Make the string reading functions allow the `0x'
prefix when the base is explicitly 16. They currently only allow that prefix
when the base is unspecified (zero).".
I am not very familiar with GMP, I have only compiled a few programs with it
so I hope that this is infact what you were looking for. It is possible I
will take a look at doing some of the other task too. If I manage to
complete some what will be the best way to send you updates for review? And
is the formatting I used correct? I tried to keep to what is in the file I
It is a simple extention to also allow this for base 2, if you would like.
I am not yet subscribed to this list so please respond to my email address
for discussion about this item.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 20480 bytes
Desc: not available
Url : http://gmplib.org/list-archives/gmp-devel/attachments/20041023/e44300e5/inp_str-0001.tar
More information about the gmp-devel