mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-22 19:24:14 +00:00
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:
1 parent
0e79051b10
commit
cb463b4e52
3 files changed
+227
-124
No files matched your search
+5
-1
@@ -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--;
|
||||
|
||||
Reference in new issue
Block a user