rubidium
e19dfdee99
(svn r26837) -Fix [Squirrel]: remove some pointless assignments
10 years ago
rubidium
74ceffd3c5
(svn r26837) -Fix [Squirrel]: remove some pointless assignments
10 years ago
rubidium
3d2f511f43
(svn r26836) -Fix [Squirrel]: merge SQLexer::Init with the constructor; there's no need to construct first and then call init in the next line
10 years ago
rubidium
9f249cfff9
(svn r26836) -Fix [Squirrel]: merge SQLexer::Init with the constructor; there's no need to construct first and then call init in the next line
10 years ago
rubidium
5502a19f3d
(svn r26835) -Fix [Squirrel]: remove dead code from the lexer
10 years ago
rubidium
0d0c4461ce
(svn r26835) -Fix [Squirrel]: remove dead code from the lexer
10 years ago
rubidium
fef12f24dd
(svn r26834) -Fix [Squirrel]: prevent unitialized memory warning by moving code from (static) Init to constructure for SQFunctionProto
10 years ago
rubidium
7176f65edf
(svn r26834) -Fix [Squirrel]: prevent unitialized memory warning by moving code from (static) Init to constructure for SQFunctionProto
10 years ago
rubidium
8716e0c26d
(svn r26833) -Fix [Squirrel]: remove a few bits of dead code
10 years ago
rubidium
12bd7532ba
(svn r26833) -Fix [Squirrel]: remove a few bits of dead code
10 years ago
rubidium
dd0254220f
(svn r26832) -Fix [Squirrel]: ensure instance variable of SQNativeClosure is properly initialized
10 years ago
rubidium
5cec030d4d
(svn r26832) -Fix [Squirrel]: ensure instance variable of SQNativeClosure is properly initialized
10 years ago
rubidium
de8230a219
(svn r26831) -Fix [Squirrel]: (bogus) warning about falling through in a switch
10 years ago
rubidium
ff880a420d
(svn r26831) -Fix [Squirrel]: (bogus) warning about falling through in a switch
10 years ago
rubidium
00e1e69187
(svn r26784) -Codechange [Squirrel]: use WChar for the lexer
10 years ago
rubidium
f41b4a8e1b
(svn r26784) -Codechange [Squirrel]: use WChar for the lexer
10 years ago
rubidium
0d042630d5
(svn r26783) -Fix (r26781): removed one include too many
10 years ago
rubidium
6bf8a63ed9
(svn r26783) -Fix (r26781): removed one include too many
10 years ago
rubidium
e8a72f8234
(svn r26781) -Codechange [Squirrel]: remove includes/definitions that are already in stdafx.h
10 years ago
rubidium
9b0c01e9bf
(svn r26781) -Codechange [Squirrel]: remove includes/definitions that are already in stdafx.h
10 years ago
rubidium
fc6d256948
(svn r26780) -Cleanup: remove unused SQUIRREL_API macro
10 years ago
rubidium
7ece56c347
(svn r26780) -Cleanup: remove unused SQUIRREL_API macro
10 years ago
rubidium
ed365a33c0
(svn r26779) -Cleanup [Squirrel]: remove extern "C" statements; we won't be exporting things to C from our squirrel
10 years ago
rubidium
a47874754c
(svn r26779) -Cleanup [Squirrel]: remove extern "C" statements; we won't be exporting things to C from our squirrel
10 years ago
rubidium
506de3c53d
(svn r26778) -Codechange: remove pointless rsl macro
10 years ago
rubidium
9543f4ed1e
(svn r26778) -Codechange: remove pointless rsl macro
10 years ago
rubidium
ac7ef48b0d
(svn r26777) -Codechange: use safe string functions in squirrel code as well, and prevent using the ones that are deemed unsafe
10 years ago
rubidium
eb52e65bec
(svn r26777) -Codechange: use safe string functions in squirrel code as well, and prevent using the ones that are deemed unsafe
10 years ago
rubidium
a7044da533
(svn r26775) -Cleanup [Squirrel]: "resolve" several of the unicode wrapper defines
10 years ago
rubidium
e63ca12ab8
(svn r26775) -Cleanup [Squirrel]: "resolve" several of the unicode wrapper defines
10 years ago
rubidium
65cab46a84
(svn r26774) -Cleanup [Squirrel]: remove _SC macro
10 years ago
rubidium
33ab505567
(svn r26774) -Cleanup [Squirrel]: remove _SC macro
10 years ago
rubidium
ab4f228aa8
(svn r26772) -Cleanup [Squirrel]: remove traces to SQUNICODE define
10 years ago
rubidium
ad315ef6d9
(svn r26772) -Cleanup [Squirrel]: remove traces to SQUNICODE define
10 years ago
rubidium
20a83b406e
(svn r26770) -Fix [Squirrel]: in case SQChar is a char (previously everything non-Windows or non-Unicode, now everything), the lexer throws away the higher bytes of characters
10 years ago
rubidium
3f9525ff0e
(svn r26770) -Fix [Squirrel]: in case SQChar is a char (previously everything non-Windows or non-Unicode, now everything), the lexer throws away the higher bytes of characters
10 years ago
rubidium
e874be7691
(svn r26769) -Codechange [Squirrel]: remove the difference between some platforms having wchar for SQChar and others just char; always use char (and UTF-8) like in the rest of (internal) OpenTTD
10 years ago
rubidium
7a00d2e849
(svn r26769) -Codechange [Squirrel]: remove the difference between some platforms having wchar for SQChar and others just char; always use char (and UTF-8) like in the rest of (internal) OpenTTD
10 years ago
frosch
44fabee8ca
(svn r26764) -Fix: Buffer overrun in SQCompiler::Error. (kalenz)
10 years ago
frosch
43e82ded9a
(svn r26764) -Fix: Buffer overrun in SQCompiler::Error. (kalenz)
10 years ago
rubidium
dcc2da107a
(svn r26609) -Fix: compile warnings on MSVC for 32 bits builds due to assigning values to variables with smaller integer size
11 years ago
rubidium
8e87ae9120
(svn r26609) -Fix: compile warnings on MSVC for 32 bits builds due to assigning values to variables with smaller integer size
11 years ago
rubidium
36e8123e4c
(svn r26584) -Codechange: [Squirrel] Make the internal integer for scripts always 64 bits, so scripts behave the same on 32 or 64 bits architectures
11 years ago
rubidium
39e90ec6e0
(svn r26584) -Codechange: [Squirrel] Make the internal integer for scripts always 64 bits, so scripts behave the same on 32 or 64 bits architectures
11 years ago
rubidium
2be4215f43
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
11 years ago
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
11 years ago
matthijs
775f6a9815
(svn r25781) -Doc: Add licensing section to readme.txt.
11 years ago
matthijs
282d3778ad
(svn r25781) -Doc: Add licensing section to readme.txt.
11 years ago
rubidium
c31b3567f9
(svn r25585) -Fix [FS#5320]: [Squirrel] Stack overflow did not show an error, due to the stack to throw the error already being full
11 years ago
rubidium
2d459b2fc0
(svn r25585) -Fix [FS#5320]: [Squirrel] Stack overflow did not show an error, due to the stack to throw the error already being full
11 years ago
rubidium
9c98d758d8
(svn r25558) -Fix [FS#5568]: [Squirrel] Infinite recursion loop in freeing data via a looping set of references
11 years ago
rubidium
3f7fdd738b
(svn r25558) -Fix [FS#5568]: [Squirrel] Infinite recursion loop in freeing data via a looping set of references
11 years ago
rubidium
3b606aa46a
(svn r24970) -Fix [FS#5346]: crash when infinite loop occured during loading a script
12 years ago
rubidium
124f0fc7a3
(svn r24970) -Fix [FS#5346]: crash when infinite loop occured during loading a script
12 years ago
frosch
f72366db3f
(svn r24928) -Fix [FS#5408]: [Squirrel] Update line information before processing 'while' token of 'do'-'while' statement.
12 years ago
frosch
dafff99b2a
(svn r24928) -Fix [FS#5408]: [Squirrel] Update line information before processing 'while' token of 'do'-'while' statement.
12 years ago
rubidium
2d31ee7382
(svn r24153) -Fix [FS#5160]: [Squirrel] Crash when trying to create an array with negative size
13 years ago
rubidium
a355e123fc
(svn r24153) -Fix [FS#5160]: [Squirrel] Crash when trying to create an array with negative size
13 years ago
rubidium
a2f09d617b
(svn r23962) -Fix [FS#5068]: [Script] Infinite recursion within a script wasn't caught properly, so they could cause crashes of OpenTTD instead of the AI
13 years ago
rubidium
703ef5b7b6
(svn r23962) -Fix [FS#5068]: [Script] Infinite recursion within a script wasn't caught properly, so they could cause crashes of OpenTTD instead of the AI
13 years ago
rubidium
a90ad57763
(svn r23870) -Fix [FS#5004]: scripts with a bad comparator could lock up OpenTTD
13 years ago
rubidium
cd735fb613
(svn r23870) -Fix [FS#5004]: scripts with a bad comparator could lock up OpenTTD
13 years ago
yexo
9d92eefbc9
(svn r23801) -Fix: reading the utf-8 BOM from AI/GS files on big-endian machines failed
13 years ago
yexo
f5b6a9db5c
(svn r23801) -Fix: reading the utf-8 BOM from AI/GS files on big-endian machines failed
13 years ago
truebrain
aa1a0053b0
(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
13 years ago
truebrain
1c9bec1999
(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
13 years ago
yexo
27988c78fb
(svn r23496) -Fix: [Squirrel] Provide a proper error message when the _cmp meta-function doesn't return an integer
13 years ago
yexo
8f36e70e35
(svn r23496) -Fix: [Squirrel] Provide a proper error message when the _cmp meta-function doesn't return an integer
13 years ago
truebrain
fa07d61b84
(svn r23383) -Update: bring Squirrel to 2.2.5; besides some nice bug fixes, it mostly solves the sort() issues
13 years ago
truebrain
0c2bbdde5c
(svn r23383) -Update: bring Squirrel to 2.2.5; besides some nice bug fixes, it mostly solves the sort() issues
13 years ago
rubidium
3053d8e3b5
(svn r23194) -Codechange: don't cast away const needlessly
13 years ago
rubidium
4f87d2e88c
(svn r23194) -Codechange: don't cast away const needlessly
13 years ago
rubidium
a46be19d86
(svn r23190) -Fix: compile error due to Squirrel define messing up another included file
13 years ago
rubidium
624c8a6173
(svn r23190) -Fix: compile error due to Squirrel define messing up another included file
13 years ago
yexo
ea2aee17d3
(svn r23187) -Fix (r23186): MSVC allowed non-const where const was mandatory
13 years ago
yexo
72b1fffe82
(svn r23187) -Fix (r23186): MSVC allowed non-const where const was mandatory
13 years ago
yexo
4da846abe2
(svn r23186) -Fix [FS#4830]: [Squirrel] replace custom qsort by std::sort to fix stack overflow
13 years ago
yexo
37797164ca
(svn r23186) -Fix [FS#4830]: [Squirrel] replace custom qsort by std::sort to fix stack overflow
13 years ago
terkhen
c30ff054f6
(svn r22490) -Fix [FS#4623]: [Squirrel] Fix compilation under MinGW-w64. (JGR)
14 years ago
terkhen
1f3853249d
(svn r22490) -Fix [FS#4623]: [Squirrel] Fix compilation under MinGW-w64. (JGR)
14 years ago
smatz
f761b7249c
(svn r22481) -Fix: compilation with recent GCC
14 years ago
smatz
2447efdefd
(svn r22481) -Fix: compilation with recent GCC
14 years ago
yexo
45c46ce522
(svn r22055) -Fix [FS#4490]: [Squirrel] some invalid squirrel code caused the squirrel compiler to crash
14 years ago
yexo
5f18d6d828
(svn r22055) -Fix [FS#4490]: [Squirrel] some invalid squirrel code caused the squirrel compiler to crash
14 years ago
rubidium
489c169291
(svn r20162) -Fix [FS#3954]: integer comparison failed in case the difference was more than "MAX_UINT"/2
14 years ago
rubidium
92da292fbc
(svn r20162) -Fix [FS#3954]: integer comparison failed in case the difference was more than "MAX_UINT"/2
14 years ago
yexo
1e2733d2ac
(svn r19166) -Change: don't print the absolute path to AI script files in the AI debug window, use the relative path from /ai/ instead
15 years ago
yexo
7c51a82020
(svn r19166) -Change: don't print the absolute path to AI script files in the AI debug window, use the relative path from /ai/ instead
15 years ago
frosch
a2d9e85336
(svn r18832) -Fix: some indentation whitespace.
15 years ago
frosch
c07c7a3818
(svn r18832) -Fix: some indentation whitespace.
15 years ago
rubidium
36df94ddb0
(svn r18769) -Codechange: replace MiniLZO with the real library. If you're using MSVC update openttd-useful, otherwise make sure you've got liblzo2 and it's development files installed.
15 years ago
rubidium
3ca0937c1c
(svn r18769) -Codechange: replace MiniLZO with the real library. If you're using MSVC update openttd-useful, otherwise make sure you've got liblzo2 and it's development files installed.
15 years ago
rubidium
687d0739ee
(svn r18639) -Update: Squirrel from 2.2.3 to 2.2.4
...
-Revert (r17273): this fix is included in Squirrel 2.2.4
15 years ago
rubidium
9574371e53
(svn r18639) -Update: Squirrel from 2.2.3 to 2.2.4
...
-Revert (r17273): this fix is included in Squirrel 2.2.4
15 years ago
rubidium
a2a336b585
(svn r18025) -Fix (r17217): more missing/extra parentheses (for compilers I've never heard of)
15 years ago
rubidium
6db598e408
(svn r18025) -Fix (r17217): more missing/extra parentheses (for compilers I've never heard of)
15 years ago
rubidium
a6eb65c06b
(svn r18024) -Fix (r17217): missing (
15 years ago
rubidium
29ee106efa
(svn r18024) -Fix (r17217): missing (
15 years ago
smatz
c82d2a1fa6
(svn r17883) -Codechange: little cleaning in md5.cpp and md5.h
15 years ago
smatz
1bc7684ff0
(svn r17883) -Codechange: little cleaning in md5.cpp and md5.h
15 years ago
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
79f6fde5bf
(svn r17515) -Fix [FS#3189]: [Squirrel] In some cases the call stack would not be cleaned up properly during crash handling. Occasionally this causes asserts to be triggered or crashes.
15 years ago
rubidium
afc7f576f7
(svn r17515) -Fix [FS#3189]: [Squirrel] In some cases the call stack would not be cleaned up properly during crash handling. Occasionally this causes asserts to be triggered or crashes.
15 years ago
yexo
f38bb4cdb5
(svn r17499) -Fix (r17498): remove 2 unused functions so some compilers stop warning about them
15 years ago
yexo
c9a25c88fa
(svn r17499) -Fix (r17498): remove 2 unused functions so some compilers stop warning about them
15 years ago
yexo
f922a7ca8e
(svn r17498) -Add [NoAI]: Enable the squirrel std math library
15 years ago
yexo
ca6c4ee98a
(svn r17498) -Add [NoAI]: Enable the squirrel std math library
15 years ago
rubidium
791a308730
(svn r17403) -Fix [Squirrel]: guard against squirrel stack overflows; if assert is enabled assert (catch possible overflow bugs in nightlies/RCs), otherwise just increase the stack's size (don't get into invalid reads/writes in releases)
15 years ago
rubidium
5607a610d7
(svn r17403) -Fix [Squirrel]: guard against squirrel stack overflows; if assert is enabled assert (catch possible overflow bugs in nightlies/RCs), otherwise just increase the stack's size (don't get into invalid reads/writes in releases)
15 years ago
rubidium
aa67dd87c6
(svn r17284) -Fix [Squirrel]: stack was not always cleared properly with tail recursion
15 years ago
rubidium
4ac4c28a3b
(svn r17284) -Fix [Squirrel]: stack was not always cleared properly with tail recursion
15 years ago
yexo
650f36c08c
(svn r17283) -Cleanup [Squirrel]: remove a few unneeded changes to squirrel code
15 years ago
yexo
b9536e933f
(svn r17283) -Cleanup [Squirrel]: remove a few unneeded changes to squirrel code
15 years ago
yexo
fe4f55d0a4
(svn r17282) -Fix (r17195): the squirrel documentation files were not updated
15 years ago
yexo
c46c0a7c86
(svn r17282) -Fix (r17195): the squirrel documentation files were not updated
15 years ago
yexo
f66041e3c8
(svn r17273) -Fix [Squirrel]: calling a function that has default parameters with not enough parameters can cause a crash
15 years ago
yexo
f9c18ccc48
(svn r17273) -Fix [Squirrel]: calling a function that has default parameters with not enough parameters can cause a crash
15 years ago
rubidium
be9033295e
(svn r17247) -Change: move '3rd party' MD5 implementation also to the 3rdparty directory.
15 years ago
rubidium
60a3bc9034
(svn r17247) -Change: move '3rd party' MD5 implementation also to the 3rdparty directory.
15 years ago
rubidium
5efd5f1f68
(svn r17243) -Fix (r17216): undo 'damage' by svn:keywords
15 years ago
rubidium
d680be454e
(svn r17243) -Fix (r17216): undo 'damage' by svn:keywords
15 years ago
yexo
6b0520b3b4
(svn r17230) -Fix (r15027): don't assert when an AI uses AI*Mode objects incorrectly but crash the AI instead
15 years ago
yexo
14b5862c22
(svn r17230) -Fix (r15027): don't assert when an AI uses AI*Mode objects incorrectly but crash the AI instead
15 years ago
yexo
c22f60c812
(svn r17223) -Change [NoAI] [FS#2980]: Crash an AI when it uses a DoCommand / Sleep instead of just printing an error message in the AI Debug Window
15 years ago
yexo
a4afa140f3
(svn r17223) -Change [NoAI] [FS#2980]: Crash an AI when it uses a DoCommand / Sleep instead of just printing an error message in the AI Debug Window
15 years ago
glx
ae691ae28b
(svn r17218) -Fix (r17216): missing '(' causing compile error
15 years ago
glx
0fa0286ebb
(svn r17218) -Fix (r17216): missing '(' causing compile error
15 years ago
rubidium
2568643418
(svn r17217) -Fix (r17216): silence some warnings for the more exotic GCC-alikes
15 years ago
rubidium
40d1f1fedf
(svn r17217) -Fix (r17216): silence some warnings for the more exotic GCC-alikes
15 years ago
rubidium
5e40d05c51
(svn r17216) -Update: MiniLZO from 1.08 to 2.03.
15 years ago
rubidium
d4adee0b1d
(svn r17216) -Update: MiniLZO from 1.08 to 2.03.
15 years ago
rubidium
48e1a54c58
(svn r17212) -Change: move minilzo to its 'own' 3rdparty directory as it belongs there
15 years ago
rubidium
82105604c3
(svn r17212) -Change: move minilzo to its 'own' 3rdparty directory as it belongs there
15 years ago
yexo
2b2093a469
(svn r17195) -Update: squirrel to 2.2.3 stable
15 years ago
yexo
03d711add3
(svn r17195) -Update: squirrel to 2.2.3 stable
15 years ago
yexo
76b077ce25
(svn r16534) -Fix [Squirrel] [FS#2942]: fix crash that occured when an AI was halted while one or more generators were still in a 'running' state
16 years ago
yexo
1df029de1d
(svn r16534) -Fix [Squirrel] [FS#2942]: fix crash that occured when an AI was halted while one or more generators were still in a 'running' state
16 years ago
yexo
1c754c75d6
(svn r16532) -Fix [Squirrel]: Don't copy an object when we just checked that the pointer to it is NULL
16 years ago
yexo
9db1f5925c
(svn r16532) -Fix [Squirrel]: Don't copy an object when we just checked that the pointer to it is NULL
16 years ago
yexo
1df82e9702
(svn r16509) -Fix (r16502): All Sleep/DoCommand calls failed instead of only those via a call/acall/pcall function
16 years ago
yexo
13c69b897e
(svn r16509) -Fix (r16502): All Sleep/DoCommand calls failed instead of only those via a call/acall/pcall function
16 years ago
yexo
62a698df32
(svn r16502) -Fix [FS#2935]: when an AI was suspended while in a function called (indirectly) via call/acall/pcall OpenTTD crashed. Fix this by disallowing AIs to be suspended while called via call/acall/pcall.
...
IMPORTANT FOR AI WRITERS: AIs can no longer call any DoCommand functions (change anything, build vehicles, etc.) in a function called (indirectly) via call/acall/pcall. Where possible, please rewrite your code so it doesn't use call/acall/pcall
16 years ago
yexo
4ea3e511bd
(svn r16502) -Fix [FS#2935]: when an AI was suspended while in a function called (indirectly) via call/acall/pcall OpenTTD crashed. Fix this by disallowing AIs to be suspended while called via call/acall/pcall.
...
IMPORTANT FOR AI WRITERS: AIs can no longer call any DoCommand functions (change anything, build vehicles, etc.) in a function called (indirectly) via call/acall/pcall. Where possible, please rewrite your code so it doesn't use call/acall/pcall
16 years ago
yexo
5357fa2467
(svn r16454) -Fix (r16181, r16241): fix the try/catch bug fixed in r16181 and reintroduced in r16241 again, this time without breaking the regression test.
16 years ago
yexo
9bd64cf588
(svn r16454) -Fix (r16181, r16241): fix the try/catch bug fixed in r16181 and reintroduced in r16241 again, this time without breaking the regression test.
16 years ago
rubidium
d39f442bd0
(svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be reached like break after returns or break after functions that never return (i.e. NOT_REACHED)
16 years ago
rubidium
e3c5bc8d2e
(svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be reached like break after returns or break after functions that never return (i.e. NOT_REACHED)
16 years ago
rubidium
2832d69272
(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
16 years ago
rubidium
168ae6f7e2
(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
16 years ago