call :FindVswhere\r
if ERRORLEVEL 1 goto LegacyVS\r
\r
-for /f "tokens=* usebackq" %%i in (`%VSWHERE% -latest -property installationPath`) do (\r
+for /f "tokens=* usebackq" %%i in (`"%VSWHERE%" -latest -property installationPath`) do (\r
set InstallPath=%%i\r
)\r
set "VSVARS=%InstallPath%\VC\Auxiliary\Build\vcvarsall.bat"\r
\r
:FindVswhere\r
set VSWHERE=vswhere\r
-%VSWHERE% -help >nul 2>&1\r
+"%VSWHERE%" -help >nul 2>&1\r
if not ERRORLEVEL 1 exit /b 0\r
set "VSWHERE=C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere"\r
-%VSWHERE% -help >nul 2>&1\r
+"%VSWHERE%" -help >nul 2>&1\r
if ERRORLEVEL 1 exit /b 1\r
goto :EOF\r
\r
{
ht->ht_size = round_up_2 (size);
ht->ht_empty_slots = ht->ht_size;
- ht->ht_vec = (void**) CALLOC (struct token *, ht->ht_size);
+ ht->ht_vec = CALLOC (void *, ht->ht_size);
if (ht->ht_vec == 0)
{
fprintf (stderr, _("can't allocate %lu bytes for hash table: memory exhausted"),
- ht->ht_size * (unsigned long) sizeof (struct token *));
+ ht->ht_size * (unsigned long) sizeof (void *));
exit (MAKE_TROUBLE);
}
ht->ht_capacity = ht->ht_size - (ht->ht_size >> 4);
}
ht->ht_rehashes++;
- ht->ht_vec = (void **) CALLOC (struct token *, ht->ht_size);
+ ht->ht_vec = CALLOC (void *, ht->ht_size);
for (ovp = old_vec; ovp < &old_vec[old_ht_size]; ovp++)
{
entry, to where the nil-pointer terminator goes.
Usually this is maxelem - 1. If not, shrink down. */
if (elem < (maxelem - 1))
- vpath = xrealloc (vpath, (elem+1) * sizeof (const char *));
+ vpath = xrealloc ((void *)vpath, (elem+1) * sizeof (const char *));
/* Put the nil-pointer terminator on the end of the VPATH list. */
vpath[elem] = NULL;