* 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)
set_module_type(telnet win32cui)
add_pch(telnet src/precomp.h)
add_importlibs(telnet ws2_32 user32 msvcrt kernel32)
add_cd_file(TARGET telnet DESTINATION reactos/system32 FOR all)

View file

@ -50,8 +50,7 @@
///////////////////////////////////////////////////////////////////////////////
//#include <windows.h>
#include <string.h>
#include "ansiprsr.h"
#include "precomp.h"
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 //
///////////////////////////////////////////////////////////////////
#include <windows.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"
#include "precomp.h"
/////////////////////////////////////////////////////////////
// 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>
// Last modified 7/12/98
#include <string.h>
#include "tcharmap.h"
#include "tnconfig.h"
#include "precomp.h"
// map B (US ASCII)
// this maps each character to itself

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -43,10 +43,8 @@
// Original code
//
///////////////////////////////////////////////////////////////////////////////
#include "tncon.h"
#include "keytrans.h"
#include "ttelhndl.h"
#include "tconsole.h"
#include "precomp.h"
#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
// see the file tnconfig.h for more information
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include <memory.h>
#include <io.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "tnconfig.h"
#include "precomp.h"
// Turn off the "forcing value to bool 'true' or 'false'" warning
#ifdef _MSC_VER

View file

@ -42,13 +42,7 @@
//
///////////////////////////////////////////////////////////////////////////////
#include "tnerror.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>
#include "precomp.h"
#ifndef LANG_USER_DEFAULT
#define LANG_USER_DEFAULT 400

View file

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

View file

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

View file

@ -1,7 +1,4 @@
#include <windows.h>
#include <stdio.h>
#include "tnmisc.h"
#include "precomp.h"
// from the PVAX (http://www.ccas.ru/~posp/popov/spawn.htm)
// 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.

View file

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

View file

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