[anjuta] libanjuta: Remove quote in module names
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] libanjuta: Remove quote in module names
- Date: Wed, 24 Nov 2010 21:40:42 +0000 (UTC)
commit 5211d457df577455e9f4cb14a2bf1c6a1c53a957
Author: Sébastien Granjoux <seb sfo free fr>
Date: Wed Nov 24 19:40:46 2010 +0100
libanjuta: Remove quote in module names
libanjuta/anjuta-token.c | 10 +++++++++-
plugins/am-project/tests/acinit.at | 28 ++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 1 deletions(-)
---
diff --git a/libanjuta/anjuta-token.c b/libanjuta/anjuta-token.c
index 868eeb9..86c7cef 100644
--- a/libanjuta/anjuta-token.c
+++ b/libanjuta/anjuta-token.c
@@ -1347,14 +1347,22 @@ evaluate_raw_token (AnjutaToken *token, gpointer user_data)
anjuta_token_evaluate_token (token, value, TRUE);
}
+
+static void
+evaluate_token (AnjutaToken *token, gpointer user_data)
+{
+ GString *value = (GString *)user_data;
+ anjuta_token_evaluate_token (token, value, FALSE);
+}
+
gchar *
anjuta_token_evaluate (AnjutaToken *token)
{
GString *value = g_string_new (NULL);
- anjuta_token_foreach_content (token, evaluate_raw_token, value);
+ anjuta_token_foreach_content (token, evaluate_token, value);
/* Return NULL and free data for an empty string */
return g_string_free (value, *(value->str) == '\0');
diff --git a/plugins/am-project/tests/acinit.at b/plugins/am-project/tests/acinit.at
index 17fd03d..1462abf 100644
--- a/plugins/am-project/tests/acinit.at
+++ b/plugins/am-project/tests/acinit.at
@@ -18,6 +18,9 @@ AT_CHECK([diff -b output expect])
AT_PARSER_CHECK([load empty \
list])
AT_CHECK([diff -b output expect])
+
+
+
AT_DATA([expect],
[[PROPERTY (Name): empty2
GROUP (0): empty
@@ -30,6 +33,9 @@ AT_CHECK([diff -b output expect])
AT_PARSER_CHECK([load empty \
list])
AT_CHECK([diff -b output expect])
+
+
+
AT_DATA([expect],
[[PROPERTY (Name): empty2
PROPERTY (Version): 0.1
@@ -43,6 +49,9 @@ AT_CHECK([diff -b output expect])
AT_PARSER_CHECK([load empty \
list])
AT_CHECK([diff -b output expect])
+
+
+
AT_DATA([expect],
[[PROPERTY (Name): empty2
PROPERTY (Version): 0.1
@@ -57,4 +66,23 @@ AT_CHECK([diff -b output expect])
AT_PARSER_CHECK([load empty \
list])
AT_CHECK([diff -b output expect])
+
+
+
+AS_MKDIR_P([simple])
+AT_DATA([simple/configure.ac],
+[[AC_INIT([simple])
+AC_CONFIG_FILES(Makefile)
+]])
+AT_DATA([simple/Makefile.am],
+[[
+]])
+AT_DATA([expect],
+[[PROPERTY (Name): simple
+ GROUP (0): simple
+]])
+AT_PARSER_CHECK([load simple \
+ list])
+AT_CHECK([diff -b output expect])
+
AT_CLEANUP
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]