mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
bspfile.c:
start rewriting for saner code starting with making the private functions static cmdlib.[ch]: win32 compile fixes (remove redundant function)
This commit is contained in:
parent
f7b4dffcc0
commit
b8829faac4
3 changed files with 3 additions and 24 deletions
|
@ -104,7 +104,7 @@ QFile *wadfile;
|
|||
|
||||
Byte swaps all data in a bsp file.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
SwapBSPFile (qboolean todisk)
|
||||
{
|
||||
int c, i, j;
|
||||
|
@ -221,7 +221,7 @@ SwapBSPFile (qboolean todisk)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
AddLump (int lumpnum, void *data, int len)
|
||||
{
|
||||
lump_t *lump;
|
||||
|
@ -233,7 +233,7 @@ AddLump (int lumpnum, void *data, int len)
|
|||
Qwrite (wadfile, data, (len + 3) &~3);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
CopyLump (int lump, void *dest, int size)
|
||||
{
|
||||
int length, ofs;
|
||||
|
|
|
@ -47,7 +47,6 @@ int Q_strncasecmp (char *s1, char *s2, int n);
|
|||
int Q_strcasecmp (char *s1, char *s2);
|
||||
void Q_getwd (char *out);
|
||||
|
||||
int filelength (QFile *f);
|
||||
int FileTime (char *path);
|
||||
|
||||
void Q_mkdir (char *path);
|
||||
|
|
|
@ -319,26 +319,6 @@ int CheckParm (char *check)
|
|||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
================
|
||||
filelength
|
||||
================
|
||||
*/
|
||||
int filelength (QFile *f)
|
||||
{
|
||||
int pos;
|
||||
int end;
|
||||
|
||||
pos = Qtell (f);
|
||||
Qseek (f, 0, SEEK_END);
|
||||
end = Qtell (f);
|
||||
Qseek (f, pos, SEEK_SET);
|
||||
|
||||
return end;
|
||||
}
|
||||
|
||||
|
||||
QFile *SafeOpenWrite (char *filename)
|
||||
{
|
||||
QFile *f;
|
||||
|
|
Loading…
Reference in a new issue