#ifndef ACTION_LIST_H #define ACTION_LIST_H #include #include #include #include typedef enum { INSERT, DELETE } ActionType; // Represents a deletion or insertion into the files text typedef struct { ActionType type; uint64_t line_original; uint64_t line_changed; } Action; // Dynamic array of Actions typedef struct { Action* actions; uint64_t capacity; uint64_t len; } ActionList; ActionList* new_list(); void add_action(ActionList*, Action); void append_list(ActionList*, ActionList*); #endif // ACTION_LIST_H