repo.or.cz
/
libeditor.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
preliminary code. Segfaults.
[libeditor.git]
/
editor
/
editor.h
blob
f3f7e8b1816f9167e35ed9465c00be2beadb1d85
1
#include <stdio.h>
2
#include <stdbool.h>
3
#include <stdint.h>
4
5
#ifndef EDITOR_H
6
#define EDITOR_H
7
8
typedef
struct
{
9
FILE
*
fp
;
10
char
*
fn
;
11
12
bool
isclosed
;
13
char
**
text
;
14
uint64_t
numlines
;
15
}
File
;
16
17
int
readfile
(
char
*);
18
void
closebuffer
(
int
);
19
20
// Actually an array
21
extern
File
*
filebuffers
;
22
extern
uint64_t
numbuffers
;
23
#endif
// EDITOR_H