aboutsummaryrefslogtreecommitdiff
path: root/allocator.h
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2022-01-16 10:41:49 +0100
committerThomas Schmucker <ts@its1.de>2022-01-16 10:41:49 +0100
commitfb0e8a6fa561cd2a518b6a65f50e8179a19985cc (patch)
treef9784621dbd6dcfd9faa8ca3194dfac826d8aa2a /allocator.h
parent2a32335f1ff91e96fd6a09819317f77d6b8bf285 (diff)
downloaddata-structures-fb0e8a6fa561cd2a518b6a65f50e8179a19985cc.tar.gz
data-structures-fb0e8a6fa561cd2a518b6a65f50e8179a19985cc.tar.bz2
data-structures-fb0e8a6fa561cd2a518b6a65f50e8179a19985cc.zip
feat: überflüssig Klammern bei sizeof-Operator entfernt
Diffstat (limited to 'allocator.h')
-rw-r--r--allocator.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/allocator.h b/allocator.h
index fc28833..d47af52 100644
--- a/allocator.h
+++ b/allocator.h
@@ -1,5 +1,4 @@
1#ifndef ITS1_ALLOCATOR_H_INCLUDED 1#pragma once
2#define ITS1_ALLOCATOR_H_INCLUDED
3 2
4#include <stddef.h> /* size_t */ 3#include <stddef.h> /* size_t */
5 4
@@ -29,5 +28,3 @@ void *its1_malloc_zero(struct its1_allocator *allocator, size_t n);
29 28
30#define NEW(ptr) ((ptr) = ALLOCATE(sizeof *(ptr))) 29#define NEW(ptr) ((ptr) = ALLOCATE(sizeof *(ptr)))
31#define NEW0(ptr) ((ptr) = ALLOCATE_ZERO(sizeof *(ptr))) 30#define NEW0(ptr) ((ptr) = ALLOCATE_ZERO(sizeof *(ptr)))
32
33#endif