From ee0db9cff1c52794dd334a00cdf70b1ac4f7ced3 Mon Sep 17 00:00:00 2001 From: Jonathan Hanks <jonathan.hanks@ligo.org> Date: Tue, 10 Nov 2020 19:29:59 -0600 Subject: [PATCH] More work on the systab parser for local_dc --- src/local_dc/local_dc_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/local_dc/local_dc_utils.h b/src/local_dc/local_dc_utils.h index 2ee27cd50..97ecde713 100644 --- a/src/local_dc/local_dc_utils.h +++ b/src/local_dc/local_dc_utils.h @@ -34,11 +34,11 @@ extract_models_from_table( FILE* f, char* dest, int size ) while ( fgets( buffer, sizeof( buffer ), f ) != NULL ) { buffer[ sizeof( buffer ) - 1 ] = '\0'; - /* get rid of trailing \n */ + /* end the line at \n or comments */ cur = buffer; while ( *cur ) { - if ( *cur == '\n' ) + if ( *cur == '\n' || *cur == ';' || *cur == '#' ) { *cur = '\0'; break; -- GitLab