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:
Anthony Minessale 2007-06-07 05:30:09 +00:00
parent 19bf0794a7
commit 5b5efe5567
2 changed files with 5 additions and 2 deletions

View File

@ -143,7 +143,10 @@ static void *zap_analog_channel_run(zap_thread_t *me, void *obj)
zap_set_flag_locked(chan, ZAP_CHANNEL_INTHREAD); zap_set_flag_locked(chan, ZAP_CHANNEL_INTHREAD);
teletone_init_session(&ts, 0, teletone_handler, dt_buffer); teletone_init_session(&ts, 0, teletone_handler, dt_buffer);
ts.rate = 8000; ts.rate = 8000;
#if 0
ts.debug = 1;
ts.debug_stream = stdout;
#endif
zap_channel_command(chan, ZAP_COMMAND_GET_INTERVAL, &interval); zap_channel_command(chan, ZAP_COMMAND_GET_INTERVAL, &interval);
zap_buffer_set_loops(dt_buffer, -1); zap_buffer_set_loops(dt_buffer, -1);

View File

@ -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 = '\0';
end--; end--;
} else if ((end = strchr(*var, '\n')) != 0) { } else if ((end = strchr(*var, '\n')) != 0) {