From 42dc5eadfc23669ecc3ed9bbfdf7b48c08796fa6 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 17 Jul 2004 01:39:54 +0000 Subject: Patch from Bruce Dodson to help with some recursive property definitions, substituting a blank for the recursive reference rather than leaving it. --- include/PropSet.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/PropSet.h') diff --git a/include/PropSet.h b/include/PropSet.h index 2766b542a..afd076c28 100644 --- a/include/PropSet.h +++ b/include/PropSet.h @@ -39,6 +39,7 @@ protected: return ret; } static bool IncludesVar(const char *value, const char *key); + public: PropSet *superPS; PropSet(); @@ -49,7 +50,7 @@ public: void SetMultiple(const char *s); SString Get(const char *key); SString GetExpanded(const char *key); - SString Expand(const char *withVars, int maxExpands=100); + SString Expand(const char *withVars, int maxExpands=100, const char *blankVar=NULL); int GetInt(const char *key, int defaultValue=0); SString GetWild(const char *keybase, const char *filename); SString GetNewExpand(const char *keybase, const char *filename=""); -- cgit v1.2.3