4coder/4coder_jump_sticky.h

79 lines
1.3 KiB
C
Raw Normal View History

/*
4coder_jump_sticky.h - Types for persistant jump positions.
*/
// TOP
#if !defined(FCODER_JUMP_STICKY_H)
#define FCODER_JUMP_STICKY_H
struct Sticky_Jump_Line_Details{
int32_t list_line;
int32_t list_colon_index;
bool32 is_sub_error;
};
struct Sticky_Jump{
int32_t list_line;
int32_t list_colon_index;
bool32 is_sub_error;
Buffer_ID jump_buffer_id;
int32_t jump_pos;
};
struct Sticky_Jump_Array{
struct Sticky_Jump *jumps;
int32_t count;
};
struct Sticky_Jump_Node_Header{
Memory_Handle memory;
Marker_Handle markers;
int32_t first_index;
int32_t count;
};
enum Jump_Location_Flag{
JumpFlag_IsSubJump = 0x1,
};
struct Sticky_Jump_Destination_Array{
uint32_t first_jump_index;
Marker_Handle handle;
};
struct Sticky_Jump_Source{
uint32_t line_number;
uint32_t flags;
};
struct Marker_List{
Sticky_Jump_Destination_Array *dst;
int32_t dst_count;
int32_t dst_max;
Sticky_Jump_Source *jumps;
int32_t jump_count;
int32_t jump_max;
int32_t previous_size;
};
struct Marker_List_Node{
Marker_List_Node *next;
Marker_List_Node *prev;
Marker_List list;
int32_t buffer_id;
};
struct Locked_Jump_State{
View_Summary view;
Marker_List *list;
int32_t list_index;
};
#endif
// BOTTOM