summaryrefslogtreecommitdiff
path: root/src/common.h
blob: 7f1e41c343033c75022b17a3bfa9b70e13b4e65a (plain)
1
2
3
4
5
6
7
8
9
#include <stdlib.h>
#include <inttypes.h>
#include <stdio.h>
#include <errno.h>
#include <uthash.h>
#include "eli.h"

#define HASH_FOR(i, head, field) for ((i) = (head); (i); (i) = (i)->field.next)
#define errorf(fmt, ...) (fprintf(stderr, fmt, ##__VA_ARGS__))