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