aboutsummaryrefslogtreecommitdiffstats
path: root/libnormalform_free_expression__.c
blob: d9f1a471e576c256fb4bd408cb623f21418f5092 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* See LICENSE file for copyright and license details. */
#include "common.h"
#ifndef TEST


void
(libnormalform_free_expression__)(struct expression *this)
{
	if (!this || --this->refcount)
		return;
	if (this->terms) {
		while (this->nterms)
			libnormalform_free_expression__(this->terms[--this->nterms]);
		free(this->terms);
	}
	free(this);
}


#else


CONST int
main(void)
{
	return 0; /* indirectly tested */
}


#endif