X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=tools%2Fremove_cpp_comands.perl;h=f9a7c493fa81ac3f0f892c55c3d7cb1a5fd49fe9;hb=d904350bc3a4b3b9c77a71d683be6c44b041a33d;hp=7597720220cc27bfe142a1944d7bdbb9c842de35;hpb=f80cb22323f457e765fd66e4020ceee3c91dc3b6;p=libfirm diff --git a/tools/remove_cpp_comands.perl b/tools/remove_cpp_comands.perl index 759772022..f9a7c493f 100644 --- a/tools/remove_cpp_comands.perl +++ b/tools/remove_cpp_comands.perl @@ -67,11 +67,13 @@ $multiline = 0; foreach $line (@lines) { if ($line =~ /\#ifdef __cplusplus/) { -# There is extern "C" in firm.h, guarded by #ifdef __cplusplus +# There is extern "C" in some header files guarded by #ifdef __cplusplus # crecoder does not grok the extern "C", so remove thses three lines. $eat = 2; } elsif ($eat > 0) { $eat = $eat -1; + } elsif ($line =~ /wchar_t/) { + # of course crecoder cannot handle wchar_t, what else? } elsif ($multiline > 0) { # this line connects a previous one, kill it if ($line =~ /\\$/) {