Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrBuffer begginings (DO NOT MERGE) #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replaced page_buffer_t pages in reel.* with wrBuffer's byte array (bu…
…ffer_t struct)
  • Loading branch information
maxardito committed Sep 11, 2019
commit b6f461bc0cc4ef4fec9cb19f713a4f528d61a1bb
Empty file added wrBuffer.c
Empty file.
6 changes: 3 additions & 3 deletions wrBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

/*
TODO:
Initialize an array of page_buffer_ts as a buffer_t
Initialize page_buffer_ts as buffer_ts
*/

typedef struct{
int* byte_array;
//buffer_state_t
//int* metadata
} buffer_t;

typedef enum{
Expand Down Expand Up @@ -69,5 +71,3 @@ typedef enum{ buf_left = -1
, buf_stay = 0
, buf_right = 1
} buf_dir_t;

void buffer_init(buffer_t* self);