summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-06-24 22:45:15 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-06-24 22:45:15 +0000
commit3e44b65090f3f2b5b3e0c1e8e11bf34a1b01afc8 (patch)
tree3f0f4640d39f272360a860fb49ea3a284b99f757 /config.c
parent3ddc33f6743c21878afc0632f66eb1c7b880326e (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: https://origsvn.digium.com/svn/asterisk/trunk@6008 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'config.c')
-rwxr-xr-xconfig.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/config.c b/config.c
index 9c30eac61..7800b71e6 100755
--- a/config.c
+++ b/config.c
@@ -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;