1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-22 05:09:13 +00:00

There is no benefit to the hsFopen macro

This commit is contained in:
2014-07-22 22:38:05 -07:00
parent 1a987173d6
commit ce53a71990
3 changed files with 3 additions and 6 deletions

View File

@ -366,8 +366,6 @@ inline float hsRadiansToDegrees(float rad) { return float(rad * (180 / M_PI)); }
# define ALIGN(n) __atribute__(aligned(n))
#endif
#define hsFopen(name, mode) fopen(name, mode)
/************************ Debug/Error Macros **************************/
typedef void (*hsDebugMessageProc)(const char message[]);

View File

@ -765,8 +765,7 @@ void plInputInterfaceMgr::WriteKeyMap( void )
#ifdef PLASMA_EXTERNAL_RELEASE
return;
#endif
FILE* gKeyFile = 0;
gKeyFile = hsFopen( "init\\keyboard.fni", "wt" );
FILE* gKeyFile = fopen("init\\keyboard.fni", "wt");
if (gKeyFile)
{

View File

@ -74,7 +74,7 @@ plExportLogErrorMsg::~plExportLogErrorMsg()
#ifdef ERRORLOG_ALWAYS_WRITE_SOMETHING
else
{
fErrfile = hsFopen(fErrfile_name, "wt");
fErrfile = fopen(fErrfile_name, "wt");
setbuf(fErrfile, nil);
fprintf(fErrfile, "No errors found! Good job.");
fclose(fErrfile);
@ -170,7 +170,7 @@ void plExportLogErrorMsg::IWriteErrorFile(const char* label, const char* msg)
if ( !fErrfile )
{
// must be the first write... open the error file
fErrfile = hsFopen(fErrfile_name, "wt");
fErrfile = fopen(fErrfile_name, "wt");
setbuf(fErrfile, nil);
fNumberErrors = 0;
}