[anjuta/cxxparser] cxxparser: generalized use of sample-db path



commit 02016930897f29ae4295e870f086610116b46e40
Author: Massimo Corà <mcora src gnome org>
Date:   Fri Oct 30 00:22:17 2009 +0100

    cxxparser: generalized use of sample-db path

 plugins/symbol-db/cxxparser/Makefile.am |    3 ++-
 plugins/symbol-db/cxxparser/main.c      |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/symbol-db/cxxparser/Makefile.am b/plugins/symbol-db/cxxparser/Makefile.am
index edf7e63..dfb0a1d 100644
--- a/plugins/symbol-db/cxxparser/Makefile.am
+++ b/plugins/symbol-db/cxxparser/Makefile.am
@@ -10,7 +10,8 @@ AM_CPPFLAGS = \
 	$(LIBANJUTA_CFLAGS) \
 	$(PLUGIN_SYMBOL_DB_CFLAGS) \
   	-lc \
-	-DDEBUG
+	-DDEBUG \
+	-DCURR_DIR=\"`pwd`\"
 
 AM_CFLAGS =\
 	 -Wall\
diff --git a/plugins/symbol-db/cxxparser/main.c b/plugins/symbol-db/cxxparser/main.c
index 88c0b7e..591070f 100644
--- a/plugins/symbol-db/cxxparser/main.c
+++ b/plugins/symbol-db/cxxparser/main.c
@@ -28,7 +28,7 @@
 #include "engine-parser.h"
 
 
-#define SAMPLE_DB_ABS_PATH "/home/pescio/gitroot/anjuta/plugins/symbol-db/cxxparser/sample-db/"
+#define SAMPLE_DB_ABS_PATH CURR_DIR"/sample-db/"
 #define ANJUTA_TAGS "anjuta-tags"
 
 
@@ -219,6 +219,7 @@ int	main (int argc, char *argv[])
 
 	main_loop = g_main_loop_new (NULL, FALSE);
 
+	g_message ("SAMPLE_DB_ABS_PATH %s", SAMPLE_DB_ABS_PATH);
  	g_test_init (&argc, &argv, NULL);
 
 	g_test_add_func ("/simple_c/test-simple-struct", test_simple_struct);



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