Author: ekohl
Date: Wed May 29 10:56:25 2013
New Revision: 59101

URL: http://svn.reactos.org/svn/reactos?rev=59101&view=rev
Log:
[CMD]
Remove cmd_main(). Patch by Lee Schroeder.
Thanks!

CORE-7205 #resolve #comment Committed in r59101.

Removed:
    trunk/reactos/base/shell/cmd/main.c
Modified:
    trunk/reactos/base/shell/cmd/CMakeLists.txt
    trunk/reactos/base/shell/cmd/cmd.c
    trunk/reactos/base/shell/cmd/cmd.h

Modified: trunk/reactos/base/shell/cmd/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/CMakeLists.txt?rev=59101&r1=59100&r2=59101&view=diff
==============================================================================
--- trunk/reactos/base/shell/cmd/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/CMakeLists.txt [iso-8859-1] Wed May 29 
10:56:25 2013
@@ -38,7 +38,6 @@
     internal.c
     label.c
     locale.c
-    main.c
     memory.c
     misc.c
     mklink.c

Modified: trunk/reactos/base/shell/cmd/cmd.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/cmd.c?rev=59101&r1=59100&r2=59101&view=diff
==============================================================================
--- trunk/reactos/base/shell/cmd/cmd.c  [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/cmd.c  [iso-8859-1] Wed May 29 10:56:25 2013
@@ -1815,7 +1815,7 @@
 /*
  * main function
  */
-int cmd_main (int argc, const TCHAR *argv[])
+int _tmain(int argc, const TCHAR *argv[])
 {
        HANDLE hConsole;
        TCHAR startPath[MAX_PATH];
@@ -1828,7 +1828,7 @@
        _tchdir(startPath);
 
        SetFileApisToOEM();
-       InputCodePage= 0;
+       InputCodePage = 0;
        OutputCodePage = 0;
 
        hConsole = CreateFile(_T("CONOUT$"), GENERIC_READ|GENERIC_WRITE,
@@ -1845,7 +1845,7 @@
                CloseHandle(hConsole);
        }
 
-       InputCodePage= GetConsoleCP();
+       InputCodePage = GetConsoleCP();
        OutputCodePage = GetConsoleOutputCP();
        CMD_ModuleHandle = GetModuleHandle(NULL);
 

Modified: trunk/reactos/base/shell/cmd/cmd.h
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/cmd.h?rev=59101&r1=59100&r2=59101&view=diff
==============================================================================
--- trunk/reactos/base/shell/cmd/cmd.h  [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/cmd.h  [iso-8859-1] Wed May 29 10:56:25 2013
@@ -114,7 +114,6 @@
 LPTSTR DoDelayedExpansion(LPTSTR Line);
 INT DoCommand(LPTSTR first, LPTSTR rest, struct _PARSED_COMMAND *Cmd);
 BOOL ReadLine(TCHAR *commandline, BOOL bMore);
-int cmd_main (int argc, const TCHAR *argv[]);
 
 extern HANDLE CMD_ModuleHandle;
 

Removed: trunk/reactos/base/shell/cmd/main.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/main.c?rev=59100&view=auto
==============================================================================
--- trunk/reactos/base/shell/cmd/main.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/main.c (removed)
@@ -1,6 +0,0 @@
-#include "precomp.h"
-
-int _tmain (int argc, const TCHAR *argv[])
-{
-    return cmd_main(argc, argv);
-}


Reply via email to