From fa5eef09576078ab82a212ce399943f11a8caf0c Mon Sep 17 00:00:00 2001 From: FIRM Projekt Account Date: Tue, 27 Dec 2005 11:31:57 +0000 Subject: [PATCH] crecoder cannot handle wchar_t type. As long as we do not need this functionality, we simply remove all lines containing wchar_t :-( [r7147] --- tools/remove_cpp_comands.perl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 =~ /\\$/) { -- 2.20.1