From d102ce79b29a7cde68f4f00a09c1d8dd93d80da5 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 6 Oct 2006 23:02:45 +0000 Subject: [PATCH] fix include within a structure - #1162194 git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9423 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/inctest.h | 2 ++ Source/CParse/parser.y | 1 + 2 files changed, 3 insertions(+) create mode 100644 Examples/test-suite/inctest.h diff --git a/Examples/test-suite/inctest.h b/Examples/test-suite/inctest.h new file mode 100644 index 000000000..e63d833fc --- /dev/null +++ b/Examples/test-suite/inctest.h @@ -0,0 +1,2 @@ +int IntegerMember; +double DoubleMember; diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y index 74f8cfc94..9e62729c3 100644 --- a/Source/CParse/parser.y +++ b/Source/CParse/parser.y @@ -3936,6 +3936,7 @@ cpp_members : cpp_member cpp_members { appendChild($$,$4); set_nextSibling($$,$6); } + | include_directive { $$ = $1; } | empty { $$ = 0;} | error { int start_line = cparse_line;