91 Commits

Author SHA1 Message Date
Caleb Maclennan
80e3266ced
Merge pull request #9 from lunarmodules/retool v7.0.0 2023-10-07 00:42:33 +03:00
Caleb Maclennan
51c1d732ed
chore: Fix lint issues, mostly with proper variable scopes 2023-10-05 20:48:51 +03:00
Caleb Maclennan
939fc2901b
docs: Format README as Markdown 2023-10-04 23:41:10 +03:00
Caleb Maclennan
c2ee26e1ef
ci: Add lunarmodules lint, test, and deploy workflows 2023-10-04 23:33:53 +03:00
Jonathan Ringer
b761918588
Update ittner homepage 2021-12-28 11:12:49 -08:00
Alexandre Erwin Ittner
2205a0fe27 Some code style changes and typo fixes 2013-10-23 00:12:24 -02:00
Alexandre Erwin Ittner
d41e0d345d Optimize memory handling in conversion function
Handling memory in this function is almost a Catch-22 between too many
mallocs and frees fragmenting memory in systems with bad allocators and
string concatenations abusing the Lua garbage collector. To avoid this,
now it uses a static buffer in the stack and a luaL_Buffer to handle
the concatenations. This remove all direct calls to memory allocators
from the library and lets Lua use its own.
2013-10-23 00:08:28 -02:00
Alexandre Erwin Ittner
49eb7b534f Add two new test cases 2012-05-22 00:58:48 -03:00
Alexandre Erwin Ittner
6f265ded5d Fix invalid error report
cd:iconv returned an invalid ERROR_UNKNOW code instead of 'nil' on
successful conversions. This usually passes unnoticed since the return
string is what the user actually expects.
2012-05-22 00:39:41 -03:00
Alexandre Erwin Ittner
1876a6de19 Add revision number to the rockspec
Thanks Hisham.
2012-05-20 23:24:48 -03:00
Alexandre Erwin Ittner
e8d34024a6 Update tarball checksum lua-iconv-7 2012-05-06 23:27:38 -03:00
Alexandre Erwin Ittner
6eb316bccc Update download URL in the README 2012-05-06 23:10:36 -03:00
Alexandre Erwin Ittner
411ac9fe72 Update rockspec 2012-05-06 22:59:17 -03:00
Alexandre Erwin Ittner
8bf1e80355 Update package information for version 7 and Lua 5.2 2012-05-06 22:47:54 -03:00
Alexandre Erwin Ittner
1fc031875f Make the library comptible with both Lua 5.1 and Lua 5.2 2011-12-05 19:40:34 -02:00
Alexandre Erwin Ittner
044877f838 Replace deprecated 'luaL_reg' by 'luaL_Reg'
'luaL_reg' was deprecated in Lua 5.1; Ensures that this version is
free of deprecated constructions.
2010-11-20 10:41:47 -02:00
Alexandre Erwin Ittner
32c7b20967 Merge branch 'fix-double-free'
Conflicts:
	luaiconv.c
2010-11-18 16:06:45 -02:00
Alexandre Erwin Ittner
6b46ea5706 Prevent crashes with double-freed conversion descriptors
It was possible to crash the interpreter by forcefully calling the
__gc metamethod twice. This commit fixes the bug.
2010-11-18 16:03:08 -02:00
Alexandre Erwin Ittner
44af7c2835 Put the switch 'omit-frame-pointer' in the right place 2010-11-17 19:32:54 -02:00
Alexandre Erwin Ittner
266da128c5 Get the installation path from package.cpath instead of pkg-config
This commit ensures some portability, since INSTALL_CMOD is no longer
present in the .pc files generated from 'make pc' in Lua 5.2.0
2010-11-17 14:39:15 -02:00
Alexandre Erwin Ittner
30fdc3c192 Fix order of arguments in 'open'
Since they were wrong in two places, there is no API changes, just a
readability fix.
2010-11-17 12:43:33 -02:00
Alexandre Erwin Ittner
e9f3a5e377 Make module usage cleaner, removing all global symbols
The 'module' function was also deprecated in Lua 5.2.0.
2010-11-17 12:37:49 -02:00
Alexandre Erwin Ittner
0879d77e1a Some cosmetic changes to improve the code readability 2010-11-17 10:13:58 -02:00
Alexandre Erwin Ittner
1cbd622cef Update Makefile
Currently, Lua 5.2.0-alpha do not provides a pkg-config file. I hope it
will change in the final release, so we have an automated Makefile for
free.
2010-11-17 01:57:40 -02:00
Alexandre Erwin Ittner
1a183d84c2 Put the conversion buffer size in a macro 2010-11-17 01:44:41 -02:00
Alexandre Erwin Ittner
ff90f3f75e Convert library to Lua 5.2
Lua 5.2 brings some API changes; This commit converts the library to
the new version and removes the backward compatibility code between
Lua 5.0 and 5.1 (which makes no sense anymore).
2010-11-17 01:28:02 -02:00
Alexandre Erwin Ittner
e394f70df0 Replace call to luaL_typerror with a custom error message
The function luaL_typerror was removed from public API in Lua 5.2. This
commit replaces it with calls to luaL_argerror and a custom error
message.
2010-11-16 23:45:44 -02:00
Alexandre Erwin Ittner
fc22d5b632 Put all macros in uppercase 2010-11-16 23:36:24 -02:00
Alexandre Erwin Ittner
9511e04e61 Update build instructions and formatting of the API section 2010-09-05 23:38:41 -03:00
Alexandre Erwin Ittner
a80bed8045 Update project URL 2010-09-05 22:25:37 -03:00
Alexandre Erwin Ittner
a9b6a899a4 Update README
Put some small changes to style, typo fixes, and better organization.
2010-09-05 19:58:50 -03:00
Alexandre Erwin Ittner
f80402c452 Update email address 2010-09-05 13:58:36 -03:00
Alexandre Erwin Ittner
a46edb3206 Merge branch 'debian-packages-r6' 2010-08-17 06:03:23 -03:00
Alexandre Erwin Ittner
f5ece25447 Put Debian package information into the final tarball 2010-08-17 05:55:34 -03:00
Alexandre Erwin Ittner
eb15cbb43f Fix Debian package with patch from http://packages.debian.org/
Recreating debian directory according to a patch provided in
http://ftp.de.debian.org/debian/pool/main/l/lua-iconv/lua-iconv_6-3.diff.gz
2010-08-17 05:48:15 -03:00
Alexandre Erwin Ittner
80bfe373a3 Repository converted to Git
Adding ignore file and removing revision tags.
2010-02-19 20:40:44 -02:00
Alexandre Erwin Ittner
adb92aeec2 Release 6
git-svn-id: file:///var/svn/lua-iconv/tags/r6@69 9538949d-8f27-0410-946f-ce01ef448559
lua-iconv-6
2009-08-06 16:46:31 +00:00
Alexandre Erwin Ittner
2d7dd61c4b Updating rock
git-svn-id: file:///var/svn/lua-iconv/trunk@68 9538949d-8f27-0410-946f-ce01ef448559
2009-08-06 16:45:10 +00:00
Alexandre Erwin Ittner
5fdb4e6ebe Fixing makefile and version bump
git-svn-id: file:///var/svn/lua-iconv/trunk@65 9538949d-8f27-0410-946f-ce01ef448559
2009-08-06 16:30:06 +00:00
Alexandre Erwin Ittner
746bd38b96 Updating rockspec
git-svn-id: file:///var/svn/lua-iconv/trunk@64 9538949d-8f27-0410-946f-ce01ef448559
2009-08-03 22:01:49 +00:00
Alexandre Erwin Ittner
f250397346 Changing versioning scheme to avoid problems with Debian packages
git-svn-id: file:///var/svn/lua-iconv/trunk@62 9538949d-8f27-0410-946f-ce01ef448559
2009-08-03 21:43:21 +00:00
Alexandre Erwin Ittner
8631b8453e Adding patch by David Manura and Hisham
git-svn-id: file:///var/svn/lua-iconv/trunk@61 9538949d-8f27-0410-946f-ce01ef448559
2008-09-03 23:04:00 +00:00
Alexandre Erwin Ittner
5f448d6ed1 Updating rockspeck. Thanks Amadeu A. Barbosa Jr
git-svn-id: file:///var/svn/lua-iconv/trunk@59 9538949d-8f27-0410-946f-ce01ef448559
2008-08-31 02:08:33 +00:00
Alexandre Erwin Ittner
a918b0109a Adding sample Unicode I/O library
git-svn-id: file:///var/svn/lua-iconv/trunk@58 9538949d-8f27-0410-946f-ce01ef448559
2008-06-08 16:31:47 +00:00
Alexandre Erwin Ittner
1e2ee8d113 Fixing file url
git-svn-id: file:///var/svn/lua-iconv/trunk@56 9538949d-8f27-0410-946f-ce01ef448559
2008-05-19 00:48:13 +00:00
Alexandre Erwin Ittner
e126253925 Changing reference to version number
git-svn-id: file:///var/svn/lua-iconv/trunk@55 9538949d-8f27-0410-946f-ce01ef448559
2008-05-19 00:39:27 +00:00
Alexandre Erwin Ittner
9fba6938b2 Version r5. Fixes a bad linking option that makes lua-iconv unstable when used across different virtual machines
git-svn-id: file:///var/svn/lua-iconv/trunk@54 9538949d-8f27-0410-946f-ce01ef448559
lua-iconv-5
2008-05-19 00:37:56 +00:00
Alexandre Erwin Ittner
bb7c2ad7e6 Fixing a bad linking to Lua core libs in the makefile
git-svn-id: file:///var/svn/lua-iconv/trunk@53 9538949d-8f27-0410-946f-ce01ef448559
2008-05-19 00:31:13 +00:00
Alexandre Erwin Ittner
893cb11189 Fixing paths in rockspec
git-svn-id: file:///var/svn/lua-iconv/trunk@51 9538949d-8f27-0410-946f-ce01ef448559
2008-05-17 03:54:34 +00:00
Alexandre Erwin Ittner
424a37d206 Removing buggy debian package specs for now
git-svn-id: file:///var/svn/lua-iconv/trunk@49 9538949d-8f27-0410-946f-ce01ef448559
2008-05-17 03:40:50 +00:00