summaryrefslogtreecommitdiffhomepage
path: root/src/utils.c
AgeCommit message (Collapse)Author
2024-04-20REVIEWED: Remove final punctuation in code commentsRay
2024-04-02Remove trailing spacesRay
2024-02-27Change sanitization check for `ExportDataAsCode` (#3837)Laurentino Luna
* Change sanitization check for `ExportDataAsCode` I opted to use `isalnum` function since it should handle most cases. It cannot however handle cases of files beginning with numbers. * Update `ExportDataAsCode` condition * Reinsert comment on `ExportDataAsCode`
2024-02-26Add very little sanitization to indentifier names in ExportDataAsCode() (#3832)4rk
2024-01-02Update copyright to 2024Ray
2023-09-22REVIEWED: `LoadFileData()` potential issues with dataSizeRay
2023-09-02REVIEWED: Data size type consistency between functions #3168Ray
2023-06-17Remove trailing spacesRay
2023-05-22Added security check to file reading (memory allocations)Ray
2023-05-08Remove trailing spacesRay
2023-05-02REVIEWED: `ExportDataAsCode()`Ray
2023-05-01REVIEWED: Modules description layoutRay
2023-04-09Fix warnings in raylib for MSVC (#3004)Jeffery Myers
2023-03-15REVIEWED: `TraceLog()`, avoid possible buffer overflowRay
2023-02-09Fixed some grammar mistakes and typos. (#2914)Julio C. Galindo
* Fixed some grammar mistakes. * Fixed some typos.
2023-01-01Update year to 2023Ray
2022-11-04Fix ExportDataAsCode() data types (#2787)RGDTAB
2022-09-07REVIEWED: Data type to unsignedRay
2022-08-02Remove trailing spacesRay
2022-06-07REVIEWED: Compilation warningsRay
2022-05-06Flush stdout after trace messages (#2465)Daniel Nagy
This immediately shows log messages when stdout is not connected to a tty.
2022-05-06Update utils.cRay
2022-05-06ADDED: `ExportDataAsCode()`Ray
2021-12-31Update year to 2022raysan5
2021-11-10tweakRay
2021-10-13Reviewed some TODORay
2021-07-30REVERTED: Removed the need for `rlMatrix`raysan5
Now rlgl uses the `Matrix` type, just make sure it has been previously defined somewhere... I don't like this approach but it's probably the easier one for the users... still looking for a better solution... maybe using something like `#define MATRIX_TYPE`, so it can be checked in other modules.
2021-07-29WARNING: BREAKING CHANGE: rlgl complete decoupling from raylib -WIP-raysan5
rlgl has been redesigned to avoid any dependency to `raylib` or `raymath`, all functions using some of those libs have been reviewed. - REMOVED: `Texture2D`, `Shader` structs dependency - REMOVED: `Vector3`, `Matrix` structs dependency - REMOVED: raymath functions dependency, all required math is implemented in rlgl - ADDED: `rlMatrix` custom rlgl type - ADDED: `utils.c`: `rlMatrixFromMatrix()` and `rlMatrixToMatrix()` for a safe conversion between raylib<->rlgl matrix types - ADDED: `rl` prefix to all `rlgl` structs - Other small tweaks here and there
2021-07-26Remove unused UWP defines (#1894)Uneven Prankster
* Unused UWP define removal * Further removal of unusued UWP defines
2021-06-26Minor tweaks to follow code conventionsRay
2021-06-10Review some commentsRay
2021-05-30REVIEWED: exit() on LOG_FATAL instead of LOG_ERROR #1796Ray
2021-05-22Some code tweaks for consistencyRay
2021-04-16Minor tweaksRay
2021-04-03Make SaveFile* callbacks return a boolean (#1697)Rob Loach
2021-04-01Remove trailing spacesraysan5
2021-03-08ADDED: Required callbacksRay
Removed memory allocation callbacks
2021-03-04ADDED: Config flag: SUPPORT_STANDARD_FILEIORay
This new flag allows omitting stdio.h library in case of a custom implementation is used.
2021-03-04Some naming tweaksRay
2021-03-04FEATURE: Several callbacks added -WIP- #1523 #1329Ray
NOTE: This feature is still under consideration and not complete.
2021-02-05REMOVED: SetTraceLogExit()raysan5
I feel nobody has ever used this function...
2021-01-02Update year to 2021raysan5
2020-12-23Remove trailing spacesraysan5
2020-12-19ADDED: MemAlloc() / MemFree() #1440Ray
Exposing internal memory allocator/free, useful for advance users when required
2020-12-14ADDED: UnloadFileData() / UnloadFileText() #1440Ray
2020-11-22Exposing some file access results to user layer #1420Ray
2020-11-03Remove trailing spacesRay
2020-11-01REVIEWED: SaveFileText() error checkingRay
2020-05-23Review usage of sizeof(), unify conventionsraysan5
All functions requiring sizeof() now follow the same convention: NUM_ELEMENTS*NUM_SUBELEMENTS*sizeof()
2020-05-06Avoid all MSVC compile warningsraysan5
Most warning were related to types conversion (casting required) and unsigned/signed types comparisons. Added preprocessor directives (_CRT_SECURE_NO_DEPRECATE; _CRT_NONSTDC_NO_DEPRECATE) to avoid warnings about unsafe functions, those functions are safe while used properly and recommended alternatives are MS only. Some external libraries still generate warnings.