git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/AxWin4 - Debugging quirks in ARCH=native
[tpg/acess2.git]
/
Usermode
/
Applications
/
gui_ate_src
/
include
/
file.h
diff --git
a/Usermode/Applications/gui_ate_src/include/file.h
b/Usermode/Applications/gui_ate_src/include/file.h
index
5eb15b0
..
3052121
100644
(file)
--- a/
Usermode/Applications/gui_ate_src/include/file.h
+++ b/
Usermode/Applications/gui_ate_src/include/file.h
@@
-9,8
+9,12
@@
#define _ATE__FILE_H_
#include <stdio.h>
#define _ATE__FILE_H_
#include <stdio.h>
-typedef struct sFileLine
+typedef struct sFileLine tFileLine;
+
+struct sFileLine
{
{
+ tFileLine *Next;
+ tFileLine *Prev;
int Num;
// State data for hilighting
int Num;
// State data for hilighting
@@
-19,17
+23,30
@@
typedef struct sFileLine
int Space;
int Length;
int Space;
int Length;
- char
Data[]
;
-}
tFileLine
;
+ char
*Data
;
+};
typedef struct sFile
{
typedef struct sFile
{
- FILE *Handle;
int nLines;
int nLines;
- tFileLine **Lines; // TODO: Handle very large files?
+ tFileLine *FirstLine;
+ tFileLine *CurrentLine;
+ int CursorOfs;
+
int NameOfs;
const char Path[];
} tFile;
int NameOfs;
const char Path[];
} tFile;
+enum eFile_DeleteType
+{
+ DELTYPE_BACK,
+ DELTYPE_BACK_WORD,
+ DELTYPE_FORWARD,
+ DELTYPE_FORWARD_WORD,
+ DELTYPE_TO_EOL,
+ DELTYPE_TO_SOL,
+ DELTYPE_LINE
+};
+
#endif
#endif
UCC
git Repository :: git.ucc.asn.au