summaryrefslogtreecommitdiffhomepage
path: root/parser/raylib_parser.c
AgeCommit message (Collapse)Author
2024-06-22Fix mistakes in example usages in raylib_parser help text (#4084)Peter0x44
2024-05-29[parser] MemoryCopy() calls: Prevent buffer overflow by replacing hard-coded ↵avx0
arguments (#4011) In future, if a dev edits the second arg and miscalulates the corresponding 3rd arg, there will be a buffer overflow or the string (2nd arg) will be cut short. This commit prevents that.
2024-05-15[parser] Don't crash for files that don't end in newlines (#3981)Peter0x44
The parser assumes all lines end in newlines, but sometimes this isn't true. Check for a null terminator along with '\n' when stripping leading spaces.
2024-05-13Fix parsing of empty parentheses (#3974)Filyus
Co-authored-by: Filyus <[email protected]>
2024-01-02Update copyright to 2024Ray
2023-10-08Update raylib_parser.cRay
2023-10-08Format tweaksRay
2023-09-29Update raylib_parser.cRay
2023-02-15REPLACE: TABS by 4 spacesRay
2023-01-27Raylib.h has exceeded 512 functions! (#2896)Antonis Geralis
2023-01-01Update year to 2023Ray
2022-10-20Review parser Makefile (#2765)Peter0x44
* parser: Fail gracefully if a nonexistent file is passed on the command line Before, if a nonexistent file was passed to LoadFileText(), it would return NULL, and the parser would happily dereference it. * parser: Refactor Makefile and update the path to easings.h (now reasings.h) Before, the `make all` target would simply segfault, see 0a679d79 Now, if a file in the `make all` target doesn't exist, make will write an error. Individual API files can be generated likeso, provided the header file the target depends on exists: FORMAT=JSON EXTENSION=json make raygui_api.json In order for the `make all` target to succeed, raygui.h, physac.h and rmem.h need to be added to the correct directory.
2022-08-14Fixed issue with new output formatRay
2022-08-05Update raylib_parser.cRay
2022-08-02Review some warningsRay
2022-08-02Update raylib_parser.cRay
2022-08-02Update raylib_parser.cRay
2022-05-06Add support for calculated defines to parser (#2463)lazaray
* Add support for calculated defines to parser * Regenerate parser output
2022-05-06Add support for truncating parser input (#2464)lazaray
* Add support for truncating parser input * Remove RLAPI from implementations in rlgl.h
2022-05-04Reorder parser (#2462)lazaray
* Reorder parser output * Regenerate parser output * Reorder parser line reading * Reorder parser data parsing * Reorder remaining parser stuff
2022-05-04Parser improvements (#2461)lazaray
* Fix parser function description detection Some functions in easings.h are defined on a single line and include a division which was mistaken for the start of the description. * Fix parser detection of macros including spaces * Add support for self-referencing structs to parser * Fix parser code style * Fix parser handling of multiple fields on one line * Increase parser MAX_STRUCT_FIELDS For internal rlglData State struct (internal structs are still not supported but this makes it less wrong). * Add description helper to parser * Regenerate parser output * Add cakkbacks to parser * Regenerate parser output * Refactor funcLines to be an array of line numbers It used to be an array of pointers into the text buffer but was changed to be an array of pointers to the lines. Now it is an array of line numbers like the others. * Fix code style * Move array size from name to type * Regenerate parser output
2022-05-01Add aliases to parser (#2444)lazaray
* Fix parser indentation * Fix parser comments * Add aliases to parser * Regenerate parser output * Fix parser handling of multiple fields on one line * Regenerate parser output * Fix parser code style
2022-04-05Fix string defines generating invalid XML (#2426)Benedek Szilvasy
2022-03-17Fix inline enum (#2393)Ethan Conneely
2022-03-08Update parser (#2375)Ethan Conneely
* Add variable len args support * Api Regen for 4.1dev
2022-02-03Added defines to parser (#2269)iskolbin
* added defines to parser * added value and description for defines in parser * parser: fixed lua defines output, fixed makefile for raygui, added LONG type for defines * parser defines: remove postfix for LONG/FLOAT, support for hexadecimal consts, convert hex ints to decimal for JSON output * removed defines from raylib_apis
2022-01-05Review parameters description size (not used)Ray
2022-01-04JSON parser: Use array for function params (#2255) (#2264)gtrxAC
* JSON parser: Use array for function params (#2255) * Parser: follow C convention of type before name
2021-12-16Parse struct descriptions (#2214)Benedek Szilvasy
* Update struct parser to parse from lines buffer * Parse struct description * Fix erroneous comment
2021-12-16REVIEWED: EscapeBackslashes() in raylib-parserRay
2021-12-16Parse enum descriptions and value descriptions (#2208)Benedek Szilvasy
* Parse enum descriptions and value descriptions * Put braces on newline * Properly escape strings * Realise that XML doesn't actually need backslash escapes * Replace FPrintfEscapes with EscapeBackslashes * Remove #include <stdarg.h> * Update EscapeBackslashes description
2021-11-13Fix memory leak in parser (#2136)Ronnie Holm
2021-11-11added LUA output format for parser; added Makefile for raylib_parser; added ↵iskolbin
raylib_api.lua parser result; added raylib_parser binary to gitignore (#2129)
2021-07-29impoves raylib_parser: makes it generic, adds -d key for functions define ↵iskolbin
(RLAPI for raylib.h), increases maxiumum number of fields in structs and values in enums, doubles max length of struct field names; split float3/float16 struct typedefs in raymath to allow parser to process the file (#1901)
2021-07-16REVIEWED: Possible memory leakraysan5
2021-06-13Improved raylib parser to export data as XMLRay
- Improved command-line - Added XML support - Added sample outputs: DEFAULT, JSON, XML - Reviewed LoadFileText() bug - Removed trailing spaces
2021-06-13Add nullptr check before passing arg (#1825)Tobias Mock
2021-06-06Fix parsing multiple struct fields defined in one line (#1813)Deathbat2190
2021-06-06parser: Add JSON support with --json (#1812)Rob Loach
2021-06-02Small parser bugfix (#1805)Deathbat2190
2021-05-31Reviewed struct field nameRay
2021-05-30Structs tweaks for consistencyRay
2021-05-30ADDED: raylib header parserRay