D bindings to the GraphicsMagick library.
Revision | 6818ecda102ba54ea84203de8a9d39d63c082e82 (tree) |
---|---|
Time | 2023-06-25 13:51:53 |
Author | Mio <stigma@disr...> |
Commiter | Mio |
[graphicsmagick] memory in -> const scope
@@ -1,10 +1,10 @@ | ||
1 | 1 | /* |
2 | 2 | Copyright (C) 2003 - 2008 GraphicsMagick Group |
3 | - | |
3 | + | |
4 | 4 | This program is covered by multiple licenses, which are described in |
5 | 5 | Copyright.txt. You should have received a copy of Copyright.txt with this |
6 | 6 | package; otherwise see http://www.graphicsmagick.org/www/Copyright.html. |
7 | - | |
7 | + | |
8 | 8 | GraphicsMagick Memory Allocation Methods. |
9 | 9 | */ |
10 | 10 | // Complete graphicsmagick_c wrapper for version 1.3. |
@@ -19,10 +19,10 @@ version(GMagick_Static) | ||
19 | 19 | @system @nogc nothrow extern (C): |
20 | 20 | |
21 | 21 | void MagickAllocFunctions(MagickFreeFunc free_func, MagickMallocFunc malloc_func, MagickReallocFunc realloc_func); |
22 | - void* MagickMalloc(in size_t size); | |
23 | - void* MagickMallocArray(in size_t count, in size_t size); | |
24 | - void* MagickCloneMemory(void* destination, in void* source, in size_t size); | |
25 | - void* MagickRealloc(void* memory, in size_t size); | |
22 | + void* MagickMalloc(const scope size_t size); | |
23 | + void* MagickMallocArray(const scope size_t count, const scope size_t size); | |
24 | + void* MagickCloneMemory(void* destination, const scope void* source, const scope size_t size); | |
25 | + void* MagickRealloc(void* memory, const scope size_t size); | |
26 | 26 | void MagickFree(void* memory); |
27 | 27 | } |
28 | 28 | else |
@@ -31,10 +31,10 @@ else | ||
31 | 31 | { |
32 | 32 | alias mMagickAllocFunctions = void function(MagickFreeFunc free_func, MagickMallocFunc malloc_func, |
33 | 33 | MagickReallocFunc realloc_func); |
34 | - alias mMagickMalloc = void* function(in size_t size); | |
35 | - alias mMagickMallocArray = void* function(in size_t count, in size_t size); | |
36 | - alias mMagickCloneMemory = void* function(void* destination, in void* source, in size_t size); | |
37 | - alias mMagickRealloc = void* function(void* memory, in size_t size); | |
34 | + alias mMagickMalloc = void* function(const scope size_t size); | |
35 | + alias mMagickMallocArray = void* function(const scope size_t count, const scope size_t size); | |
36 | + alias mMagickCloneMemory = void* function(void* destination, const scope void* source, const scope size_t size); | |
37 | + alias mMagickRealloc = void* function(void* memory, const scope size_t size); | |
38 | 38 | alias mMagickFree = void function(void* memory); |
39 | 39 | } |
40 | 40 |