Separate hed_expr private fields from public fields
commit6c3b693c2afb036a335e7ff0d6391e63163b3bf8
authorPetr Tesarik <petr@tesarici.cz>
Tue, 16 Oct 2012 21:22:17 +0000 (16 23:22 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Tue, 16 Oct 2012 21:22:17 +0000 (16 23:22 +0200)
tree4a42827ab5600cdab68534fc3cb8485e7dc22163
parent335c46e0fecbc42e50804061036842aa373a263a
Separate hed_expr private fields from public fields

Note that the public fields are not at the beginning of the private
structure. This is done, because having atoms at the beginning of
the structure improves the list handling a tiny bit.

However, it also means that the pointer returned by hed_expr_new()
cannot be directly freed with a call to free(). This is in fact good,
as it may help debug wrong uses of the library...
libhed/expr.c
libhed/expr.h