Re: [pcre-dev] [Bug 1038] memcmp not available in pcrecpp_s…

Top Page
Delete this message
Author: Craig Silverstein
Date:  
To: 1038
CC: pcre-dev
Subject: Re: [pcre-dev] [Bug 1038] memcmp not available in pcrecpp_stringpiece.h compiling with BCB 6
} I attahced new files, but running cpp32 over the .cc files with .cpp
} ending to ensure that BCB 6 does the right things. Normallay it
} doesn't compile .cc files.

OK, thanks. Comparing the preprocessed output, I don't see a
contentful difference -- you're #including mem.h twice, and the second
time it's not doing anything (though surprisingly it's not protected
by an #ifdef guard).

Actually, the data in your 'with' preprocessed output is extremely
confusing. You see the line mem.h:37, for instance in there twice.
The first time it says:
/* C:\Programme\Borland\CBuilder6\Include\mem.h 37: */void * __cdecl __memchr__(const void * __s, int __c, std::size_t __n);

The second time it says:
/* C:\Programme\Borland\CBuilder6\Include\mem.h 37: */

The content of mem.h presumably didn't change between them, so why is
the preprocessor not emitting anything the second time? I have a
suspicion cpp32 is not telling us the full story.

Is it possible for you to attach mem.h? It would also be helpful to
attach stl/char_traits.h, and stl/_algobase.h.

craig