Go to the source code of this file.
|
TCHAR | cgetchar (VOID) |
|
VOID | GetPathCase (TCHAR *Path, TCHAR *OutPath) |
|
BOOL | CheckCtrlBreak (INT mode) |
|
BOOL | add_entry (LPINT ac, LPTSTR **arg, LPCTSTR entry) |
|
static BOOL | expand (LPINT ac, LPTSTR **arg, LPCTSTR pattern) |
|
LPTSTR * | split (LPTSTR s, LPINT args, BOOL expand_wildcards, BOOL handle_plus) |
|
LPTSTR * | splitspace (LPTSTR s, LPINT args) |
|
VOID | freep (LPTSTR *p) |
|
LPTSTR | _stpcpy (LPTSTR dest, LPCTSTR src) |
|
VOID | StripQuotes (TCHAR *in) |
|
BOOL | IsValidPathName (IN LPCTSTR pszPath) |
|
BOOL | IsExistingFile (IN LPCTSTR pszPath) |
|
BOOL | IsExistingDirectory (IN LPCTSTR pszPath) |
|
BOOL __stdcall | PagePrompt (PCON_PAGER Pager, DWORD Done, DWORD Total) |
|
INT | FilePromptYN (UINT resID) |
|
INT | FilePromptYNA (UINT resID) |
|
◆ _stpcpy()
◆ add_entry()
Definition at line 184 of file misc.c.
192 WARN(
"Cannot allocate memory for q!\n");
201 WARN(
"Cannot reallocate memory for arg!\n");
209 (*arg)[++(*ac)] =
NULL;
_TCHAR * _tcscpy(_TCHAR *to, const _TCHAR *from)
size_t __cdecl _tcslen(const _TCHAR *str)
GLdouble GLdouble GLdouble GLdouble q
#define cmd_realloc(ptr, size)
Referenced by expand(), split(), and splitspace().
◆ cgetchar()
◆ CheckCtrlBreak()
Definition at line 132 of file misc.c.
169 bLeaveAll = ((
c ==
options[2]) || (
c ==
_T(
'\3')));
_TCHAR * _tcschr(const _TCHAR *s, _XINT c)
#define STRING_CANCEL_BATCH_FILE
#define STRING_COPY_OPTION
#define ConOutResPuts(uID)
Referenced by cmd_copy(), CommandDir(), copy(), DirList(), DirPrintBareList(), DirPrintNewList(), DirPrintOldList(), DirPrintWideList(), ExitBatch(), ReadBatchLine(), ReadLine(), recReplace(), RemoveFile(), and replace().
◆ expand()
Definition at line 214 of file misc.c.
228 WARN(
"Cannot allocate memory for dirpart!\n");
232 dirpart[pathend -
pattern + 1] =
_T(
'\0');
248 WARN(
"Cannot allocate memory for fullname!\n");
BOOL add_entry(LPINT ac, LPTSTR **arg, LPCTSTR entry)
#define INVALID_HANDLE_VALUE
_TCHAR * _tcscpy(_TCHAR *to, const _TCHAR *from)
size_t __cdecl _tcslen(const _TCHAR *str)
#define memcpy(s1, s2, n)
_TCHAR * _tcscat(_TCHAR *s, const _TCHAR *append)
_TCHAR * _tcsrchr(const _TCHAR *s, _XINT c)
BOOL WINAPI FindClose(HANDLE hFindFile)
Referenced by aclist_Expand(), DECLARE_INTERFACE_(), ShellBrowser::select_entry(), ShellBrowser::select_folder(), split(), and wine_fold_string().
◆ FilePromptYN()
Definition at line 559 of file misc.c.
586 else if (*
p ==
_T(
'\03'))
600 cKey =
_totlower (ir.Event.KeyEvent.uChar.AsciiChar);
606 while ((ir.Event.KeyEvent.wVirtualKeyCode ==
VK_SHIFT) ||
607 (ir.Event.KeyEvent.wVirtualKeyCode ==
VK_MENU) ||
608 (ir.Event.KeyEvent.wVirtualKeyCode ==
VK_CONTROL));
613 if ((ir.Event.KeyEvent.wVirtualKeyCode ==
VK_ESCAPE) ||
614 ((ir.Event.KeyEvent.wVirtualKeyCode ==
'C') &&
static VOID ConInString(LPWSTR lpInput, DWORD dwLength)
VOID ConInKey(PINPUT_RECORD lpBuffer)
_TCHAR * _tcschr(const _TCHAR *s, _XINT c)
#define ConOutResPrintf(uID,...)
#define LEFT_CTRL_PRESSED
VOID AddBreakHandler(VOID)
#define STRING_CHOICE_OPTION
#define RIGHT_CTRL_PRESSED
int _tcsncmp(const _TCHAR *s1, const _TCHAR *s2, size_t n)
VOID RemoveBreakHandler(VOID)
#define RC_STRING_MAX_SIZE
Referenced by DeleteFiles().
◆ FilePromptYNA()
Definition at line 623 of file misc.c.
652 else if (*
p ==
_T(
'\03'))
666 cKey =
_totlower (ir.Event.KeyEvent.uChar.AsciiChar);
670 while ((ir.Event.KeyEvent.wVirtualKeyCode ==
VK_SHIFT) ||
671 (ir.Event.KeyEvent.wVirtualKeyCode ==
VK_MENU) ||
672 (ir.Event.KeyEvent.wVirtualKeyCode ==
VK_CONTROL));
677 if ((ir.Event.KeyEvent.wVirtualKeyCode ==
VK_ESCAPE) ||
678 ((ir.Event.KeyEvent.wVirtualKeyCode ==
_T(
'C')) &&
static VOID ConInString(LPWSTR lpInput, DWORD dwLength)
VOID ConInKey(PINPUT_RECORD lpBuffer)
_TCHAR * _tcschr(const _TCHAR *s, _XINT c)
#define ConOutResPrintf(uID,...)
#define STRING_COPY_OPTION
#define LEFT_CTRL_PRESSED
VOID AddBreakHandler(VOID)
#define RIGHT_CTRL_PRESSED
int _tcsncmp(const _TCHAR *s1, const _TCHAR *s2, size_t n)
VOID RemoveBreakHandler(VOID)
#define RC_STRING_MAX_SIZE
Referenced by cmd_rmdir(), CopyOverwrite(), DeleteFiles(), MoveOverwrite(), and replace().
◆ freep()
◆ GetPathCase()
Definition at line 86 of file misc.c.
106 if (
_tcslen(TempPath) == 2 && TempPath[1] ==
_T(
':'))
121 _tcscat(OutPath, FindFileData.cFileName);
#define INVALID_HANDLE_VALUE
_TCHAR * _tcscpy(_TCHAR *to, const _TCHAR *from)
size_t __cdecl _tcslen(const _TCHAR *str)
_TCHAR * _tcsncat(_TCHAR *dst, const _TCHAR *src, size_t n)
PRTL_UNICODE_STRING_BUFFER Path
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_TCHAR * _tcscat(_TCHAR *s, const _TCHAR *append)
BOOL WINAPI FindClose(HANDLE hFindFile)
Referenced by replace(), and SetRootPath().
◆ IsExistingDirectory()
◆ IsExistingFile()
Definition at line 498 of file misc.c.
#define FILE_ATTRIBUTE_DIRECTORY
#define INVALID_FILE_ATTRIBUTES
#define GetFileAttributes
Referenced by Cleanup(), cmd_copy(), cmd_move(), cmd_replace(), copy(), DoCommand(), Initialize(), recFindSubDirs(), recReplace(), replace(), and SearchForExecutableSingle().
◆ IsValidPathName()
Definition at line 482 of file misc.c.
#define GetCurrentDirectory
#define SetCurrentDirectory
◆ PagePrompt()
Definition at line 512 of file misc.c.
514 SHORT iScreenWidth, iCursorY;
540 while (iScreenWidth-- > 0)
VOID ConInKey(PINPUT_RECORD lpBuffer)
#define LEFT_CTRL_PRESSED
VOID GetScreenSize(PSHORT maxx, PSHORT maxy)
VOID AddBreakHandler(VOID)
VOID SetCursorXY(SHORT x, SHORT y)
#define STRING_MISC_HELP1
#define ConOutResPuts(uID)
#define RIGHT_CTRL_PRESSED
VOID RemoveBreakHandler(VOID)
◆ split()
Definition at line 282 of file misc.c.
293 WARN(
"Cannot allocate memory for arg!\n");
317 bQuoted ^= (*
s ==
_T(
'\"'));
325 (handle_plus && (*
s ==
_T(
'+'))))
342 WARN(
"Cannot allocate memory for q!\n");
348 if (expand_wildcards && (
_T(
'/') != *
start) &&
BOOL add_entry(LPINT ac, LPTSTR **arg, LPCTSTR entry)
static BOOL expand(LPINT ac, LPTSTR **arg, LPCTSTR pattern)
_TCHAR * _tcschr(const _TCHAR *s, _XINT c)
GLdouble GLdouble GLdouble GLdouble q
#define memcpy(s1, s2, n)
VOID StripQuotes(TCHAR *in)
◆ splitspace()
Definition at line 381 of file misc.c.
392 WARN(
"Cannot allocate memory for arg!\n");
412 bQuoted ^= (*
s ==
_T(
'\"'));
422 WARN(
"Cannot allocate memory for q!\n");
BOOL add_entry(LPINT ac, LPTSTR **arg, LPCTSTR entry)
GLdouble GLdouble GLdouble GLdouble q
#define memcpy(s1, s2, n)
VOID StripQuotes(TCHAR *in)
Referenced by cmd_move(), and cmd_setlocal().
◆ StripQuotes()