From 610cb83419d4dd741002b5af19b47f16110bf673 Mon Sep 17 00:00:00 2001 From: David Goldblatt Date: Mon, 10 Apr 2017 17:06:53 -0700 Subject: [PATCH] Header refactoring: break out qr.h dependencies --- include/jemalloc/internal/jemalloc_internal.h.in | 1 - include/jemalloc/internal/ql.h | 2 ++ test/unit/qr.c | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/jemalloc/internal/jemalloc_internal.h.in b/include/jemalloc/internal/jemalloc_internal.h.in index 532af2b8..fdeda7b6 100644 --- a/include/jemalloc/internal/jemalloc_internal.h.in +++ b/include/jemalloc/internal/jemalloc_internal.h.in @@ -180,7 +180,6 @@ static const bool have_percpu_arena = #include #endif -#include "jemalloc/internal/qr.h" #include "jemalloc/internal/ql.h" /* diff --git a/include/jemalloc/internal/ql.h b/include/jemalloc/internal/ql.h index b3a428c7..80290407 100644 --- a/include/jemalloc/internal/ql.h +++ b/include/jemalloc/internal/ql.h @@ -1,6 +1,8 @@ #ifndef JEMALLOC_INTERNAL_QL_H #define JEMALLOC_INTERNAL_QL_H +#include "jemalloc/internal/qr.h" + /* List definitions. */ #define ql_head(a_type) \ struct { \ diff --git a/test/unit/qr.c b/test/unit/qr.c index 80c5c27d..271a1095 100644 --- a/test/unit/qr.c +++ b/test/unit/qr.c @@ -1,5 +1,7 @@ #include "test/jemalloc_test.h" +#include "jemalloc/internal/qr.h" + /* Number of ring entries, in [2..26]. */ #define NENTRIES 9 /* Split index, in [1..NENTRIES). */