Rename free procedures

This commit is contained in:
2024-10-26 19:36:42 +01:00
parent e508cc62f5
commit 0ecab6c142
5 changed files with 40 additions and 41 deletions

View File

@@ -30,7 +30,7 @@ static void a_is_unchanged(void)
ASSERT_EQ(REGEX_TERM_LITERAL, t.contents[0].contents[0].type);
ASSERT_EQ('a', t.contents[0].contents[0].literal);
regex_free_children(&t);
regex_free(&t);
}
static void abc_is_unchanged(void)
@@ -63,7 +63,7 @@ static void abc_is_unchanged(void)
ASSERT_EQ(REGEX_TERM_LITERAL, t.contents[0].contents[2].type);
ASSERT_EQ('c', t.contents[0].contents[2].literal);
regex_free_children(&t);
regex_free(&t);
}
static void a_star_is_unchanged(void)
@@ -88,7 +88,7 @@ static void a_star_is_unchanged(void)
ASSERT_EQ(REGEX_TERM_LITERAL, t.contents[0].contents[0].type);
ASSERT_EQ('a', t.contents[0].contents[0].literal);
regex_free_children(&t);
regex_free(&t);
}
static void a_or_b_or_c_is_unchanged(void)
@@ -120,7 +120,7 @@ static void a_or_b_or_c_is_unchanged(void)
ASSERT_EQ(literals[i], t.contents[i].contents[0].literal);
}
regex_free_children(&t);
regex_free(&t);
}
static void subexpr_a_is_unchanged(void)
@@ -163,7 +163,7 @@ static void subexpr_a_is_unchanged(void)
ASSERT_EQ(REGEX_TERM_LITERAL, inner->contents[0].contents[0].type);
ASSERT_EQ('a', inner->contents[0].contents[0].literal);
regex_free_children(&t);
regex_free(&t);
}
static void a_plus_becomes_subexpr_aa_star(void)
@@ -201,7 +201,7 @@ static void a_plus_becomes_subexpr_aa_star(void)
ASSERT_EQ(REGEX_TERM_LITERAL, inner->contents[0].contents[1].type);
ASSERT_EQ('a', inner->contents[0].contents[1].literal);
regex_free_children(&t);
regex_free(&t);
}
static void a_qmark_becomes_subexpr_empty_or_a(void)
@@ -240,7 +240,7 @@ static void a_qmark_becomes_subexpr_empty_or_a(void)
ASSERT_EQ(REGEX_TERM_LITERAL, inner->contents[1].contents[0].type);
ASSERT_EQ('a', inner->contents[1].contents[0].literal);
regex_free_children(&t);
regex_free(&t);
}
static void class_abc_becomes_subexpr_a_or_b_or_c(void)
@@ -292,7 +292,7 @@ static void class_abc_becomes_subexpr_a_or_b_or_c(void)
ASSERT_EQ(REGEX_TERM_LITERAL, inner->contents[2].contents[0].type);
ASSERT_EQ('c', inner->contents[2].contents[0].literal);
regex_free_children(&t);
regex_free(&t);
}
int main(void)