diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-24 22:45:15 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-24 22:45:15 +0000 |
commit | 889ce1c0e880478f7269c0751675e8e69ba6ffc0 (patch) | |
tree | 3f0f4640d39f272360a860fb49ea3a284b99f757 /config.c | |
parent | ca7d7865a73c71dbd4e180acb2f71892816bd30e (diff) |
split up string/time functions into separate header files
make more LOW_MEMORY optimizations, and ensure that a non-inline version of each inlinable function is always available (for external modules)
move compiler-specific stuff into a separate header file
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6008 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'config.c')
-rwxr-xr-x | config.c | 30 |
1 files changed, 0 insertions, 30 deletions
@@ -82,36 +82,6 @@ struct ast_config { int max_include_level; }; -int ast_true(const char *s) -{ - if (!s) - return 0; - /* Determine if this is a true value */ - if (!strcasecmp(s, "yes") || - !strcasecmp(s, "true") || - !strcasecmp(s, "y") || - !strcasecmp(s, "t") || - !strcasecmp(s, "1") || - !strcasecmp(s, "on")) - return -1; - return 0; -} - -int ast_false(const char *s) -{ - if (!s) - return 0; - /* Determine if this is a false value */ - if (!strcasecmp(s, "no") || - !strcasecmp(s, "false") || - !strcasecmp(s, "n") || - !strcasecmp(s, "f") || - !strcasecmp(s, "0") || - !strcasecmp(s, "off")) - return -1; - return 0; -} - struct ast_variable *ast_variable_new(const char *name, const char *value) { struct ast_variable *variable; |