finish migration away from config.h

This commit is contained in:
Daniel Micay 2018-11-16 15:25:35 -05:00
parent 06149aa156
commit f3623e1f2b
6 changed files with 38 additions and 33 deletions

View file

@ -1,3 +1,12 @@
CONFIG_SLAB_CANARY := true
ifeq (,$(filter $(CONFIG_SLAB_CANARY),true false))
$(error CONFIG_SLAB_CANARY must be true or false)
endif
CPPFLAGS += \
-DSLAB_CANARY=$(CONFIG_SLAB_CANARY)
EXECUTABLES := \
offset

View file

@ -1,9 +1,8 @@
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "../config.h"
static unsigned size_classes[] = {
/* large */ 4 * 1024 * 1024,
/* 0 */ 0,