feat: initial commit

This commit is contained in:
lisk77 2025-08-16 00:45:53 +02:00
commit c18a85f1cc
7 changed files with 153 additions and 0 deletions

20
include/action_list.h Normal file
View file

@ -0,0 +1,20 @@
#ifndef ACTION_LIST_H
#define ACTION_LIST_H
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include "myers.h"
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

19
include/myers.h Normal file
View file

@ -0,0 +1,19 @@
#ifndef MYERS_H
#define MYERS_H
#include <stdint.h>
typedef enum {
INSERT,
DELETE
} ActionType;
typedef struct {
ActionType type;
uint64_t line_original;
uint64_t line_changed;
} Action;
#endif // MYERS_H