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