Commit Graph

30 Commits

Author SHA1 Message Date
Add00
c43310f316 Code clean up 2023-07-31 13:13:10 -04:00
Add00
5317a12383 Added radian and degree conversion functions. 2023-07-30 23:17:43 -04:00
Kayne Ruse
0cef0abdb5 Adjusted the layout of nativeClamp() and nativeLerp(), thanks Add00! 2023-07-31 04:51:40 +10:00
Add00
3cb62274c9 Fixed merge issue 2023-07-30 13:21:42 -04:00
Add00
70b2dcd829 Added clamp and lerp functions to standard library 2023-07-30 13:15:39 -04:00
Kayne Ruse
4137935468 Added sign() and normalize() to standard lib 2023-07-30 17:46:00 +10:00
Kayne Ruse
ba98624e82 Fixed C-API function name, resolved #87, thanks @hiperiondev 2023-07-26 00:22:45 +10:00
Kayne Ruse
1ec0f63f76 Removed unneeded safties from the libs
I missed removing these before, and I haven't needed these in a long time.
2023-07-21 04:25:36 +10:00
Kayne Ruse
67fce427eb Added an initial sorted test to the sort() function 2023-06-13 08:17:42 +10:00
Kayne Ruse
8a2cb61435 Made quicksort on mostly-sorted arrays more efficient 2023-06-13 07:28:54 +10:00
Ratstail91
efc1e764d2 Patched a casting error in round 2023-02-27 23:27:11 +11:00
Kayne Ruse
348b7b8c24 Added some math utils to standard
* ceil
* floor
* max
* min
* round
2023-02-27 21:32:31 +11:00
Kayne Ruse
3e6d21afbb Added abs(), hash() to libstandard 2023-02-23 18:36:12 +11:00
Kayne Ruse
7f0f17b6e0 Patched up failures from Toy_parseIdentifierToValue
I really don't like that function - it needs to be replaced.
2023-02-20 06:11:30 +00:00
Kayne Ruse
49f240ea07 Minor tweak 2023-02-18 12:15:23 +00:00
Kayne Ruse
0737b2a483 Dropped underscore functions in favour of UFCS 2023-02-14 08:37:31 +00:00
Kayne Ruse
eae96d6403 Corrected the order of arguments to Toy_callLiteralFn() 2023-02-14 08:00:35 +00:00
Kayne Ruse
eb8e522bf2 Merged standard and timer, resolved #48 2023-02-13 13:58:41 +00:00
Kayne Ruse
457014d577 Added MSVC build support, likely broke tests 2023-02-11 00:49:21 +00:00
Kayne Ruse
7ea249f723 Added the about library, resolved #51 2023-02-05 14:43:46 +00:00
Kayne Ruse
ebbcba1b16 Enabled -std=c18 -pedantic, fixed all resulting errors
Thanks @gyrovorbis
2023-01-28 08:54:46 +00:00
Kayne Ruse
2e2bee4fa3 Renemed all variables to fit into a namespace
Basically, all Toy varaibles, functions, etc. are prepended with "Toy_",
and macros are prepended with "TOY_". This is to reduce namespace
pollution, which was an issue pointed out to be - blame @GyroVorbis.

I've also bumped the minor version number - theoretically I should bump
the major number, but I'm not quite ready for 1.0 yet.
2023-01-25 12:55:55 +00:00
Kayne Ruse
0649a141dd Moved time header includes, comment tweaks 2023-01-13 15:39:22 +00:00
Kayne Ruse
584fb115b6 Fixed the awful rule110 implementation 2022-11-28 16:48:45 +00:00
Kayne Ruse
fb55f42d0e Tweaked where strlen() is called 2022-11-26 15:53:07 +00:00
Kayne Ruse
cfafba589b All tests passing, repl builds successfully 2022-11-26 09:53:59 +00:00
Kayne Ruse
e0ab4106fa Implemented the timer library 2022-11-11 17:18:07 +00:00
Kayne Ruse
aa44d5fd43 Added aliasing of standard as a feature of standard 2022-09-24 07:20:26 +01:00
GruelingPine185
ecbfcc28b5 resolved line ending warnings 2022-09-23 18:16:53 -04:00
Kayne Ruse
9c790f8cd6 Got hooks working 2022-09-17 13:01:09 +01:00