X-Git-Url: http://git.osdn.net/view?p=chnosproject%2FCHNOSProject.git;a=blobdiff_plain;f=CHNOSProject%2Fchnos%2Ftolset_chn_000%2Fchnos_010%2Fchnos%2Ffile.c;fp=CHNOSProject%2Fchnos%2Ftolset_chn_000%2Fchnos_010%2Fchnos%2Ffile.c;h=0000000000000000000000000000000000000000;hp=772c370c9436853773a93c95fb9e8be1dc2060b7;hb=b5024d774f4b8266155880a767a76408903ed886;hpb=e7d5093d765f166cb92f5ed6e5e5d19173aebf5d diff --git a/CHNOSProject/chnos/tolset_chn_000/chnos_010/chnos/file.c b/CHNOSProject/chnos/tolset_chn_000/chnos_010/chnos/file.c deleted file mode 100644 index 772c370..0000000 --- a/CHNOSProject/chnos/tolset_chn_000/chnos_010/chnos/file.c +++ /dev/null @@ -1,34 +0,0 @@ - -#include "core.h" - -IO_File *File_Initilaize(void) -{ - IO_File *file; - - file = (IO_File *)System_CommonStruct_Allocate(SYSTEM_STRUCTID_FILE); - - file->flags.bit.initialized = True; - - return file; -} - -uint File_Free(IO_File *file) -{ - uint i; - - if(file == Null){ - return 1; - } - if(file->img != Null){ - System_Memory_Free(file->img, file->size); - } - if(file->path != Null){ - for(i = 0; file->path[i] != 0x00; i++){ - - } - System_Memory_Free(file->path, i + 1); - } - - System_CommonStruct_Free(&file->common_tag); - return 0; -}