Author: akhaldi
Date: Tue Jul 26 21:51:36 2011
New Revision: 52903
URL:
http://svn.reactos.org/svn/reactos?rev=52903&view=rev
Log:
[FTP]
* Introduce a PCH.
Added:
trunk/reactos/base/applications/network/ftp/precomp.h (with props)
Modified:
trunk/reactos/base/applications/network/ftp/CMakeLists.txt
trunk/reactos/base/applications/network/ftp/cmds.c
trunk/reactos/base/applications/network/ftp/cmdtab.c
trunk/reactos/base/applications/network/ftp/domacro.c
trunk/reactos/base/applications/network/ftp/fake.c
trunk/reactos/base/applications/network/ftp/ftp.c
trunk/reactos/base/applications/network/ftp/main.c
trunk/reactos/base/applications/network/ftp/ruserpass.c
Modified: trunk/reactos/base/applications/network/ftp/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/CMakeLists.txt [iso-8859-1] Tue Jul 26
21:51:36 2011
@@ -13,6 +13,7 @@
set_module_type(ftp win32cui)
add_importlibs(ftp ws2_32 iphlpapi msvcrt kernel32)
+add_pch(ftp precomp.h)
if(MSVC)
target_link_libraries(ftp oldnames)
Modified: trunk/reactos/base/applications/network/ftp/cmds.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/cmds.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/cmds.c [iso-8859-1] Tue Jul 26 21:51:36
2011
@@ -24,26 +24,8 @@
*/
//#include <sys/param.h>
//#include <sys/wait.h>
-#include <sys/stat.h>
-#ifndef _WIN32
-#include <sys/socket.h>
-#include <arpa/ftp.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#else
-#include <winsock.h>
-#endif
-
-#include <signal.h>
-#include <direct.h>
-#include <stdio.h>
-#include <errno.h>
-#include <ctype.h>
-#include <time.h>
-
-#include "ftp_var.h"
-#include "pathnames.h"
-#include "prototypes.h"
+
+#include "precomp.h"
extern char *globerr;
extern char home[];
Modified: trunk/reactos/base/applications/network/ftp/cmdtab.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/cmdtab.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/cmdtab.c [iso-8859-1] Tue Jul 26 21:51:36
2011
@@ -19,7 +19,7 @@
static char sccsid[] = "(a)(#)cmdtab.c 5.9 (Berkeley) 3/21/89";
#endif /* not lint */
-#include "ftp_var.h"
+#include "precomp.h"
/*
* User FTP -- Command Tables.
Modified: trunk/reactos/base/applications/network/ftp/domacro.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/domacro.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/domacro.c [iso-8859-1] Tue Jul 26 21:51:36
2011
@@ -19,13 +19,8 @@
static char sccsid[] = "(a)(#)domacro.c 1.6 (Berkeley) 2/28/89";
#endif /* not lint */
-#include "ftp_var.h"
-#include "prototypes.h"
-
-#include <signal.h>
-#include <stdio.h>
+#include "precomp.h"
//#include <errno.h>
-#include <ctype.h>
//#include <sys/ttychars.h>
void domacro(int argc, const char *argv[])
Modified: trunk/reactos/base/applications/network/ftp/fake.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/fake.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/fake.c [iso-8859-1] Tue Jul 26 21:51:36
2011
@@ -1,8 +1,4 @@
-#include <stdio.h>
-#include <time.h>
-#include <winsock.h>
-#include "fake.h"
-#include "prototypes.h"
+#include "precomp.h"
#define MAX_ASCII 100
Modified: trunk/reactos/base/applications/network/ftp/ftp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/ftp.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/ftp.c [iso-8859-1] Tue Jul 26 21:51:36
2011
@@ -21,33 +21,9 @@
#ifndef lint
static char sccsid[] = "(a)(#)ftp.c 5.28 (Berkeley) 4/20/89";
#endif /* not lint */
-#include <io.h>
-
-#include <sys/stat.h>
-
-#ifndef _WIN32
-#include <sys/param.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-#include <sys/file.h>
-#include <sys/ioctl.h>
-#include <netinet/in.h>
-#include <arpa/ftp.h>
-#include <arpa/telnet.h>
-#include <pwd.h>
-#include <varargs.h>
-#include <netdb.h>
-#else
-#include <winsock.h>
-#endif
-
-#include <stdio.h>
-#include <signal.h>
-#include <errno.h>
-#include <fcntl.h>
-
-#include "ftp_var.h"
-#include "prototypes.h"
+
+#include "precomp.h"
+
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 64
#endif
Modified: trunk/reactos/base/applications/network/ftp/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/main.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/main.c [iso-8859-1] Tue Jul 26 21:51:36
2011
@@ -28,26 +28,7 @@
/*
* FTP User Program -- Command Interface.
*/
-#ifndef _WIN32
-#include <netdb.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <arpa/ftp.h>
-#include <errno.h>
-#include <pwd.h>
-#endif
-#include "ftp_var.h"
-#include "prototypes.h"
-#include <sys/types.h>
-
-#include <io.h>
-#include <fcntl.h>
-
-#include <signal.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <ctype.h>
-
+#include "precomp.h"
#if defined(sun) && !defined(FD_SET)
typedef int uid_t;
Added: trunk/reactos/base/applications/network/ftp/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/precomp.h (added)
+++ trunk/reactos/base/applications/network/ftp/precomp.h [iso-8859-1] Tue Jul 26 21:51:36
2011
@@ -1,0 +1,36 @@
+
+#include <sys/stat.h>
+#include <sys/types.h>
+
+#ifndef _WIN32
+#include <sys/param.h>
+#include <sys/socket.h>
+#include <sys/time.h>
+#include <sys/file.h>
+#include <sys/ioctl.h>
+#include <netinet/in.h>
+#include <arpa/ftp.h>
+#include <arpa/telnet.h>
+#include <pwd.h>
+#include <varargs.h>
+#include <netdb.h>
+#else
+#include <winsock.h>
+#endif
+
+#include <signal.h>
+#include <direct.h>
+#include <io.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <ctype.h>
+#include <time.h>
+
+#include "ftp_var.h"
+#include "pathnames.h"
+#include "prototypes.h"
+
+#include "fake.h"
+
+#include <fcntl.h>
Propchange: trunk/reactos/base/applications/network/ftp/precomp.h
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/base/applications/network/ftp/ruserpass.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/ruserpass.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/ruserpass.c [iso-8859-1] Tue Jul 26
21:51:36 2011
@@ -19,15 +19,8 @@
static char sccsid[] = "(a)(#)ruserpass.c 5.1 (Berkeley) 3/1/89";
#endif /* not lint */
-#include <sys/types.h>
-#include <stdio.h>
+#include "precomp.h"
//#include <utmp.h>
-#include <ctype.h>
-#include <sys/stat.h>
-#include <errno.h>
-#include "ftp_var.h"
-#include "prototypes.h"
-#include <winsock.h>
struct utmp *getutmp();
static FILE *cfile;