Commit Graph

15 Commits

Author SHA1 Message Date
abdelrahman a998f6b981 Standardize naming conventions (#12)
Release / release (push) Successful in 8s
## 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.

Reviewed-on: #12
Co-authored-by: Abdelrahman <said.abdelrahman89@gmail.com>
Co-committed-by: Abdelrahman <said.abdelrahman89@gmail.com>
2026-06-26 17:17:27 +00:00
abdelrahman 9af9cedd51 Add pointer offset utility 2026-01-11 23:46:12 +00:00
abdelrahman 83b879a180 Always reserve padding for structs that need it 2026-01-03 17:04:36 +00:00
abdelrahman ebf16c6ba3 Move is_power_of_two to misc_utils 2026-01-02 19:19:25 +00:00
abdelrahman 6f27d5ea91 Reformat common 2026-01-02 00:30:55 +00:00
abdelrahman ad2de98093 Switch to using tabs instead of spaces (#9)
Reviewed-on: #9
2025-12-29 22:46:52 +00:00
abdelrahman a065dfb573 Expand data size utilities 2025-12-24 08:53:12 +00:00
abdelrahman 31727dd6e7 Update va_arg_count C++ utility to support MSVC 2025-12-15 23:40:03 +00:00
abdelrahman d3fccd61b5 Reintroduce C++ support and add usage tests for C++ (#4)
Reviewed-on: #4
Co-authored-by: Abdelrahman <said.abdelrahman89@gmail.com>
Co-committed-by: Abdelrahman <said.abdelrahman89@gmail.com>
2025-08-10 22:33:40 +00:00
abdelrahman 75be2316e0 Add vim encoding and folding marker 2025-08-09 14:35:28 +01:00
abdelrahman 14115f7e7e Move rounding up and va_args count to misc_utils 2025-04-21 17:46:27 +01:00
Abdelrahman Said ce4957d0a0 Update common headers to user relative includes 2025-02-24 07:21:28 +00:00
abdelrahman 1d1c3ca928 Split the platform specific mem_utils implementations 2024-10-05 23:05:32 +01:00
abdelrahman 1fb340561f Add size utils 2024-08-23 21:48:38 +01:00
abdelrahman f6dd7e7aa8 Reorganise files 2024-06-16 12:29:43 +01:00