Skip to content

[STRING] Don't hardcode the string length, instead use a #define.#37

Merged
differrari merged 1 commit intodifferrari:mainfrom
BlurrySquire:string-improvements
Aug 16, 2025
Merged

[STRING] Don't hardcode the string length, instead use a #define.#37
differrari merged 1 commit intodifferrari:mainfrom
BlurrySquire:string-improvements

Conversation

@BlurrySquire
Copy link
Copy Markdown
Contributor

Instead of hard coding the string length I put a #define in the header so that it is much easier to change the maximum string length as there quite a couple uses of it throughout shared/std/string.c. This also makes it easier to understand that what the number 256 represents (the max string length). In some places 255 is used so I just did MAX_STRING_LEN - 1.

@differrari differrari merged commit f721de7 into differrari:main Aug 16, 2025
1 check passed
@BlurrySquire BlurrySquire deleted the string-improvements branch August 16, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants