wrap creating and initializing objects (structures) into functions and use them in the code.
v2. make create_.* functions consistent (no func will return NULL)
87fab2e scanner: refactor creating objects
src/scanner.c | 164 ++++++++++++++++++++++++++++++++++++++-------------------
1 file changed, 111 insertions(+), 53 deletions(-)
Upstream: cgit.freedesktop.org