aboutsummaryrefslogtreecommitdiffstats
path: root/build/4coder_byp/custom/4coder_search.h
blob: 695a3a93f75d92903f56fd98d3e60cb07b7a7745 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
4coder_search.h - Types that are used in the search accross all buffers procedures.
*/

// TOP

#if !defined(FCODER_SEARCH_H)
#define FCODER_SEARCH_H

typedef u32 List_All_Locations_Flag;
enum{
  ListAllLocationsFlag_CaseSensitive = 1,
  ListAllLocationsFlag_MatchSubstring = 2,
};

struct Word_Complete_Iterator{
  Application_Links *app;
  Arena *arena;

  Temp_Memory arena_restore;
  Buffer_ID first_buffer;
  Buffer_ID current_buffer;
  b32 scan_all_buffers;
  String_Const_u8 needle;

  List_String_Const_u8 list;
  Node_String_Const_u8 *node;
  Table_Data_u64 already_used_table;
};

struct Word_Complete_Menu{
  Render_Caller_Function *prev_render_caller;
  Word_Complete_Iterator *it;
  String_Const_u8 options[8];
  i32 count;
};

#endif

// BOTOTM