Standardize naming conventions #12

Merged
abdelrahman merged 26 commits from naming-conventions into main 2026-06-26 17:17:27 +00:00
Owner

Summary

Standardize naming conventions across the entire wizapp-stdlib codebase by replacing inconsistent prefixes and snake_case with a unified wp prefix + CamelCase scheme.

Changes

Naming convention applied

Pattern Before After
Public functions wapp_module_function wpModuleFunction
Public types GenericXxx, bare Xxx WpXxx
Constants / enum values WAPP_XXX, SHELL_XXX WP_XXX, WP_SHELL_XXX
Internal functions _module_function _moduleFunction
Storage-class macros wapp_extern, wapp_intern wp_extern, wp_intern

Modules affected

All 20 modules were renamed: arena, array, dbl_list, queue, str8, mem_allocator, mem_utils, mem_os, file, cpath, log, shell_commander, shell_termcolour, shell_utils, prng/xorshift, uuid, tester, aliases, assert, misc_utils, platform — plus their test files.

Backward compatibility

Added src/oldnames.h with #define OLD_NAME NEW_NAME for every renamed symbol, organized by module under Constants → Types → Functions sections. Existing code that includes this file will compile without changes.

## Summary Standardize naming conventions across the entire wizapp-stdlib codebase by replacing inconsistent prefixes and snake_case with a unified `wp` prefix + CamelCase scheme. ## Changes ### Naming convention applied | Pattern | Before | After | |---|---|---| | Public functions | `wapp_module_function` | `wpModuleFunction` | | Public types | `GenericXxx`, bare `Xxx` | `WpXxx` | | Constants / enum values | `WAPP_XXX`, `SHELL_XXX` | `WP_XXX`, `WP_SHELL_XXX` | | Internal functions | `_module_function` | `_moduleFunction` | | Storage-class macros | `wapp_extern`, `wapp_intern` | `wp_extern`, `wp_intern` | ### Modules affected All 20 modules were renamed: `arena`, `array`, `dbl_list`, `queue`, `str8`, `mem_allocator`, `mem_utils`, `mem_os`, `file`, `cpath`, `log`, `shell_commander`, `shell_termcolour`, `shell_utils`, `prng/xorshift`, `uuid`, `tester`, `aliases`, `assert`, `misc_utils`, `platform` — plus their test files. ### Backward compatibility Added `src/oldnames.h` with `#define OLD_NAME NEW_NAME` for every renamed symbol, organized by module under Constants → Types → Functions sections. Existing code that includes this file will compile without changes.
abdelrahman added 26 commits 2026-06-26 17:16:43 +00:00
abdelrahman changed title from Unify naming conventions to Standardize naming conventions 2026-06-26 17:17:21 +00:00
abdelrahman merged commit a998f6b981 into main 2026-06-26 17:17:27 +00:00
abdelrahman deleted branch naming-conventions 2026-06-26 17:17:27 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: abdelrahman/wizapp-stdlib#12