Refactor: macro constants -> config.h

This commit is contained in:
olemorud
2023-04-25 00:22:43 +02:00
parent 2eeaa2171f
commit e0857626d6
5 changed files with 43 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
#include "util.h"
#include "config.h"
#include <err.h> // err
#include <errno.h> // errno
@@ -8,8 +9,6 @@
#include <stdio.h> // fprintf
#include <stdlib.h> // malloc, realloc, calloc
#define ERROR_CONTEXT_LEN 80
void* malloc_or_die(size_t size)
{
void* result = malloc(size);