Update Squirrel to 2.2.2 (although README says 2.2.1)
[supertux.git] / src / squirrel / HISTORY
1 ***version 2.2.2 stable***\r
2 -fixed some behaviour inconsistencies in thread.call() and thread.wakeup() (thx Mr.Accident)\r
3 -fixed coroutine error propagation\r
4 -fixed lingering return value from native function (thx Tom Leonard)\r
5 -fixed a bug if array.sort() is given a bad sort function (thx Tom Leonard)\r
6 -fixed some minor api bug\r
7 -added sq_arrayremove() and sq_arrayinsert()\r
8 \r
9 ***2008-05-16          ***\r
10 ***version 2.2.1 stable***\r
11 -fixed a tailcall bug\r
12 \r
13 ***2008-02-17          ***\r
14 ***version 2.2 stable  ***\r
15 -added _newslot metamethod in classes\r
16 -added enums added constants\r
17 -added sq_pushconsttable, sq_setconsttable\r
18 -added default param\r
19 -added octal literals(thx Dinosaur)\r
20 -fixed debug hook, 'calls' and 'returns' are properly notified in the same number.\r
21 -fixed a coroutine bug\r
22 \r
23 ***2007-07-29          ***\r
24 ***version 2.1.2 stable***\r
25 -new behaviour for generators iteration using foreach\r
26 now when a generator is iterated by foreach the value returned by a 'return val' statement\r
27 will terminate the iteration but will not be returned as foreach iteration\r
28 -added sq_setclassudsize()\r
29 -added sq_clear()\r
30 -added table.clear(), array.clear()\r
31 -fixed sq_cmp() (thx jyuill)\r
32 -fixed minor bugs\r
33 \r
34 ***2006-08-21        ***\r
35 ***version 2.1.1 stable***\r
36 -vm refactoring\r
37 -optimized internal function memory layout\r
38 -new global symbol _version_ (is the version string)\r
39 -code size optimization for float literals(on 32bits float builts)\r
40 -now the raw ref API(sq_addref etc...) is fully reentrant.\r
41 -fixed a bug in sq_getdelegate() now pushes null if the object doesn't have a delegate(thx MatzeB)\r
42 -improved C reference performances in NO_GARBAGE_COLLECTOR builds\r
43 -sq_getlocal() now enumerates also outer values.\r
44 -fixed regexp library for GCC users.\r
45 \r
46 ***2006-03-19        ***\r
47 ***version 2.1 stable***\r
48 -added static class fields, new keyword static\r
49 -added 64bits architecture support\r
50 -added global slot _intsize_ int the base lib to recognize 32bits and 64bits builds\r
51 -added functions with fixed environment, closure.bindenv() built-in function\r
52 -all types except userdata and null implement the tostring() method\r
53 -string concatenation now invokes metamethod _tostring\r
54 -new metamethods for class objects _newmember and _inherited\r
55 -sq_call() sq_resume() sq_wakeupvm() have a new signature\r
56 -new C referencing implementation(scales more with the amount of references)\r
57 -refactored hash table\r
58 -new api functions sq_newslot(),sq_tobool(),sq_getbase(), sq_instanceof(), sq_bindenv()\r
59 -the api func sq_createslot was deprecated but still supported in form of C macro on top of sq_newslot\r
60 -sq_setreleasehook() now also works for classes\r
61 -stream.readstr() and stream.writestr() have been deprecated(this affects file and blob)\r
62 -fixed squirrel.h undeclared api calls\r
63 -fixed few minor bugs\r
64 -SQChar is now defined as wchar_t\r
65 -removed warning when building with -Wall -pedantic for GCC users\r
66 -added new std io function writeclosuretofile()\r
67 -added new std string functions strip(),rstrip(),lstrip() and split()\r
68 -regular expressions operators (+,*) now have more POSIX greedyness behaviour\r
69 -class constructors are now invoked as normal functions\r
70 \r
71 ***2005-10-02          ***\r
72 ***version 2.0.5 stable***\r
73 -fixed some 64bits incompatibilities (thx sarge)\r
74 -fixed minor bug in the stdlib format() function (thx Rick)\r
75 -fixed a bug in dofile() that was preventing to compile empty files\r
76 -added new API sq_poptop() & sq_getfreevariable()\r
77 -some performance improvements\r
78 \r
79 ***2005-08-14          ***\r
80 ***version 2.0.4 stable***\r
81 -weak references and related API calls\r
82 -added sq_objtobool()\r
83 -class instances memory policies improved(1 mem allocation for the whole instance)\r
84 -typetags are now declared as SQUserPointer instead of unsigned int\r
85 -first pass for 64bits compatibility\r
86 -fixed minor bug in the stdio stream\r
87 -fixed a bug in format()\r
88 -fixed bug in string.tointeger() and string.tofloat()\r
89 \r
90 ***2005-06-24          ***\r
91 ***version 2.0.3 stable***\r
92 -dofile() and loadfile() in the iolib now can decode ASCII, UTF8 files UCS2 big-endian and little-endian\r
93 -sq_setparamscheck() : now typemesk can check for null\r
94 -added string escape sequence \xhhhh\r
95 -fixed some C++ standard incompatibilities\r
96 \r
97 ***2005-05-15          ***\r
98 ***version 2.0.2 stable***\r
99 -performances improvements (expecially for GCC users)\r
100 -removed all dependencies from C++ exception handling\r
101 -various bugfixes\r
102 \r
103 ***2005-04-12            ***\r
104 ***version 2.0.1 stable***\r
105 -various bugfixes\r
106 -sq_setparamscheck() now allows spaces in the typemask\r
107 \r
108 ***2005-04-03            ***\r
109 ***version 2.0 stable***\r
110 -added API sq_gettypetag()\r
111 -added built-in function to the bool type(tointeger, tostring etc...)\r
112 \r
113 ***2005-02-27                                                   ***\r
114 ***version 2.0 release candidate 1(RC 1)***\r
115 -added API sq_reseterror()\r
116 -modified sq_release()\r
117 -now class instances can be cloned\r
118 -various bufixes\r
119 \r
120 ***2005-01-26        ***\r
121 ***version 2.0 beta 1***\r
122 -added bool type\r
123 -class properties can be redefined in a derived class\r
124 -added ops *= /= and %=\r
125 -new syntax for class attributes declaration </ and /> instead of ( and )\r
126 -increased the max number of literals per function from 65535 to 16777215\r
127 -now free variables have proper lexical scoping\r
128 -added API sq_createinstance(), sq_pushbool(), sq_getbool()\r
129 -added built-in function type()\r
130 -added built-in function obj.rawin(key) in table,class and instance\r
131 -sq_rawget() and sq_rawset() now work also on classes and instances\r
132 -the VM no longer uses C++ exception handling (more suitable for embedded devices)\r
133 -various bufixes\r
134 \r
135 ***2004-12-21         ***\r
136 ***version 2.0 alpha 2***\r
137 -globals scoping changed, now if :: is omitted the VM automatically falls back on the root table\r
138 -various bufixes\r
139 -added class level attributes\r
140 \r
141 ***2004-12-12         ***\r
142 ***version 2.0 alpha 1***\r
143 -codebase branch from version 1.x\r
144 -added classes\r
145 -added functions with variable number of parameters(vargc & vargv and the ...)\r
146 -0 and 0.0 are now considered 'false' by all conditional statements(if,while,for,?,do-while)\r
147 -added new api functions sq_newclass() sq_setinstanceup() sq_getinstanceup() sq_getattributes() sq_setattributes()\r
148 -modified api sq_settypetag()\r
149 \r
150 ***2004-11-01        ***\r
151 ***version 1.0 stable***\r
152 -fixed some minor bug\r
153 -improoved operator 'delete' performances\r
154 -added scientific notation for float numbers( eg. 2.e16 or 2.e-2)\r
155 \r
156 ***2004-08-30        ***\r
157 ***version 1.0 release candidate 2(RC 2)***\r
158 -fixed bug in the vm(thx Pierre Renaux)\r
159 -fixed bug in the optimizer(thx Pierre Renaux)\r
160 -fixed some bug in the documentation(thx JD)\r
161 -added new api functions for raw object handling\r
162 -removed nested multiline comments\r
163 -reduced memory footprint in C references\r
164 \r
165 ***2004-08-23        ***\r
166 ***version 1.0 release candidate 1(RC 1)***\r
167 -fixed division by zero\r
168 -the 'in' operator and obj.rawget() do not query the default delegate anymore\r
169 -added function sq_getprintfunc()\r
170 -added new standard library 'auxlib'(implements default error handlers)\r
171 \r
172 ***2004-07-12        ***\r
173 ***version 1.0 beta 4***\r
174 -fixed a bug in the integer.tochar() built-in method\r
175 -fixed unary minus operator\r
176 -fixed bug in dofile()\r
177 -fixed inconsistency between != and == operators(on float/integer comparison)\r
178 -added javascript style unsigned right shift operator '>>>'\r
179 -added array(size) constructor built-in function\r
180 -array.resize(size,[fill]) built-in function accepts an optional 'fill' value\r
181 -improved debug API, added sq_getclosureinfo() and sq_setnativeclosurename()\r
182 \r
183 ***2004-05-23        ***\r
184 ***version 1.0 beta 3***\r
185 -minor vm bug fixes\r
186 -string allocation is now faster\r
187 -tables and array memory usage is now less conservative(they shrink)\r
188 -added regular expression routines in the standard library\r
189 -The 'c' expression now accepts only 1 character(thx irbrian)\r
190 -multiline strings <[ ]> have been substituted with C# style verbatim strings (eg. @"string")\r
191 -added new keyword 'parent' for accessing the delegate of tables and unserdata\r
192 -The metamethod '_clone' has been renamed '_cloned'\r
193 -the _delslot metamethod's behaviour and prototype have been changed\r
194 -new default function in the integer and float object 'tochar()'\r
195 -the built-in function chcode2string has been removed\r
196 -the default method [table].getdelegate() has been removed\r
197 -new api sq_rawdeleteslot()\r
198 -new table built-in method rawdelete(key)\r
199 -the dynamic mudule loading has been removed from the standard distribution\r
200 -some optimizations in the VM\r
201 \r
202 ***2004-04-21        ***\r
203 ***version 1.0 beta 2***\r
204 -minor compiler/parser bug fixes\r
205 -sq_newclosure has a different prototype, the "paramscheck" of paramter has been moved to the new function sq_setparamscheck()\r
206 -sq_setparamscheck allows to add automatic parameters type checking in native closures\r
207 -sq_compile() lost the lineinfo parameter\r
208 -new api sq_enabledebuginfo() globally sets compiler's debug info generation\r
209 -added consistency check on bytecode serialization\r
210 -fixed += operator, now works on strings like +\r
211 -added global slot in the base lib _charsize_ to recognize unicode builds from ascii builds runtime\r
212 -added registry table\r
213 -new api call sq_pushregistrytable()\r
214 -added type tag to the userdata type sq_settypetag()\r
215 -sq_getuserdata now queries the userdata typetag\r
216 -the built in function collect_garbage() as been renamed collectgarbage() for consistency reasons\r
217 -new standard libraries(sqlibs are now obsolete)\r
218 \r
219 ***2004-02-20        ***\r
220 ***version 1.0 beta 1***\r
221 -fixed a bug in the compiler (thanks Martin Kofler)\r
222 -fixed bug in the switch case statement\r
223 -fixed the _unm metamethod\r
224 -fixed minor bugs in the API\r
225 -fixed automatic stack resizing\r
226 -first beta version \r
227         first pass code clean up in the VM and base lib\r
228         first pass code coverege test has been done on VM and built-in lib\r
229 -new VM creation API sq_open() sq_close() (sq_newvm and sq_releasevm are now obsolete)\r
230 -new api allows to specifiy a "print" function to output text(sq_printfunc)\r
231 -added some small optimizations\r
232 -new cooperative multi-threading capabilities in the base library(coroutines), VMs are now a built in type("thread")\r
233 -new built in functions have been added for manipulating the new "thread" type\r
234 -friend virtual machines share the same root table, error handler and debug hook by default\r
235 -new compile time options\r
236 \r
237 ***2004-01-19       ***\r
238 ***version 0.9 alpha***\r
239 -fixed a garbage collection bug\r
240 -fixed some API bugs(thanks to Joshua Jensen)\r
241 -fixed tail calls (in the version 0.8 the tail call optimization was erroneously disabled)\r
242 -new function parameters semantic, now passing a wrong number of parameters generates an exception\r
243 -native closures have now a built in parameter number checking\r
244 -sq_rawget and sq_rawset now work also on arrays\r
245 -sq_getsize now woks also on userdata\r
246 -the userdata release hook prototype is changed(now passes the size of the userdata)\r
247 -the lexer reader function now returns an integer instead of a char that allows better error checking on the input(thx Joshua Jensen)\r
248 -faster compiler\r
249 -try/catch blocks do not cause any runtime memory allocation anymore\r
250 \r
251 ***2003-12-06       ***\r
252 ***version 0.8 alpha***\r
253 -fixed a bug that was preventing to have callable userdata throught the metamethod _call\r
254 -fixed a garbage collection bug\r
255 -fixed == operator now can compare correctly different types\r
256 -new built in method getstackinfos(level)\r
257 -improoved line informations precision for the debug hook\r
258 -new api call sq_compilebuffer()\r
259 -new built-in api function compilestring()\r
260 -new syntactic sugar for function declarations inside tables\r
261 -the debug API has been finalized\r
262 \r
263 ***2003-11-17       ***\r
264 ***version 0.7 alpha***\r
265 -fixed critical bug SQInteger the tail call system\r
266 -fixed bug in the continue statement code generation\r
267 -fixed func call param issue(thanks to Rewoonenco Andrew)\r
268 -added _delslot metamethod(thanks to Rewoonenco Andrew)\r
269 -new multiline string expression ( delimited by <[ and ]> )\r
270 -normal strings ("") do not allow embedded new line anymore\r
271 -reduced vm memory footprint(C refs are shared between friend VMs)\r
272 -new api method sq_deleteslot()\r
273 -new debug hook event 'r' is triggered when a function returns\r
274 \r
275 ***2003-11-04       ***\r
276 ***version 0.6 alpha***\r
277 -fixed switch statement(was executing the default case after a break)\r
278 -sq_call() doesn't pop the closure (just the params)\r
279 -the vm execution can be suspended from the C API anytime (micro-threads)\r
280 -new api calls sq_suspendvm() sq_wakeupvm() sq_getvmstate() and sq_reservestack()\r
281 \r
282 ***2003-10-13       ***\r
283 ***version 0.5 alpha***\r
284 -fixed some minor bug\r
285 -tested with non ASCII identifiers in unicode mode(I've tried chinese chars)\r
286 -added built-in function string.find()\r
287 -the built-in function array.sort() optionally accepts a cmp(a,b) function\r
288 -the debug hook function now has a new prototype debug_hook(event_type,sourcefile,line,functionname)\r
289 -fixed some debug info imprecision\r
290 \r
291 ***2003-10-01       ***\r
292 ***version 0.4 alpha***\r
293 -faster VM\r
294 -sq_call will pop arguments and closure also in case of failure\r
295 -fixed a bug in sq_remove\r
296 -now the VM detects delegation cycles(and throws an exception)\r
297 -new operators ++ and --\r
298 -new operator ',' comma operator\r
299 -fixed some expression precedence issue\r
300 -fixed bug in sq_arraypop\r
301 \r
302 ***2003-09-15       ***\r
303 ***version 0.3 alpha***\r
304 -fixed a bug in array::insert()\r
305 -optional Unicode core(define SQUNICODE or _UNICODE on Win32)\r
306 -sq_compiler uses a new reader function SQLEXREADFUNC\r
307 -the debug hook passes 'l' instead of 'line' for line callbacks\r
308         and 'c' instead of 'call' for call callbacks\r
309 -new array.extend() bulit-in function\r
310 -new API sq_clone()\r
311 \r
312 ***2003-09-10           ***\r
313 ***version 0.2 pre-alpha***\r
314 -new completely reentrant VM (sq_open and sq_close are now obsolete)\r
315 -sq_newvm() has a new prototype\r
316 -allocators are now global and linked in the VM\r
317 -_newslot meta method added\r
318 -rawset creates a slot if doesn't exists\r
319 -the compiler error callback pass the vm handle(thanks Pierre Renaux)\r
320 -sq_setforeignptr() sq_getforeingptr() are now public\r
321 -sq_resume() now is possible to resume generators from C\r
322 -sq_getlasterror() retrieve the last thrown error\r
323 -improved docs\r
324 \r
325 ***2003-09-06           ***\r
326 ***version 0.1 pre-alpha***\r
327 first release\r