test/harness/testcaseparser.h
author ali <ali@juiblex.co.uk>
Sat Oct 05 21:37:31 2013 +0100 (2013-10-05)
changeset 99 783eff3047bc
parent 5 f600b0d1fc5d
permissions -rw-r--r--
Fix bug #21: False positive: Opening slanted double-quote, followed by single slanted quote, should be accepted by BL
     1 #ifndef TESTCASE_PARSER_H
     2 #define TESTCASE_PARSER_H
     3 
     4 #include <glib.h>
     5 #include <bl/bl.h>
     6 
     7 typedef struct {
     8     char *filename;
     9     char *contents;
    10     GString *flag;
    11     size_t pos;
    12     char *tag;
    13     char *tag_text;
    14 } TestcaseParser;
    15 
    16 const char *testcase_parser_get_flag(TestcaseParser *parser);
    17 gboolean testcase_parser_get_next_tag(TestcaseParser *parser,const char **tag,
    18   const char **text);
    19 gboolean testcase_parser_at_eof(TestcaseParser *parser);
    20 TestcaseParser *testcase_parser_new_from_file(const char *filename);
    21 void testcase_parser_free(TestcaseParser *parser);
    22 
    23 #endif	/* TESTCASE_PARSER_H */