Skip to content

Commit 1fa3c15

Browse files
committed
Revert "add const qualifier to the first arg of TextJoin (#5166)"
This reverts commit 4e8d085.
1 parent 4e8d085 commit 1fa3c15

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/raylib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ RLAPI const char *TextFormat(const char *text, ...);
15151515
RLAPI const char *TextSubtext(const char *text, int position, int length); // Get a piece of a text string
15161516
RLAPI char *TextReplace(const char *text, const char *replace, const char *by); // Replace text string (WARNING: memory must be freed!)
15171517
RLAPI char *TextInsert(const char *text, const char *insert, int position); // Insert text in a position (WARNING: memory must be freed!)
1518-
RLAPI char *TextJoin(const char **textList, int count, const char *delimiter); // Join text strings with delimiter
1518+
RLAPI char *TextJoin(char **textList, int count, const char *delimiter); // Join text strings with delimiter
15191519
RLAPI char **TextSplit(const char *text, char delimiter, int *count); // Split text into multiple strings, using MAX_TEXTSPLIT_COUNT static strings
15201520
RLAPI void TextAppend(char *text, const char *append, int *position); // Append text at specific position and move cursor!
15211521
RLAPI int TextFindIndex(const char *text, const char *find); // Find first text occurrence within a string, -1 if not found

src/rtext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,7 @@ char *TextInsert(const char *text, const char *insert, int position)
17141714

17151715
// Join text strings with delimiter
17161716
// REQUIRES: memset(), memcpy()
1717-
char *TextJoin(const char **textList, int count, const char *delimiter)
1717+
char *TextJoin(char **textList, int count, const char *delimiter)
17181718
{
17191719
static char buffer[MAX_TEXT_BUFFER_LENGTH] = { 0 };
17201720
memset(buffer, 0, MAX_TEXT_BUFFER_LENGTH);

tools/parser/output/raylib_api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9754,7 +9754,7 @@
97549754
"returnType": "char *",
97559755
"params": [
97569756
{
9757-
"type": "const char **",
9757+
"type": "char **",
97589758
"name": "textList"
97599759
},
97609760
{

tools/parser/output/raylib_api.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6933,7 +6933,7 @@ return {
69336933
description = "Join text strings with delimiter",
69346934
returnType = "char *",
69356935
params = {
6936-
{type = "const char **", name = "textList"},
6936+
{type = "char **", name = "textList"},
69376937
{type = "int", name = "count"},
69386938
{type = "const char *", name = "delimiter"}
69396939
}

tools/parser/output/raylib_api.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3734,7 +3734,7 @@ Function 434: TextJoin() (3 input parameters)
37343734
Name: TextJoin
37353735
Return type: char *
37363736
Description: Join text strings with delimiter
3737-
Param[1]: textList (type: const char **)
3737+
Param[1]: textList (type: char **)
37383738
Param[2]: count (type: int)
37393739
Param[3]: delimiter (type: const char *)
37403740
Function 435: TextSplit() (3 input parameters)

tools/parser/output/raylib_api.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2474,7 +2474,7 @@
24742474
<Param type="int" name="position" desc="" />
24752475
</Function>
24762476
<Function name="TextJoin" retType="char *" paramCount="3" desc="Join text strings with delimiter">
2477-
<Param type="const char **" name="textList" desc="" />
2477+
<Param type="char **" name="textList" desc="" />
24782478
<Param type="int" name="count" desc="" />
24792479
<Param type="const char *" name="delimiter" desc="" />
24802480
</Function>

0 commit comments

Comments
 (0)