Lines Matching refs:g_command_args
125 static struct CommandArgs_Impl g_command_args = variable
139 osl_acquireMutex(g_command_args.m_mutex); in osl_getExecutableFile()
140 OSL_ASSERT(g_command_args.m_nCount > 0); in osl_getExecutableFile()
141 if (g_command_args.m_nCount > 0) in osl_getExecutableFile()
144 rtl_uString_assign (ppustrFile, g_command_args.m_ppArgs[0]); in osl_getExecutableFile()
147 osl_releaseMutex(g_command_args.m_mutex); in osl_getExecutableFile()
159 osl_acquireMutex(g_command_args.m_mutex); in osl_getCommandArgCount()
160 OSL_ASSERT(g_command_args.m_nCount > 0); in osl_getCommandArgCount()
161 if (g_command_args.m_nCount > 0) in osl_getCommandArgCount()
162 result = g_command_args.m_nCount - 1; in osl_getCommandArgCount()
163 osl_releaseMutex(g_command_args.m_mutex); in osl_getCommandArgCount()
175 osl_acquireMutex(g_command_args.m_mutex); in osl_getCommandArg()
176 OSL_ASSERT(g_command_args.m_nCount > 0); in osl_getCommandArg()
177 if (g_command_args.m_nCount > (nArg + 1)) in osl_getCommandArg()
179 rtl_uString_assign (strCommandArg, g_command_args.m_ppArgs[nArg + 1]); in osl_getCommandArg()
182 osl_releaseMutex(g_command_args.m_mutex); in osl_getCommandArg()
193 osl_acquireMutex(g_command_args.m_mutex); in osl_setCommandArgs()
194 OSL_ENSURE (g_command_args.m_nCount == 0, "osl_setCommandArgs(): CommandArgs already set."); in osl_setCommandArgs()
195 if (g_command_args.m_nCount == 0) in osl_setCommandArgs()
237 g_command_args.m_nCount = argc; in osl_setCommandArgs()
238 g_command_args.m_ppArgs = ppArgs; in osl_setCommandArgs()
241 osl_releaseMutex(g_command_args.m_mutex); in osl_setCommandArgs()