[PATCH] Add !HAVE_MBRTOWC fallbacks for mbchar, mbiter and mbuiter

2007-02-16 Thread Miloslav Trmac
Hello, I'm adding multibyte character support to the info viewer using the mbiter and mbuiter modules. Those modules currently depend on mbrtowc () and friends. The mbs* functions in gnulib currently have two separate implementations of most algorithms, one for HAVE_MBRTOWC using mbchar, and one

Re: [PATCH] Add !HAVE_MBRTOWC fallbacks for mbchar, mbiter and mbuiter

2007-02-20 Thread Miloslav Trmac
Hello, Bruno Haible napsal(a): > There are probably two uses of the mbchar, mbfile, mbiter, mbuiter modules: > (a) Use them only for MB_CUR_MAX > 1, and use simpler datatypes (just > 'char' and pointers) for MB_CUR_MAX = 1. > (b) Use them always. > > Since the speed difference between bo