git.ucc.asn.au
/
tpg
/
acess2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Usermode/GUITerminal - Text colouring and cursor
[tpg/acess2.git]
/
Usermode
/
Applications
/
gui_ate_src
/
include
/
file.h
1
/*
2
* Acess Text Editor (ATE)
3
* - By John Hodge (thePowersGang)
4
*
5
* include/file.h
6
* - In-memory file structures
7
*/
8
#ifndef _ATE__FILE_H_
9
#define _ATE__FILE_H_
10
#include <stdio.h>
11
12
typedef struct sFileLine
13
{
14
int Num;
15
16
// State data for hilighting
17
int HilightState;
18
char *Rendered;
19
20
int Space;
21
int Length;
22
char Data[];
23
} tFileLine;
24
25
typedef struct sFile
26
{
27
FILE *Handle;
28
int nLines;
29
tFileLine **Lines; // TODO: Handle very large files?
30
int NameOfs;
31
const char Path[];
32
} tFile;
33
34
#endif
35
UCC
git Repository :: git.ucc.asn.au