Browse Source

Add sim.h/.c add stub for orca_run()

master
cancel 6 years ago
parent
commit
4846a23b20
  1. 2
      Makefile
  2. 6
      base.h
  3. 6
      field.h
  4. 5
      sim.c
  5. 4
      sim.h

2
Makefile

@ -8,7 +8,7 @@ library_flags := -lncurses
else
library_flags := -lncursesw
endif
source_files := field.c main.c
source_files := field.c sim.c main.c
all: debug

6
base.h

@ -10,3 +10,9 @@
typedef char Term;
typedef uint32_t U32;
typedef int32_t I32;
typedef struct {
Term* buffer;
U32 height;
U32 width;
} Field;

6
field.h

@ -1,12 +1,6 @@
#pragma once
#include "base.h"
typedef struct {
Term* buffer;
U32 height;
U32 width;
} Field;
void field_init_zeros(Field* f, U32 height, U32 width);
void field_init_fill(Field* f, U32 height, U32 width, Term fill_char);
void field_resize_raw(Field* f, U32 height, U32 width);

5
sim.c

@ -0,0 +1,5 @@
#include "field.h"
#include "sim.h"
void orca_run(Field* f) {
}

4
sim.h

@ -0,0 +1,4 @@
#pragma once
#include "base.h"
void orca_run(Field* f);
Loading…
Cancel
Save