fix some fixme's

This commit is contained in:
Bill Currie 2002-07-18 05:16:30 +00:00
parent 60520e7981
commit a429295b3a
4 changed files with 11 additions and 10 deletions

View file

@ -85,7 +85,7 @@ integer save_cursor;
void () scan_saves = void () scan_saves =
{ {
local integer i; local integer i;
local string f; //FIXME need a file type; local file_t f;
for (i = 0; i < MAX_SAVEGAMES; i++) { for (i = 0; i < MAX_SAVEGAMES; i++) {
loadable[i] = 0; loadable[i] = 0;
filenames[i] = "--- UNUSED SLOT ---"; filenames[i] = "--- UNUSED SLOT ---";

View file

@ -1,9 +1,11 @@
#ifndef __file_h #ifndef __file_h
#define __file_h #define __file_h
//FIXME need a proper file struct, string sucks struct _file_t = {};
@extern string (string path, string mode) File_Open; typedef _file_t [] file_t;
@extern void (string file) File_Close;
@extern string (string file) File_GetLine; @extern file_t (string path, string mode) File_Open;
@extern void (file_t file) File_Close;
@extern string (file_t file) File_GetLine;
#endif//__file_h #endif//__file_h

View file

@ -1,6 +1,5 @@
#include "file.h" #include "file.h"
//FIXME need a proper file struct, string sucks file_t (string path, string mode) File_Open = #0;
string (string path, string mode) File_Open = #0; void (file_t file) File_Close = #0;
void (string file) File_Close = #0; string (file_t file) File_GetLine = #0;
string (string file) File_GetLine = #0;

View file

@ -134,7 +134,7 @@ BOOL (id object) object_is_meta_class = #0;
-(BOOL)isEqual:anObject -(BOOL)isEqual:anObject
{ {
return id(self) == anObject; //FIXME shouldn't need cast return self == anObject;
} }
-(integer)compare:anotherObject = #0; // can only == or != pointers -(integer)compare:anotherObject = #0; // can only == or != pointers