From: Iain Patterson Date: Fri, 22 Jul 2016 14:46:16 +0000 (+0100) Subject: Define for default parameter string. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=fa260da979e279ba9eb8177fc499b0a618014758;p=nssm.git Define for default parameter string. --- diff --git a/settings.cpp b/settings.cpp index a144f3c..55e9dfe 100644 --- a/settings.cpp +++ b/settings.cpp @@ -3,6 +3,8 @@ /* Affinity. */ #define NSSM_AFFINITY_ALL _T("All") +/* Default value. */ +#define NSSM_DEFAULT_STRING _T("Default") extern const TCHAR *exit_action_strings[]; extern const TCHAR *startup_strings[]; @@ -12,7 +14,7 @@ extern const TCHAR *hook_action_strings[]; /* Does the parameter refer to the default value of the setting? */ static inline int is_default(const TCHAR *value) { - return (str_equiv(value, _T("default")) || str_equiv(value, _T("*")) || ! value[0]); + return (str_equiv(value, NSSM_DEFAULT_STRING) || str_equiv(value, _T("*")) || ! value[0]); } static int value_from_string(const TCHAR *name, value_t *value, const TCHAR *string) {