diff options
Diffstat (limited to 'support/dktools/dk4maodh.ctr')
-rw-r--r-- | support/dktools/dk4maodh.ctr | 137 |
1 files changed, 0 insertions, 137 deletions
diff --git a/support/dktools/dk4maodh.ctr b/support/dktools/dk4maodh.ctr deleted file mode 100644 index 342c3b2677..0000000000 --- a/support/dktools/dk4maodh.ctr +++ /dev/null @@ -1,137 +0,0 @@ - -%% options - - -copyright owner = Dirk Krause -copyright year = 2015-xxxx -SPDX-License-Identifier: BSD-3-Clause - - -%% header - -/** @file - Convert dk4_um_t / dk4_im_t - to dkChar strings in hexadecimal notation. -*/ - -#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 -extern "C" { -#endif - -/** Write unsigned number to char string in hex notation. - - CRT on Windows: Optional. - @param dptr Pointer to buffer for string. - @param sz Buffer size (number of char). - @param val Value to write. - @param padsz Minimum number of digits, 1 for automatic choice. - @param erp Error report, may be NULL. - @return 1 on success, 0 on error. -*/ -int -dk4ma_write_hex_unsigned( - dkChar *dptr, size_t sz, dk4_um_t val, size_t padsz, dk4_er_t *erp -); - -/** Write signed number to char string in hex notation. - - CRT on Windows: Optional. - @param dptr Pointer to buffer for string. - @param sz Buffer size (number of char). - @param val Value to write. - @param padsz Minimum number of digits, 1 for automatic choice. - @param erp Error report, may be NULL. - @return 1 on success, 0 on error. -*/ -int -dk4ma_write_hex_signed( - dkChar *dptr, size_t sz, dk4_im_t val, size_t padsz, dk4_er_t *erp -); - -#ifdef __cplusplus -} -#endif - - - -%% module - -#include "dk4conf.h" -#include "dk4error.h" - -#if DK4_CHAR_SIZE > 1 -#include "dk4maowh.h" -#else -#include "dk4mao8h.h" -#endif - -#include "dk4maodh.h" - -#if DK4_HAVE_ASSERT_H -#ifndef ASSERT_H_INCLUDED -#include <assert.h> -#define ASSERT_H_INCLUDED 1 -#endif -#endif - - -int -dk4ma_write_hex_unsigned( - dkChar *dptr, size_t sz, dk4_um_t val, size_t padsz, dk4_er_t *erp -) -{ -#if DK4_USE_ASSERT - assert(NULL != dptr); - assert(0 < sz); -#endif -#if DK4_CHAR_SIZE > 1 - return (dk4ma_write_wc_hex_unsigned(dptr, sz, val, padsz, erp)); -#else - return (dk4ma_write_c8_hex_unsigned(dptr, sz, val, padsz, erp)); -#endif -} - - - -int -dk4ma_write_hex_signed( - dkChar *dptr, size_t sz, dk4_im_t val, size_t padsz, dk4_er_t *erp -) -{ -#if DK4_USE_ASSERT - assert(NULL != dptr); - assert(0 < sz); -#endif -#if DK4_CHAR_SIZE > 1 - return (dk4ma_write_wc_hex_signed(dptr, sz, val, padsz, erp)); -#else - return (dk4ma_write_c8_hex_signed(dptr, sz, val, padsz, erp)); -#endif -} - |