X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=settings.cpp;h=55e9dfe1958ae9f0cd85b01117bf41e5efe7d39a;hb=fa260da979e279ba9eb8177fc499b0a618014758;hp=d978909f758ec2ad6af0cb09cac39e0e5efe4f49;hpb=08eaf3dcc1a68773d5ae340143ad890fdea8648a;p=nssm.git diff --git a/settings.cpp b/settings.cpp index d978909..55e9dfe 100644 --- a/settings.cpp +++ b/settings.cpp @@ -3,14 +3,18 @@ /* 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[]; extern const TCHAR *priority_strings[]; +extern const TCHAR *hook_event_strings[]; +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) {