diff options
Diffstat (limited to 'support/dktools/dk4maidhui.ctr')
-rw-r--r-- | support/dktools/dk4maidhui.ctr | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/support/dktools/dk4maidhui.ctr b/support/dktools/dk4maidhui.ctr index 9579f1982e..6b194a48d7 100644 --- a/support/dktools/dk4maidhui.ctr +++ b/support/dktools/dk4maidhui.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 #ifdef __cplusplus @@ -66,6 +78,7 @@ dk4ma_input_dk_hex_uint( %% module +#include "dk4conf.h" #include "dk4maidhui.h" #if DK4_CHAR_SIZE > 1 @@ -78,6 +91,12 @@ dk4ma_input_dk_hex_uint( #include "dk4mai8hui.h" #endif +#if DK4_HAVE_ASSERT_H +#ifndef ASSERT_H_INCLUDED +#include <assert.h> +#define ASSERT_H_INCLUDED 1 +#endif +#endif int @@ -89,6 +108,10 @@ dk4ma_input_dk_hex_uint( dk4_er_t *erp ) { +#if DK4_USE_ASSERT + assert(NULL != rp); + assert(NULL != src); +#endif #if DK4_CHAR_SIZE > 1 return ( dk4ma_input_wc_hex_uint(rp, src, endptr, atg, erp)); #else |