finish migration away from config.h
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user