summaryrefslogtreecommitdiff
path: root/parse.h
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2016-01-29 09:52:04 -0800
committerDan Nicholson <dbn.lists@gmail.com>2016-02-26 08:56:52 -0800
commit1c564a358303a8396dc71cc92d79bd0ac304b15c (patch)
tree684fccc480d3643ce8d3c4d33fea267a6485938a /parse.h
parente6d33fb1294266ff0302fcae23ef89e1d523910d (diff)
downloadpkg-config-1c564a358303a8396dc71cc92d79bd0ac304b15c.tar.gz
Only unquote --variable when it appears quoted
The change to unquote values in the --variable output broke users that had shell special characters in the variable. Instead, only unquote if the value starts with " or '. A larger fix to do a full unquote, split and escaping like --cflags/--libs is possible, but that might break the old semantics even further. Add a new function, parse_package_variable(), to handle that logic. https://bugs.freedesktop.org/show_bug.cgi?id=93284
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.h b/parse.h
index 4ec84aa..db1bf86 100644
--- a/parse.h
+++ b/parse.h
@@ -29,6 +29,8 @@ Package *parse_package_file (const char *key, const char *path,
GList *parse_module_list (Package *pkg, const char *str, const char *path);
+char *parse_package_variable (Package *pkg, const char *variable);
+
#endif