mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Some changes for better formatting / following standards.
svn path=/trunk/; revision=18949
This commit is contained in:
parent
486e2e5a02
commit
0f821d720d
1 changed files with 25 additions and 21 deletions
|
@ -216,7 +216,8 @@ static ULARGE_INTEGER recurse_bytes;
|
||||||
* displays help screen for dir
|
* displays help screen for dir
|
||||||
* Rob Lake
|
* Rob Lake
|
||||||
*/
|
*/
|
||||||
static VOID DirHelp(VOID)
|
static VOID
|
||||||
|
DirHelp(VOID)
|
||||||
{
|
{
|
||||||
ConOutResPaging(TRUE, STRING_DIR_HELP1);
|
ConOutResPaging(TRUE, STRING_DIR_HELP1);
|
||||||
}
|
}
|
||||||
|
@ -228,10 +229,11 @@ static VOID DirHelp(VOID)
|
||||||
*
|
*
|
||||||
* Parse the parameters and switches of the command line and exports them
|
* Parse the parameters and switches of the command line and exports them
|
||||||
*/
|
*/
|
||||||
static BOOL DirReadParam(LPTSTR Line, /* [IN] The line with the parameters & switches */
|
static BOOL
|
||||||
LPTSTR** params, /* [OUT] The parameters after parsing */
|
DirReadParam(LPTSTR Line, /* [IN] The line with the parameters & switches */
|
||||||
LPINT entries, /* [OUT] The number of parameters after parsing */
|
LPTSTR** params, /* [OUT] The parameters after parsing */
|
||||||
LPDIRSWITCHFLAGS lpFlags) /* [IN/OUT] The flags after calculating switches */
|
LPINT entries, /* [OUT] The number of parameters after parsing */
|
||||||
|
LPDIRSWITCHFLAGS lpFlags) /* [IN/OUT] The flags after calculating switches */
|
||||||
{
|
{
|
||||||
TCHAR cCurSwitch; /* The current switch */
|
TCHAR cCurSwitch; /* The current switch */
|
||||||
TCHAR cCurChar; /* Current examing character */
|
TCHAR cCurChar; /* Current examing character */
|
||||||
|
@ -1220,7 +1222,8 @@ TCHAR* getExt(const TCHAR* file)
|
||||||
*
|
*
|
||||||
* Get the name of the file without extension
|
* Get the name of the file without extension
|
||||||
*/
|
*/
|
||||||
static LPTSTR getName(const TCHAR* file, TCHAR * dest)
|
static LPTSTR
|
||||||
|
getName(const TCHAR* file, TCHAR * dest)
|
||||||
{
|
{
|
||||||
int iLen;
|
int iLen;
|
||||||
LPTSTR end;
|
LPTSTR end;
|
||||||
|
@ -1320,9 +1323,9 @@ DirPrintNewList(LPWIN32_FIND_DATA ptrFiles[], /* [IN]Files' Info */
|
||||||
*/
|
*/
|
||||||
static VOID
|
static VOID
|
||||||
DirPrintWideList(LPWIN32_FIND_DATA ptrFiles[], /* [IN] Files' Info */
|
DirPrintWideList(LPWIN32_FIND_DATA ptrFiles[], /* [IN] Files' Info */
|
||||||
DWORD dwCount, /* [IN] The quantity of files */
|
DWORD dwCount, /* [IN] The quantity of files */
|
||||||
TCHAR *szCurPath, /* [IN] Full path of current directory */
|
TCHAR *szCurPath, /* [IN] Full path of current directory */
|
||||||
LPDIRSWITCHFLAGS lpFlags) /* [IN] The flags used */
|
LPDIRSWITCHFLAGS lpFlags) /* [IN] The flags used */
|
||||||
{
|
{
|
||||||
SHORT iScreenWidth;
|
SHORT iScreenWidth;
|
||||||
USHORT iColumns;
|
USHORT iColumns;
|
||||||
|
@ -1512,9 +1515,9 @@ ULARGE_INTEGER u64FileSize; /* The file size */
|
||||||
*/
|
*/
|
||||||
static VOID
|
static VOID
|
||||||
DirPrintBareList(LPWIN32_FIND_DATA ptrFiles[], /* [IN] Files' Info */
|
DirPrintBareList(LPWIN32_FIND_DATA ptrFiles[], /* [IN] Files' Info */
|
||||||
DWORD dwCount, /* [IN] The number of files */
|
DWORD dwCount, /* [IN] The number of files */
|
||||||
LPTSTR lpCurPath, /* [IN] Full path of current directory */
|
LPTSTR lpCurPath, /* [IN] Full path of current directory */
|
||||||
LPDIRSWITCHFLAGS lpFlags) /* [IN] The flags used */
|
LPDIRSWITCHFLAGS lpFlags) /* [IN] The flags used */
|
||||||
{
|
{
|
||||||
TCHAR szFullName[MAX_PATH];
|
TCHAR szFullName[MAX_PATH];
|
||||||
DWORD i;
|
DWORD i;
|
||||||
|
@ -1556,9 +1559,9 @@ DirPrintBareList(LPWIN32_FIND_DATA ptrFiles[], /* [IN] Files' Info */
|
||||||
*/
|
*/
|
||||||
static VOID
|
static VOID
|
||||||
DirPrintFiles(LPWIN32_FIND_DATA ptrFiles[], /* [IN] Files' Info */
|
DirPrintFiles(LPWIN32_FIND_DATA ptrFiles[], /* [IN] Files' Info */
|
||||||
DWORD dwCount, /* [IN] The quantity of files */
|
DWORD dwCount, /* [IN] The quantity of files */
|
||||||
TCHAR *szCurPath, /* [IN] Full path of current directory */
|
TCHAR *szCurPath, /* [IN] Full path of current directory */
|
||||||
LPDIRSWITCHFLAGS lpFlags) /* [IN] The flags used */
|
LPDIRSWITCHFLAGS lpFlags) /* [IN] The flags used */
|
||||||
{
|
{
|
||||||
TCHAR szMsg[RC_STRING_MAX_SIZE];
|
TCHAR szMsg[RC_STRING_MAX_SIZE];
|
||||||
TCHAR szTemp[MAX_PATH]; /* A buffer to format the directory header */
|
TCHAR szTemp[MAX_PATH]; /* A buffer to format the directory header */
|
||||||
|
@ -1617,8 +1620,8 @@ DirPrintFiles(LPWIN32_FIND_DATA ptrFiles[], /* [IN] Files' Info */
|
||||||
*/
|
*/
|
||||||
static BOOL
|
static BOOL
|
||||||
CompareFiles(LPWIN32_FIND_DATA lpFile1, /* [IN] A pointer to WIN32_FIND_DATA of file 1 */
|
CompareFiles(LPWIN32_FIND_DATA lpFile1, /* [IN] A pointer to WIN32_FIND_DATA of file 1 */
|
||||||
LPWIN32_FIND_DATA lpFile2, /* [IN] A pointer to WIN32_FIND_DATA of file 2 */
|
LPWIN32_FIND_DATA lpFile2, /* [IN] A pointer to WIN32_FIND_DATA of file 2 */
|
||||||
LPDIRSWITCHFLAGS lpFlags) /* [IN] The flags that we use to list */
|
LPDIRSWITCHFLAGS lpFlags) /* [IN] The flags that we use to list */
|
||||||
{
|
{
|
||||||
ULARGE_INTEGER u64File1;
|
ULARGE_INTEGER u64File1;
|
||||||
ULARGE_INTEGER u64File2;
|
ULARGE_INTEGER u64File2;
|
||||||
|
@ -1768,9 +1771,9 @@ QsortFiles(LPWIN32_FIND_DATA ptrArray[], /* [IN/OUT] The array with file info po
|
||||||
*/
|
*/
|
||||||
static INT
|
static INT
|
||||||
DirList(LPTSTR szPath, /* [IN] The path that dir starts */
|
DirList(LPTSTR szPath, /* [IN] The path that dir starts */
|
||||||
LPTSTR szFilespec, /* [IN] The type of file that we are looking for */
|
LPTSTR szFilespec, /* [IN] The type of file that we are looking for */
|
||||||
LPINT pLine, /* FIXME: Maybe used for paginating */
|
LPINT pLine, /* FIXME: Maybe used for paginating */
|
||||||
LPDIRSWITCHFLAGS lpFlags) /* [IN] The flags of the listing */
|
LPDIRSWITCHFLAGS lpFlags) /* [IN] The flags of the listing */
|
||||||
{
|
{
|
||||||
HANDLE hSearch; /* The handle of the search */
|
HANDLE hSearch; /* The handle of the search */
|
||||||
HANDLE hRecSearch; /* The handle for searching recursivly */
|
HANDLE hRecSearch; /* The handle for searching recursivly */
|
||||||
|
@ -1974,7 +1977,8 @@ ULARGE_INTEGER u64Temp; /* A temporary counter */
|
||||||
*
|
*
|
||||||
* internal dir command
|
* internal dir command
|
||||||
*/
|
*/
|
||||||
INT CommandDir(LPTSTR first, LPTSTR rest)
|
INT
|
||||||
|
CommandDir(LPTSTR first, LPTSTR rest)
|
||||||
{
|
{
|
||||||
TCHAR dircmd[256]; /* A variable to store the DIRCMD enviroment variable */
|
TCHAR dircmd[256]; /* A variable to store the DIRCMD enviroment variable */
|
||||||
TCHAR cDrive;
|
TCHAR cDrive;
|
||||||
|
|
Loading…
Reference in a new issue