mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +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:
+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