38 wchar_t *
s =
malloc((
len + 1) *
sizeof(
wchar_t));
47#define SIZE (4096 / sizeof(char*))
81 while(
s !=
name && *
s !=
L'/' && *
s !=
L'\\')
84 if (*
s ==
L'/' || *
s ==
L'\\')
146 while(
s !=
name && *
s !=
'/' && *
s !=
'\\')
149 if (*
s ==
'/' || *
s ==
'\\')
184 int i, doexpand, slashesAdded, escapedQuote, inQuotes,
bufferIndex, anyLetter;
191 doexpand = expand_wildcards;
192 escapedQuote =
FALSE;
233 escapedQuote =
FALSE;
244 escapedQuote =
FALSE;
250 if (slashesAdded > 0)
252 if (slashesAdded % 2 == 0)
274 else if (!inQuotes &&
i > 0 &&
_acmdln[
i - 1] ==
'\"' && !escapedQuote)
282 escapedQuote =
FALSE;
283 inQuotes = !inQuotes;
284 doexpand = inQuotes ?
FALSE : expand_wildcards;
291 escapedQuote =
FALSE;
329 int expand_wildcards,
int* new_mode)
331 int i, doexpand, slashesAdded, escapedQuote, inQuotes,
bufferIndex, anyLetter;
338 doexpand = expand_wildcards;
339 escapedQuote =
FALSE;
380 escapedQuote =
FALSE;
391 escapedQuote =
FALSE;
397 if (slashesAdded > 0)
399 if (slashesAdded % 2 == 0)
421 else if (!inQuotes &&
i > 0 &&
_wcmdln[
i - 1] ==
'\"' && !escapedQuote)
429 escapedQuote =
FALSE;
430 inQuotes = !inQuotes;
431 doexpand = inQuotes ?
FALSE : expand_wildcards;
438 escapedQuote =
FALSE;
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
char * strpbrk(const char *String, const char *Delimiters)
static LPCWSTR LPCWSTR LPCWSTR env
#define INVALID_HANDLE_VALUE
HANDLE WINAPI FindFirstFileW(IN LPCWSTR lpFileName, OUT LPWIN32_FIND_DATAW lpFindFileData)
HANDLE WINAPI FindFirstFileA(IN LPCSTR lpFileName, OUT LPWIN32_FIND_DATAA lpFindFileData)
BOOL WINAPI FindClose(HANDLE hFindFile)
BOOL WINAPI FindNextFileW(IN HANDLE hFindFile, OUT LPWIN32_FIND_DATAW lpFindFileData)
BOOL WINAPI FindNextFileA(IN HANDLE hFindFile, OUT LPWIN32_FIND_DATAA lpFindFileData)
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
DWORD WINAPI GetModuleFileNameA(HINSTANCE hModule, LPSTR lpFilename, DWORD nSize)
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
BOOL WINAPI HeapValidate(HANDLE hHeap, DWORD dwFlags, LPCVOID lpMem)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
int wexpand(wchar_t *name, int expand_wildcards)
wchar_t *** __p___wargv(void)
int aexpand(char *name, int expand_wildcards)
void __wgetmainargs(int *argc, wchar_t ***wargv, wchar_t ***wenv, int expand_wildcards, int *new_mode)
char * strndup(char const *name, size_t len)
char *** __p___argv(void)
void __getmainargs(int *argc, char ***argv, char ***env, int expand_wildcards, int *new_mode)
wchar_t * wcsndup(wchar_t *name, size_t len)
#define memcpy(s1, s2, n)
#define FILE_ATTRIBUTE_DIRECTORY
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_Check_return_ _CRTIMP _CONST_RETURN wchar_t *__cdecl wcspbrk(_In_z_ const wchar_t *_Str, _In_z_ const wchar_t *_Control)
_CRTIMP wchar_t *__cdecl wcsncpy(wchar_t *_Dest, const wchar_t *_Source, size_t _Count)
_Check_return_ _CRTIMP wchar_t *__cdecl _wcsdup(_In_z_ const wchar_t *_Str)