Kevin Eady
e50bd96f47
More changes from review
2018-01-11 15:58:09 +01:00
Kevin Eady
806e89d54e
Comments based off Turley's review. Also some cleanup.
2018-01-11 14:55:27 +01:00
Kevin Eady
92f234ed27
Add boolean to json stuff, and some cleanup
2018-01-07 02:12:13 +01:00
Kevin Eady
af4de9a1a4
Correct invalid merge; fix folder name for pol project
2018-01-05 21:00:48 +01:00
Kevin Eady
642c3700fc
Merge master and fix conflicts
2018-01-05 20:49:30 +01:00
Kevin Eady
a28cd9c42c
Initial implementation of json
2018-01-05 20:40:14 +01:00
turleypol
ef2108c9f7
New objecttype Boolean.
...
create via basic::Boolean(1/0)
only == != ! operators are implemented.
2018-01-05 20:04:01 +01:00
turleypol
798eda5b63
Cleanup of header includes.
2018-01-01 21:52:14 +01:00
Fernando Rozenblit
9475bc0299
Fixed crash in SplitWords due to outdated .em files
2017-05-28 11:30:19 +02:00
Fernando Rozenblit
eb34290222
Cleanup for modules' function tables
2017-01-24 21:57:16 +01:00
turley
f9c3db9e41
Modules share the same (helper) template base class
...
Optimize function name search for all modules not only uo by using an additional map, replaced c array with vector for functionsdef.
Simplified pragma pack order. (MSVC version is supported in all
compilers)
Removed compilerassert.h (asserteql,..) replaced with static_assert
Removed some old #ifs
2016-12-20 23:53:32 +01:00
turley
4d9aa75f3b
Corrected definition order in module defs
2016-12-14 21:50:23 +01:00
turley
189cad3479
Formating everything
...
Authors are not forced to use the clang-format setting, but should
atleast be inspired by the style.
The only thing which is now not allowed are tabs for ident/alignment!
2016-02-19 19:26:35 +01:00
turley
ed7b16b233
normalized lineendings
2016-02-11 22:54:43 +01:00
Gabriele Tozzi
d1ac902926
Documentation: reformatted headers for DoxyGen
2016-01-28 14:52:40 +01:00
turley
2ca9cac2e0
Moved fileaccess storage
2015-01-02 16:31:10 +01:00
frozenblit
c4cb100279
Some more stl_inc.h cleanups
2014-11-01 19:16:13 +01:00
turley
3a15fd38af
fixed 64bit linux hex display
2014-08-16 17:03:32 +02:00
frozenblit
5431134b66
Fixed warning in basicmod.cpp. Rewrote clib::mkupper/clib::mklower to use boost::to_lower, boost::to_upper. Same for clib::strlower/clib::strupper.
2014-06-09 22:48:52 +00:00
dsourc
c61c4127c5
fixed crashes when parent script is killed before child script returns
...
fixed crashes when reporting error in an armordesc entry defined in config\itemdesc.cfg
fixed warning about streamoff conversion to int
2014-02-27 14:26:49 +00:00
turley
99d7dc3037
namespaces...finally :)
...
Hard part is finished every file is touched. Namespaces are currently rough named by directory name.
Maybe we could split it more
2013-12-21 09:10:46 +00:00
turley
4c7f70fc79
first version of a generic message_queue (currently not lockfree, need to test more)
...
replaced old auto_ptr with unique_ptr
2013-09-13 18:07:19 +00:00
turley
355252d527
typo in use_single_thread_login
...
Changed: SplitWords( str, delimiter := " ", max_split := -1 )
it has now an additional parameter max_split, if given it limits the number of times that a string will be split
default: -1 no limit
(Patch submitted by andenixa)
2012-11-14 09:19:36 +00:00
turley
78cc71ea9d
fixed bug003
...
fix crash in CChrZ if an arrayelem is invalid
2011-12-30 11:53:10 +00:00
turley
a79d9d81c6
some socket fixes
2011-12-29 14:16:40 +00:00
turley
df251bd349
warning fixes
2011-12-29 10:45:47 +00:00
turley
4e7e400254
64bit compilation..
2011-12-23 13:28:38 +00:00
dsourc
cda82e5f88
Changed: basic::CChrz( intarray ) to basic::CChrz( intarray, break_at_first_null := 0 );
...
if the break_at_first_null parameter is 0 it uses the old behaviour to just skip the nulls and still convert everything
if the break_at_first_null parameter is set to 1 it stops the conversion to string at the first null it finds.
2011-11-29 18:50:40 +00:00
dsourc
b7956b13f7
Changed: CascZ( str ) to CascZ( str, nullterm := 0 )
...
if nullterm 1 it adds the terminating 0 in the end of array.
Note: Recompile of scripts needed.
2011-11-26 15:19:57 +00:00
turley
d32cec7d6c
Added: basic::TypeOfInt( expr ) + basic.em constants
...
returns like TypeOf() the type of given parameter, but returns instead of a string an integer (see basic.em constants)
since integer comparison are way faster then string comparison this function should always be used for comparisons
2011-03-12 10:51:10 +00:00
turley
981ff65c43
-added ESCRIPT_PROFILE #define stops the execution time of functions/members/methods PolCore().internal(1) logs it into debug.log
...
-added globalproperty file for PreprocessorDefinitions (i hate to set needed defs in every proj) vs2008/10 only
-some speedups
-removed "Waah! ..." prints on heal/damage dead chr
-fixed "*.. is attacking you!*"
2011-03-04 14:32:18 +00:00
frozenblit
eb61009c6e
Fixed some possibilities of leaking if an exception was thrown and a few other warnings (all the rest, code analysis)
2010-07-10 20:02:50 +00:00
turley
e10cd27cea
sync: shini - long to int (prerequisit for 64-bit)
2010-03-29 14:52:03 +00:00
turley
7a2addff8d
Fixed: StrReplace,SubStrReplace return "Invalid parameter type" instead of crashing if non string object
...
is given as to_replace, replace_with
Fixed: Several small memoryleaks
2010-02-16 12:46:55 +00:00
turley
ff4936f20f
more var scope cleanup
2009-10-07 11:47:42 +00:00
turley
8084d7c0e4
more cleanup
...
+pre-incrementing of iters is faster
2009-10-07 10:55:39 +00:00
muaddib_pol
49072c3c41
+ To-Do file updates
...
+ Beginning of Mobile and Module source file organization
+ Makefile.Gcc updates
2009-09-06 14:11:24 +00:00