Author: janderwald
Date: Fri Oct 13 13:41:59 2006
New Revision: 24499
URL:
http://svn.reactos.org/svn/reactos?rev=24499&view=rev
Log:
- give stats an rbuild file
- compile stats as an unicode app
Added:
trunk/reactos/base/applications/utils/stats/stats.rbuild (with props)
Modified:
trunk/reactos/base/applications/utils/stats/stats.c
trunk/reactos/base/applications/utils/utils.rbuild
Modified: trunk/reactos/base/applications/utils/stats/stats.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/utils/st…
==============================================================================
--- trunk/reactos/base/applications/utils/stats/stats.c (original)
+++ trunk/reactos/base/applications/utils/stats/stats.c Fri Oct 13 13:41:59 2006
@@ -443,13 +443,9 @@
}
-int
-main (int argc, char * argv [])
+int _tmain(int argc, _TCHAR * argv[])
{
int a;
-#if UNICODE
- TCHAR Path[MAX_PATH + 1];
-#endif
_tprintf (_T("ReactOS Project Statistics\n"));
_tprintf (_T("==========================\n\n"));
@@ -469,28 +465,13 @@
for(a = 1; a < argc - 1; a++)
{
-#if UNICODE
- int len = lstrlenA(argv[a]);
- TCHAR *str = (TCHAR*)HeapAlloc(GetProcessHeap(), 0, (len + 1) * sizeof(TCHAR));
- if(MultiByteToWideChar(CP_ACP, 0, argv[a], -1, str, len + 1) > 0)
- Options[a - 1] = str;
- else
- Options[a - 1] = NULL;
-#else
Options[a - 1] = argv[a];
-#endif
}
SkipEmptyLines = IsOptionSet(_T("-e"));
BeSilent = IsOptionSet(_T("-s"));
-#if UNICODE
- ZeroMemory(Path, sizeof(Path));
- if(MultiByteToWideChar(CP_ACP, 0, argv[argc - 1], -1, Path, MAX_PATH) > 0)
- Execute (Path);
-#else
Execute (argv[argc - 1]);
-#endif
Cleanup();
return 0;
Added: trunk/reactos/base/applications/utils/stats/stats.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/utils/st…
==============================================================================
--- trunk/reactos/base/applications/utils/stats/stats.rbuild (added)
+++ trunk/reactos/base/applications/utils/stats/stats.rbuild Fri Oct 13 13:41:59 2006
@@ -1,0 +1,9 @@
+<module name="stats" type="win32cui" installbase="bin"
installname="stats.exe" unicode="true" >
+ <define name="__USE_W32API" />
+ <define name="UNICODE" />
+ <define name="_UNICODE" />
+ <library>msvcrt</library>
+ <library>kernel32</library>
+ <library>ntdll</library>
+ <file>stats.c</file>
+</module>
Propchange: trunk/reactos/base/applications/utils/stats/stats.rbuild
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/base/applications/utils/utils.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/utils/ut…
==============================================================================
--- trunk/reactos/base/applications/utils/utils.rbuild (original)
+++ trunk/reactos/base/applications/utils/utils.rbuild Fri Oct 13 13:41:59 2006
@@ -5,6 +5,9 @@
<directory name="rosperf">
<xi:include href="rosperf/rosperf.rbuild" />
</directory>
+<directory name="stats">
+ <xi:include href="stats/stats.rbuild" />
+</directory>
<directory name="tickcount">
<xi:include href="tickcount/tickcount.rbuild" />
</directory>