Fix unicode characters
+4
-4
@@ -89,7 +89,7 @@ Convenience typedefs for common element types:
|
||||
| `wapp_array_set(TYPE, ARRAY, INDEX, VALUE_PTR)` | Sets the element at `INDEX` from `VALUE_PTR` |
|
||||
| `wapp_array_pop(TYPE, ARRAY)` | Pops and returns the last element by value. Returns `0`/`{}` if empty. |
|
||||
|
||||
### Mutation (Capped — no allocation)
|
||||
### Mutation (Capped - no allocation)
|
||||
|
||||
| Macro | Description |
|
||||
|-------|-------------|
|
||||
@@ -98,7 +98,7 @@ Convenience typedefs for common element types:
|
||||
| `wapp_array_copy_capped(TYPE, DST, SRC)` | Copies `SRC` elements into `DST` within capacity. |
|
||||
| `wapp_array_clear(TYPE, ARRAY)` | Resets the element count to 0 |
|
||||
|
||||
### Mutation (Allocator-backed — may reallocate)
|
||||
### Mutation (Allocator-backed - may reallocate)
|
||||
|
||||
| Macro | Description |
|
||||
|-------|-------------|
|
||||
@@ -287,7 +287,7 @@ typedef const Str8 Str8RO; // read-only view
|
||||
printf("Value: " WAPP_STR8_SPEC "\n", wapp_str8_varg(my_str));
|
||||
```
|
||||
|
||||
### Creation — Stack
|
||||
### Creation - Stack
|
||||
|
||||
| Macro | Description |
|
||||
|-------|-------------|
|
||||
@@ -296,7 +296,7 @@ printf("Value: " WAPP_STR8_SPEC "\n", wapp_str8_varg(my_str));
|
||||
| `wapp_str8_lit_ro(STRING)` | Creates a read-only view of a string literal |
|
||||
| `wapp_str8_lit_ro_initialiser_list(STRING)` | For use in static initialisers when compound literals aren't supported |
|
||||
|
||||
### Creation — Allocator
|
||||
### Creation - Allocator
|
||||
|
||||
| Function | Description |
|
||||
|----------|-------------|
|
||||
|
||||
+18
-18
@@ -68,33 +68,33 @@ The library auto-detects the target platform and defines the appropriate macros.
|
||||
### Platform Macros
|
||||
|
||||
**OS Family:**
|
||||
- `WAPP_PLATFORM_POSIX` – Any POSIX-compliant system
|
||||
- `WAPP_PLATFORM_WINDOWS` – Any Windows system (including Cygwin)
|
||||
- `WAPP_PLATFORM_UNIX` – Traditional Unix systems
|
||||
- `WAPP_PLATFORM_POSIX` - Any POSIX-compliant system
|
||||
- `WAPP_PLATFORM_WINDOWS` - Any Windows system (including Cygwin)
|
||||
- `WAPP_PLATFORM_UNIX` - Traditional Unix systems
|
||||
|
||||
**Specific Platforms:**
|
||||
- `WAPP_PLATFORM_LINUX` – Linux
|
||||
- `WAPP_PLATFORM_MACOS` – macOS
|
||||
- `WAPP_PLATFORM_IOS` – iOS
|
||||
- `WAPP_PLATFORM_ANDROID` – Android
|
||||
- `WAPP_PLATFORM_FREE_BSD` – FreeBSD
|
||||
- `WAPP_PLATFORM_NET_BSD` – NetBSD
|
||||
- `WAPP_PLATFORM_OPEN_BSD` – OpenBSD
|
||||
- `WAPP_PLATFORM_DRAGON_FLY` – DragonFly BSD
|
||||
- `WAPP_PLATFORM_GNU` – GNU/Hurd
|
||||
- `WAPP_PLATFORM_CYGWIN` – Cygwin
|
||||
- `WAPP_PLATFORM_WINDOWS64` – 64-bit Windows
|
||||
- `WAPP_PLATFORM_WINDOWS32` – 32-bit Windows
|
||||
- `WAPP_PLATFORM_APPLE` – Any Apple platform
|
||||
- `WAPP_PLATFORM_LINUX` - Linux
|
||||
- `WAPP_PLATFORM_MACOS` - macOS
|
||||
- `WAPP_PLATFORM_IOS` - iOS
|
||||
- `WAPP_PLATFORM_ANDROID` - Android
|
||||
- `WAPP_PLATFORM_FREE_BSD` - FreeBSD
|
||||
- `WAPP_PLATFORM_NET_BSD` - NetBSD
|
||||
- `WAPP_PLATFORM_OPEN_BSD` - OpenBSD
|
||||
- `WAPP_PLATFORM_DRAGON_FLY` - DragonFly BSD
|
||||
- `WAPP_PLATFORM_GNU` - GNU/Hurd
|
||||
- `WAPP_PLATFORM_CYGWIN` - Cygwin
|
||||
- `WAPP_PLATFORM_WINDOWS64` - 64-bit Windows
|
||||
- `WAPP_PLATFORM_WINDOWS32` - 32-bit Windows
|
||||
- `WAPP_PLATFORM_APPLE` - Any Apple platform
|
||||
|
||||
### Language Version Macros
|
||||
|
||||
**C Language:**
|
||||
- `WAPP_PLATFORM_C` – Defined when compiling as C
|
||||
- `WAPP_PLATFORM_C` - Defined when compiling as C
|
||||
- `WAPP_PLATFORM_C89`, `WAPP_PLATFORM_C99`, `WAPP_PLATFORM_C11`, `WAPP_PLATFORM_C17`, `WAPP_PLATFORM_C23`
|
||||
|
||||
**C++ Language:**
|
||||
- `WAPP_PLATFORM_CPP` – Defined when compiling as C++
|
||||
- `WAPP_PLATFORM_CPP` - Defined when compiling as C++
|
||||
- `WAPP_PLATFORM_CPP98`, `WAPP_PLATFORM_CPP11`, `WAPP_PLATFORM_CPP14`, `WAPP_PLATFORM_CPP17`, `WAPP_PLATFORM_CPP20`, `WAPP_PLATFORM_CPP23`
|
||||
|
||||
---
|
||||
|
||||
+3
-3
@@ -25,15 +25,15 @@ struct WUUID {
|
||||
|
||||
| Constant | Description |
|
||||
|----------|-------------|
|
||||
| `UUID_BUF_LENGTH` | `48` — recommended buffer size for UUID strings |
|
||||
| `WAPP_UUID_SPEC` | `WAPP_STR8_SPEC` — for printf formatting |
|
||||
| `UUID_BUF_LENGTH` | `48` - recommended buffer size for UUID strings |
|
||||
| `WAPP_UUID_SPEC` | `WAPP_STR8_SPEC` - for printf formatting |
|
||||
| `wapp_uuid_varg(wuuid)` | Expands to `wapp_str8_varg((WUUID).uuid)` for printf |
|
||||
|
||||
### Convenience Macro
|
||||
|
||||
| Macro | Description |
|
||||
|-------|-------------|
|
||||
| `wapp_uuid_gen_uuid4()` | One-shot UUID v4 generation. Creates a buffer and returns a fully initialised `WUUID` in a single expression — no variables needed. |
|
||||
| `wapp_uuid_gen_uuid4()` | One-shot UUID v4 generation. Creates a buffer and returns a fully initialised `WUUID` in a single expression - no variables needed. |
|
||||
|
||||
### Low-Level API
|
||||
|
||||
|
||||
Reference in New Issue
Block a user