* Introduce a PCH.
* BTW, the recent and upcoming changes are two-fold: First, having a precompiled header will increase build speed. Furthermore, PCH support allows CMake dependency tracking files to shrink drastically. For example it's (depend.make) 95% smaller for this module than it used to be. This means an even better build system compared to rbuild, not to mention it's now faster than before.
* This work is dedicated to Jerome.

svn path=/trunk/; revision=52904
This commit is contained in:
Amine Khaldi 2011-07-26 21:56:48 +00:00
parent 005a96a6b5
commit 4a432c0c70
21 changed files with 68 additions and 83 deletions

View file

@ -26,5 +26,6 @@ add_executable(telnet
telnet.rc) telnet.rc)
set_module_type(telnet win32cui) set_module_type(telnet win32cui)
add_pch(telnet src/precomp.h)
add_importlibs(telnet ws2_32 user32 msvcrt kernel32) add_importlibs(telnet ws2_32 user32 msvcrt kernel32)
add_cd_file(TARGET telnet DESTINATION reactos/system32 FOR all) add_cd_file(TARGET telnet DESTINATION reactos/system32 FOR all)

View file

@ -50,8 +50,7 @@
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
//#include <windows.h> //#include <windows.h>
#include <string.h> #include "precomp.h"
#include "ansiprsr.h"
const int ANSIColors[] = {BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE}; const int ANSIColors[] = {BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE};

View file

@ -44,21 +44,7 @@
// DeleteKeyDef : Deletes a key def from the list // // DeleteKeyDef : Deletes a key def from the list //
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
#include <windows.h> #include "precomp.h"
// changed to make work with VC++ (Paul Brannan 5/25/98)
// FIX ME !!! Ioannou: This must be __BORLANDC__ && VERSION < 5
// but what is the directive for Borland version ????
// FIXED Sept. 31, 2000 (Bernard Badger)
//
#if defined(__BORLANDC__) && (__BORLANDC < 0x0500)
#include <mem.h>
#else
#include <memory.h>
#endif
#include "keytrans.h"
#include "tnerror.h"
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
// class KeyTranslator // // class KeyTranslator //

View file

@ -0,0 +1,47 @@
#include "ansiprsr.h"
#if defined(__BORLANDC__) && (__BORLANDC < 0x0500)
#include <mem.h>
#else
#include <memory.h>
#endif
#ifdef __BORLANDC__
#include <fstream.h>
#else
#include <string>
#include <fstream>
#endif
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <locale.h>
#include <io.h>
#include <time.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "keytrans.h"
#include "tnerror.h"
#include "tcharmap.h"
#include "tnconfig.h"
#include "tconsole.h"
#include "tkeydef.h"
#include "tkeymap.h"
#include "tmapldr.h"
#include "tmouse.h"
#include "tnclass.h"
#include "tnmisc.h"
#include "tnclip.h"
#include "tncon.h"
#include "ttelhndl.h"
#include "tnetwork.h"
#include "tnmain.h"
#include "tscript.h"
#include "tscroll.h"
#include "telnet.h"
#include "tparams.h"

View file

@ -28,9 +28,7 @@
// Written by Paul Brannan <pbranna@clemson.edu> // Written by Paul Brannan <pbranna@clemson.edu>
// Last modified 7/12/98 // Last modified 7/12/98
#include <string.h> #include "precomp.h"
#include "tcharmap.h"
#include "tnconfig.h"
// map B (US ASCII) // map B (US ASCII)
// this maps each character to itself // this maps each character to itself

View file

@ -46,8 +46,7 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include <windows.h> #include "precomp.h"
#include "tconsole.h"
// argsused doesn't work on MSVC++ // argsused doesn't work on MSVC++
#ifdef __BORLANDC__ #ifdef __BORLANDC__

View file

@ -29,8 +29,7 @@
// originally part of KeyTrans.cpp // // originally part of KeyTrans.cpp //
///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
#include "tkeydef.h" #include "precomp.h"
#include <string.h>
// This class did not properly release memory before, and a buffer overrun // This class did not properly release memory before, and a buffer overrun
// was apparent in operator=(char*). Fixed. (Paul Brannan Feb. 4, 1999) // was apparent in operator=(char*). Fixed. (Paul Brannan Feb. 4, 1999)

View file

@ -29,7 +29,7 @@
// originally part of KeyTrans.cpp // // originally part of KeyTrans.cpp //
///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
#include "tkeymap.h" #include "precomp.h"
KeyMap::KeyMap(DWORD state, DWORD code): map(0,0,sizeof(TKeyDef)), KeyMap::KeyMap(DWORD state, DWORD code): map(0,0,sizeof(TKeyDef)),
key(NULL,state,code) {}; key(NULL,state,code) {};

View file

@ -29,15 +29,7 @@
// originally part of KeyTrans.cpp // // originally part of KeyTrans.cpp //
///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
#include "tmapldr.h" #include "precomp.h"
#include "tnconfig.h"
#ifdef __BORLANDC__
#include <fstream.h>
#else
#include <string>
#include <fstream>
#endif
// It's probably a good idea to turn off the "identifier was truncated" warning // It's probably a good idea to turn off the "identifier was truncated" warning
// in MSVC (Paul Brannan 5/25/98) // in MSVC (Paul Brannan 5/25/98)

View file

@ -28,8 +28,7 @@
// Written by Paul Brannan <pbranna@clemson.edu> // Written by Paul Brannan <pbranna@clemson.edu>
// Last modified August 30, 1998 // Last modified August 30, 1998
#include "tmouse.h" #include "precomp.h"
#include "tconsole.h"
TMouse::TMouse(Tnclip &RefClipboard): Clipboard(RefClipboard) { TMouse::TMouse(Tnclip &RefClipboard): Clipboard(RefClipboard) {
hConsole = GetStdHandle(STD_INPUT_HANDLE); hConsole = GetStdHandle(STD_INPUT_HANDLE);

View file

@ -41,10 +41,7 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include <stdlib.h> #include "precomp.h"
#include <string.h>
#include "tnclass.h"
#include "tnmisc.h"
// Mingw32 needs these (Paul Brannan 9/4/98) // Mingw32 needs these (Paul Brannan 9/4/98)
#ifndef ICON_SMALL #ifndef ICON_SMALL

View file

@ -28,8 +28,7 @@
// Written by Paul Brannan <pbranna@clemson.edu> // Written by Paul Brannan <pbranna@clemson.edu>
// Last modified 7/12/98 // Last modified 7/12/98
#include <string.h> #include "precomp.h"
#include "tnclip.h"
Tnclip::Tnclip(HWND W, TNetwork &RefNetwork): Network(RefNetwork) { Tnclip::Tnclip(HWND W, TNetwork &RefNetwork): Network(RefNetwork) {
Window = W; Window = W;

View file

@ -43,10 +43,8 @@
// Original code // Original code
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "tncon.h"
#include "keytrans.h" #include "precomp.h"
#include "ttelhndl.h"
#include "tconsole.h"
#define KEYEVENT InputRecord[i].Event.KeyEvent #define KEYEVENT InputRecord[i].Event.KeyEvent

View file

@ -30,14 +30,7 @@
// This is a class designed for use with Brad Johnson's Console Telnet // This is a class designed for use with Brad Johnson's Console Telnet
// see the file tnconfig.h for more information // see the file tnconfig.h for more information
#include <stdlib.h> #include "precomp.h"
#include <string.h>
#include <locale.h>
#include <memory.h>
#include <io.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "tnconfig.h"
// Turn off the "forcing value to bool 'true' or 'false'" warning // Turn off the "forcing value to bool 'true' or 'false'" warning
#ifdef _MSC_VER #ifdef _MSC_VER

View file

@ -42,13 +42,7 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "tnerror.h" #include "precomp.h"
#include "ttelhndl.h" // Paul Brannan 5/25/98
#include "tnconfig.h" // Paul Brannan 5/25/98
#include <time.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#ifndef LANG_USER_DEFAULT #ifndef LANG_USER_DEFAULT
#define LANG_USER_DEFAULT 400 #define LANG_USER_DEFAULT 400

View file

@ -35,7 +35,7 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "tnetwork.h" #include "precomp.h"
void TNetwork::SetSocket(SOCKET s) { void TNetwork::SetSocket(SOCKET s) {
socket = s; socket = s;

View file

@ -42,10 +42,7 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include <string.h> #include "precomp.h"
#include <locale.h>
#include "tnmain.h"
#include "tnmisc.h"
int telCommandLine (Telnet &MyConnection); int telCommandLine (Telnet &MyConnection);

View file

@ -1,7 +1,4 @@
#include <windows.h> #include "precomp.h"
#include <stdio.h>
#include "tnmisc.h"
// from the PVAX (http://www.ccas.ru/~posp/popov/spawn.htm) // from the PVAX (http://www.ccas.ru/~posp/popov/spawn.htm)
// Create a process with pipes to stdin/out/err // Create a process with pipes to stdin/out/err

View file

@ -23,7 +23,7 @@
// //
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
#include "tscript.h" #include "precomp.h"
// FIX ME!! This code not yet functional. // FIX ME!! This code not yet functional.

View file

@ -38,13 +38,7 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include <windows.h> #include "precomp.h"
#include <string.h>
#include <ctype.h>
#include "tscroll.h"
#include "tncon.h"
#include "tconsole.h"
#include "tnconfig.h"
enum { enum {
HEX, HEX,

View file

@ -38,11 +38,7 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include <string.h> #include "precomp.h"
#include "ttelhndl.h"
#include "telnet.h"
#include "tnconfig.h"
#include "tparams.h"
int naws_string(char *buf, int width, int height); int naws_string(char *buf, int width, int height);