phobos2077
148eefccca
Stringspace optimization: also process strings in default values of local and global variables
2023-06-09 16:56:51 +02:00
phobos2077
cf40c78c33
Fix unused procedure optimization
2023-06-09 15:37:27 +02:00
phobos2077
fcea09ea73
Rewrite "stringify" logic for consistency and take it into account when removing unused strings
2023-06-09 15:13:52 +02:00
phobos2077
bf164be1fc
Fix error in FindVarUsage resulting in node indexes getting borked
2023-06-09 11:15:11 +02:00
phobos2077
e1483a8e44
Fix crash for scripts with no strings
2023-06-09 10:55:54 +02:00
phobos2077
b5b0e2de98
Reduce code duplication between namespace and stringspace optimization
2023-06-09 02:36:11 +02:00
phobos2077
507331ca51
Compress stringspace, closes #5
2023-06-09 01:52:06 +02:00
phobos2077
867be799d2
Fix optimizer not treating CALL as variable use (valid case when variable contains procedure name) - closes #6
2023-06-09 00:54:45 +02:00
phobos2077
ca1746a1f7
Fix erronous "symbol or string expected" when trying to call procedure using a string literal (valid case)
2023-06-09 00:49:55 +02:00
phobos2077
9d1c521869
Gitignore
2023-06-09 00:49:12 +02:00
phobos2077
8162a01b63
Full optimization: don't eliminate proc args if any consequent args were used, to prevent invalid values ( closes #4 )
...
- This happens because proc will still have it's original arg count and calling side will still pass all arguments, but inside the proc, wrong argument will be used, due to how variable removal works
2023-05-25 01:48:32 +02:00
NovaRain
9c602f039c
Fixed compilation error in VS2010
...
Updated version number.
2023-05-24 10:26:37 +08:00
phobos2077
a7375398d2
Fill extern procedure variable list when it's defined ( closes #3 )
...
- This satisfies expectation in procedure() that forward-declared procedures already have variable list initialized, thus preventing crash
2023-05-24 00:31:40 +02:00
NovaRain
2aca02aae6
Fixed the compiler name
2021-02-04 10:18:33 +08:00
NovaRain
1416e5dadd
Changed code for skipping UTF-8 BOM
2021-01-02 09:07:41 +08:00
NovaRain
6c1485180c
Fixed opcode order
2020-12-30 09:24:04 +08:00
NovaRain
7d5d93aa57
Added new opcodes sfall_func7 and sfall_func8
...
Added skipping UTF-8 BOM in the script.
2020-12-22 16:56:05 +08:00
NovaRain
b7ee750595
Revert commit 0889b154 for DLL build
2020-11-06 23:18:19 +08:00
NovaRain
1f818a1a4b
Cosmetic: added spacing to the code in parse.c
2020-11-06 11:52:02 +08:00
NovaRain
0889b15417
Fixed the list of references for DLL build
2020-11-06 11:48:55 +08:00
NovaRain
6872983d58
Added ability to declare local variables anywhere in the procedure body
...
Updated version number.
2020-07-20 11:23:09 +08:00
NovaRain and GitHub
a1d4d7f226
Merge pull request #1 from JanSimek/bugfix/msvc-2019-compilation
...
Fixed Visual Studio 2015+ compilation.
* limits.h in newer Visual Studio doesn't contain POSIX PATH_MAX definition.
2020-05-02 22:21:52 +08:00
Jan Šimek
ea625e762f
Fix Visual Studio 2019 compilation
...
PATH_MAX was undefined
2020-05-02 14:36:49 +02:00
NovaRain
daf5b1a9aa
Fixed crash for parser.dll
2020-03-11 09:18:39 +08:00
NovaRain
7264e9fb28
Added new "div" operator for unsigned integer division
2020-02-02 16:30:45 +08:00