summaryrefslogtreecommitdiff
path: root/coders/cals.c
diff options
context:
space:
mode:
Diffstat (limited to 'coders/cals.c')
-rw-r--r--coders/cals.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/coders/cals.c b/coders/cals.c
index dde4871f9..550c96075 100644
--- a/coders/cals.c
+++ b/coders/cals.c
@@ -309,40 +309,29 @@ static Image *ReadCALSImage(const ImageInfo *image_info,
*/
ModuleExport size_t RegisterCALSImage(void)
{
+#define CALSDescription "Continuous Acquisition and Life-cycle Support Type 1"
+#define CALSNote "Specified in MIL-R-28002 and MIL-PRF-28002"
+
MagickInfo
*entry;
- static const char
- *CALSDescription=
- {
- "Continuous Acquisition and Life-cycle Support Type 1"
- },
- *CALSNote=
- {
- "Specified in MIL-R-28002 and MIL-PRF-28002"
- };
-
- entry=SetMagickInfo("CAL");
+ entry=AcquireMagickInfo("CALS","CAL",CALSDescription);
entry->decoder=(DecodeImageHandler *) ReadCALSImage;
#if defined(MAGICKCORE_TIFF_DELEGATE)
entry->encoder=(EncodeImageHandler *) WriteCALSImage;
#endif
entry->flags^=CoderAdjoinFlag;
entry->magick=(IsImageFormatHandler *) IsCALS;
- entry->description=ConstantString(CALSDescription);
entry->note=ConstantString(CALSNote);
- entry->module=ConstantString("CALS");
(void) RegisterMagickInfo(entry);
- entry=SetMagickInfo("CALS");
+ entry=AcquireMagickInfo("CALS","CALS",CALSDescription);
entry->decoder=(DecodeImageHandler *) ReadCALSImage;
#if defined(MAGICKCORE_TIFF_DELEGATE)
entry->encoder=(EncodeImageHandler *) WriteCALSImage;
#endif
entry->flags^=CoderAdjoinFlag;
entry->magick=(IsImageFormatHandler *) IsCALS;
- entry->description=ConstantString(CALSDescription);
entry->note=ConstantString(CALSNote);
- entry->module=ConstantString("CALS");
(void) RegisterMagickInfo(entry);
return(MagickImageCoderSignature);
}