Alien-Hunspell

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

    dependencies for the production version
  - Otherwise identical to 0.03_04

0.03_04   2016-01-11 03:56:44 -0500
  - Fixes to produce dynamic libraries on FreeBSD10.x
  - Fixes for more robust dynamic library scanning
  - Require Alien::Base 0.024 on Windows
    (for https://github.com/Perl5-Alien/Alien-Base/pull/139)

0.03_03   2016-01-05 13:17:30 -0500
  - Use attach instead of function in t/ffi.t to see
    if it is more reliable.

0.03_01   2016-01-04 20:44:08 -0500
  - Apply patch to expose add_dic via the C interface
    https://github.com/hunspell/hunspell/pull/355
    optionally used by Text::Hunspell::FFI
  - Included additional Test::Alien based tests.
    These are required for dev releases, but may
    be optional (for now) on production releases.

LICENSE  view on Meta::CPAN


                     END OF TERMS AND CONDITIONS

        Appendix: How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to humanity, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.

  To do so, attach the following notices to the program.  It is safest to
attach them to the start of each source file to most effectively convey
the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) 19yy  <name of author>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 1, or (at your option)
    any later version.

t/alien_hunspell.t  view on Meta::CPAN


  skip_all 'Test requires dynamic libraries' unless Alien::Hunspell->dynamic_libs;

  note "libs:";
  note "  - $_" for Alien::Hunspell->dynamic_libs;

  ffi_ok { symbols => [qw( Hunspell_create Hunspell_destroy )] }, with_subtest {
    my($ffi) = @_;


    $ffi->attach(Hunspell_create => ['string','string'] => 'opaque');
    my $ptr = Hunspell_create("corpus/supp.aff", "corpus/supp.dic");

    ok $ptr, "ptr = $ptr";

    $ffi->attach(Hunspell_destroy => ['opaque'] => 'void');
    Hunspell_destroy($ptr);

    ok 1, "did not crash";
  };
};

done_testing;

__DATA__



( run in 0.881 second using v1.01-cache-2.11-cpan-e1769b4cff6 )