#include <stdarg.h>
#include <stdio.h>
#include "apfl.h"
#include "internal.h"
void
apfl_print_indented(unsigned indent, FILE *f, const char* fmt, ...)
{
va_list ap;
va_start(ap, fmt);
while (indent--) {
fputs(" ", f);
}
vfprintf(f, fmt, ap);
va_end(ap);
bool
apfl_refcount_dec(unsigned *rc)
if (rc == 0) {
return false;
return --(*rc) == 0;