From 6915061b7d88792ebcb383b3ca3d0347d84fb414 Mon Sep 17 00:00:00 2001 From: Vladimir Kalinin Date: Tue, 21 Jul 2015 19:30:44 +0300 Subject: [PATCH] explicitly %ignore'd symbol does not get feature:ignore if it is only added to C symbol table --- Source/CParse/parser.y | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y index 38f876390..aa8ab789c 100644 --- a/Source/CParse/parser.y +++ b/Source/CParse/parser.y @@ -466,6 +466,8 @@ static void add_symbols(Node *n) { if (only_csymbol || GetFlag(n,"feature:ignore")) { /* Only add to C symbol table and continue */ Swig_symbol_add(0, n); + if (strncmp(Char(symname),"$ignore",7) == 0) + SetFlag(n,"feature:ignore"); } else if (strncmp(Char(symname),"$ignore",7) == 0) { char *c = Char(symname)+7; SetFlag(n,"feature:ignore");