512 Commits

Author SHA1 Message Date
Reuben Thomas 750b8db4df Ensure default LUA_PATH is used if environment variable is unset or empty 2014-08-05 15:35:39 +01:00
Reuben Thomas 5f55cd46e2 Make sure flavour is always defined when loading rockspecs.lua; was masked by special behaviour with stdlib loaded 2014-08-05 15:17:45 +01:00
Reuben Thomas ade3c3bfba Makefile: redefine RM to avoid errors when files being removed don't exist 2014-08-05 15:00:17 +01:00
Reuben Thomas c50b36c961 Update mkrockspecs.lua 2014-08-05 13:44:50 +01:00
Shmuel Zeigerman c2cc10463b 1. Fix issue #8
2. Adapt tests for dfa_exec to run with PCRE 8.34.
2014-08-04 23:44:56 +03:00
Reuben Thomas 18bace7048 Re-add mingw makefiles. 2013-01-10 23:59:11 +00:00
Reuben Thomas 82dba4bdcf Makefile: add FIXME 2013-01-10 23:57:00 +00:00
Reuben Thomas 80b14c5071 rockspecs.lua: fix repository URL 2013-01-08 19:41:59 +00:00
Reuben Thomas cfea1d4d31 Makefile: fix a variable expansion 2013-01-08 19:37:20 +00:00
Reuben Thomas d2db8f840b Simplify build system, and release directly from git 2013-01-08 19:33:39 +00:00
Reuben Thomas 7a011b2899 README.rst: fix an rst2html warning. 2013-01-08 03:03:23 +00:00
Reuben Thomas fadff3495c Complete the use of the Lua state allocator.
The original work, in commit 44176181c7, failed to call the
lua_Alloc function to free allocated memory. Thanks to George Zhao for
the report (issue #3).

Lrealloc and Lfree functions were added to mirror Lmalloc and simplify
the code.

In the process two other bugs turned up. First, one caller of Lmalloc
tried to take action if the allocation failed, but this was
ineffective, as Lmalloc called luaL_error. Hence, Lmalloc was changed
not to abort on error. Secondly, in lgnu.c, Lmalloc was called
erroneously, to allocate a buffer later freed by regfree (and hence by
free); this was corrected to call malloc.

The resulting code has been tested with both Lua 5.2 and luajit
2.0.0-beta9.
2013-01-08 00:54:08 +00:00
Reuben Thomas cdd65f33ec src/common.c: play safe and use 0 osize argument to lalloc when allocating 2013-01-07 14:51:54 +00:00
Shmuel Zeigerman 89f28e82cc Reflect the reality. 2013-01-07 08:16:58 +02:00
Reuben Thomas 841f8d1fb4 common.c: pass correct first argument to lua_Alloc function (fixes issue #3) 2013-01-07 03:19:27 +00:00
Reuben Thomas eadf062941 test/runtest.lua: really don't run buffer tests when alien not found 2013-01-07 02:44:26 +00:00
Reuben Thomas 7824f41214 README.rst: fix some formatting 2013-01-06 23:29:51 +00:00
Reuben Thomas 71857e6204 README.rst: add installation instructions (closes issue #2) 2013-01-06 23:29:19 +00:00
Reuben Thomas b1db4e5ae4 Makefile: fix things so rockspecs aren't distributed (a hard problem) but do have the right MD5 sums 2012-10-18 14:14:45 +01:00
Reuben Thomas d9722d0277 NEWS: add for 2.7.1 2012-10-18 14:04:17 +01:00
Reuben Thomas 5af421a5c0 Makefile: make it harder to make mistakes
Have install depend on dist, and dist depend on rockspecs, and make
rockspecs remove any old rockspec files, so it is much less likely
that the wrong rockspec is used, or out-of-date rockspecs distributed.
2012-10-18 13:57:25 +01:00
Reuben Thomas f106462d51 Makefile: exclude luarocks directory from distribution zip 2012-10-18 13:32:14 +01:00
Reuben Thomas b02e77feeb Makefile: bump version to 2.7.1 2012-10-18 13:27:36 +01:00
Reuben Thomas db3e4e5b0e Allow to signal no replacement in gsub with a nil or false replacement. 2012-10-18 13:22:15 +01:00
Reuben Thomas e3ca7bf625 rockspecs.lua: fix some inconsistent whitespace 2012-10-17 21:55:17 +01:00
Reuben Thomas e22585e565 rockspecs.lua: mention that we're Lua 5.2 compatible 2012-10-17 21:53:37 +01:00
Reuben Thomas 1ed329073e algo.h: fix to make it work on Lua 5.1; oops 2012-10-17 21:34:38 +01:00
Reuben Thomas a23eb8906b .gitignore: add luarocks directory 2012-10-17 21:05:52 +01:00
Reuben Thomas 5ed05e7652 Add luarocks-config.lua, needed for testing rockspecs 2012-10-17 21:02:02 +01:00
Reuben Thomas 0e2bc8c4c8 Makefile: fix testing of rockspecs, and remove now-redundant warning to upload to github 2012-10-05 23:16:56 +01:00
Reuben Thomas c2d49c4e7c Makefile: make release depend on dist and check 2012-10-05 13:01:23 +01:00
Reuben Thomas 064c1f4533 Makefile: fix a typo 2012-10-05 13:00:45 +01:00
Reuben Thomas 2d3a182f8c Makefile: test rockspecs after uploading the distribution before announcing it. 2012-10-05 12:59:26 +01:00
Reuben Thomas ba7c99ebf3 common.c: remove last use of non-Lua state malloc 2012-10-04 18:59:27 +01:00
Reuben Thomas bb7fefc410 Makefile: add a convenience install target for testing 2012-10-04 18:59:09 +01:00
Reuben Thomas 44176181c7 common.c: use Lua state allocator for TBuffers 2012-10-04 18:54:01 +01:00
Reuben Thomas ed4a8521bd Makefile: simplify running tests, and error if LUA is not set 2012-10-04 18:53:33 +01:00
Reuben Thomas 275b34b093 rockspecs.lua: fix some typos in the GNU rockspec 2012-10-04 18:49:13 +01:00
Reuben Thomas 91f4d3560b Makefile: bump version to 2.7.0 2012-10-04 18:22:01 +01:00
Reuben Thomas 49b14d86ff Remove unnecessary version numbers and have only one source of the version. 2012-10-04 18:20:07 +01:00
Reuben Thomas 4d23cfb500 Makefile: add a target to make the rockspecs 2012-10-04 18:19:41 +01:00
Reuben Thomas 145fc81aa9 Makefile: rename doc target to docs, to avoid clash with doc directory 2012-10-04 18:08:46 +01:00
Reuben Thomas 41d9fad850 Replace build systems with LuaRocks.
A single Makefile remains to take care of tests, distribution, release
and documentation.

As a result, rockspecs are automatically generated for all lrexlib
flavours (previously, only POSIX and PCRE were available).
2012-10-04 18:02:24 +01:00
Reuben Thomas a3dd13c7a1 defaults.mak: add -fPIC and remove -g from default gcc flags 2012-10-04 14:47:55 +01:00
Reuben Thomas 9aa4c1baae lonig.c: fix a mismatched type in two results of ?:; closes issue #1 2012-10-02 22:45:40 +01:00
Reuben Thomas 2cdbe1c446 Add the ability to use raw memory blocks as subjects.
The implementation is in algo.h, in the new check_subject function.

Usage is documented in manual.txt.

Optional tests have been added, using alien buffers.
2012-09-29 17:43:50 +01:00
Reuben Thomas b551acf755 common.mak: don't touch LUA_INIT, and augment, don't replace LUA_PATH 2012-09-29 17:43:09 +01:00
Reuben Thomas 414a1d0379 lposix.c: fold CheckStartEnd into its only caller 2012-09-29 16:34:08 +01:00
Reuben Thomas bcafc078ff lposix.c: improve a comment 2012-09-29 16:31:23 +01:00
Reuben Thomas 3d6f22f6c7 lposix.c: simplify gmatch_pushsubject slightly 2012-09-29 16:30:28 +01:00