// vim:fileencoding=utf-8:foldmethod=marker
//
// oldnames.h — backward-compatible #define mappings for renames in the
// wizapp-stdlib naming-conventions branch.
//
// Every public API symbol that was renamed is mapped from its old name to
// its new name so that existing code continues to compile without changes.
//
// Rename patterns applied across all modules:
//   wapp_xxx()  →  wpXxx()
//   WAPP_XXX    →  WP_XXX
//   GenericXxx  →  WpXxx
//   SHELL_XXX   →  WP_SHELL_XXX
//   _xxx_yyy()  →  _xxxYyy()
//
// Sections: Constants → Types → Functions

#ifndef OLDNAMES_H
#define OLDNAMES_H

// ============================================================================
// ===== Constants =====
// ============================================================================

// --- Aliases ---

#define WAPP_PLATFORM_CPP    WP_PLATFORM_CPP
#define WAPP_PLATFORM_C      WP_PLATFORM_C

// --- Arena ---

#define WAPP_MEM_ALLOC_RESERVE WP_MEM_ALLOC_RESERVE
#define WAPP_MEM_ALLOC_COMMIT  WP_MEM_ALLOC_COMMIT

// --- Array ---

#define WAPP_ARRAY_MAGIC     WP_ARRAY_MAGIC
#define ARRAY_INIT_NONE      WP_ARRAY_INIT_NONE
#define ARRAY_INIT_FILLED    WP_ARRAY_INIT_FILLED

// --- Assert ---

#define WAPP_NO_RUNTIME_ASSERT  WP_NO_RUNTIME_ASSERT
#define WAPP_DEBUG_ASSERT       WP_DEBUG_ASSERT

// --- CPath ---

#define WAPP_PATH_SEP WP_PATH_SEP
#define WAPP_PATH_MAX WP_PATH_MAX

#define CPATH_JOIN_SUCCESS                    WP_CPATH_JOIN_RESULT_SUCCESS
#define CPATH_JOIN_INVALID_ARGS               WP_CPATH_JOIN_RESULT_INVALID_ARGS
#define CPATH_JOIN_EMPTY_PARTS                WP_CPATH_JOIN_RESULT_EMPTY_PARTS
#define CPATH_JOIN_INSUFFICIENT_DST_CAPACITY  WP_CPATH_JOIN_RESULT_INSUFFICIENT_DST_CAPACITY

// --- DblList ---

#define WAPP_DBL_LIST_MAGIC WP_DBL_LIST_MAGIC
#define WAPP_DBL_NODE_MAGIC WP_DBL_NODE_MAGIC

// --- File ---

#define WAPP_ACCESS_READ                    WP_ACCESS_READ
#define WAPP_ACCESS_WRITE                   WP_ACCESS_WRITE
#define WAPP_ACCESS_APPEND                  WP_ACCESS_APPEND
#define WAPP_ACCESS_READ_EX                 WP_ACCESS_READ_EX
#define WAPP_ACCESS_WRITE_EX                WP_ACCESS_WRITE_EX
#define WAPP_ACCESS_APPEND_EX               WP_ACCESS_APPEND_EX
#define WAPP_ACCESS_WRITE_FAIL_ON_EXIST     WP_ACCESS_WRITE_FAIL_ON_EXIST
#define WAPP_ACCESS_WRITE_FAIL_ON_EXIST_EX  WP_ACCESS_WRITE_FAIL_ON_EXIST_EX
#define WAPP_SEEK_START                     WP_SEEK_START
#define WAPP_SEEK_CURRENT                   WP_SEEK_CURRENT
#define WAPP_SEEK_END                       WP_SEEK_END
#define END_OF_LINE                         WP_END_OF_LINE

// --- Log ---

#define WAPP_LOG_FATAL     WP_LOG_LEVEL_FATAL
#define WAPP_LOG_CRITICAL  WP_LOG_LEVEL_CRITICAL
#define WAPP_LOG_ERROR     WP_LOG_LEVEL_ERROR
#define WAPP_LOG_WARNING   WP_LOG_LEVEL_WARNING
#define WAPP_LOG_INFO      WP_LOG_LEVEL_INFO
#define WAPP_LOG_DEBUG     WP_LOG_LEVEL_DEBUG

// --- Mem Os ---

#define WAPP_MEM_ACCESS_NONE             WP_MEM_ACCESS_NONE
#define WAPP_MEM_ACCESS_READ_ONLY        WP_MEM_ACCESS_READ_ONLY
#define WAPP_MEM_ACCESS_EXEC_ONLY        WP_MEM_ACCESS_EXEC_ONLY
#define WAPP_MEM_ACCESS_READ_WRITE       WP_MEM_ACCESS_READ_WRITE
#define WAPP_MEM_ACCESS_READ_EXEC        WP_MEM_ACCESS_READ_EXEC
#define WAPP_MEM_ACCESS_READ_WRITE_EXEC  WP_MEM_ACCESS_READ_WRITE_EXEC
#define WAPP_MEM_INIT_UNINITIALISED      WP_MEM_INIT_UNINITIALISED
#define WAPP_MEM_INIT_INITIALISED        WP_MEM_INIT_INITIALISED

// --- Platform ---

#define WAPP_PLATFORM_ANDROID        WP_PLATFORM_ANDROID
#define WAPP_PLATFORM_FREE_BSD       WP_PLATFORM_FREE_BSD
#define WAPP_PLATFORM_NET_BSD        WP_PLATFORM_NET_BSD
#define WAPP_PLATFORM_OPEN_BSD       WP_PLATFORM_OPEN_BSD
#define WAPP_PLATFORM_DRAGON_FLY     WP_PLATFORM_DRAGON_FLY
#define WAPP_PLATFORM_BSD            WP_PLATFORM_BSD
#define WAPP_PLATFORM_POSIX          WP_PLATFORM_POSIX
#define WAPP_PLATFORM_LINUX          WP_PLATFORM_LINUX
#define WAPP_PLATFORM_GNU            WP_PLATFORM_GNU
#define WAPP_PLATFORM_IOS            WP_PLATFORM_IOS
#define WAPP_PLATFORM_APPLE          WP_PLATFORM_APPLE
#define WAPP_PLATFORM_MACOS          WP_PLATFORM_MACOS
#define WAPP_PLATFORM_WINDOWS64      WP_PLATFORM_WINDOWS64
#define WAPP_PLATFORM_WINDOWS32      WP_PLATFORM_WINDOWS32
#define WAPP_PLATFORM_WINDOWS        WP_PLATFORM_WINDOWS
#define WAPP_PLATFORM_CYGWIN         WP_PLATFORM_CYGWIN
#define WAPP_PLATFORM_UNIX           WP_PLATFORM_UNIX
#define WAPP_PLATFORM_CPP_VERSION    WP_PLATFORM_CPP_VERSION
#define WAPP_PLATFORM_CPP98_VERSION  WP_PLATFORM_CPP98_VERSION
#define WAPP_PLATFORM_CPP11_VERSION  WP_PLATFORM_CPP11_VERSION
#define WAPP_PLATFORM_CPP14_VERSION  WP_PLATFORM_CPP14_VERSION
#define WAPP_PLATFORM_CPP17_VERSION  WP_PLATFORM_CPP17_VERSION
#define WAPP_PLATFORM_CPP20_VERSION  WP_PLATFORM_CPP20_VERSION
#define WAPP_PLATFORM_CPP23_VERSION  WP_PLATFORM_CPP23_VERSION
#define WAPP_PLATFORM_CPP98          WP_PLATFORM_CPP98
#define WAPP_PLATFORM_CPP11          WP_PLATFORM_CPP11
#define WAPP_PLATFORM_CPP14          WP_PLATFORM_CPP14
#define WAPP_PLATFORM_CPP17          WP_PLATFORM_CPP17
#define WAPP_PLATFORM_CPP20          WP_PLATFORM_CPP20
#define WAPP_PLATFORM_CPP23          WP_PLATFORM_CPP23
#define WAPP_PLATFORM_C_VERSION      WP_PLATFORM_C_VERSION
#define WAPP_PLATFORM_C99_VERSION    WP_PLATFORM_C99_VERSION
#define WAPP_PLATFORM_C11_VERSION    WP_PLATFORM_C11_VERSION
#define WAPP_PLATFORM_C17_VERSION    WP_PLATFORM_C17_VERSION
#define WAPP_PLATFORM_C23_VERSION    WP_PLATFORM_C23_VERSION
#define WAPP_PLATFORM_C99            WP_PLATFORM_C99
#define WAPP_PLATFORM_C11            WP_PLATFORM_C11
#define WAPP_PLATFORM_C17            WP_PLATFORM_C17
#define WAPP_PLATFORM_C23            WP_PLATFORM_C23
#define WAPP_PLATFORM_C89            WP_PLATFORM_C89

// --- Shell Commander ---

#define SHELL_OUTPUT_DISCARD       WP_SHELL_OUTPUT_DISCARD
#define SHELL_OUTPUT_PRINT         WP_SHELL_OUTPUT_PRINT
#define SHELL_OUTPUT_CAPTURE       WP_SHELL_OUTPUT_CAPTURE
#define SHELL_ERR_NO_ERROR         WP_SHELL_ERR_NO_ERROR
#define SHELL_ERR_INVALID_ARGS     WP_SHELL_ERR_INVALID_ARGS
#define SHELL_ERR_ALLOCATION_FAIL  WP_SHELL_ERR_ALLOCATION_FAIL
#define SHELL_ERR_PROC_START_FAIL  WP_SHELL_ERR_PROC_START_FAIL
#define SHELL_ERR_OUT_BUF_FULL     WP_SHELL_ERR_OUT_BUF_FULL
#define SHELL_ERR_PROC_EXIT_FAIL   WP_SHELL_ERR_PROC_EXIT_FAIL

// --- Shell Termcolour ---

#define WAPP_TERM_COLOUR_FG_BLACK       WP_TERM_COLOUR_FG_BLACK
#define WAPP_TERM_COLOUR_FG_RED         WP_TERM_COLOUR_FG_RED
#define WAPP_TERM_COLOUR_FG_GREEN       WP_TERM_COLOUR_FG_GREEN
#define WAPP_TERM_COLOUR_FG_BLUE        WP_TERM_COLOUR_FG_BLUE
#define WAPP_TERM_COLOUR_FG_CYAN        WP_TERM_COLOUR_FG_CYAN
#define WAPP_TERM_COLOUR_FG_MAGENTA     WP_TERM_COLOUR_FG_MAGENTA
#define WAPP_TERM_COLOUR_FG_YELLOW      WP_TERM_COLOUR_FG_YELLOW
#define WAPP_TERM_COLOUR_FG_WHITE       WP_TERM_COLOUR_FG_WHITE
#define WAPP_TERM_COLOUR_FG_BR_BLACK    WP_TERM_COLOUR_FG_BR_BLACK
#define WAPP_TERM_COLOUR_FG_BR_RED      WP_TERM_COLOUR_FG_BR_RED
#define WAPP_TERM_COLOUR_FG_BR_GREEN    WP_TERM_COLOUR_FG_BR_GREEN
#define WAPP_TERM_COLOUR_FG_BR_BLUE     WP_TERM_COLOUR_FG_BR_BLUE
#define WAPP_TERM_COLOUR_FG_BR_CYAN     WP_TERM_COLOUR_FG_BR_CYAN
#define WAPP_TERM_COLOUR_FG_BR_MAGENTA  WP_TERM_COLOUR_FG_BR_MAGENTA
#define WAPP_TERM_COLOUR_FG_BR_YELLOW   WP_TERM_COLOUR_FG_BR_YELLOW
#define WAPP_TERM_COLOUR_FG_BR_WHITE    WP_TERM_COLOUR_FG_BR_WHITE
#define WAPP_TERM_COLOUR_CLEAR          WP_TERM_COLOUR_CLEAR

// --- Str8 ---

#define WAPP_STR8_SPEC WP_STR8_SPEC

// --- UUID ---

#define UUID_BUF_LENGTH WP_UUID_BUF_LENGTH
#define WAPP_UUID_SPEC  WP_UUID_SPEC

// ============================================================================
// ===== Types =====
// ============================================================================

// --- Aliases ---

#define wapp_extern    wp_extern
#define wapp_intern    wp_intern
#define wapp_persist   wp_persist
#define wapp_class_mem wp_class_mem

// --- Arena ---

#define Arena WpArena

// --- Array ---

#define GenericArray    WpArray
#define VoidPtrArray    WpVoidPtrArray
#define C8Array         WpC8Array
#define C16Array        WpC16Array
#define C32Array        WpC32Array
#define U8Array         WpU8Array
#define U16Array        WpU16Array
#define U32Array        WpU32Array
#define U64Array        WpU64Array
#define B8Array         WpB8Array
#define I8Array         WpI8Array
#define I16Array        WpI16Array
#define I32Array        WpI32Array
#define I64Array        WpI64Array
#define F32Array        WpF32Array
#define F64Array        WpF64Array
#define F128Array       WpF128Array
#define UptrArray       WpUptrArray
#define IptrArray       WpIptrArray
#define Str8Array       WpStr8Array
#define ArrayHeader     WpArrayHeader
#define ArrayInitFlags  WpArrayInitFlags

// --- DblList ---

#define GenericNode      WpDblNode
#define NodeHeader       WpDblNodeHeader
#define GenericList      WpDblList
#define VoidPtrList      WpVoidPtrList
#define C8List           WpC8List
#define C16List          WpC16List
#define C32List          WpC32List
#define U8List           WpU8List
#define U16List          WpU16List
#define U32List          WpU32List
#define U64List          WpU64List
#define B8List           WpB8List
#define I8List           WpI8List
#define I16List          WpI16List
#define I32List          WpI32List
#define I64List          WpI64List
#define F32List          WpF32List
#define F64List          WpF64List
#define F128List         WpF128List
#define UptrList         WpUptrList
#define IptrList         WpIptrList
#define Str8List         WpStr8List
#define VoidPtrNode      WpVoidPtrNode
#define C8Node           WpC8Node
#define C16Node          WpC16Node
#define C32Node          WpC32Node
#define U8Node           WpU8Node
#define U16Node          WpU16Node
#define U32Node          WpU32Node
#define U64Node          WpU64Node
#define B8Node           WpB8Node
#define I8Node           WpI8Node
#define I16Node          WpI16Node
#define I32Node          WpI32Node
#define I64Node          WpI64Node
#define F32Node          WpF32Node
#define F64Node          WpF64Node
#define F128Node         WpF128Node
#define UptrNode         WpUptrNode
#define IptrNode         WpIptrNode
#define Str8Node         WpStr8Node

// --- File ---

#define WFile           WpFile
#define FileAccessMode  WpFileAccessMode
#define FileSeekOrigin  WpFileSeekOrigin

// --- Log ---

#define LogLevel WpLogLevel
#define Logger   WpLogger

// --- Mem Allocator ---

#define Allocator              WpAllocator
#define MemAllocFunc           WpMemAllocFunc
#define MemAllocAlignedFunc    WpMemAllocAlignedFunc
#define MemReallocFunc         WpMemReallocFunc
#define MemReallocAlignedFunc  WpMemReallocAlignedFunc
#define MemFreeFunc            WpMemFreeFunc

// --- Mem Os ---

#define MemAccess      WpMemAccess
#define MemInitType    WpMemInitType
#define MemAllocFlags  WpMemAllocFlags

// --- PRNG Xorshift ---

#define XOR256State WpXor256State

// --- Queue ---

#define GenericQueue   WpQueue
#define VoidPtrQueue   WpVoidPtrQueue
#define C8Queue        WpC8Queue
#define C16Queue       WpC16Queue
#define C32Queue       WpC32Queue
#define U8Queue        WpU8Queue
#define U16Queue       WpU16Queue
#define U32Queue       WpU32Queue
#define U64Queue       WpU64Queue
#define B8Queue        WpB8Queue
#define I8Queue        WpI8Queue
#define I16Queue       WpI16Queue
#define I32Queue       WpI32Queue
#define I64Queue       WpI64Queue
#define F32Queue       WpF32Queue
#define F64Queue       WpF64Queue
#define F128Queue      WpF128Queue
#define UptrQueue      WpUptrQueue
#define IptrQueue      WpIptrQueue
#define Str8Queue      WpStr8Queue

// --- Shell Commander ---

#define CMDResult        WpCmdResult
#define CMDOutHandling   WpCmdOutHandling
#define CMDError         WpCmdError

// --- Shell Termcolour ---

#define TerminalColour WpTerminalColour

// --- Str8 ---

#define Str8   WpStr8
#define Str8RO WpStr8RO

// --- Tester ---

#define TestFuncResult WpTestFuncResult
#define TestFunc       WpTestFunc

// --- UUID ---

#define WUUID WpUuid

// ============================================================================
// ===== Functions =====
// ============================================================================

// --- Arena ---

#define wapp_mem_arena_init_allocated                  wpMemArenaInitAllocated
#define wapp_mem_arena_init_allocated_commit           wpMemArenaInitAllocatedCommit
#define wapp_mem_arena_init_allocated_zero             wpMemArenaInitAllocatedZero
#define wapp_mem_arena_init_allocated_commit_and_zero  wpMemArenaInitAllocatedCommitAndZero
#define wapp_mem_arena_init_allocated_custom           wpMemArenaInitAllocatedCustom
#define wapp_mem_arena_init_buffer                     wpMemArenaInitBuffer
#define wapp_mem_arena_alloc                           wpMemArenaAlloc
#define wapp_mem_arena_alloc_aligned                   wpMemArenaAllocAligned
#define wapp_mem_arena_realloc                         wpMemArenaRealloc
#define wapp_mem_arena_realloc_aligned                 wpMemArenaReallocAligned
#define wapp_mem_arena_temp_begin                      wpMemArenaTempBegin
#define wapp_mem_arena_temp_end                        wpMemArenaTempEnd
#define wapp_mem_arena_clear                           wpMemArenaClear
#define wapp_mem_arena_destroy                         wpMemArenaDestroy

#define wapp_mem_arena_allocator_init                  wpMemArenaAllocatorInit
#define wapp_mem_arena_allocator_init_commit           wpMemArenaAllocatorInitCommit
#define wapp_mem_arena_allocator_init_zero             wpMemArenaAllocatorInitZero
#define wapp_mem_arena_allocator_init_commit_and_zero  wpMemArenaAllocatorInitCommitAndZero
#define wapp_mem_arena_allocator_init_custom           wpMemArenaAllocatorInitCustom
#define wapp_mem_arena_allocator_init_with_buffer      wpMemArenaAllocatorInitWithBuffer
#define wapp_mem_arena_allocator_temp_begin            wpMemArenaAllocatorTempBegin
#define wapp_mem_arena_allocator_temp_end              wpMemArenaAllocatorTempEnd
#define wapp_mem_arena_allocator_clear                 wpMemArenaAllocatorClear
#define wapp_mem_arena_allocator_destroy               wpMemArenaAllocatorDestroy

// --- Array ---

#define wapp_array                          wpArray
#define wapp_array_with_capacity            wpArrayWithCapacity
#define wapp_array_pop                      wpArrayPop
#define wapp_array_count                    wpArrayCount
#define wapp_array_capacity                 wpArrayCapacity
#define wapp_array_item_size                wpArrayItemSize
#define wapp_array_set_count                wpArraySetCount
#define wapp_array_get                      wpArrayGet
#define wapp_array_set                      wpArraySet
#define wapp_array_append_capped            wpArrayAppendCapped
#define wapp_array_extend_capped            wpArrayExtendCapped
#define wapp_array_copy_capped              wpArrayCopyCapped
#define wapp_array_append_alloc             wpArrayAppendAlloc
#define wapp_array_extend_alloc             wpArrayExtendAlloc
#define wapp_array_copy_alloc               wpArrayCopyAlloc
#define wapp_array_clear                    wpArrayClear
#define wapp_array_calc_alloc_size          wpArrayCalcAllocSize
#define wapp_array_alloc_capacity           wpArrayAllocCapacity
#define wapp_array_from_preallcated_buffer  wpArrayFromPreallcatedBuffer

// --- Assert ---

#define wapp_static_assert   wpStaticAssert
#define wapp_runtime_assert  wpRuntimeAssert
#define wapp_debug_assert    wpDebugAssert

// --- CPath ---

#define wapp_cpath_dirname    wpCpathDirname
#define wapp_cpath_dirup      wpCpathDirup
#define wapp_cpath_join_path  wpCpathJoinPath
#define dirup                 _dirup

// --- DblList ---

#define wapp_dbl_list                   wpDblList
#define wapp_dbl_list_alloc             wpDblListAlloc
#define wapp_dbl_list_get               wpDblListGet
#define wapp_dbl_list_get_node          wpDblListGetNode
#define wapp_dbl_list_get_node_item     wpDblListGetNodeItem
#define wapp_dbl_list_push_front        wpDblListPushFront
#define wapp_dbl_list_push_back         wpDblListPushBack
#define wapp_dbl_list_insert            wpDblListInsert
#define wapp_dbl_list_push_front_alloc  wpDblListPushFrontAlloc
#define wapp_dbl_list_push_back_alloc   wpDblListPushBackAlloc
#define wapp_dbl_list_insert_alloc      wpDblListInsertAlloc
#define wapp_dbl_list_pop_front         wpDblListPopFront
#define wapp_dbl_list_pop_back          wpDblListPopBack
#define wapp_dbl_list_remove            wpDblListRemove
#define wapp_dbl_list_pop_front_node    wpDblListPopFrontNode
#define wapp_dbl_list_pop_back_node     wpDblListPopBackNode
#define wapp_dbl_list_remove_node       wpDblListRemoveNode
#define wapp_dbl_list_empty             wpDblListEmpty

#define _dbl_list_alloc       _dblListAlloc
#define _dbl_list_node_alloc  _dblListNodeAlloc
#define _dbl_list_get         _dblListGet
#define _dbl_list_push_front  _dblListPushFront
#define _dbl_list_push_back   _dblListPushBack
#define _dbl_list_insert      _dblListInsert
#define _dbl_list_pop_front   _dblListPopFront
#define _dbl_list_pop_back    _dblListPopBack
#define _dbl_list_remove      _dblListRemove
#define _dbl_list_empty       _dblListEmpty

// --- File ---

#define wapp_file_stdin                 wpFileStdin
#define wapp_file_stdout                wpFileStdout
#define wapp_file_stderr                wpFileStderr
#define wapp_file_open                  wpFileOpen
#define wapp_file_get_current_position  wpFileGetCurrentPosition
#define wapp_file_seek                  wpFileSeek
#define wapp_file_get_length            wpFileGetLength
#define wapp_file_read                  wpFileRead
#define wapp_file_write                 wpFileWrite
#define wapp_file_read_str8             wpFileReadStr8
#define wapp_file_write_str8            wpFileWriteStr8
#define wapp_file_read_array            wpFileReadArray
#define wapp_file_write_array           wpFileWriteArray
#define wapp_file_flush                 wpFileFlush
#define wapp_file_close                 wpFileClose
#define wapp_file_rename                wpFileRename
#define wapp_file_remove                wpFileRemove

#define _file_open    _fileOpen
#define _file_seek    _fileSeek
#define _file_read    _fileRead
#define _file_write   _fileWrite
#define _file_flush   _fileFlush
#define _file_close   _fileClose
#define _file_rename  _fileRename
#define _file_remove  _fileRemove

// --- Log ---

#define wapp_log_set_level    wpLogSetLevel
#define wapp_log_configure    wpLogConfigure
#define wapp_log_make_logger  wpLogMakeLogger
#define wapp_log_debug        wpLogDebug
#define wapp_log_info         wpLogInfo
#define wapp_log_warning      wpLogWarning
#define wapp_log_error        wpLogError
#define wapp_log_critical     wpLogCritical
#define wapp_log_fatal        wpLogFatal

// --- Mem Allocator ---

#define wapp_mem_allocator_invalid          wpMemAllocatorInvalid
#define wapp_mem_allocator_alloc            wpMemAllocatorAlloc
#define wapp_mem_allocator_alloc_aligned    wpMemAllocatorAllocAligned
#define wapp_mem_allocator_realloc          wpMemAllocatorRealloc
#define wapp_mem_allocator_realloc_aligned  wpMemAllocatorReallocAligned
#define wapp_mem_allocator_free             wpMemAllocatorFree

// --- Mem Os ---

#define wapp_os_mem_alloc  wpOsMemAlloc
#define wapp_os_mem_free   wpOsMemFree
#define os_mem_allocate    _osMemAllocate
#define os_mem_free        _osMemFree

// --- Mem Utils ---

#define wapp_mem_util_align_forward wpMemUtilAlignForward

// --- Misc Utils ---

#define wapp_misc_utils_reserve_padding    wpMiscUtilsReservePadding
#define wapp_misc_utils_u64_round_up_pow2  wpMiscUtilsU64RoundUpPow2
#define wapp_is_power_of_two               wpMiscUtilsIsPowerOfTwo
#define wapp_pointer_offset                wpMiscUtilsOffsetPointer
#define wapp_misc_utils_va_args_count      wpMiscUtilsVaArgsCount

// --- PRNG Xorshift ---

#define wapp_prng_xorshift_init_state  wpPrngXorshiftInit
#define wapp_prng_xorshift_256         wpPrngXorshift256
#define wapp_prng_xorshift_256ss       wpPrngXorshift256ss
#define wapp_prng_xorshift_256p        wpPrngXorshift256p

// --- Queue ---

#define wapp_queue                   wpQueue
#define wapp_queue_alloc             wpQueueAlloc
#define wapp_queue_capacity          wpQueueCapacity
#define wapp_queue_item_size         wpQueueItemSize
#define wapp_queue_push              wpQueuePush
#define wapp_queue_push_alloc        wpQueuePushAlloc
#define wapp_queue_pop               wpQueuePop

#define _queue_push        _queuePush
#define _queue_push_alloc  _queuePushAlloc
#define _queue_pop         _queuePop

// --- Shell Commander ---

#define CMD_NO_EXIT                   wpCmdNoExit
#define wapp_shell_commander_execute  wpShellCommanderExecute
#define get_output_status             _getOutputStatus

// --- Shell Termcolour ---

#define wapp_shell_termcolour_print_text    wpShellTermcolourPrintText
#define wapp_shell_termcolour_clear_colour  wpShellTermcolourClearColour
#define print_coloured_text                 _printColouredText

// --- Shell Utils ---

#define wapp_shell_utils_popen   wpShellUtilsPopen
#define wapp_shell_utils_pclose  wpShellUtilsPclose

// --- Str8 ---

#define wapp_str8_varg                        wpStr8Varg
#define wapp_str8_buf                         wpStr8Buf
#define wapp_str8_lit                         wpStr8Lit
#define wapp_str8_lit_ro                      wpStr8LitRo
#define wapp_str8_lit_ro_initialiser_list     wpStr8LitRoInitialiserList
#define wapp_str8_alloc_buf                   wpStr8AllocBuf
#define wapp_str8_alloc_and_fill_buf          wpStr8AllocAndFillBuf
#define wapp_str8_alloc_cstr                  wpStr8AllocCstr
#define wapp_str8_alloc_str8                  wpStr8AllocStr8
#define wapp_str8_alloc_substr                wpStr8AllocSubstr
#define wapp_str8_alloc_concat                wpStr8AllocConcat
#define wapp_str8_dealloc_buf                 wpStr8DeallocBuf
#define wapp_str8_get                         wpStr8Get
#define wapp_str8_set                         wpStr8Set
#define wapp_str8_push_back                   wpStr8PushBack
#define wapp_str8_equal                       wpStr8Equal
#define wapp_str8_equal_to_count              wpStr8EqualToCount
#define wapp_str8_slice                       wpStr8Slice
#define wapp_str8_concat_capped               wpStr8ConcatCapped
#define wapp_str8_copy_cstr_capped            wpStr8CopyCstrCapped
#define wapp_str8_copy_str8_capped            wpStr8CopyStr8Capped
#define wapp_str8_copy_to_cstr                wpStr8CopyToCstr
#define wapp_str8_format                      wpStr8Format
#define wapp_str8_to_lower                    wpStr8ToLower
#define wapp_str8_to_upper                    wpStr8ToUpper
#define wapp_str8_from_bytes                  wpStr8FromBytes
#define wapp_str8_find                        wpStr8Find
#define wapp_str8_rfind                       wpStr8Rfind
#define wapp_str8_split                       wpStr8Split
#define wapp_str8_rsplit                      wpStr8Rsplit
#define wapp_str8_split_with_max              wpStr8SplitWithMax
#define wapp_str8_rsplit_with_max             wpStr8RsplitWithMax
#define wapp_str8_join                        wpStr8Join
#define wapp_str8_list_total_size             wpStr8ListTotalSize

// --- Tester ---

#define wapp_tester_result  wpTesterResult
#define wapp_tester_run     wpTesterRun
#define run_tests           _runTests

// --- UUID ---

#define wapp_uuid_varg        wpUuidVarg
#define wapp_uuid_gen_uuid4   wpUuidGenUuid4
#define wapp_uuid_create      wpUuidCreate
#define wapp_uuid_init_uuid4  wpUuidInitUuid4

#endif // !OLDNAMES_H
