diff options
Diffstat (limited to 'support/dktools/dk4maiwdis.ctr')
-rw-r--r-- | support/dktools/dk4maiwdis.ctr | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/support/dktools/dk4maiwdis.ctr b/support/dktools/dk4maiwdis.ctr index 63ba351479..0536375b3e 100644 --- a/support/dktools/dk4maiwdis.ctr +++ b/support/dktools/dk4maiwdis.ctr @@ -2,7 +2,7 @@ copyright owner = Dirk Krause copyright year = 2015-xxxx -license = bsd +SPDX-License-Identifier: BSD-3-Clause @@ -14,15 +14,27 @@ license = bsd */ #ifndef DK4CONF_H_INCLUDED +#if DK4_BUILDING_DKTOOLS4 #include "dk4conf.h" +#else +#include <dktools-4/dk4conf.h> +#endif #endif #ifndef DK4TYPES_H_INCLUDED +#if DK4_BUILDING_DKTOOLS4 #include "dk4types.h" +#else +#include <dktools-4/dk4types.h> +#endif #endif #ifndef DK4ERROR_H_INCLUDED +#if DK4_BUILDING_DKTOOLS4 #include "dk4error.h" +#else +#include <dktools-4/dk4error.h> +#endif #endif @@ -68,6 +80,15 @@ dk4ma_input_wc_dec_short( %% module +#include "dk4conf.h" + +#if DK4_HAVE_ASSERT_H +#ifndef ASSERT_H_INCLUDED +#include <assert.h> +#define ASSERT_H_INCLUDED 1 +#endif +#endif + #include "dk4maiwddi.h" #include "dk4maiwdis.h" #include "dk4numco.h" @@ -85,6 +106,10 @@ dk4ma_input_wc_dec_short( { dk4_im_t res; int back = 0; +#if DK4_USE_ASSERT + assert(NULL != rp); + assert(NULL != src); +#endif if (0 != dk4ma_input_wc_dec_dk4_im_t(&res, src, endptr, atg, erp)) { if (((dk4_im_t)(SHRT_MIN) <= res) && (((dk4_im_t)(SHRT_MAX)) >= res)) { *rp = (short)res; |