mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 05:02:56 +00:00
cmd: replace static traces by dynamic ones
svn path=/trunk/; revision=33533
This commit is contained in:
parent
bc59a11cc8
commit
2f9c333ded
23 changed files with 91 additions and 271 deletions
|
@ -85,9 +85,7 @@ LPTSTR FindArg (INT n)
|
|||
{
|
||||
LPTSTR pp;
|
||||
|
||||
#ifdef _DEBUG
|
||||
DebugPrintf (_T("FindArg: (%d)\n"), n);
|
||||
#endif
|
||||
TRACE ("FindArg: (%d)\n", n);
|
||||
|
||||
if (bc == NULL)
|
||||
return NULL;
|
||||
|
@ -172,9 +170,7 @@ LPTSTR BatchParams (LPTSTR s1, LPTSTR s2)
|
|||
|
||||
VOID ExitBatch (LPTSTR msg)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
DebugPrintf (_T("ExitBatch: (\'%s\')\n"), msg);
|
||||
#endif
|
||||
TRACE ("ExitBatch: (\'%s\')\n", msg);
|
||||
|
||||
if (bc != NULL)
|
||||
{
|
||||
|
@ -226,10 +222,8 @@ BOOL Batch (LPTSTR fullname, LPTSTR firstword, LPTSTR param)
|
|||
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL |
|
||||
FILE_FLAG_SEQUENTIAL_SCAN, NULL);
|
||||
|
||||
#ifdef _DEBUG
|
||||
DebugPrintf (_T("Batch: (\'%s\', \'%s\', \'%s\') hFile = %x\n"),
|
||||
TRACE ("Batch: (\'%s\', \'%s\', \'%s\') hFile = %x\n",
|
||||
fullname, firstword, param, hFile);
|
||||
#endif
|
||||
|
||||
if (hFile == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
|
@ -298,9 +292,7 @@ BOOL Batch (LPTSTR fullname, LPTSTR firstword, LPTSTR param)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
DebugPrintf (_T("Batch: returns TRUE\n"));
|
||||
#endif
|
||||
TRACE ("Batch: returns TRUE\n");
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -339,9 +331,7 @@ LPTSTR ReadBatchLine (LPBOOL bLocalEcho)
|
|||
if (bc == NULL)
|
||||
return NULL;
|
||||
|
||||
#ifdef _DEBUG
|
||||
DebugPrintf (_T("ReadBatchLine ()\n"));
|
||||
#endif
|
||||
TRACE ("ReadBatchLine ()\n");
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
@ -435,9 +425,7 @@ LPTSTR ReadBatchLine (LPBOOL bLocalEcho)
|
|||
|
||||
if (!FileGetString (bc->hBatchFile, textline, sizeof (textline) / sizeof (textline[0])))
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
DebugPrintf (_T("ReadBatchLine(): Reached EOF!\n"));
|
||||
#endif
|
||||
TRACE ("ReadBatchLine(): Reached EOF!\n");
|
||||
/* End of file.... */
|
||||
ExitBatch (NULL);
|
||||
|
||||
|
@ -446,9 +434,7 @@ LPTSTR ReadBatchLine (LPBOOL bLocalEcho)
|
|||
|
||||
continue;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
DebugPrintf (_T("ReadBatchLine(): textline: \'%s\'\n"), textline);
|
||||
#endif
|
||||
TRACE ("ReadBatchLine(): textline: \'%s\'\n", textline);
|
||||
|
||||
/* Strip leading spaces and trailing space/control chars */
|
||||
for (first = textline; _istspace (*first); first++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue