mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-25 08:13:58 -04:00
various rlparser fixes (#5794)
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@ -125,8 +125,8 @@ build-*/
|
|||||||
docgen_tmp/
|
docgen_tmp/
|
||||||
|
|
||||||
# Tools stuff
|
# Tools stuff
|
||||||
tools/parser/rlparser.exe
|
tools/rlparser/rlparser.exe
|
||||||
tools/parser/rlparser
|
tools/rlparser/rlparser
|
||||||
tools/rexm/rexm.exe
|
tools/rexm/rexm.exe
|
||||||
tools/rexm/rexm
|
tools/rexm/rexm
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# rlparser - raylib parser
|
# rlparser - raylib parser
|
||||||
|
|
||||||
This parser scans [`raylib.h`](../src/raylib.h) to get information about `defines`, `structs`, `enums` and `functions`.
|
This parser scans [`raylib.h`](../../src/raylib.h) to get information about `defines`, `structs`, `enums` and `functions`.
|
||||||
All data is separated into parts, usually as strings. The following types are used for data:
|
All data is separated into parts, usually as strings. The following types are used for data:
|
||||||
|
|
||||||
- `struct DefineInfo`
|
- `struct DefineInfo`
|
||||||
|
|||||||
@ -202,7 +202,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
if (argc > 1) ProcessCommandLine(argc, argv);
|
if (argc > 1) ProcessCommandLine(argc, argv);
|
||||||
|
|
||||||
const char *raylibhPath = "../src/raylib.h\0";
|
const char *raylibhPath = "../../src/raylib.h\0";
|
||||||
const char *raylibapiPath = "raylib_api.txt\0";
|
const char *raylibapiPath = "raylib_api.txt\0";
|
||||||
const char *rlapiPath = "RLAPI\0";
|
const char *rlapiPath = "RLAPI\0";
|
||||||
if (inFileName[0] == '\0') MemoryCopy(inFileName, raylibhPath, TextLength(raylibhPath) + 1);
|
if (inFileName[0] == '\0') MemoryCopy(inFileName, raylibhPath, TextLength(raylibhPath) + 1);
|
||||||
@ -1154,7 +1154,7 @@ static void ProcessCommandLine(int argc, char *argv[])
|
|||||||
else if (IsTextEqual(argv[i + 1], "JSON\0", 5)) outputFormat = JSON;
|
else if (IsTextEqual(argv[i + 1], "JSON\0", 5)) outputFormat = JSON;
|
||||||
else if (IsTextEqual(argv[i + 1], "XML\0", 4)) outputFormat = XML;
|
else if (IsTextEqual(argv[i + 1], "XML\0", 4)) outputFormat = XML;
|
||||||
else if (IsTextEqual(argv[i + 1], "LUA\0", 4)) outputFormat = LUA;
|
else if (IsTextEqual(argv[i + 1], "LUA\0", 4)) outputFormat = LUA;
|
||||||
else if (IsTextEqual(argv[i + 1], "CODE\0", 4)) outputFormat = CODE;
|
else if (IsTextEqual(argv[i + 1], "CODE\0", 5)) outputFormat = CODE;
|
||||||
}
|
}
|
||||||
else printf("WARNING: No format parameters provided\n");
|
else printf("WARNING: No format parameters provided\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user