aboutsummaryrefslogtreecommitdiffstats
path: root/src/gfile/inc_nativefs.c
diff options
context:
space:
mode:
authorpashamray <pashamray@gmail.com>2014-07-02 13:02:01 +0300
committerpashamray <pashamray@gmail.com>2014-07-02 13:02:01 +0300
commite67fbb3e6b82742eae4096faff2a1e47e25804e3 (patch)
tree35df6e920e377ac05ba37c9479de47e8522cee75 /src/gfile/inc_nativefs.c
parent2127c61eeeea920ba79923bc6f29a1e2de80d61d (diff)
parent2b141cea7f30cb45f559db5949dcfbf0ebb7c613 (diff)
downloaduGFX-e67fbb3e6b82742eae4096faff2a1e47e25804e3.tar.gz
uGFX-e67fbb3e6b82742eae4096faff2a1e47e25804e3.tar.bz2
uGFX-e67fbb3e6b82742eae4096faff2a1e47e25804e3.zip
Tectu/ugfx слито с master
Diffstat (limited to 'src/gfile/inc_nativefs.c')
-rw-r--r--src/gfile/inc_nativefs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gfile/inc_nativefs.c b/src/gfile/inc_nativefs.c
index 4ecb2004..6845cb71 100644
--- a/src/gfile/inc_nativefs.c
+++ b/src/gfile/inc_nativefs.c
@@ -46,11 +46,13 @@ static const GFILEVMT FsNativeVMT = {
NativeDel, NativeExists, NativeFilesize, NativeRen,
NativeOpen, NativeClose, NativeRead, NativeWrite,
NativeSetpos, NativeGetsize, NativeEof,
+ 0, 0,
+ 0
};
#undef GFILE_CHAINHEAD
#define GFILE_CHAINHEAD &FsNativeVMT
-static void flags2mode(char *buf, uint16_t flags) {
+static void Native_flags2mode(char *buf, uint16_t flags) {
if (flags & GFILEFLG_MUSTEXIST)
*buf = 'r';
else if (flags & GFILEFLG_APPEND)
@@ -89,7 +91,7 @@ static bool_t NativeOpen(GFILE *f, const char *fname) {
FILE *fd;
char mode[5];
- flags2mode(mode, f->flags);
+ Native_flags2mode(mode, f->flags);
if (!(fd = fopen(fname, mode)))
return FALSE;
f->obj = (void *)fd;