No description
  • Haskell 38.5%
  • C++ 36.6%
  • C 17.5%
  • Makefile 7.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-10-23 20:04:23 +00:00
libtrie_loader.cpp add nullptr to perform_search 2024-12-22 12:42:33 -04:00
LICENSE Initial commit 2024-12-09 03:21:10 +00:00
main.c add nullptr to perform_search 2024-12-22 12:42:33 -04:00
Main.hs turn it into a haskell library 2025-03-02 11:08:40 -04:00
Makefile add nullptr to perform_search 2024-12-22 12:42:33 -04:00
README.md fix linking flags 2025-10-23 20:04:23 +00:00
Xcdaths.hs turn it into a haskell library 2025-03-02 11:08:40 -04:00

xcdat-Cwrapper

this is a C wrapper for the xcdat compression library.

build process (with gnu make)

first install xcdat in system-wide , then:

$ cd xcdat-Cwrapper && make

you can test with the dictionary file shipped with Hakurei:

copy to ~/.local/share/hakurei/

then execute the previous compiled code:

$ ./wrapper_executable

notice that the command above assumes that you're in the cloned folder.

haskell build

first compile the wrapper:

g++ -shared -fPIC -o libxcdatlib.so xcdatlib.cpp -lstdc++

then the haskell library:

ghc -shared -dynamic -fPIC -o xcdatlib.o Xcdaths.hs

and when you use that haskell library in a program , you can compile it like this:

$ ghc -o my_program Main.hs xcdatlib.o -L. -ltrie_loader -lstdc++