Commit graph

32 commits

Author SHA1 Message Date
Kim Alvefur
fdbc23fab6 util.serialization: Add option for allowing multiple references to the same table (but not cycles) 2018-10-27 12:43:03 +02:00
Kim Alvefur
bdadc69e1a util.serialization: Separate errors for multiple table references and max depth 2018-10-27 12:38:47 +02:00
Kim Alvefur
97c56e6c71 util.serialization: Make maximum table depth configurable 2018-10-27 12:17:35 +02:00
Kim Alvefur
1789a7adf8 util.serialization: Remove encoding of very large or very small numbers in scientific notation
Also difficult to describe this option, easier to remove it.

%.18g covers a very large range of numbers
2018-10-12 00:15:08 +02:00
Kim Alvefur
e0a16c75dc util.serialization: Simpler metatable pre-processing
It was too difficult to describe what it did.
2018-10-12 00:13:24 +02:00
Kim Alvefur
8d941e5d0f util.serialization: Use '=' prefix for chunk source description
Like in bd5e4485a245
2018-10-11 23:00:45 +02:00
Kim Alvefur
09c19925cc util.serialization: Make check of prefix for optional hex encoding stricter 2018-10-11 22:59:26 +02:00
Kim Alvefur
e99c680a14 util.serialization: Make errors fatal by default (like the previous implementation) 2018-10-11 22:42:17 +02:00
Kim Alvefur
ed7c24bd0d util.serialization: Stricter type check 2018-09-23 16:11:13 +02:00
Kim Alvefur
6eb0c63e0d util.serialization: Tighten up type checks 2018-07-29 00:17:41 +02:00
Kim Alvefur
0ce63ae5c9 util.serialization: Rewritte for performance and flexibility
... and because rewrites are fun!
2018-07-10 22:04:26 +02:00
Kim Alvefur
43b814a83b vairious: Add annotation when an empty environment is set [luacheck] 2018-02-28 20:06:26 +01:00
Kim Alvefur
eaa823a597 util.*: Remove use of module() function, make all module functions local and return them in a table at the end 2015-02-21 10:36:37 +01:00
Matthew Wild
75c8b77900 util.serialization: Remove unused imports of error() and loadstring() [luacheck] 2015-05-06 19:40:48 +01:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Florian Zeitz
d49b9bc2ab Eliminate direct setfenv usage 2012-06-08 05:04:38 +02:00
Waqas Hussain
de4152ae6d util.serialization: Proper serialization of Infinity, -Infinity and NaN. 2010-12-13 20:45:08 +05:00
Waqas Hussain
31cd341b7d util.serialization: Implemented deserialize(). 2010-12-12 06:29:19 +05:00
Matthew Wild
2bc0606453 Update copyright headers for 2010 2010-03-22 17:06:15 +00:00
Matthew Wild
2e3f2e68d7 util.serialization: Correctly serialize tables with 'false' as a key, fixes an issue with rosters not saving (thanks mathias, Tobias) 2009-11-25 23:45:45 +00:00
Waqas Hussain
5b41760cec util.serialization: Replaced commas with semi-colons between table fields. 2009-11-23 19:50:04 +05:00
Waqas Hussain
8d13f90bed util.serialization: Concise output for empty tables. 2009-11-23 19:35:24 +05:00
Matthew Wild
118883d655 Remove version number from copyright headers 2009-07-10 03:11:45 +01:00
Waqas Hussain
5cd003581a util/serialization: Fixed serialization formatting 2009-05-08 01:06:45 +05:00
Matthew Wild
fefd7ac17a util.serialization: Write nil for non-serializable data types, and bump the log level to 'error' 2009-05-05 18:07:13 +01:00
Matthew Wild
7229cd0025 util.serialization: Log a warning when trying to serialize something we can't 2009-05-04 19:35:29 +01:00
Matthew Wild
c80f91dc02 0.3->0.4 2009-03-20 20:16:25 +00:00
Matthew Wild
c5ee166aa9 Update copyright notices for 2009 2009-01-30 17:59:26 +00:00
Matthew Wild
f2d020191f 0.2->0.3 2009-01-30 17:40:25 +00:00
Matthew Wild
bf3b96204d GPL->MIT! 2009-01-30 17:22:56 +00:00
Matthew Wild
d3ad4a5123 0.1 -> 0.2 2008-12-10 15:44:03 +00:00
Waqas Hussain
c76c4fdc1e Added module util.serialization 2008-12-04 23:27:54 +05:00