Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vala rewrite and release 2.7.0 #362

Merged
merged 11 commits into from
Apr 19, 2024
Merged

Vala rewrite and release 2.7.0 #362

merged 11 commits into from
Apr 19, 2024

Conversation

rrthomas
Copy link
Owner

This PR mostly contains a rewrite of the main library into Vala. See NEWS for full details.

  • Fix stray tab character in copyright notices
  • Fix a leak in the tests
  • Translate PWL module into Vala
  • lib/.gitignore: add files generated on some systems
  • Bump version to 2.7.0
  • Update gnulib
  • Convert lib.c to Vala
  • Remove more stray tabs in copyright notices
  • NEWS: add missing news for 2.6.8 and 2.6.9
  • NEWS: add news for 2.7.0
  • gnu.vapi: match upstream formatting

rrthomas added 11 commits April 5, 2024 18:10
Also lift the limit on words in the PWL being at most BUFSIZ bytes long.
This seems a fairly arbitrary limit, some technical words can be 200k
letters long, and it’s not obvious what a better limit is, or that having an
indefinite limit will actually be a problem.
Split lib.c into a set of Vala files.

* Tweak the semantics of dictionaries: it’s now possible to have multiple
  dictionaries in the same broker for the same language tag. Before, a
  second request for the same tag would return an existing dictionary.
  Remove the relevant tests.

* Adjust provider API:
  + EnchantProvider is now a reference-counted Vala class. It should be
    created with enchant_provider_new() and freed with
    enchant_provider_free().
  + EnchantDict is now a reference-counted Vala class. Providers call
    enchant_broker_new_dict() to create a dictionary, and may call
    enchant_broker_free_dict() to free it; otherwise, it will be freed when
    the broker is.
  + Make the dispose method of providers optional, as not all providers now
    require one.
  + Rename the private structs from str_enchant_foo to _EnchantFoo, to match
    Vala names.

* Build system tweaks:
  + Assume we have LC_MESSAGES, as GLib assumes it.
@rrthomas rrthomas merged commit 3a3e9df into rrthomas:master Apr 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant