Commit eced19e1 authored by johnvg@science.ru.nl's avatar johnvg@science.ru.nl
Browse files

remove unused c functions FRead, FWrite, FSeek and FTell from backend

parent e653e347
...@@ -843,30 +843,10 @@ int FPrintF (File f, char *fmt, ...) ...@@ -843,30 +843,10 @@ int FPrintF (File f, char *fmt, ...)
return fputs (outbuffer, (FILE *) f); return fputs (outbuffer, (FILE *) f);
} /* FPrintF */ } /* FPrintF */
size_t FWrite (void *ptr, size_t size, size_t count, File f)
{
return fwrite (ptr, size, count, (FILE *) f);
} /* FWrite */
size_t FRead (void *ptr, size_t size, size_t count, File f)
{
return fread (ptr, size, count, (FILE *) f);
} /* FRead */
int FPutS (char *s, File f) int FPutS (char *s, File f)
{ {
return fputs (s, (FILE *) f); return fputs (s, (FILE *) f);
} /* FPutS */ } /* FPutS */
int FSeek (File f, long offset, int origin)
{
return fseek ((FILE *) f, offset, origin);
} /* FSeek */
long FTell (File f)
{
return ftell ((FILE *) f);
} /* FTell */
void DoError (char *fmt, ...) void DoError (char *fmt, ...)
{ va_list args; { va_list args;
......
...@@ -58,9 +58,5 @@ typedef FILE *File; ...@@ -58,9 +58,5 @@ typedef FILE *File;
# define FPrintF fprintf # define FPrintF fprintf
# define FPutC fputc # define FPutC fputc
# define FPutS fputs # define FPutS fputs
# define FWrite fwrite
# define FSeek fseek
# define FTell ftell
# define FGetC fgetc # define FGetC fgetc
# define FGetS fgets # define FGetS fgets
# define FRead fread
...@@ -50,7 +50,6 @@ extern int FDelete (char *fname, FileKind kind); ...@@ -50,7 +50,6 @@ extern int FDelete (char *fname, FileKind kind);
extern int FClose (File f); extern int FClose (File f);
extern int FPutS (char *s, File f); extern int FPutS (char *s, File f);
extern size_t FWrite (void *ptr, size_t size, size_t count, File f);
#ifdef _VARARGS_ #ifdef _VARARGS_
extern int FPrintF (File f, char *fmt,...); extern int FPrintF (File f, char *fmt,...);
#else #else
...@@ -60,9 +59,6 @@ extern int FPrintF (); /* (File w, char *fmt,...) */ ...@@ -60,9 +59,6 @@ extern int FPrintF (); /* (File w, char *fmt,...) */
#ifndef __ppc__ #ifndef __ppc__
extern char *FGetS (char *s, int n, File f); extern char *FGetS (char *s, int n, File f);
#endif #endif
extern size_t FRead (void *ptr, size_t size, size_t count, File f);
extern int FSeek (File f, long offset, int origin);
extern long FTell (File f);
#ifdef _VARARGS_ #ifdef _VARARGS_
extern void DoError (char *fmt,...); extern void DoError (char *fmt,...);
......
...@@ -384,16 +384,6 @@ int FPrintF (File f, char *fmt, ...) ...@@ -384,16 +384,6 @@ int FPrintF (File f, char *fmt, ...)
return n; return n;
} }
size_t FWrite (void *ptr, size_t size, size_t count, File f)
{
return fwrite (ptr, size, count, (FILE *) f);
}
size_t FRead (void *ptr, size_t size, size_t count, File f)
{
return fread (ptr, size, count, (FILE *) f);
}
#ifndef FGetS #ifndef FGetS
char *FGetS (char *s, int n, File f) char *FGetS (char *s, int n, File f)
{ {
...@@ -406,22 +396,6 @@ int FPutS (char *s, File f) ...@@ -406,22 +396,6 @@ int FPutS (char *s, File f)
return fputs (s, (FILE *) f); return fputs (s, (FILE *) f);
} /* FPutS */ } /* FPutS */
/*******************************************************************************
* Special for files *
******************************************************************************/
int FSeek (File f, long offset, int origin)
{
return fseek ((FILE *) f, offset, origin);
} /* FSeek */
long FTell (File f)
{
return ftell ((FILE *) f);
} /* FTell */
/* Error Handling */ /* Error Handling */
void DoError (char *fmt, ...) void DoError (char *fmt, ...)
......
...@@ -293,16 +293,6 @@ int FPrintF (File f, char *fmt, ...) ...@@ -293,16 +293,6 @@ int FPrintF (File f, char *fmt, ...)
return n; return n;
} }
size_t FWrite (void *ptr, size_t size, size_t count, File f)
{
return fwrite (ptr, size, count, (FILE *) f);
}
size_t FRead (void *ptr, size_t size, size_t count, File f)
{
return fread (ptr, size, count, (FILE *) f);
}
char *FGetS (char *s, int n, File f) char *FGetS (char *s, int n, File f)
{ {
return fgets (s, n, (FILE *) f); return fgets (s, n, (FILE *) f);
...@@ -313,16 +303,6 @@ int FPutS (char *s, File f) ...@@ -313,16 +303,6 @@ int FPutS (char *s, File f)
return fputs (s, (FILE *) f); return fputs (s, (FILE *) f);
} }
int FSeek (File f, long offset, int origin)
{
return fseek ((FILE *) f, offset, origin);
}
long FTell (File f)
{
return ftell ((FILE *) f);
}
void DoError (char *fmt, ...) void DoError (char *fmt, ...)
{ {
va_list args; va_list args;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment