D bindings to the GraphicsMagick library.
Revisión | 7272c79c16424ae7a6d0ce8feaa8644e49a7fe80 (tree) |
---|---|
Tiempo | 2023-06-25 13:52:57 |
Autor | Mio <stigma@disr...> |
Commiter | Mio |
[graphicsmagick] monitor in -> const scope
@@ -2,11 +2,11 @@ | ||
2 | 2 | Copyright (C) 2003 GraphicsMagick Group |
3 | 3 | Copyright (C) 2002 ImageMagick Studio |
4 | 4 | Copyright 1991-1999 E. I. du Pont de Nemours and Company |
5 | - | |
5 | + | |
6 | 6 | This program is covered by multiple licenses, which are described in |
7 | 7 | Copyright.txt. You should have received a copy of Copyright.txt with this |
8 | 8 | package; otherwise see http://www.graphicsmagick.org/www/Copyright.html. |
9 | - | |
9 | + | |
10 | 10 | ImageMagick Progress Monitor Methods. |
11 | 11 | */ |
12 | 12 | // Complete graphicsmagick_c wrapper for version 1.3. |
@@ -18,8 +18,8 @@ import graphicsmagick_c.magick.api : MagickPassFail; | ||
18 | 18 | import graphicsmagick_c.magick.error : ExceptionInfo; |
19 | 19 | import graphicsmagick_c.magick.magick_types : magick_int64_t, magick_uint64_t; |
20 | 20 | |
21 | -alias MonitorHandler = @nogc nothrow extern(C) MagickPassFail function(in char* text, in magick_int64_t quantum, | |
22 | - in magick_uint64_t span, ExceptionInfo* exception); | |
21 | +alias MonitorHandler = @nogc nothrow extern(C) MagickPassFail function(const scope char* text, const scope magick_int64_t quantum, | |
22 | + const scope magick_uint64_t span, ExceptionInfo* exception); | |
23 | 23 | |
24 | 24 | version (GMagick_Static) |
25 | 25 | { |
@@ -27,9 +27,9 @@ version (GMagick_Static) | ||
27 | 27 | |
28 | 28 | MonitorHandler SetMonitorHandler(MonitorHandler handler); |
29 | 29 | |
30 | - MagickPassFail MagickMonitor(in char* text, in magick_int64_t quantum, in magick_uint64_t span, | |
30 | + MagickPassFail MagickMonitor(const scope char* text, const scope magick_int64_t quantum, const scope magick_uint64_t span, | |
31 | 31 | ExceptionInfo* exception); |
32 | - MagickPassFail MagickMonitorFormatted(in magick_int64_t quantum, in magick_uint64_t span, | |
32 | + MagickPassFail MagickMonitorFormatted(const scope magick_int64_t quantum, const scope magick_uint64_t span, | |
33 | 33 | ExceptionInfo* exception, char* format...); |
34 | 34 | } |
35 | 35 | else |
@@ -38,9 +38,9 @@ else | ||
38 | 38 | { |
39 | 39 | alias mSetMonitorHandler = MonitorHandler function(MonitorHandler handler); |
40 | 40 | |
41 | - alias mMagickMonitor = MagickPassFail function(in char* text, in magick_int64_t quantum, | |
42 | - in magick_uint64_t span, ExceptionInfo* exception); | |
43 | - alias mMagickMonitorFormatted = MagickPassFail function(in magick_int64_t quantum, in magick_uint64_t span, | |
41 | + alias mMagickMonitor = MagickPassFail function(const scope char* text, const scope magick_int64_t quantum, | |
42 | + const scope magick_uint64_t span, ExceptionInfo* exception); | |
43 | + alias mMagickMonitorFormatted = MagickPassFail function(const scope magick_int64_t quantum, const scope magick_uint64_t span, | |
44 | 44 | ExceptionInfo* exception, char* format...); |
45 | 45 | } |
46 | 46 |
@@ -70,7 +70,7 @@ else | ||
70 | 70 | } |
71 | 71 | success = false; |
72 | 72 | } |
73 | - | |
73 | + | |
74 | 74 | MagickMonitor = cast(mMagickMonitor)dlsym(dlib, "MagickMonitor"); |
75 | 75 | if (null !is (errmsg = dlerror())) { |
76 | 76 | debug(graphicsmagick_c) |