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

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

parent e653e347
......@@ -843,30 +843,10 @@ int FPrintF (File f, char *fmt, ...)
return fputs (outbuffer, (FILE *) f);
} /* 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)
{
return fputs (s, (FILE *) f);
} /* 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, ...)
{ va_list args;
......
......@@ -58,9 +58,5 @@ typedef FILE *File;
# define FPrintF fprintf
# define FPutC fputc
# define FPutS fputs
# define FWrite fwrite
# define FSeek fseek
# define FTell ftell
# define FGetC fgetc
# define FGetS fgets
# define FRead fread
......@@ -50,7 +50,6 @@ extern int FDelete (char *fname, FileKind kind);
extern int FClose (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_
extern int FPrintF (File f, char *fmt,...);
#else
......@@ -60,9 +59,6 @@ extern int FPrintF (); /* (File w, char *fmt,...) */
#ifndef __ppc__
extern char *FGetS (char *s, int n, File f);
#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_
extern void DoError (char *fmt,...);
......
......@@ -384,16 +384,6 @@ int FPrintF (File f, char *fmt, ...)
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
char *FGetS (char *s, int n, File f)
{
......@@ -406,22 +396,6 @@ int FPutS (char *s, File f)
return fputs (s, (FILE *) f);
} /* 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 */
void DoError (char *fmt, ...)
......
......@@ -293,16 +293,6 @@ int FPrintF (File f, char *fmt, ...)
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)
{
return fgets (s, n, (FILE *) f);
......@@ -313,16 +303,6 @@ int FPutS (char *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, ...)
{
va_list args;
......
Markdown is supported
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