Renamed file.c to files.cpp

Renamed huffman.c to huffman.cp
Renamed msg.c to msg.cpp
Added Pipe class
Made loaddef a local variable instead of a global variable for future potential multi-threading support
This commit is contained in:
Ludovic committed 2017-10-26 02:28:06 +02:00
1 parent 6bdfb4c093
commit 62ff9b7f4c
22 files changed
+2486 -900

No files matched your search

+32 -1
View File
@@ -83,7 +83,36 @@ void BaseIdle( void )
}
}
int MainEvent( const Container< Event * >& conev );
#ifdef _WINDLL
void InitModule();
void ShutdownModule();
BOOL APIENTRY DllMain(HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
BaseInit();
InitModule();
break;
case DLL_PROCESS_DETACH:
ShutdownModule();
L_ShutdownEvents();
Com_Shutdown();
FS_Shutdown(qtrue);
break;
}
return TRUE;
}
#else
int MainEvent(const Container< Event * >& conev);
int main( int argc, char **argv )
{
@@ -132,3 +161,5 @@ int main( int argc, char **argv )
Com_Shutdown();
FS_Shutdown( qtrue );
}
#endif