[anjuta] language-support-cpp-java: improved stability of cxxparser.



commit 7a65a2e36b463e1e8e03b0467b6d29c549298d51
Author: Massimo Corà <mcora src gnome org>
Date:   Wed Dec 9 00:39:14 2009 +0100

    language-support-cpp-java: improved stability of cxxparser.
    
    Trying to make it compile under x64 by using -fPIC.

 .../cxxparser/Makefile.am                          |    3 ++-
 .../cxxparser/engine-parser.cpp                    |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/language-support-cpp-java/cxxparser/Makefile.am b/plugins/language-support-cpp-java/cxxparser/Makefile.am
index 0e204a0..45af559 100644
--- a/plugins/language-support-cpp-java/cxxparser/Makefile.am
+++ b/plugins/language-support-cpp-java/cxxparser/Makefile.am
@@ -10,7 +10,8 @@ AM_CPPFLAGS = \
 	$(LIBANJUTA_CFLAGS) \
   	-lc \
 	-DDEBUG \
-	-DCURR_DIR=\"`pwd`\"
+	-DCURR_DIR=\"`pwd`\" \
+	-fPIC
 
 AM_CFLAGS =\
 	 -Wall\
diff --git a/plugins/language-support-cpp-java/cxxparser/engine-parser.cpp b/plugins/language-support-cpp-java/cxxparser/engine-parser.cpp
index e7b84df..e77e78b 100644
--- a/plugins/language-support-cpp-java/cxxparser/engine-parser.cpp
+++ b/plugins/language-support-cpp-java/cxxparser/engine-parser.cpp
@@ -415,7 +415,7 @@ EngineParser::switchTypedefToStruct (IAnjutaIterable * test,
 	IAnjutaIterable *new_struct;
 
 	cout << "Switching typedef to struct " << endl;
-	ianjuta_symbol_manager_get_parent_scope (_dbe, node, NULL, sym_info, NULL);
+	new_struct = ianjuta_symbol_manager_get_parent_scope (_dbe, node, NULL, sym_info, NULL);
 	                                         
 	if (new_struct != NULL)
 	{



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]