• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

D bindings to the GraphicsMagick library.


Commit MetaInfo

Revision6818ecda102ba54ea84203de8a9d39d63c082e82 (tree)
Time2023-06-25 13:51:53
AuthorMio <stigma@disr...>
CommiterMio

Log Message

[graphicsmagick] memory in -> const scope

Change Summary

Incremental Difference

--- a/graphicsmagick_c/src/graphicsmagick_c/magick/memory.d
+++ b/graphicsmagick_c/src/graphicsmagick_c/magick/memory.d
@@ -1,10 +1,10 @@
11 /*
22 Copyright (C) 2003 - 2008 GraphicsMagick Group
3-
3+
44 This program is covered by multiple licenses, which are described in
55 Copyright.txt. You should have received a copy of Copyright.txt with this
66 package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
7-
7+
88 GraphicsMagick Memory Allocation Methods.
99 */
1010 // Complete graphicsmagick_c wrapper for version 1.3.
@@ -19,10 +19,10 @@ version(GMagick_Static)
1919 @system @nogc nothrow extern (C):
2020
2121 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);
2626 void MagickFree(void* memory);
2727 }
2828 else
@@ -31,10 +31,10 @@ else
3131 {
3232 alias mMagickAllocFunctions = void function(MagickFreeFunc free_func, MagickMallocFunc malloc_func,
3333 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);
3838 alias mMagickFree = void function(void* memory);
3939 }
4040