aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_test_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-06-20 09:02:43 +0000
committerChristian Grothoff <christian@grothoff.org>2013-06-20 09:02:43 +0000
commit566b7539fcaf9c455da665cb641016d2cfbb1b47 (patch)
treeeb12baa08d99313d6da7eb8c1be17c5e447f1586 /src/regex/regex_test_lib.h
parentde9409f80dbfc5cc61a28316b271600e9da95cdc (diff)
downloadgnunet-566b7539fcaf9c455da665cb641016d2cfbb1b47.tar.gz
gnunet-566b7539fcaf9c455da665cb641016d2cfbb1b47.zip
renaming symbols from libgnunetregextest to have the prefix REGEX_TEST
Diffstat (limited to 'src/regex/regex_test_lib.h')
-rw-r--r--src/regex/regex_test_lib.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/regex/regex_test_lib.h b/src/regex/regex_test_lib.h
index 107c2ffce..87dcadf72 100644
--- a/src/regex/regex_test_lib.h
+++ b/src/regex/regex_test_lib.h
@@ -25,8 +25,8 @@
25 * @author Bertlomiej Polot 25 * @author Bertlomiej Polot
26 */ 26 */
27 27
28#ifndef REGEX_ITERNAL_TEST_LIB_H 28#ifndef REGEX_INTERNAL_TEST_LIB_H
29#define REGEX_ITERNAL_TEST_LIB_H 29#define REGEX_INTERNAL_TEST_LIB_H
30 30
31#include "regex_internal_lib.h" 31#include "regex_internal_lib.h"
32 32
@@ -46,20 +46,20 @@ extern "C"
46 * @return A string with a single regex that matches any of the original regexes 46 * @return A string with a single regex that matches any of the original regexes
47 */ 47 */
48char * 48char *
49REGEX_ITERNAL_combine(char * const regexes[]); 49REGEX_TEST_combine(char * const regexes[]);
50 50
51 51
52/** 52/**
53 * Read a set of regexes from a file, one per line and return them in an array 53 * Read a set of regexes from a file, one per line and return them in an array
54 * suitable for REGEX_ITERNAL_combine. 54 * suitable for REGEX_TEST_combine.
55 * The array must be free'd using REGEX_ITERNAL_free_from_file. 55 * The array must be free'd using REGEX_TEST_free_from_file.
56 * 56 *
57 * @param filename Name of the file containing the regexes. 57 * @param filename Name of the file containing the regexes.
58 * 58 *
59 * @return A newly allocated, NULL terminated array of regexes. 59 * @return A newly allocated, NULL terminated array of regexes.
60 */ 60 */
61char ** 61char **
62REGEX_ITERNAL_read_from_file (const char *filename); 62REGEX_TEST_read_from_file (const char *filename);
63 63
64 64
65/** 65/**
@@ -68,7 +68,7 @@ REGEX_ITERNAL_read_from_file (const char *filename);
68 * @param regexes NULL-terminated array of regexes. 68 * @param regexes NULL-terminated array of regexes.
69 */ 69 */
70void 70void
71REGEX_ITERNAL_free_from_file (char **regexes); 71REGEX_TEST_free_from_file (char **regexes);
72 72
73 73
74/** 74/**
@@ -85,7 +85,7 @@ REGEX_ITERNAL_free_from_file (char **regexes);
85 * needs to be freed, otherwise. 85 * needs to be freed, otherwise.
86 */ 86 */
87char * 87char *
88REGEX_ITERNAL_generate_random_regex (size_t rx_length, char *matching_str); 88REGEX_TEST_generate_random_regex (size_t rx_length, char *matching_str);
89 89
90 90
91/** 91/**
@@ -98,30 +98,30 @@ REGEX_ITERNAL_generate_random_regex (size_t rx_length, char *matching_str);
98 * @return random string that needs to be freed. 98 * @return random string that needs to be freed.
99 */ 99 */
100char * 100char *
101REGEX_ITERNAL_generate_random_string (size_t max_len); 101REGEX_TEST_generate_random_string (size_t max_len);
102 102
103 103
104/** 104/**
105 * Options for graph creation function 105 * Options for graph creation function
106 * REGEX_ITERNAL_automaton_save_graph. 106 * REGEX_TEST_automaton_save_graph.
107 */ 107 */
108enum REGEX_ITERNAL_GraphSavingOptions 108enum REGEX_TEST_GraphSavingOptions
109{ 109{
110 /** 110 /**
111 * Default. Do nothing special. 111 * Default. Do nothing special.
112 */ 112 */
113 REGEX_ITERNAL_GRAPH_DEFAULT = 0, 113 REGEX_TEST_GRAPH_DEFAULT = 0,
114 114
115 /** 115 /**
116 * The generated graph will include extra information such as the NFA states 116 * The generated graph will include extra information such as the NFA states
117 * that were used to generate the DFA state. 117 * that were used to generate the DFA state.
118 */ 118 */
119 REGEX_ITERNAL_GRAPH_VERBOSE = 1, 119 REGEX_TEST_GRAPH_VERBOSE = 1,
120 120
121 /** 121 /**
122 * Enable graph coloring. Will color each SCC in a different color. 122 * Enable graph coloring. Will color each SCC in a different color.
123 */ 123 */
124 REGEX_ITERNAL_GRAPH_COLORING = 2 124 REGEX_TEST_GRAPH_COLORING = 2
125}; 125};
126 126
127 127
@@ -134,9 +134,9 @@ enum REGEX_ITERNAL_GraphSavingOptions
134 * mode 134 * mode
135 */ 135 */
136void 136void
137REGEX_ITERNAL_automaton_save_graph (struct REGEX_ITERNAL_Automaton *a, 137REGEX_TEST_automaton_save_graph (struct REGEX_INTERNAL_Automaton *a,
138 const char *filename, 138 const char *filename,
139 enum REGEX_ITERNAL_GraphSavingOptions options); 139 enum REGEX_TEST_GraphSavingOptions options);
140 140
141 141
142 142