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
ali@0
     1
#ifndef TESTCASE_PARSER_H
ali@0
     2
#define TESTCASE_PARSER_H
ali@0
     3
ali@6
     4
#include <glib.h>
ali@5
     5
#include <bl/bl.h>
ali@0
     6
ali@0
     7
typedef struct {
ali@0
     8
    char *filename;
ali@0
     9
    char *contents;
ali@6
    10
    GString *flag;
ali@0
    11
    size_t pos;
ali@0
    12
    char *tag;
ali@0
    13
    char *tag_text;
ali@0
    14
} TestcaseParser;
ali@0
    15
ali@0
    16
const char *testcase_parser_get_flag(TestcaseParser *parser);
ali@6
    17
gboolean testcase_parser_get_next_tag(TestcaseParser *parser,const char **tag,
ali@0
    18
  const char **text);
ali@6
    19
gboolean testcase_parser_at_eof(TestcaseParser *parser);
ali@0
    20
TestcaseParser *testcase_parser_new_from_file(const char *filename);
ali@0
    21
void testcase_parser_free(TestcaseParser *parser);
ali@0
    22
ali@0
    23
#endif	/* TESTCASE_PARSER_H */