From 4fb001ce50c07f7f72bcbc5cf1bd5eff96ba260e Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Mon, 10 Apr 2006 14:02:37 +0000 Subject: [PATCH] Whoa, whoa, whoa. Three "bugs" 1) Fixed tag mismatches with fprintf when not using Float, Sql, or Result (comma was missing :o) 2) Fixed unlink from taking more than one argument o_O 3) Fixed filesize from taking more than one argument o_O --- plugins/include/file.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/include/file.inc b/plugins/include/file.inc index 1bc1fd12..f347b964 100755 --- a/plugins/include/file.inc +++ b/plugins/include/file.inc @@ -73,7 +73,7 @@ native feof(file); native fgets(file, buffer[], maxlength); //Writes a line to the file -native fprintf(file, const fmt[], {Float,Sql,Result_}:...); +native fprintf(file, const fmt[], {Float,Sql,Result,_}:...); //Sets the current position in a file (see SEEK_ values above) native fseek(file, position, start); @@ -87,7 +87,7 @@ native fputc(file, data); native fungetc(file, data); //Return the size of a file -native filesize(const filename[],{Float,Sql,Result,_}:...); +native filesize(const filename[]); //Attempts to remove a directory. //Note that you cannot remove a directory that has files on most @@ -95,7 +95,7 @@ native filesize(const filename[],{Float,Sql,Result,_}:...); native rmdir(const path[]); //Delete a file (delete_file macro) -native unlink(const filename[],{Float,Sql,Result,_}:...); +native unlink(const filename[]); //Returns a handle to a directory native open_dir(dir[], firstfile[], length);