X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ffilesystem%2Fbyte_filer.cpp;fp=nucleus%2Flibrary%2Ffilesystem%2Fbyte_filer.cpp;h=e091996b2aed96f01bcd3be1574020f940f6727a;hb=7b39f7e279005c8466ef508220a532ce2aa4abf8;hp=0384d2ec74f8328506eef10d7176465d27d33439;hpb=3fbd372b35b15a19fb171d5ae34294ff7b1e6485;p=feisty_meow.git diff --git a/nucleus/library/filesystem/byte_filer.cpp b/nucleus/library/filesystem/byte_filer.cpp index 0384d2ec..e091996b 100644 --- a/nucleus/library/filesystem/byte_filer.cpp +++ b/nucleus/library/filesystem/byte_filer.cpp @@ -44,7 +44,7 @@ class file_hider public: FILE *fp; // the real file pointer. - file_hider() : fp(NIL) {} + file_hider() : fp(NULL_POINTER) {} }; ////////////// @@ -88,8 +88,8 @@ bool byte_filer::open(const astring &fname, const astring &perms) close(); _auto_close = true; // reset since we know we're opening this. _filename->reset(fname); - _handle->fp = _filename->raw().t()? fopen(_filename->raw().s(), perms.s()) : NIL; - if (_handle->fp == NIL) return false; + _handle->fp = _filename->raw().t()? fopen(_filename->raw().s(), perms.s()) : NULL_POINTER; + if (_handle->fp == NULL_POINTER) return false; return good(); } @@ -97,7 +97,7 @@ void byte_filer::close() { _filename->reset(""); if (_auto_close && _handle->fp) fclose(_handle->fp); - _handle->fp = NIL; + _handle->fp = NULL_POINTER; } bool byte_filer::good() { return !!_handle->fp; }