18 lines
253 B
C
18 lines
253 B
C
#ifndef EDITOR_H_
|
|
#define EDITOR_H_
|
|
|
|
#include "sds.h"
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
uint32_t cursor_pos;
|
|
sds text;
|
|
} EditorState;
|
|
|
|
/*
|
|
* initializes the editor state
|
|
*/
|
|
EditorState init_editor_state(sds init_text);
|
|
|
|
#endif // EDITOR_H_
|