Make optional modules.conf that allows you to pick the module load order

and to exclude some modules. (see example in trunk/conf)

Make ';' a valid comment in config files 
Interpret a line in config files beginning with "__END__" as eof



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@608 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2006-02-14 16:26:24 +00:00
parent 0e79051b10
commit cb463b4e52
3 changed files with 228 additions and 125 deletions
+5 -1
View File
@@ -101,10 +101,14 @@ SWITCH_DECLARE(int) switch_config_next_pair(switch_config *cfg, char **var, char
continue;
}
if (**var == '#' || **var == '\n' || **var == '\r') {
if (**var == '#' || **var == ';' || **var == '\n' || **var == '\r') {
continue;
}
if (!strncmp(*var, "__END__", 7)) {
break;
}
if ((end = strchr(*var, '#'))) {
*end = '\0';
end--;