robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

bfredlMerge pull request #35206 from bfredl/nopreproc_cleanup38986188ba

master
739 B23 linesraw
1#pragma once
2
3#include <limits.h>
4#include <stdint.h>  // IWYU pragma: keep
5
6#include "nvim/buffer_defs.h"  // IWYU pragma: keep
7#include "nvim/eval/typval_defs.h"  // IWYU pragma: keep
8#include "nvim/garray_defs.h"  // IWYU pragma: keep
9#include "nvim/pos_defs.h"  // IWYU pragma: keep
10#include "nvim/types_defs.h"  // IWYU pragma: keep
11
12enum { FUZZY_MATCH_MAX_LEN = 1024, };  ///< max characters that can be matched
13enum { FUZZY_SCORE_NONE = INT_MIN, };  ///< invalid fuzzy score
14
15/// Fuzzy matched string list item. Used for fuzzy match completion. Items are
16/// usually sorted by "score". The "idx" member is used for stable-sort.
17typedef struct {
18  int idx;
19  char *str;
20  int score;
21} fuzmatch_str_T;
22
23#include "fuzzy.h.generated.h"