#include <precomp.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
|
char * | strndup (char const *name, size_t len) |
|
wchar_t * | wcsndup (wchar_t *name, size_t len) |
|
int | wadd (wchar_t *name) |
|
int | wexpand (wchar_t *name, int expand_wildcards) |
|
int | aadd (char *name) |
|
int | aexpand (char *name, int expand_wildcards) |
|
void | __getmainargs (int *argc, char ***argv, char ***env, int expand_wildcards, int *new_mode) |
|
void | __wgetmainargs (int *argc, wchar_t ***wargv, wchar_t ***wenv, int expand_wildcards, int *new_mode) |
|
int * | __p___argc (void) |
|
char *** | __p___argv (void) |
|
wchar_t *** | __p___wargv (void) |
|
◆ SIZE
◆ __getmainargs()
Definition at line 182 of file getargs.c.
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;
ACPI_SIZE strlen(const char *String)
BOOL WINAPI HeapValidate(HANDLE hHeap, DWORD dwFlags, LPCVOID lpMem)
DWORD WINAPI GetModuleFileNameA(HINSTANCE hModule, LPSTR lpFilename, DWORD nSize)
int aexpand(char *name, int expand_wildcards)
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
char * strndup(char const *name, size_t len)
static LPCWSTR LPCWSTR LPCWSTR env
Referenced by __GetMainArgs(), MSVCRT20__getmainargs(), ok_argsA_imp(), pre_cpp_init(), test___getmainargs(), test__environ(), and test__wenviron().
◆ __p___argc()
◆ __p___argv()
◆ __p___wargv()
◆ __wgetmainargs()
Definition at line 328 of file getargs.c.
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;
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
int wexpand(wchar_t *name, int expand_wildcards)
BOOL WINAPI HeapValidate(HANDLE hHeap, DWORD dwFlags, LPCVOID lpMem)
wchar_t * wcsndup(wchar_t *name, size_t len)
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
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_Check_return_ _CRTIMP wchar_t *__cdecl _wcsdup(_In_z_ const wchar_t *_Str)
Referenced by ok_argsW_imp(), and test__wenviron().
◆ aadd()
◆ aexpand()
Definition at line 132 of file getargs.c.
146 while(
s !=
name && *
s !=
'/' && *
s !=
'\\')
149 if (*
s ==
'/' || *
s ==
'\\')
char * strpbrk(const char *String, const char *Delimiters)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
#define INVALID_HANDLE_VALUE
BOOL WINAPI FindNextFileA(IN HANDLE hFindFile, OUT LPWIN32_FIND_DATAA lpFindFileData)
#define FILE_ATTRIBUTE_DIRECTORY
char * strcpy(char *DstString, const char *SrcString)
HANDLE WINAPI FindFirstFileA(IN LPCSTR lpFileName, OUT LPWIN32_FIND_DATAA lpFindFileData)
BOOL WINAPI FindClose(HANDLE hFindFile)
GLuint const GLchar * name
Referenced by __getmainargs().
◆ strndup()
◆ wadd()
◆ wcsndup()
◆ wexpand()
Definition at line 67 of file getargs.c.
81 while(
s !=
name && *
s !=
L'/' && *
s !=
L'\\')
84 if (*
s ==
L'/' || *
s ==
L'\\')
BOOL WINAPI FindNextFileW(IN HANDLE hFindFile, OUT LPWIN32_FIND_DATAW lpFindFileData)
#define INVALID_HANDLE_VALUE
#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)
_CRTIMP wchar_t *__cdecl wcsncpy(wchar_t *_Dest, const wchar_t *_Source, size_t _Count)
_Check_return_ _CRTIMP _CONST_RETURN wchar_t *__cdecl wcspbrk(_In_z_ const wchar_t *_Str, _In_z_ const wchar_t *_Control)
_Check_return_ _CRTIMP wchar_t *__cdecl _wcsdup(_In_z_ const wchar_t *_Str)
HANDLE WINAPI FindFirstFileW(IN LPCWSTR lpFileName, OUT LPWIN32_FIND_DATAW lpFindFileData)
BOOL WINAPI FindClose(HANDLE hFindFile)
GLuint const GLchar * name
Referenced by __wgetmainargs().
◆ __argc
◆ __argv
◆ __wargv
◆ __winitenv
◆ _acmdln
◆ _environ
◆ _pgmptr
◆ _wcmdln
◆ _wpgmptr