define output handles in macros

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
add tap_note

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
mark variables static

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
print diag output to stderr outside TODOs

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
flush after every output

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
print test name before TODO directive

According to http://testanything.org/tap-specification.html the test
description should come between the test number and any directive.

reverts 0ecae3a63ff8a2b19cac54da2c716b81ade2f5e1

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
add file/line information to failed tests

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
add basic test

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
add functions to expose internal variables

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>