From d1237761e005d37bece4e17a56a37c53bc37707a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Wed, 26 Aug 2015 16:12:37 -0400 Subject: [PATCH] contrib/objcwrapper header_static: ignore struct declarations MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- contrib/objcwrapper/src/header_static.nit | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/objcwrapper/src/header_static.nit b/contrib/objcwrapper/src/header_static.nit index c43fe2a..19ffd72 100644 --- a/contrib/objcwrapper/src/header_static.nit +++ b/contrib/objcwrapper/src/header_static.nit @@ -49,7 +49,10 @@ fun header_static(input: Reader, output: Writer) do while not input.eof do var line = input.read_line - if line.to_s.has("static") then static_target = true + + if line.has("typedef struct") then continue + + if line.has("static") then static_target = true if static_target then if line.to_s.has("__attribute__") then static_attribute_target = true -- 1.7.9.5