Skip to content

the-flx/flx-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT Release

flx-c

Rewrite emacs-flx in C

CI

🔧 Usage

flx_result* result = flx_score("buffer-file-name", "bfn");

if (result == NULL) {
    return -1;
}

printf("Score: %d\n", result->score);

for (int i = 0; i < arrlen(result->indices); ++i) {
    printf("idicies: %d %d\n", i, (*result).indices[i]);
}

flx_free(result);

🛠 Development

How to detect memory leaks: (macOS only)

# leaks -atExit -- ./path/to/exe/test_flx

On Linux, you should use Valgrind instead!

⚜️ License

flx-c is distributed under the terms of the MIT license.

See LICENSE for details.

About

Rewrite emacs-flx in C [maintainer=@jcs090218]

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages