2023-03-12 18:34:55 -07:00
|
|
|
__VERSION 1
|
|
|
|
|
2023-03-17 15:12:20 -07:00
|
|
|
// not : Ignore
|
|
|
|
// include : #includes
|
|
|
|
// word : Alphanumeric or underscore
|
|
|
|
// namespace : Prefix search and replace (c-namspaces).
|
2023-04-19 12:53:01 -07:00
|
|
|
// regex : Unavailable in __VERSION 1.
|
2023-03-12 18:34:55 -07:00
|
|
|
|
|
|
|
// Precedence (highest to lowest):
|
|
|
|
// word, namespace, regex
|
|
|
|
|
2023-04-19 12:53:01 -07:00
|
|
|
// This is a cpp refactor specification for zpl.h
|
|
|
|
// Its intended that the content will be within a cpp namesapce
|
|
|
|
|
2023-03-25 19:44:36 -07:00
|
|
|
// Comments
|
|
|
|
not comments
|
|
|
|
|
2023-03-12 18:34:55 -07:00
|
|
|
// Header files
|
2023-03-25 19:44:36 -07:00
|
|
|
not include zpl_hedley.h
|
|
|
|
not include allocator.h
|
|
|
|
not include array.h
|
|
|
|
not include header/essentials/collections/array.h
|
|
|
|
not include header/essentials/collections/list.h
|
|
|
|
not include header/core/file.h
|
|
|
|
not include header/opts.h
|
2023-04-19 12:53:01 -07:00
|
|
|
not include header/regex.h
|
2023-03-30 14:36:36 -07:00
|
|
|
not include source/core/file.c
|
|
|
|
not include source/opts.c
|
2023-03-12 18:34:55 -07:00
|
|
|
|
|
|
|
// Removes the namespace.
|
|
|
|
namespace zpl_
|
2023-04-19 12:53:01 -07:00
|
|
|
namespace zpl_re_, regex_
|
|
|
|
namespace zpl_random_, rng_
|
|
|
|
namespace zpl_pr, process_
|
|
|
|
namespace zpl__, __
|
|
|
|
namespace ZPL_ADT_, EADT
|
2023-07-19 22:03:31 -07:00
|
|
|
namespace ZPL_ALLOCATION_, EAllocation_
|
|
|
|
namespace ZPL_CSV_ERROR, ECSV_Error_
|
2023-04-19 12:53:01 -07:00
|
|
|
namespace ZPL_FILE_MODE_, EFileMode_
|
|
|
|
namespace ZPL_FILE_ERROR_, EFileError_
|
|
|
|
namespace ZPL_SEEK_WHENCE_, ESeekWhence_
|
|
|
|
namespace ZPL_FILE_STANDARD_, EFileStandard_
|
|
|
|
namespace ZPL_FILE_STREAM_, EFileStream_
|
|
|
|
namespace ZPL_JSON_ERROR_, EJSON_Error_
|
|
|
|
namespace ZPL_RE_ERROR_, ERegexError_
|
|
|
|
namespace ZPL_OPTS_, EOpts_
|
|
|
|
namespace ZPL_OPTS_ERR, EOptsError_
|
|
|
|
namespace ZPL_PR_OPTS_, EProcessOpts_
|
2023-03-12 18:34:55 -07:00
|
|
|
|
2023-03-17 15:12:20 -07:00
|
|
|
// Macro exposure
|
|
|
|
//namespace ZPL_
|
|
|
|
//not word ZPL_IMPLEMENTATION
|
2023-03-12 18:34:55 -07:00
|
|
|
|
2023-04-19 12:53:01 -07:00
|
|
|
// Type Renames
|
|
|
|
word zpl_aabb2, AABB2
|
|
|
|
word zpl_aabb3, AABB3
|
|
|
|
word zpl_adt_assign_style, ADT_AssignStyle
|
|
|
|
word zpl_adt_delim_style, ADT_DelimStyle
|
|
|
|
word zpl_adt_error, ADT_Error
|
|
|
|
word zpl_adt_naming_style, ADT_NamingStyle
|
|
|
|
word zpl_adt_node, ADT_Node
|
|
|
|
word zpl_adt_props, ADT_Props
|
|
|
|
word zpl_adt_type, ADT_Type
|
|
|
|
word zpl_affinity, Affinity
|
|
|
|
word zpl_allocation_header_event, AllocationHeaderEvent
|
|
|
|
word zpl_allocator, AllocatorInfo
|
|
|
|
word zpl_allocator_proc, AllocatorProc
|
|
|
|
word zpl_alloc_flags, AllocFlags
|
|
|
|
word zpl_alloc_type, AllocType
|
|
|
|
word zpl_arena, Arena
|
|
|
|
word zpl_arena_snapshot, ArenaSnapshot
|
|
|
|
word zpl_array, Array
|
|
|
|
word zpl_array_header, ArrayHeader
|
|
|
|
word zpl_buffer, Buffer
|
|
|
|
word zpl_buffer_header, BufferHeader
|
|
|
|
word zpl_compare_proc, CompareProc
|
|
|
|
word zpl_csv_error, CSV_Error
|
|
|
|
word zpl_csv_object, CSV_Object
|
|
|
|
word zpl_dll_handle, DLLHandle
|
|
|
|
word zpl_dll_proc, DLLProc
|
|
|
|
word zpl_dir_type, DirType
|
|
|
|
word zpl_dir_entry, DirEntry
|
|
|
|
word zpl_dir_info, DirInfo
|
|
|
|
word zpl_file_contents, FileContents
|
|
|
|
word zpl_file_descriptor, FileDescriptor
|
|
|
|
word zpl_file_error, FileError
|
|
|
|
word zpl_file, FileInfo
|
|
|
|
word zpl_file_mode, FileMode
|
|
|
|
word zpl_file_mode_flag, FileModeFlag
|
|
|
|
word zpl_file_operations, FileOperations
|
|
|
|
word zpl_file_close_proc, FileCloseProc
|
|
|
|
word zpl_file_read_proc, FileReadProc
|
|
|
|
word zpl_file_seek_proc, FileSeekProc
|
|
|
|
word zpl_file_write_proc, FileWriteProc
|
|
|
|
word zpl_file_standard_type, FileStandardType
|
|
|
|
word zpl_file_stream_flags, FileStreamFlags
|
|
|
|
word zpl_float2, Float2
|
|
|
|
word zpl_float3, Float3
|
|
|
|
word zpl_float4, Float4
|
|
|
|
word zpl_frustum, Frustum
|
|
|
|
word zpl_half, Half
|
|
|
|
word zpl_jobs_priority, JobsPriority
|
|
|
|
word zpl_jobs_status, JobsStatus
|
|
|
|
word zpl_jobs_system, JobsSystem
|
|
|
|
word zpl_json_error, JSON_Error
|
|
|
|
word zpl_json_object, JSON_Object
|
|
|
|
word zpl_list, List
|
|
|
|
word zpl_mat2, Mat2
|
|
|
|
word zpl_mat3, Mat3
|
|
|
|
word zpl_mat4, Mat4
|
|
|
|
word zpl_mutex, Mutex
|
|
|
|
word zpl_plane, Plane
|
|
|
|
word zpl_pool, Pool
|
|
|
|
word zpl_pr, Process
|
|
|
|
word zpl_pr_si, ProcessStartupInfo
|
|
|
|
word zpl_quat, Quat
|
|
|
|
word zpl_rect2, Rect2
|
|
|
|
word zpl_rect3, Rect3
|
|
|
|
word zpl_re, Regex
|
|
|
|
word zpl_re_capture, RegexCapture
|
|
|
|
word zpl_regex_error, RegexError
|
|
|
|
wrod zpl_random, RNG
|
|
|
|
word zpl_rune, Rune
|
|
|
|
word zpl_scratch_memory, ScratchMemory
|
|
|
|
word zpl_seek_whence_type, SeekWhenceType
|
|
|
|
word zpl_semaphore, Semaphore
|
|
|
|
word zpl_string, String
|
|
|
|
word zpl_string_header, StringHeader
|
|
|
|
word zpl_sync, Sync
|
|
|
|
word zpl_opts, Opts
|
|
|
|
word zpl_opts_entry, OptsEntry
|
|
|
|
word zpl_opts_err, OptsError
|
|
|
|
word zpl_opts_err_type, OptsErrorType
|
|
|
|
word zpl_opts_types, OptsTypes
|
|
|
|
word zpl_tar_errors, TarErrors
|
|
|
|
word zpl_tar_file_type, TarFileType
|
|
|
|
word zpl_tar_record, TarRecord
|
|
|
|
word zpl_tar_unpack_proc, TarUnpackProc
|
|
|
|
word zpl_thread, Thread
|
|
|
|
word zpl_thread_job, ThreadJob
|
|
|
|
word zpl_thread_proc, ThreadProc
|
|
|
|
word zpl_thread_queue, ThreadQueue
|
|
|
|
word zpl_thread_worker, ThreadWorker
|
|
|
|
word zpl_vec2, Vec2
|
|
|
|
word zpl_vec3, Vec3
|
|
|
|
word zpl_vec4, Vec4
|
|
|
|
word zpl_virtual_memory, VirtualMemory
|
|
|
|
|
|
|
|
// Function Renames
|
|
|
|
word zpl_lfence, fence_load
|
|
|
|
word zpl_mfence, fence_memory
|
|
|
|
word zpl_sfence, fence_store
|
|
|
|
word zpl_memchr, mem_find
|
|
|
|
word zpl_memcopy, mem_copy
|
|
|
|
word zpl_memmove, mem_move
|
|
|
|
word zpl_memset, mem_set
|
|
|
|
word zpl_memswap, mem_swap
|
|
|
|
word zpl_exit, process_exit
|
|
|
|
word zpl_rdtsc, read_cpu_time_stamp_counter
|
|
|
|
word zpl_strcmp, str_compare
|
|
|
|
word zpl_strncmp, str_compare
|
|
|
|
word zpl_strcat, str_concat
|
|
|
|
word zpl_strcpy, str_copy
|
|
|
|
word zpl_strncpy, str_copy
|
|
|
|
word zpl_strlcpy, str_copy_nulpad
|
|
|
|
word zpl_strdup, str_dup
|
|
|
|
word zpl_strchr, str_find
|
|
|
|
word zpl_strrchr, str_find_last
|
|
|
|
word zpl_strstr, str_find_substr
|
|
|
|
word zpl_snprintf, str_fmt
|
|
|
|
word zpl_snprintf_va, str_fmt_va
|
|
|
|
word zpl_asprintf, str_fmt_alloc
|
|
|
|
word zpl_asprintf_va, str_fmt_alloc_va
|
|
|
|
word zpl_bprintf, str_fmt_buf
|
|
|
|
word zpl_bprintf_va, str_fmt_buf_va
|
|
|
|
word zpl_printf, str_fmt_out
|
|
|
|
word zpl_printf_va, str_fmt_out_va
|
|
|
|
word zpl_printf_err, str_fmt_out_err
|
|
|
|
word zpl_printf_err_va, str_fmt_out_err_va
|
|
|
|
word zpl_fprintf, str_fmt_file
|
|
|
|
word zpl_fprintf_va, str_fmt_file_va
|
|
|
|
word zpl_strlen, str_len
|
|
|
|
word zpl_strnlen, str_len
|
|
|
|
word zpl_strrev, str_reverse
|
|
|
|
word zpl_strtok, str_tok
|
|
|
|
word zpl_strtok_r, str_tok_reentrant
|
|
|
|
word zpl_sleep, thread_sleep
|
|
|
|
word zpl_sleep_ms, thread_sleep_ms
|
|
|
|
word zpl_yield_thread, thread_yield
|
|
|
|
word zpl_utf8_strlen, utf8_len
|
|
|
|
word zpl_utf8_strnlen, utf8_len
|
2023-03-12 18:34:55 -07:00
|
|
|
|
|
|
|
// Undesired typedefs
|
2023-03-17 15:12:20 -07:00
|
|
|
word zpl_i8, s8
|
|
|
|
word zpl_i16, s16
|
|
|
|
word zpl_i32, s32
|
|
|
|
word zpl_i64, s64
|
|
|
|
word zpl_u8, u8
|
|
|
|
word zpl_u16, u16
|
|
|
|
word zpl_u32, u32
|
|
|
|
word zpl_u64, u64
|
|
|
|
word zpl_intptr, sptr
|
2023-03-12 19:13:18 -07:00
|
|
|
word zpl_uintptr, uptr
|
2023-03-17 15:12:20 -07:00
|
|
|
word zpl_usize, uw
|
|
|
|
word zpl_isize, sw
|
2023-03-12 18:34:55 -07:00
|
|
|
|
|
|
|
// Undesired exposures.
|
2023-04-19 12:53:01 -07:00
|
|
|
word cast, zpl_cast
|
2023-03-12 18:34:55 -07:00
|
|
|
|
2023-04-19 12:53:01 -07:00
|
|
|
not word zpl_thread_local
|
2023-03-12 18:34:55 -07:00
|
|
|
|
2023-04-19 12:53:01 -07:00
|
|
|
// Name Conflicts
|
|
|
|
word file_size, fsize
|
|
|
|
word alloc, allocator
|