102 Commits

Author SHA1 Message Date
Egor
3c729ec869
fix: lua export (#19)
* fix: lua export
2025-01-19 19:12:55 +01:00
paulobaggio
5452834c16
fix: lua-iconv test at Rockylinux 9 fail using lua 5.1 version (#15) 2024-11-13 21:31:59 +01:00
Thijs Schreijer
dbdd9d9ab8 release 7.1.0
Updates the dev rockspec to pin to a tag, such that new rockspecs
generated from it will not point to `master` but to the version
tag.
v7.1.0
2023-10-30 15:56:22 +01:00
Thijs Schreijer
9eced53a8d fix(open): return an error on open/new
The method would not return an error message, now it does,
typically if a conversion is not supported.
2023-10-30 14:49:22 +01:00
Thijs Schreijer
1e6d024dc2 chore(dev): add a 'dev' rockspec to build from the source tree 2023-10-30 14:49:22 +01:00
Alexey Melnichuk
11545d0533
fix: Enable compiling with MSVC (#4) 2023-10-17 08:54:21 +03:00
Caleb Maclennan
9e865ff345
Bump rockrel high enough luarocks considers v7.0.0 newer than v7 2023-10-17 08:39:15 +03:00
Caleb Maclennan
8e19fde5f3
Use source URL format such that LuaRocks can infer source.dir from source.url 2023-10-07 22:23:34 +03:00
Matthieu Coudron
e4d200c102
Merge pull request #11 from lunarmodules/fix-rockspec 2023-10-07 20:57:28 +02:00
Matthieu Coudron
ba4f3a4518 build: added 6.1 rockspec 2023-10-07 14:52:13 +02:00
Matthieu Coudron
ac7f962b31 fix rockspec url 2023-10-07 00:41:15 +02:00
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