Skip to content

Commit a18e3ca

Browse files
committed
Move compiler macro definitions into include/prism/attribute
1 parent c03b69b commit a18e3ca

File tree

15 files changed

+25
-25
lines changed

15 files changed

+25
-25
lines changed

include/prism/arena.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#ifndef PRISM_ARENA_H
77
#define PRISM_ARENA_H
88

9-
#include "prism/exported.h"
10-
#include "prism/flex_array.h"
11-
#include "prism/force_inline.h"
9+
#include "prism/attribute/exported.h"
10+
#include "prism/attribute/flex_array.h"
11+
#include "prism/attribute/force_inline.h"
1212

1313
#include <stddef.h>
1414

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file align.h
2+
* @file attribute/align.h
33
*
44
* Alignment macros used throughout the prism library.
55
*/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file exported.h
2+
* @file attribute/exported.h
33
*
44
* Macro definitions for make functions publically visible.
55
*/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file flex_array.h
2+
* @file attribute/flex_array.h
33
*
44
* Macro definitions for working with flexible array members.
55
*/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file force_inline.h
2+
* @file attribute/force_inline.h
33
*
44
* Macro definitions for forcing a function to be inlined at every call site.
55
*/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file format.h
2+
* @file attribute/format.h
33
*
44
* Macro definition for specifying that a function accepts variadic parameters
55
* that look like printf format strings.

include/prism/buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef PRISM_BUFFER_H
77
#define PRISM_BUFFER_H
88

9-
#include "prism/exported.h"
9+
#include "prism/attribute/exported.h"
1010

1111
#include <stdbool.h>
1212
#include <stddef.h>

include/prism/defines.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
#ifndef PRISM_DEFINES_H
1010
#define PRISM_DEFINES_H
1111

12-
#include "prism/align.h"
12+
#include "prism/attribute/align.h"
13+
#include "prism/attribute/exported.h"
14+
#include "prism/attribute/flex_array.h"
15+
#include "prism/attribute/force_inline.h"
16+
#include "prism/attribute/format.h"
1317
#include "prism/allocator.h"
14-
#include "prism/exported.h"
15-
#include "prism/flex_array.h"
16-
#include "prism/force_inline.h"
17-
#include "prism/format.h"
1818

1919
#include <ctype.h>
2020
#include <limits.h>

include/prism/internal/arena.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#ifndef PRISM_INTERNAL_ARENA_H
77
#define PRISM_INTERNAL_ARENA_H
88

9+
#include "prism/attribute/exported.h"
910
#include "prism/arena.h"
10-
#include "prism/exported.h"
1111

1212
#include <stddef.h>
1313
#include <string.h>

include/prism/internal/buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define PRISM_INTERNAL_BUFFER_H
88

99
#include "prism/buffer.h"
10-
#include "prism/format.h"
10+
#include "prism/attribute/format.h"
1111

1212
#include <stdint.h>
1313

0 commit comments

Comments
 (0)