#include <stdio.h>
#include <internal/tls.h>
#include <internal/wine/msvcrt.h>
#include <internal/locale.h>
#include <wine/debug.h>
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (msvcrt) |
|
int | BlockEnvToEnvironA (void) |
|
int | BlockEnvToEnvironW (void) |
|
void | FreeEnvironment (char **environment) |
|
void CDECL | __getmainargs (int *argc, char ***argv, char ***envp, int expand_wildcards, int *new_mode) |
|
void CDECL | __wgetmainargs (int *argc, WCHAR ***wargv, WCHAR ***wenvp, int expand_wildcards, int *new_mode) |
|
BOOL WINAPI | DllMain (PVOID hinstDll, ULONG dwReason, PVOID reserved) |
|
void CDECL | MSVCRT20__getmainargs (int *argc, char ***argv, char ***envp, int expand_wildcards, int new_mode) |
|
void CDECL | MSVCRT20__wgetmainargs (int *argc, WCHAR ***wargv, WCHAR ***wenvp, int expand_wildcards, int new_mode) |
|
◆ _CRT_PRECOMP_H
◆ WIN32_NO_STATUS
◆ __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 MSVCRT20__getmainargs().
◆ __wgetmainargs()
◆ BlockEnvToEnvironA()
Definition at line 34 of file environ.c.
36 char *
ptr, *environment_strings;
41 TRACE(
"BlockEnvToEnvironA()\n");
44 if (environment_strings ==
NULL) {
67 for (envptr--; envptr >=
_environ; envptr--)
ACPI_SIZE strlen(const char *String)
GLuint GLuint GLsizei count
BOOL WINAPI FreeEnvironmentStringsA(IN LPSTR EnvironmentStrings)
#define memcpy(s1, s2, n)
LPSTR WINAPI GetEnvironmentStringsA(VOID)
Referenced by DllMain().
◆ BlockEnvToEnvironW()
Definition at line 86 of file environ.c.
88 wchar_t *
ptr, *environment_strings;
93 TRACE(
"BlockEnvToEnvironW()\n");
96 if (environment_strings ==
NULL) {
119 for (envptr--; envptr >=
_wenviron; envptr--)
GLuint GLuint GLsizei count
BOOL WINAPI FreeEnvironmentStringsW(IN LPWSTR EnvironmentStrings)
#define memcpy(s1, s2, n)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
LPWSTR WINAPI GetEnvironmentStringsW(VOID)
Referenced by DllMain().
◆ DllMain()
Definition at line 65 of file msvcrt20.c.
72 TRACE(
"Process Attach\n");
104 TRACE(
"Attach done\n");
141 TRACE(
"Detach done\n");
void msvcrt_free_io(void)
#define DLL_THREAD_ATTACH
void msvcrt_free_tls_mem(void)
#define DLL_PROCESS_ATTACH
int BlockEnvToEnvironW(void)
void msvcrt_init_io(void)
int BlockEnvToEnvironA(void)
void FreeEnvironment(char **environment)
BOOL WINAPI GetVersionExW(IN LPOSVERSIONINFOW lpVersionInformation)
#define DLL_THREAD_DETACH
void msvcrt_free_popen_data(void)
BOOL msvcrt_free_tls(void)
LPWSTR WINAPI GetCommandLineW(VOID)
ULONG dwOSVersionInfoSize
#define DLL_PROCESS_DETACH
void msvcrt_free_mt_locks(void)
BOOL msvcrt_init_tls(void)
struct _OSVERSIONINFOW OSVERSIONINFOW
LPSTR WINAPI GetCommandLineA(VOID)
MSVCRT__locale_t global_locale
void __cdecl MSVCRT__free_locale(MSVCRT__locale_t)
_Check_return_ _CRTIMP wchar_t *__cdecl _wcsdup(_In_z_ const wchar_t *_Str)
void msvcrt_init_mt_locks(void)
◆ FreeEnvironment()
void FreeEnvironment |
( |
char ** |
environment | ) |
|
Internal function to deallocate environment block. Although it's parameter are defined as char**, it's able to work also with wide character environment block which are of type wchar_t**.
- Parameters
-
environment | Environment to free. |
Definition at line 190 of file environ.c.
193 for (envptr = environment; *envptr !=
NULL; envptr++)
Referenced by DllMain().
◆ MSVCRT20__getmainargs()
Definition at line 155 of file msvcrt20.c.
void CDECL __getmainargs(int *argc, char ***argv, char ***envp, int expand_wildcards, int *new_mode)
◆ MSVCRT20__wgetmainargs()
Definition at line 166 of file msvcrt20.c.
void CDECL __wgetmainargs(int *argc, WCHAR ***wargv, WCHAR ***wenvp, int expand_wildcards, int *new_mode)
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
msvcrt |
| ) |
|
◆ __initenv
◆ __winitenv
◆ _acmdln
◆ _environ
◆ _osplatform
◆ _osver
◆ _wcmdln
◆ _wenviron
◆ _winmajor
◆ _winminor
◆ _winver