make comments that are not on the beginning of the line require a double char ;; <-- like this
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@236 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
19bf0794a7
commit
5b5efe5567
|
@ -143,7 +143,10 @@ static void *zap_analog_channel_run(zap_thread_t *me, void *obj)
|
|||
zap_set_flag_locked(chan, ZAP_CHANNEL_INTHREAD);
|
||||
teletone_init_session(&ts, 0, teletone_handler, dt_buffer);
|
||||
ts.rate = 8000;
|
||||
|
||||
#if 0
|
||||
ts.debug = 1;
|
||||
ts.debug_stream = stdout;
|
||||
#endif
|
||||
zap_channel_command(chan, ZAP_COMMAND_GET_INTERVAL, &interval);
|
||||
zap_buffer_set_loops(dt_buffer, -1);
|
||||
|
||||
|
|
|
@ -157,7 +157,7 @@ int zap_config_next_pair(zap_config_t *cfg, char **var, char **val)
|
|||
}
|
||||
|
||||
|
||||
if ((end = strchr(*var, '#')) != 0 || (end = strchr(*var, ';')) != 0) {
|
||||
if (((end = strchr(*var, '#')) || (end = strchr(*var, ';'))) && *(end+1) == *end) {
|
||||
*end = '\0';
|
||||
end--;
|
||||
} else if ((end = strchr(*var, '\n')) != 0) {
|
||||
|
|
Loading…
Reference in New Issue