/* * copyright David J. Binette * ALL RIGHTS RESERVED */ /* ------------------------------------------------------------------------ */ /* tab stops are set to 4 */ /* ------------------------------------------------------------------------ */ /* useful compiler options * eliminate duplicate strings * place strings in read-only memory * * (win32 VC6.0 compiler options) * /nologo /Gr /Zp2 /ML /W4 /O1 /I * /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_SBCS" * /D "STRICT" /D "WIN32_LEAN_AND_MEAN" /D "NOGDI" * /FAs /J /FD /GF /c * * (win32 VC6.0 linker options) * kernel32.lib libctiny.lib wsock32.lib * /nologo /stack:0x4000 /heap:0x10000 * /subsystem:console /pdb:none /machine:I386 /nodefaultlib /out:"yahmini.exe" * /OPT:REF /OPT:ICF,99 /OPT:NOWIN98 */ /* ------------------------------------------------------------------------ */ #define USETINYCRT 1 /* ------------------------------------------------------------------------ */ #include #include #include #if USETINYCRT # include typedef HANDLE IOHAND; #else # include # include # include typedef FILE* IOHAND; #endif /* ------------------------------------------------------------------------ */ #include "yahmini.h" /* ------------------------------------------------------------------------ */ #define SockErrNum() WSAGetLastError() #define CHATPROMPT ">" /* ------------------------------------------------------------------------ */ /* end */