From: Alexis Laferrière Date: Wed, 2 Sep 2015 19:24:40 +0000 (-0400) Subject: contrib/objcwrapper: filter out only typedefs over one line X-Git-Tag: v0.7.8~42^2~2 X-Git-Url: http://nitlanguage.org contrib/objcwrapper: filter out only typedefs over one line Signed-off-by: Alexis Laferrière --- diff --git a/contrib/objcwrapper/src/header_static.nit b/contrib/objcwrapper/src/header_static.nit index 19ffd72..baefc3e 100644 --- a/contrib/objcwrapper/src/header_static.nit +++ b/contrib/objcwrapper/src/header_static.nit @@ -50,7 +50,7 @@ fun header_static(input: Reader, output: Writer) do while not input.eof do var line = input.read_line - if line.has("typedef struct") then continue + if line.has("typedef ") and line.has(";") then continue if line.has("static") then static_target = true