lucy.git
4 years agoRemove md5 checksum file from release prep master
Peter Karman [Thu, 8 Mar 2018 15:23:25 +0000 (09:23 -0600)] 
Remove md5 checksum file from release prep

4 years agoMerge branch 'go_caller_filepath'.
Marvin Humphrey [Thu, 15 Feb 2018 03:08:22 +0000 (19:08 -0800)] 
Merge branch 'go_caller_filepath'.

4 years agoKludge file location from Caller().
Marvin Humphrey [Thu, 15 Feb 2018 02:54:04 +0000 (18:54 -0800)] 
Kludge file location from Caller().

The behavior of Caller() is not guaranteed, and sometimes contains
artifacts of optimization.  Work around its unpredictability by adding
another case.

4 years agoFix Travis Perl versions
Nick Wellnhofer [Thu, 8 Feb 2018 14:53:57 +0000 (15:53 +0100)] 
Fix Travis Perl versions

The Perl versions available under Travis have changed and many older
releases were removed. Make perlbrew build releases that aren't
installed. Reduce the number of tested versions, but add test with
blead.

4 years agoUpgrade bundled Lemon parser to latest version
Nick Wellnhofer [Thu, 8 Feb 2018 13:55:16 +0000 (14:55 +0100)] 
Upgrade bundled Lemon parser to latest version

lemon.c is now at file 7f773532 from 2017-12-27
lempar.c is now at file da840fc8 from 2018-01-17

4 years agoDon't pass negative token id to Lemon parser
Nick Wellnhofer [Thu, 8 Feb 2018 13:29:11 +0000 (14:29 +0100)] 
Don't pass negative token id to Lemon parser

Newer Lemon versions throw an assertion if they encounter invalid
token ids.

Fixes LUCY-327. Thanks to Petr Pisar for the report.

4 years agoRun Travis tests with PERL_USE_UNSAFE_INC=0
Nick Wellnhofer [Thu, 8 Feb 2018 12:34:41 +0000 (13:34 +0100)] 
Run Travis tests with PERL_USE_UNSAFE_INC=0

This makes sure that Test::Harness doesn't set PERL_USE_UNSAFE_INC to 1
and that the tests are actually run without . in @INC.

5 years agoAdd sha512 explicit algorithm to file extension
Peter Karman [Wed, 16 Aug 2017 14:33:27 +0000 (09:33 -0500)] 
Add sha512 explicit algorithm to file extension

5 years agoFix handling of trailing double quotes in QueryParser
Nick Wellnhofer [Sat, 20 May 2017 14:01:30 +0000 (16:01 +0200)] 
Fix handling of trailing double quotes in QueryParser

Fixes LUCY-325.

5 years agoRegen charmonizer.c for --rpath fix
Nick Wellnhofer [Sat, 20 May 2017 13:02:38 +0000 (15:02 +0200)] 
Regen charmonizer.c for --rpath fix

5 years agoFix previous merge of 'improve-locking' branch
Nick Wellnhofer [Sun, 16 Apr 2017 10:43:57 +0000 (12:43 +0200)] 
Fix previous merge of 'improve-locking' branch

I accidentally merged the first version of the 'improve-locking' branch.
Add changes to the 'v2' branch as separate commit.

5 years agoMerge branch 'improve-locking'
Nick Wellnhofer [Sun, 16 Apr 2017 10:15:01 +0000 (12:15 +0200)] 
Merge branch 'improve-locking'

Fixes LUCY-323.

- Major rewrite of FilePurger, making it do less work.
- Eliminate global deletion lock, making PolyReader and FilePurger
  never wait for a lock.
- Redesign Lock API in preparation for native locks.
- Remove LockFactory.
- Fix locking bug with non-default merge lock timeout.
- Fix locking bug with concurrent BackgroundMergers.
- Port some tests to C.

5 years agoMerge branch 'master' into improve-locking 53/head
Nick Wellnhofer [Fri, 17 Mar 2017 16:10:51 +0000 (17:10 +0100)] 
Merge branch 'master' into improve-locking

5 years agoCreate files with FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
Nick Wellnhofer [Sun, 5 Mar 2017 15:31:36 +0000 (16:31 +0100)] 
Create files with FILE_ATTRIBUTE_NOT_CONTENT_INDEXED

Might avoid problems with the Windows Search Service, although my
earlier testing suggests that the only reliable solution is to
exclude the folder via Indexing Options in Control Panel.

5 years agoMake FSFolder always use Windows API
Nick Wellnhofer [Sun, 5 Mar 2017 15:28:02 +0000 (16:28 +0100)] 
Make FSFolder always use Windows API

Fixes LUCY-324.

5 years agoUse Windows API to delete and rename files
Nick Wellnhofer [Sun, 5 Mar 2017 13:21:29 +0000 (14:21 +0100)] 
Use Windows API to delete and rename files

Delete files on Windows by calling CreateFile with
FILE_FLAG_DELETE_ON_CLOSE and closing the handle immediately. Unlike
DeleteFile, this allows files opened with FILE_SHARE_DELETE to be
(eventually) deleted.

Part of LUCY-324.

5 years agoFix t/051-fsfile.t cleanup on Windows
Nick Wellnhofer [Sun, 5 Mar 2017 00:09:14 +0000 (01:09 +0100)] 
Fix t/051-fsfile.t cleanup on Windows

5 years agoAvoid rescanning the index folder for latest snapshot
Nick Wellnhofer [Wed, 22 Feb 2017 17:55:05 +0000 (18:55 +0100)] 
Avoid rescanning the index folder for latest snapshot

Eliminate up to four unnecessary scans in BackgroudMerger:

- BGMerger_init
- S_merge_updated_deletions (twice)
- BGMerger_Prepare_Commit

Eliminate two unnecessary scans in Indexer:

- Indexer_init
- Indexer_Prepare_Commit

5 years agoAdd test showing custom analyzer
Peter Karman [Fri, 24 Feb 2017 02:30:51 +0000 (20:30 -0600)] 
Add test showing custom analyzer

**Why**: User discussion on email list revealed our Analyzer docs
needed bolstering. This test demonstrates the simple custom
analyzer use case.

Ref https://lists.apache.org/thread.html/7e0f446bcccddf8faaffbb4fbb5a5265016a06f736f30757f0ee35af@%3Cuser.lucy.apache.org%3E

5 years agoImprove Analyzer documentation
Nick Wellnhofer [Thu, 23 Feb 2017 15:46:24 +0000 (16:46 +0100)] 
Improve Analyzer documentation

Document that Analyzer subclasses must override the Equals method.
Add synopsis with example classes to Perl POD.

5 years agoMove LockFileLock to separate file
Nick Wellnhofer [Sun, 19 Feb 2017 16:01:50 +0000 (17:01 +0100)] 
Move LockFileLock to separate file

5 years agoMove host ivar from Lock to LockFileLock
Nick Wellnhofer [Sun, 19 Feb 2017 15:21:00 +0000 (16:21 +0100)] 
Move host ivar from Lock to LockFileLock

5 years agoRelease locks on destruction
Nick Wellnhofer [Sun, 19 Feb 2017 13:09:02 +0000 (14:09 +0100)] 
Release locks on destruction

5 years agoPort LockFileLock tests to C
Nick Wellnhofer [Fri, 17 Feb 2017 20:38:56 +0000 (21:38 +0100)] 
Port LockFileLock tests to C

5 years agoDon't hide I/O errors behind LockErr
Nick Wellnhofer [Fri, 17 Feb 2017 19:26:13 +0000 (20:26 +0100)] 
Don't hide I/O errors behind LockErr

Only return a LockErr if there's lock contention, not on unrelated
I/O errors.

5 years agoRemove Lock_Is_Locked
Nick Wellnhofer [Fri, 17 Feb 2017 18:13:59 +0000 (19:13 +0100)] 
Remove Lock_Is_Locked

5 years agoChange lock acquitision order in BGMerger_init
Nick Wellnhofer [Fri, 17 Feb 2017 17:34:31 +0000 (18:34 +0100)] 
Change lock acquitision order in BGMerger_init

Obtain the merge lock before the write lock so that an already running
background merger won't abort when failing to acquire the write lock
during commit.

Release the merge lock at the very end of BGMerger_Commit. It doesn't
really matter when we release the merge lock after we acquired the
write lock in BGMerger_Prepare_Commit. I think it makes the code
clearer to release it at the very end of BGMerger_Commit.

5 years agoImprove merge lock handling
Nick Wellnhofer [Fri, 17 Feb 2017 17:25:35 +0000 (18:25 +0100)] 
Improve merge lock handling

Don't check the merge lock with Is_Locked in
FilePurger_Purge_Aborted_Merge. This prevented background mergers from
cleaning up because they already held the merge lock. Require that
callers hold the merge lock instead.

Don't check the merge lock with Is_Locked in Indexer_init. Since we
hold the write lock, and the merge.json file from aborted merge has
been removed, the presence of a merge.json file is a reliable indicator
that it belongs to an active background merger. Move the merge lock
request form S_maybe_merge to Indexer_init.

Also, S_maybe_merge used to Obtain the merge lock instead of merely
Requesting it. Waiting for a potentially long-running background merger
slows things down unnecessarily and increases the chance for write lock
contention. This didn't affect the default configuration which has a
zero merge lock timeout.

5 years agoRework snapshot and deletion locks
Nick Wellnhofer [Fri, 17 Feb 2017 16:19:43 +0000 (17:19 +0100)] 
Rework snapshot and deletion locks

Request exclusive or shared snapshot locks instead of the global
deletion lock. This removes the need to retry lock requests and
reduces contention.

5 years agoDon't allow double obtain/release
Nick Wellnhofer [Fri, 17 Feb 2017 12:53:59 +0000 (13:53 +0100)] 
Don't allow double obtain/release

5 years agoRemove LockFactory and make Lock a private class
Nick Wellnhofer [Thu, 16 Feb 2017 16:47:33 +0000 (17:47 +0100)] 
Remove LockFactory and make Lock a private class

If there are users who really use custom locks, this can be reverted.

5 years agoAlways check for stale locks in Is_Locked
Nick Wellnhofer [Thu, 16 Feb 2017 15:47:03 +0000 (16:47 +0100)] 
Always check for stale locks in Is_Locked

Note that checking for stale locks isn't necessary when requesting
shared locks.

5 years agoMerge SharedLock into LockFileLock
Nick Wellnhofer [Thu, 16 Feb 2017 14:58:45 +0000 (15:58 +0100)] 
Merge SharedLock into LockFileLock

Supplying the lock type when requesting a lock better matches other
file lock APIs. Merging the implementations allows to convert
Maybe_Delete_File into a static function.

Make shared and exclusive locks check for locks of the other type
except for exclusive locks created with `exclusive_only`.

Clear_Stale is broken for shared locks but will be removed with the
following commit.

5 years agoSeparate purging of snapshots and aborted merges
Nick Wellnhofer [Wed, 15 Feb 2017 04:10:07 +0000 (05:10 +0100)] 
Separate purging of snapshots and aborted merges

Purge aborted merge when starting an Indexer/BGMerger session and
purge snapshots at the end of Commit.

Rework FilePurger to use a single hash for purged and spared files
when purging snapshots. Optimize Folder handling assuming that
Snapshots only contain entries local to the index folder.

Make sure to list the contents of the real directory, not the
virtual compound file directory. CFReaderDirHandle lists both real
and virtual files which might be a bug in itself.

Port BGMerger tests to C.

TODO: Move Perl BGMerge test to t/binding.

5 years agoMake FSFileHandle always use Windows handles
Nick Wellnhofer [Sun, 19 Feb 2017 21:43:03 +0000 (22:43 +0100)] 
Make FSFileHandle always use Windows handles

Switch FSFileHandle over to WinAPI for open/close/write.

Add sanity checks to FileHandle_do_open.

Fix minor bug in Unix Write method (-1 return value was added to file
length). Make Windows Read method use synchronous API and add an extra
check for unexpected EOF.

Fixes LUCY-321.

5 years agoFix EasyAnalyzer_new default
Nick Wellnhofer [Fri, 17 Feb 2017 23:58:02 +0000 (00:58 +0100)] 
Fix EasyAnalyzer_new default

Lucy::Analyzer::EasyAnalyzer->new segfaulted without arguments.

5 years agoRemove useless code from SegWriter.c
Nick Wellnhofer [Fri, 17 Feb 2017 00:29:58 +0000 (01:29 +0100)] 
Remove useless code from SegWriter.c

5 years agoAdd "install" target to C Makefile
Nick Wellnhofer [Wed, 8 Feb 2017 19:01:08 +0000 (20:01 +0100)] 
Add "install" target to C Makefile

Fixes LUCY-319.

5 years agoRegenerate charmonizer.c for LargeFiles fix
Nick Wellnhofer [Wed, 8 Feb 2017 14:15:11 +0000 (15:15 +0100)] 
Regenerate charmonizer.c for LargeFiles fix

5 years agoFix cross-compiling to MinGW on Unix
Nick Wellnhofer [Sat, 4 Feb 2017 16:43:53 +0000 (17:43 +0100)] 
Fix cross-compiling to MinGW on Unix

"windows.h" must be lowercase on case-sensitive file systems.

5 years agoAdd cross-compilation support to configure script
Nick Wellnhofer [Sat, 4 Feb 2017 16:42:29 +0000 (17:42 +0100)] 
Add cross-compilation support to configure script

If the environment variable TARGET_CC is set, configure uses the value
as target compiler for cross-compiling. For example:

    TARGET_CC=x86_64-w64-mingw32-gcc ./configure

5 years agoUpdate Charmonizer code
Nick Wellnhofer [Sat, 4 Feb 2017 16:39:28 +0000 (17:39 +0100)] 
Update Charmonizer code

- New compiler version API.
- CC is set by Charmonizer.
- Pass --charmonic to cfc (requires to run more probes).
- Fix warnings.

5 years agoRemove indirection from NumUtil_encode_bigend_* arg
Nick Wellnhofer [Fri, 3 Feb 2017 13:51:38 +0000 (14:51 +0100)] 
Remove indirection from NumUtil_encode_bigend_* arg

5 years agoOptimize NumUtil_encode_bigend_* functions
Nick Wellnhofer [Fri, 3 Feb 2017 13:34:07 +0000 (14:34 +0100)] 
Optimize NumUtil_encode_bigend_* functions

Make GCC generate bswap instructions. For details see:

http://stackoverflow.com/q/36497605

5 years agoStop using endian macros in NumberUtils.cfh
Nick Wellnhofer [Fri, 3 Feb 2017 13:05:44 +0000 (14:05 +0100)] 
Stop using endian macros in NumberUtils.cfh

Use an inline function instead. Modern compilers can compute the
result at compile time and eliminate the if/else statement.

5 years agoRemove U64_TO_DOUBLE macro
Nick Wellnhofer [Fri, 3 Feb 2017 12:32:48 +0000 (13:32 +0100)] 
Remove U64_TO_DOUBLE macro

It was only needed for MSVC6.

5 years agoSpecial case Booleans in Freezer_thaw
Nick Wellnhofer [Wed, 28 Dec 2016 19:22:08 +0000 (20:22 +0100)] 
Special case Booleans in Freezer_thaw

Now Freezer_deserialize doesn't support Booleans anymore but this
should be harmless.

Fixes LUCY-292.

5 years agoValgrind cleanup
Nick Wellnhofer [Sat, 24 Dec 2016 17:12:01 +0000 (18:12 +0100)] 
Valgrind cleanup

Remove unneeded compiler flags, check for LUCY_VALGRIND environment
variable at run time.

5 years agoGet_Searchers accessor for PolySearcher
Nick Wellnhofer [Sat, 24 Dec 2016 16:36:16 +0000 (17:36 +0100)] 
Get_Searchers accessor for PolySearcher

Fixes LUCY-255.

5 years agoPort PolySearcher tests to C
Nick Wellnhofer [Sat, 24 Dec 2016 16:31:19 +0000 (17:31 +0100)] 
Port PolySearcher tests to C

5 years agoAdd TestUtils_create_index
Nick Wellnhofer [Sat, 24 Dec 2016 15:13:26 +0000 (16:13 +0100)] 
Add TestUtils_create_index

5 years agoMinor test fixes
Nick Wellnhofer [Sat, 24 Dec 2016 15:11:16 +0000 (16:11 +0100)] 
Minor test fixes

5 years agoAllow automated parallel tests
Nick Wellnhofer [Sat, 24 Dec 2016 13:37:13 +0000 (14:37 +0100)] 
Allow automated parallel tests

5 years agoStop creating test working dir
Nick Wellnhofer [Sat, 24 Dec 2016 13:29:03 +0000 (14:29 +0100)] 
Stop creating test working dir

5 years agoStop creating persistent uscon index
Nick Wellnhofer [Sat, 24 Dec 2016 13:26:09 +0000 (14:26 +0100)] 
Stop creating persistent uscon index

5 years agoUse custom tempfile in t/025-debug.t
Nick Wellnhofer [Sat, 24 Dec 2016 13:17:33 +0000 (14:17 +0100)] 
Use custom tempfile in t/025-debug.t

Stop using the test "working dir".

5 years agoParallel test support for init_test_index_loc
Nick Wellnhofer [Sat, 24 Dec 2016 00:32:59 +0000 (01:32 +0100)] 
Parallel test support for init_test_index_loc

Use File::Temp to create a temporary directory in 't' that will be
cleaned up at exit. A side effect is that the directory won't be
removed if the test crashes.

5 years agoSkip more 025-debug tests on Windows
Nick Wellnhofer [Sat, 24 Dec 2016 14:18:25 +0000 (15:18 +0100)] 
Skip more 025-debug tests on Windows

Redirecting stderr doesn't seem to work. Also fix skip count.

5 years agoFix and enable LUCY_DEBUG under MSVC
Nick Wellnhofer [Mon, 2 Jan 2017 15:16:19 +0000 (16:16 +0100)] 
Fix and enable LUCY_DEBUG under MSVC

Switch to ISO variadic macros.

5 years agoFix Lucy::Util::Debug Perl module
Nick Wellnhofer [Sat, 24 Dec 2016 13:07:31 +0000 (14:07 +0100)] 
Fix Lucy::Util::Debug Perl module

It wasn't enabled when setting the LUCY_DEBUG environment variable.

5 years agoFix svnmucc command in release_commands.pl
Nick Wellnhofer [Tue, 13 Dec 2016 15:21:24 +0000 (16:21 +0100)] 
Fix svnmucc command in release_commands.pl

The svnmucc release command was broken by a recent svn update. It
doesn't seem to be possible to move files and remove the old parent
directory in a single step. See

    https://issues.apache.org/jira/browse/SVN-4579.

Fixes LUCY-308.

5 years agoFix links in FileLocking.md
Nick Wellnhofer [Sat, 10 Dec 2016 16:23:45 +0000 (17:23 +0100)] 
Fix links in FileLocking.md

5 years agoFix IndexManager with many small segments
Nick Wellnhofer [Wed, 7 Dec 2016 15:44:02 +0000 (16:44 +0100)] 
Fix IndexManager with many small segments

IxManager_Choose_Sparse would throw when handling more than about 40
segments because of the integer overflow test in S_fibonacci.

Also, the naive recursive implementation of S_fibonacci had abysmal
performance. After all, the result was created by adding only 0s and
1s. The number of calls to S_fibonacci when computing fib(n) was
fib(n+1), resulting in more than a billion of iterations with n ~ 45.
On my (heavily loaded and low-end) test machine, Choose_Sparse could
take up to 40 seconds to complete.

On the positive side, if anyone was hit by this performance problem,
it's likely they also saw the "index n too large" exception and we
only had two reports so far.

Use a precomputed lookup table and fix the test for large values of n.

Fixes LUCY-318.

5 years agoIgnore exceptions in SearchClient dtor
Nick Wellnhofer [Wed, 30 Nov 2016 19:19:36 +0000 (20:19 +0100)] 
Ignore exceptions in SearchClient dtor

Fixes LUCY-286.

5 years agoIgnore CPAN Testers forcing parallel tests
Nick Wellnhofer [Wed, 30 Nov 2016 19:15:59 +0000 (20:15 +0100)] 
Ignore CPAN Testers forcing parallel tests

Parallel tests are known to fail (LUCY-260).

5 years agoRemove ELAST from ErrorMessage
Nick Wellnhofer [Tue, 29 Nov 2016 09:54:26 +0000 (10:54 +0100)] 
Remove ELAST from ErrorMessage

ELAST isn't an actual error code and causes conflicts.

Fixes LUCY-317.

5 years agoSupport X.Y.Z.D Perl versions
Nick Wellnhofer [Thu, 24 Nov 2016 14:31:14 +0000 (15:31 +0100)] 
Support X.Y.Z.D Perl versions

5 years agoRework PAUSE exclusions
Nick Wellnhofer [Thu, 24 Nov 2016 14:05:39 +0000 (15:05 +0100)] 
Rework PAUSE exclusions

Remove class lists in Lucy::Redacted and `_gen_pause_exclusion_list`.
The generated `no_index` section was essentially ineffective, because
it was overridden by the auto-generated `provides` section. It was
also cluttered with files that wouldn't be indexed anyway.

Add `no_index` section manually in Build.PL. Since version 0.40_11,
this stops Module::Build from creating a `provides` section in the
CPAN META files. Add directories `sample` and `devel` to `no_index`
in order to stop MetaCPAN from indexing their contents.

Remove the custom `distmeta` action which checked version numbers in
.pm files and relied on the `provides` section being generated.

Part of LUCY-313.

5 years agoDocument that Hits#Next returns a HitDoc
Nick Wellnhofer [Wed, 23 Nov 2016 15:17:06 +0000 (16:17 +0100)] 
Document that Hits#Next returns a HitDoc

5 years agoFix memory leak in HitQueue
Nick Wellnhofer [Wed, 19 Oct 2016 11:29:58 +0000 (13:29 +0200)] 
Fix memory leak in HitQueue

HitQueue would leak a FieldType if the last SortRule was of type
FIELD. This wasn't discovered by our test suite because we always
break ties by DOC_ID.

Thanks to Serkan Mulayim for the report.

Fixes LUCY-315.

5 years agoStop using strerror
Nick Wellnhofer [Sat, 8 Oct 2016 14:16:48 +0000 (16:16 +0200)] 
Stop using strerror

Especially with non-English locales, 'strerror' can return strings in
arbitrary encodings. Now that CB_VCatF has more thorough UTF-8 checks,
this can result in unwanted exceptions.

'strerror' also isn't thread-safe.

Add some utility functions to set the global error object, optionally
followed by a textual representation of the error in 'errno' or
returned by 'GetLastError' on Windows. Convert 'errno' values using
custom messages for all 'errno' macros from current Linux and Darwin
kernels.

Also make some error messages more informative by adding the reason
for the error, e.g. in FSDH_do_open which may fail when opening an
index.

Fixes LUCY-311.

5 years agoChange tag names in release_commands.pl
Nick Wellnhofer [Mon, 3 Oct 2016 13:03:15 +0000 (15:03 +0200)] 
Change tag names in release_commands.pl

6 years agoTry several ports in remote searcher tests
Nick Wellnhofer [Fri, 30 Sep 2016 15:16:58 +0000 (17:16 +0200)] 
Try several ports in remote searcher tests

Fixes LUCY-312.

6 years agoRegenerate charmonizer.c for pattern rules fix
Nick Wellnhofer [Thu, 29 Sep 2016 14:29:11 +0000 (16:29 +0200)] 
Regenerate charmonizer.c for pattern rules fix

Fixes LUCY-309.

6 years agoExclude Lucy/Test.xs from CPAN tarball
Nick Wellnhofer [Thu, 29 Sep 2016 13:08:05 +0000 (15:08 +0200)] 
Exclude Lucy/Test.xs from CPAN tarball

Fixes LUCY-310.

6 years agoUpdate release date for 0.6.0 release
Nick Wellnhofer [Sat, 24 Sep 2016 13:04:23 +0000 (15:04 +0200)] 
Update release date for 0.6.0 release

6 years agoUpdate version number for 0.6.0 release
Nick Wellnhofer [Sat, 24 Sep 2016 13:03:28 +0000 (15:03 +0200)] 
Update version number for 0.6.0 release

6 years agoUpdate update_version script
Nick Wellnhofer [Sat, 24 Sep 2016 13:00:47 +0000 (15:00 +0200)] 
Update update_version script

6 years agoAdd CHANGES for 0.6.0.
Marvin Humphrey [Thu, 15 Sep 2016 00:18:45 +0000 (17:18 -0700)] 
Add CHANGES for 0.6.0.

6 years agoMerge CHANGES for 0.5.x.
Marvin Humphrey [Thu, 15 Sep 2016 00:17:25 +0000 (17:17 -0700)] 
Merge CHANGES for 0.5.x.

6 years agoUpdate rat-excludes
Nick Wellnhofer [Wed, 7 Sep 2016 16:49:14 +0000 (18:49 +0200)] 
Update rat-excludes

6 years agoFix charmonizer memory leaks
Nick Wellnhofer [Wed, 7 Sep 2016 15:40:51 +0000 (17:40 +0200)] 
Fix charmonizer memory leaks

6 years agoUpdate valgrind suppressions
Nick Wellnhofer [Wed, 7 Sep 2016 15:40:09 +0000 (17:40 +0200)] 
Update valgrind suppressions

6 years agoChange Clownfish C library name
Nick Wellnhofer [Sat, 6 Aug 2016 15:54:36 +0000 (17:54 +0200)] 
Change Clownfish C library name

The Clownfish C library is now named libclownfish.

6 years agoMerge branch 'string-helpers'
Nick Wellnhofer [Sat, 6 Aug 2016 14:41:19 +0000 (16:41 +0200)] 
Merge branch 'string-helpers'

See CLOWNFISH-76.

6 years agoMove StringHelper from Clownfish to Lucy 51/head
Nick Wellnhofer [Tue, 2 Aug 2016 17:33:01 +0000 (19:33 +0200)] 
Move StringHelper from Clownfish to Lucy

6 years agoMove some functions from StrHelp to Str
Nick Wellnhofer [Tue, 2 Aug 2016 16:54:24 +0000 (18:54 +0200)] 
Move some functions from StrHelp to Str

6 years agoUse CharBuf to unescape JSON strings
Nick Wellnhofer [Tue, 2 Aug 2016 14:58:43 +0000 (16:58 +0200)] 
Use CharBuf to unescape JSON strings

Also use a stricter custom decoder for hex escapes. (strtol allows
leading whitespace and plus signs.)

6 years agoSimplify build code after Clownfish changes
Nick Wellnhofer [Wed, 20 Jul 2016 11:19:19 +0000 (13:19 +0200)] 
Simplify build code after Clownfish changes

- Remove inherit_metadata hack.
- Remove xs_prereqs.

6 years agoAdd sort_spec param to Simple_Search
Nick Wellnhofer [Thu, 28 Jul 2016 12:43:04 +0000 (14:43 +0200)] 
Add sort_spec param to Simple_Search

The sort_spec parameter was lost when porting Lucy::Simple to C.

Fixes LUCY-307.

6 years agoAdd Lucy::Test to INSTALL.SKIP
Nick Wellnhofer [Fri, 22 Jul 2016 13:50:41 +0000 (15:50 +0200)] 
Add Lucy::Test to INSTALL.SKIP

6 years agoUpdate .cfp files after Clownfish changes
Nick Wellnhofer [Fri, 22 Jul 2016 12:30:24 +0000 (14:30 +0200)] 
Update .cfp files after Clownfish changes

Add "major_version" and "installed" properties.

6 years agoUpdate lemon
Nick Wellnhofer [Fri, 15 Jul 2016 19:53:51 +0000 (21:53 +0200)] 
Update lemon

- Update lemon.c to 09a96bed from 2016-05-24.
- Update lempar.c to 57ffa985 from 2016-07-12.

6 years agoCompile lemon without extra compiler flags
Nick Wellnhofer [Fri, 15 Jul 2016 19:52:28 +0000 (21:52 +0200)] 
Compile lemon without extra compiler flags

Avoids compilation problems on Windows.

6 years agoMerge branch 'separate-tests'
Nick Wellnhofer [Fri, 15 Jul 2016 11:10:10 +0000 (13:10 +0200)] 
Merge branch 'separate-tests'

6 years agoMake sure not to add JsonParser.c twice 50/head
Nick Wellnhofer [Mon, 11 Jul 2016 12:32:08 +0000 (14:32 +0200)] 
Make sure not to add JsonParser.c twice

Fix Makefile in case JsonParser.c already exists.

6 years agoBuild separate Perl binaries with make
Nick Wellnhofer [Fri, 8 Jul 2016 17:04:44 +0000 (19:04 +0200)] 
Build separate Perl binaries with make

6 years agoRename core directory to "cfcore" for CPAN tarball
Nick Wellnhofer [Fri, 8 Jul 2016 16:09:31 +0000 (18:09 +0200)] 
Rename core directory to "cfcore" for CPAN tarball

6 years agoSeparate test binaries
Nick Wellnhofer [Fri, 8 Jul 2016 14:36:44 +0000 (16:36 +0200)] 
Separate test binaries

6 years agoDon't access ivars in tests
Nick Wellnhofer [Fri, 8 Jul 2016 15:51:12 +0000 (17:51 +0200)] 
Don't access ivars in tests

Add some helper methods for tests.