Commit Graph

278 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 Said a97b8f742a Update logging 2026-06-23 23:48:19 +01:00
Abdelrahman Said 99902cfa99 Add utilities to write strings to file 2026-06-23 23:48:02 +01:00
abdelrahman 7a314a0038 Fix include paths
Release / release (push) Successful in 4s
2026-05-25 17:41:52 +01:00
abdelrahman a6b697dd0e Pad logger struct for MSVC
Release / release (push) Successful in 3s
2026-05-17 17:46:50 +01:00
abdelrahman c67a448d00 Add basic logging functionality
Release / release (push) Successful in 6s
2026-05-17 18:40:10 +01:00
abdelrahman 2e5163ba33 Implement functions to get stdin, stdout & stderr
Release / release (push) Successful in 2s
2026-05-17 12:21:23 +01:00
abdelrahman 515493b963 Fix queue MSVC errors 2026-05-17 12:20:47 +01:00
abdelrahman 8061692801 Add standard streams
Release / release (push) Successful in 3s
2026-05-17 11:13:40 +01:00
abdelrahman f61cb3cae0 Minor shell commander tweaks 2026-05-17 10:17:36 +01:00
abdelrahman 946bcc9b59 Replace extern 2026-05-17 09:44:11 +01:00
abdelrahman 7ffebe7dce Fix missing semi-colon
Release / release (push) Successful in 3s
2026-05-10 02:22:46 +01:00
abdelrahman 9c727950d8 Call UUID lambdas
Release / release (push) Successful in 3s
2026-05-10 02:21:38 +01:00
abdelrahman c7c4f88866 Fix wapp_uuid_gen_uuid4 for C++
Release / release (push) Successful in 5s
2026-05-10 02:19:34 +01:00
abdelrahman 6346765e32 Fix UUID for C++
Release / release (push) Successful in 5s
2026-05-10 02:13:41 +01:00
abdelrahman eeed101228 Move large file source def to code 2026-03-08 13:10:17 +00:00
abdelrahman 6b88d7e3fe Add TODO for updating UUID implementation 2026-02-09 00:02:21 +00:00
abdelrahman 58dab46902 Revert "Update uuid C++ implementation"
This reverts commit 1cdb08a81a.
2026-02-08 23:57:09 +00:00
abdelrahman 269ee5d9ab Revert "Update uuid C++ implementation"
This reverts commit 610df6869f.
2026-02-08 23:57:05 +00:00
abdelrahman 610df6869f Update uuid C++ implementation 2026-02-08 23:53:30 +00:00
abdelrahman 1cdb08a81a Update uuid C++ implementation 2026-02-08 23:48:02 +00:00
abdelrahman 8d9ef89329 Fix bug with queue 2026-02-08 19:16:36 +00:00
Abdelrahman Said 3d3452f523 Update queue implementation to use ring buffer 2026-01-24 20:46:05 +00:00
Abdelrahman Said 8e41b627bc Add function to create array from preallocated buffer 2026-01-24 20:45:52 +00:00
Abdelrahman Said 7a54c28c0f Update array allocation functions 2026-01-24 12:17:15 +00:00
Abdelrahman Said bd659e64fc Ensure array count is set correctly when allocating 2026-01-22 06:09:43 +00:00
Abdelrahman Said 21ac756fad Pass init flags to allocating array utilities 2026-01-19 06:09:36 +00:00
Abdelrahman Said 243f04c0ca Handle lseek64 not existing on macOS 2026-01-19 06:00:09 +00:00
abdelrahman 4cc8cb3d25 Fix MSVC errors 2026-01-11 23:48:35 +00:00
abdelrahman a9f5b9c3c6 Add queue implementation 2026-01-11 23:46:23 +00:00
abdelrahman 9af9cedd51 Add pointer offset utility 2026-01-11 23:46:12 +00:00
abdelrahman 1e536cc3ba Rename array alloc size utility 2026-01-11 21:58:49 +00:00
abdelrahman e6f31e4f7b Update dbl list utilities 2026-01-11 21:46:00 +00:00
abdelrahman 6cd3c6f596 Add utility to get node item 2026-01-11 21:31:55 +00:00
abdelrahman 5a504c6791 Add extra utilities for dbl list 2026-01-11 21:26:17 +00:00
abdelrahman a4492cf8e8 Switch array fill to flags 2026-01-11 20:17:09 +00:00
abdelrahman ce76ac1e7c Add utility to calculate allocation size for array 2026-01-11 19:44:22 +00:00
abdelrahman cff418b9e9 Simplify dbl list API (#11)
Reviewed-on: #11
Co-authored-by: Abdelrahman <said.abdelrahman89@gmail.com>
Co-committed-by: Abdelrahman <said.abdelrahman89@gmail.com>
2026-01-11 18:22:54 +00:00
abdelrahman b88cb71aa8 Update array and dbl list macros 2026-01-05 03:57:50 +00:00
abdelrahman 8efcf14462 Switch numerical aliases to typedefs 2026-01-04 23:10:58 +00:00
abdelrahman 24069529c3 Add temp arena support 2026-01-04 01:21:42 +00:00
abdelrahman d2b4ec2052 Rename dbl list labels 2026-01-03 20:20:40 +00:00
abdelrahman 0a761eef05 Reformat 2026-01-03 19:53:43 +00:00
abdelrahman 821406315e Reformat 2026-01-03 19:51:26 +00:00
abdelrahman 8adbc1f841 Reformat 2026-01-03 19:17:10 +00:00
abdelrahman 1f3df20b7d Reformat 2026-01-03 19:13:42 +00:00
abdelrahman 458046a5d0 Reformat 2026-01-03 18:51:30 +00:00
abdelrahman 6d4a72aff9 Fix MSVC errors 2026-01-03 18:45:54 +00:00
abdelrahman 326265722e Add support for initialising arena with backing buffer 2026-01-03 18:36:30 +00:00
abdelrahman 83b879a180 Always reserve padding for structs that need it 2026-01-03 17:04:36 +00:00