/* Copyright (C) 2017-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: dk4rec26.ctr */ /** @file dk4rec26.c The dk4rec26 module. */ #line 96 "dk4rec26.ctr" #include "dk4conf.h" #include "dk4rec26.h" unsigned long dk4recode_char_to_ul(unsigned long back) { back &= 0x000000FFUL; return back; } unsigned long dk4recode_c16_to_ul(unsigned long back) { back &= 0x0000FFFFUL; return back; } unsigned long dk4recode_c32_to_ul(unsigned long back) { back &= 0xFFFFFFFFUL; return back; } unsigned long dk4recode_dk_to_ul(unsigned long back) { #if DK4_CHAR_SIZE > 1 #if DK4_CHAR_SIZE > 2 back &= 0xFFFFFFFFUL; #else back &= 0x0000FFFFUL; #endif #else back &= 0x000000FFUL; #endif return back; } unsigned long dk4recode_wc_to_ul(unsigned long back) { #if DK4_SIZEOF_WCHAR_T > 1 #if DK4_SIZEOF_WCHAR_T > 2 back &= 0xFFFFFFFFUL; #else back &= 0x0000FFFFUL; #endif #else back &= 0x000000FFUL; #endif return back; } #if 0 unsigned long dk4recode_wx_to_ul(unsigned long back) { #if DK4_SIZEOF_WXCHAR > 1 #if DK4_SIZEOF_WXCHAR > 2 back &= 0xFFFFFFFFUL; #else back &= 0x0000FFFFUL; #endif #else back &= 0x000000FFUL; #endif return back; } #endif