Re: memmem issues

2007-12-19 Thread Jim Meyering
Eric Blake <[EMAIL PROTECTED]> wrote: ... > - The implementation was naively quadratic in the worst-case complexity. I > lifted Bruno's KMP ideas in mbsstr to make it linear+delayed allocation. > glibc > still uses the naive implementation - should we file a bug with them to fix > it? This is t

Re: memmem issues

2007-12-19 Thread Jim Meyering
Eric Blake <[EMAIL PROTECTED]> wrote: > I'm trying to convert m4 to transparently handle embedded NUL. In the > process, > I need to move from strstr to memmem (if m4 were fully i18n already, I would > instead be moving from mbsstr to the length-based analog of mbsstr that > tolerates embedded NU

Re: header file order issue on tar-1.19/lib/inttypes.h

2007-12-19 Thread John E. Malmberg
Paul Eggert wrote: "John E. Malmberg" <[EMAIL PROTECTED]> writes: The quick patch that I can do is to move where the #undef of the _GL_JUST_INCLUDE_SYSTEM_DIRECTORY_H is. Yes, thanks, that sounds like a reasonable fix. I installed the patch below: does it work for you? It will take me a li

memmem issues

2007-12-19 Thread Eric Blake
I'm trying to convert m4 to transparently handle embedded NUL. In the process, I need to move from strstr to memmem (if m4 were fully i18n already, I would instead be moving from mbsstr to the length-based analog of mbsstr that tolerates embedded NUL - is there such a thing?) Several issues wi