problems wrapping <cstd*> functions in mudflap
Gabriel Dos Reis
gdr@integrable-solutions.net
Tue Oct 28 23:13:00 GMT 2003
"Frank Ch. Eigler" <fche@redhat.com> writes:
| Hi -
|
| mudflap is a pointer-use-checking extension plus runtime in the
| tree-ssa compiler branch. Among other things, it provides checked
| versions of standard C functions like strlen, malloc, etc, some of
| these interposed via macros that do roughly
|
| #undef strlen
| #define strlen checked_strlen
Macros don't fly in the C++ standard library.
Put differently, it is a requirement that standard function from the C
library (except "assert") not be defined as macros.
Furthermore, I do not believe the above is correct as the C standard
is concerned: strlen can be defined as *functional* macro but not as
an object macro.
-- Gaby
More information about the Libstdc++
mailing list