mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 10:31:43 +00:00
[TELNET]
* Move the main header up one level. * Move some inclusions to the main header. * Remove inclusions and definitions that already exist in the main header. * Cleanup the main header. CORE-7716 svn path=/trunk/; revision=61561
This commit is contained in:
parent
130b966aec
commit
18ed7f8fd6
10 changed files with 41 additions and 68 deletions
29
reactos/base/applications/network/telnet/precomp.h
Normal file
29
reactos/base/applications/network/telnet/precomp.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include <stdarg.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <winuser.h>
|
||||
#include <wincon.h>
|
||||
#define _INC_WINDOWS
|
||||
#include <winsock.h>
|
||||
|
||||
#if defined(__BORLANDC__) && (__BORLANDC < 0x0500)
|
||||
#include <mem.h>
|
||||
#endif
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#include <fstream.h>
|
||||
#else
|
||||
#include <fstream>
|
||||
#endif
|
||||
|
||||
#include "src/tnconfig.h"
|
||||
#include "src/tnmsg.h"
|
||||
#include "src/tparser.h"
|
||||
#include "src/ansiprsr.h"
|
||||
#include "src/tmapldr.h"
|
||||
#include "src/tnclass.h"
|
||||
#include "src/tnmisc.h"
|
||||
#include "src/tncon.h"
|
|
@ -49,7 +49,6 @@
|
|||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//#include <windows.h>
|
||||
#include "precomp.h"
|
||||
|
||||
const int ANSIColors[] = {BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE};
|
||||
|
|
|
@ -1,12 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
//#include <stdio.h>
|
||||
//#include <stdlib.h>
|
||||
//#include <ctype.h>
|
||||
//#include <string.h>
|
||||
#include "tnconfig.h"
|
||||
#include "tparser.h"
|
||||
|
||||
// added this color table to make things go faster (Paul Branann 5/8/98)
|
||||
enum Colors {BLACK=0, BLUE, GREEN, CYAN, RED, MAGENTA, YELLOW, WHITE};
|
||||
extern const int ANSIColors[];
|
||||
|
|
|
@ -1,47 +0,0 @@
|
|||
#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"
|
|
@ -32,6 +32,10 @@
|
|||
|
||||
#include "precomp.h"
|
||||
|
||||
#include <locale.h>
|
||||
#include <io.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
// Turn off the "forcing value to bool 'true' or 'false'" warning
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable: 4800)
|
||||
|
|
|
@ -44,6 +44,8 @@
|
|||
|
||||
#include "precomp.h"
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#ifndef LANG_USER_DEFAULT
|
||||
#define LANG_USER_DEFAULT 400
|
||||
#endif
|
||||
|
|
|
@ -1,18 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#ifndef __WINDOWS_H
|
||||
#define WIN32_NO_STATUS
|
||||
#include <stdarg.h>
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <winuser.h>
|
||||
#include <wincon.h>
|
||||
#define _INC_WINDOWS
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
#include "tnmsg.h"
|
||||
|
||||
extern int Telnet_Redir;
|
||||
|
||||
int printm(LPTSTR szModule, BOOL fSystem, DWORD dwMessageId, ...);
|
||||
|
|
|
@ -44,6 +44,8 @@
|
|||
|
||||
#include "precomp.h"
|
||||
|
||||
#include "tnmain.h"
|
||||
|
||||
int telCommandLine (Telnet &MyConnection);
|
||||
|
||||
void waitforkey() {
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
|
||||
#include "precomp.h"
|
||||
|
||||
#include "tscript.h"
|
||||
|
||||
// FIX ME!! This code not yet functional.
|
||||
|
||||
#define TERMINATOR '~'
|
||||
|
|
|
@ -40,6 +40,8 @@
|
|||
|
||||
#include "precomp.h"
|
||||
|
||||
#include "telnet.h"
|
||||
|
||||
int naws_string(char *buf, int width, int height);
|
||||
|
||||
// This helps make the code more readable (Paul Brannan 1/1/99)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue