fix: moved actions to action list
This commit is contained in:
parent
c18a85f1cc
commit
390f2d367a
3 changed files with 11 additions and 16 deletions
|
|
@ -5,7 +5,17 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "myers.h"
|
|
||||||
|
typedef enum {
|
||||||
|
INSERT,
|
||||||
|
DELETE
|
||||||
|
} ActionType;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
ActionType type;
|
||||||
|
uint64_t line_original;
|
||||||
|
uint64_t line_changed;
|
||||||
|
} Action;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Action* actions;
|
Action* actions;
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,5 @@
|
||||||
#ifndef MYERS_H
|
#ifndef MYERS_H
|
||||||
#define 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
|
#endif // MYERS_H
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
#include "myers.h"
|
|
||||||
#include "action_list.h"
|
#include "action_list.h"
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue