Lines Matching refs:wchar_t
46 debug(wchar_t * format, ...)
51 wchar_t buffer[MAXLEN];
72 formatWinerror(int rc, wchar_t * message, int size)
82 winerror(int err, wchar_t * format, ... )
85 wchar_t message[MSGSIZE];
86 wchar_t win_message[MSGSIZE];
113 error(wchar_t * format, ... )
116 wchar_t message[MSGSIZE];
180 isEnvVarSet(const wchar_t *name)
189 join(wchar_t *buffer, size_t bufferLength, const wchar_t *fragment)
199 _compare(const wchar_t *x, int xLen, const wchar_t *y, int yLen)
226 _compareArgument(const wchar_t *x, int xLen, const wchar_t *y, int yLen)
252 _comparePath(const wchar_t *x, int xLen, const wchar_t *y, int yLen)
275 _startsWith(const wchar_t *x, int xLen, const wchar_t *y, int yLen)
287 _startsWithArgument(const wchar_t *x, int xLen, const wchar_t *y, int yLen)
302 _startsWithSeparated(const wchar_t *x, int xLen, const wchar_t *y, int yLen, const wchar_t *separators)
328 showHelpText(wchar_t ** argv)
334 // %ls - PY_VERSION (as wchar_t*)
335 // %ls - argv[0] (as wchar_t*)
352 wchar_t *wUsage = (wchar_t*)malloc(cchUsage * sizeof(wchar_t));
378 wchar_t buffer[0];
384 const wchar_t *originalCmdLine;
386 const wchar_t *restOfCmdLine;
388 const wchar_t *executablePath;
392 const wchar_t *scriptFile;
397 const wchar_t *executable;
402 const wchar_t *executableArgs;
407 const wchar_t *company;
412 const wchar_t *tag;
438 const wchar_t *limitToCompany;
444 wchar_t *
449 wcharCount * sizeof(wchar_t)
474 _debugStringAndLength(const wchar_t *s, int len, const wchar_t *name)
524 findArgv0Length(const wchar_t *buffer, int bufferLength)
553 const wchar_t *
554 findArgv0End(const wchar_t *buffer, int bufferLength)
572 const wchar_t *argv0End = findArgv0End(search->originalCmdLine, -1);
573 const wchar_t *tail = argv0End; // will be start of the executable name
574 const wchar_t *end = argv0End; // will be end of the executable name
641 const wchar_t *arg = search->restOfCmdLine;
658 const wchar_t *argStart = wcschr(arg, L':') + 1;
659 const wchar_t *tagStart = wcschr(argStart, L'/') ;
706 _decodeShebang(SearchInfo *search, const char *buffer, int bufferLength, bool onlyUtf8, wchar_t **decoded, int *decodedLength)
718 wchar_t *b = allocSearchInfoBuffer(search, wideLen + 1);
735 _shebangStartsWith(const wchar_t *buffer, int bufferLength, const wchar_t *prefix, const wchar_t **rest, int *firstArgumentLength)
756 searchPath(SearchInfo *search, const wchar_t *shebang, int shebangLength)
762 wchar_t *command;
780 wchar_t filename[MAXLEN];
785 const wchar_t *ext = L".exe";
793 wchar_t pathVariable[MAXLEN];
803 wchar_t buffer[MAXLEN];
824 wchar_t *buf = allocSearchInfoBuffer(search, n + 1);
839 _readIni(const wchar_t *section, const wchar_t *settingName, wchar_t *buffer, int bufferLength)
841 wchar_t iniPath[MAXLEN];
875 _findCommand(SearchInfo *search, const wchar_t *command, int commandLength)
877 wchar_t commandBuffer[MAXLEN];
878 wchar_t buffer[MAXLEN];
884 wchar_t *path = allocSearchInfoBuffer(search, n + 1);
895 _useShebangAsExecutable(SearchInfo *search, const wchar_t *shebang, int shebangLength)
897 wchar_t buffer[MAXLEN];
898 wchar_t script[MAXLEN];
899 wchar_t command[MAXLEN];
908 wchar_t *pC = command;
910 wchar_t c = shebang[i];
936 wchar_t *path = allocSearchInfoBuffer(search, n + 1);
963 wchar_t *scriptFile = (wchar_t*)malloc(sizeof(wchar_t) * (search->scriptFileLength + 1));
1019 wchar_t *shebang;
1036 const wchar_t *command;
1039 static const wchar_t *shebangTemplates[] = {
1047 for (const wchar_t **tmpl = shebangTemplates; *tmpl; ++tmpl) {
1067 const wchar_t *suffix = &search->tag[search->tagLength - 4];
1075 const wchar_t *suffix = &search->tag[search->tagLength - 2];
1127 const wchar_t *iniSettingName = NULL;
1128 const wchar_t *envSettingName = NULL;
1144 wchar_t buffer[MAXLEN];
1153 wchar_t *tag = allocSearchInfoBuffer(search, n + 1);
1158 wchar_t *slash = wcschr(tag, L'/');
1188 const wchar_t *company;
1189 const wchar_t *tag;
1191 const wchar_t *installDir;
1192 const wchar_t *executablePath;
1193 const wchar_t *executableArgs;
1194 const wchar_t *architecture;
1195 const wchar_t *displayName;
1201 copyWstr(const wchar_t **dest, const wchar_t *src)
1211 wchar_t *buffer = (wchar_t*)malloc(n * sizeof(wchar_t));
1216 *dest = (const wchar_t*)buffer;
1222 newEnvironmentInfo(const wchar_t *company, const wchar_t *tag)
1266 _compareCompany(const wchar_t *x, const wchar_t *y)
1288 _compareTag(const wchar_t *x, const wchar_t *y)
1299 const wchar_t *xDash = wcschr(x, L'-');
1300 const wchar_t *yDash = wcschr(y, L'-');
1389 _registryReadString(const wchar_t **dest, HKEY root, const wchar_t *subkey, const wchar_t *value)
1399 wchar_t *buffer = (wchar_t*)malloc(cbData);
1414 _combineWithInstallDir(const wchar_t **dest, const wchar_t *installDir, const wchar_t *fragment, int fragmentLength)
1416 wchar_t buffer[MAXLEN];
1417 wchar_t fragmentBuffer[MAXLEN];
1451 _registryReadLegacyEnvironment(const SearchInfo *search, HKEY root, EnvironmentInfo *env, const wchar_t *fallbackArch)
1498 const wchar_t *rawTag = env->tag;
1499 wchar_t *realTag = (wchar_t*) malloc(sizeof(wchar_t) * (tagLength + 4));
1515 wchar_t buffer[MAXLEN];
1525 _registryReadEnvironment(const SearchInfo *search, HKEY root, EnvironmentInfo *env, const wchar_t *fallbackArch)
1580 _registrySearchTags(const SearchInfo *search, EnvironmentInfo **result, HKEY root, int sortKey, const wchar_t *company, const wchar_t *fallbackArch)
1582 wchar_t buffer[256];
1619 registrySearch(const SearchInfo *search, EnvironmentInfo **result, HKEY root, int sortKey, const wchar_t *fallbackArch)
1621 wchar_t buffer[256];
1652 appxSearch(const SearchInfo *search, EnvironmentInfo **result, const wchar_t *packageFamilyName, const wchar_t *tag, int sortKey)
1654 wchar_t realTag[32];
1655 wchar_t buffer[MAXLEN];
1656 const wchar_t *exeName = search->executable;
1758 wchar_t buffer[MAXLEN];
1804 const wchar_t *subkey;
1813 const wchar_t *fallbackArch;
1846 const wchar_t *familyName;
1848 const wchar_t *tag;
1937 const wchar_t *tag;
1941 const wchar_t *storeId;
1957 _installEnvironment(const wchar_t *command, const wchar_t *arguments)
2001 const wchar_t *WINGET_COMMAND = L"Microsoft\\WindowsApps\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\\winget.exe";
2002 const wchar_t *WINGET_ARGUMENTS = L"install -q %s --exact --accept-package-agreements --source msstore";
2004 const wchar_t *MSSTORE_COMMAND = L"ms-windows-store://pdp/?productid=%s";
2023 const wchar_t *storeId = NULL;
2036 wchar_t command[MAXLEN];
2037 wchar_t arguments[MAXLEN];
2204 _printEnvironment(const EnvironmentInfo *env, FILE *out, bool showPath, const wchar_t *argument)
2230 wchar_t buffer[256];
2322 calculateCommandLine(const SearchInfo *search, const EnvironmentInfo *launch, wchar_t *buffer, int bufferLength)
2325 const wchar_t *executablePath = NULL;
2359 wchar_t executable[256];
2411 _safeDuplicateHandle(HANDLE in, HANDLE * pout, const wchar_t *nameForError)
2441 launchEnvironment(const SearchInfo *search, const EnvironmentInfo *launch, wchar_t *launchCommand)
2578 process(int argc, wchar_t ** argv)
2585 wchar_t launchCommand[MAXLEN];
2597 wchar_t *limitToCompany = allocSearchInfoBuffer(&search, len);
2704 int cdecl wmain(int argc, wchar_t ** argv)