4coder/4coder_jump_sticky.h

66 lines
1.0 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
2018-08-18 08:16:52 +00:00
struct Sticky_Jump{
i32 list_line;
i32 list_colon_index;
b32 is_sub_error;
2018-08-18 08:16:52 +00:00
Buffer_ID jump_buffer_id;
i32 jump_pos;
};
2018-08-18 08:16:52 +00:00
struct Sticky_Jump_Stored{
i32 list_line;
i32 list_colon_index;
b32 is_sub_error;
Buffer_ID jump_buffer_id;
i32 index_into_marker_array;
};
struct Sticky_Jump_Array{
Sticky_Jump *jumps;
i32 count;
};
struct Sticky_Jump_Node_Header{
2018-08-12 06:33:52 +00:00
Managed_Object memory;
Managed_Object markers;
i32 first_index;
i32 count;
};
enum Jump_Location_Flag{
JumpFlag_IsSubJump = 0x1,
};
struct Marker_List{
2018-08-18 08:16:52 +00:00
Managed_Object jump_array;
i32 jump_count;
i32 previous_size;
2018-08-18 08:16:52 +00:00
Buffer_ID buffer_id;
};
struct Marker_List_Node{
Marker_List_Node *next;
Marker_List_Node *prev;
Marker_List list;
2018-08-18 08:16:52 +00:00
Buffer_ID buffer_id;
};
struct Locked_Jump_State{
View_ID view;
Marker_List *list;
i32 list_index;
};
#endif
// BOTTOM