diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-18 13:31:47 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-18 13:31:47 +0200 |
| commit | 4f77ad5d019618893c59a0f8d5bfa6b98e50a3be (patch) | |
| tree | d9e01460ecf94a491be476fbca76b6608276d967 /source/cstring.elna | |
| parent | 4b7c87a9b53f5317e9f7982bd779d53a66960bdc (diff) | |
| download | elna-4f77ad5d019618893c59a0f8d5bfa6b98e50a3be.tar.gz | |
Make Int and Word aliases to fixed-size types
Diffstat (limited to 'source/cstring.elna')
| -rw-r--r-- | source/cstring.elna | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/cstring.elna b/source/cstring.elna index 0b4bd90..9290a5c 100644 --- a/source/cstring.elna +++ b/source/cstring.elna @@ -2,7 +2,7 @@ v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. *) -proc memset*(ptr: Pointer; c: Int; n: Word): ^Char +proc memset*(ptr: Pointer; c: Int; n: Word): ^Word8 extern proc memcpy*(dst: Pointer; src: const Pointer; n: Word) @@ -11,19 +11,19 @@ extern proc memcmp*(s1, s2: const Pointer; n: Word): Int extern -proc strcmp*(s1: ^const Char; s2: ^const Char): Int +proc strcmp*(s1: ^const Word8; s2: ^const Word8): Int extern -proc strncmp*(s1: ^const Char; s2: ^const Char; n: Word): Int +proc strncmp*(s1: ^const Word8; s2: ^const Word8; n: Word): Int extern -proc strncpy*(dst: ^Char; src: ^const Char; dsize: Word): ^Char +proc strncpy*(dst: ^Word8; src: ^const Word8; dsize: Word): ^Word8 extern -proc strcpy*(dst: ^Char; src: ^const Char): ^Char +proc strcpy*(dst: ^Word8; src: ^const Word8): ^Word8 extern -proc strlen*(ptr: ^const Char): Word +proc strlen*(ptr: ^const Word8): Word extern end. |
