bug#10519: guile and (mini-)gmp

2012-01-28 Thread Niels Möller
Mark H Weaver writes: > It would be good if you could duplicate the `mp_set_memory_functions' > interface in mini-gmp. I'm looking into this. I found that the GMP interface has one awkward feature: The current allocation size must be passed as an argument to the free and realloc functions. See h

bug#10519: guile and (mini-)gmp

2012-01-28 Thread Mark H Weaver
ni...@lysator.liu.se (Niels Möller) writes: > Mark H Weaver writes: > >> It would be good if you could duplicate the `mp_set_memory_functions' >> interface in mini-gmp. > > I'm looking into this. I found that the GMP interface has one awkward > feature: The current allocation size must be passed

bug#10627: char-ready? is broken for multibyte encodings

2012-01-28 Thread Mark H Weaver
The R5RS specifies that if 'char-ready?' returns #t, then the next 'read-char' operation is guaranteed not to hang. This is not currently the case for ports using a multibyte encoding. 'char-ready?' currently returns #t whenever at least one _byte_ is available. This is not correct in general.