Looks like VS2008 is getting even more picky these days.
Is yeilding the following errors:
Looks like my config of VS2008 does like the size_t.
Code:
void process_command(cmd_context ctx, bool no_request)
{
game_command *cmd;
/* Reset so that when selecting items, we look in the default location */
p_ptr->command_wrk = 0;
/* If we've got a command to process, do it. */
if (cmd_get(ctx, &cmd, !no_request) == 0)
{
int oldrepeats = cmd->nrepeats;
int idx = cmd_idx(cmd->command);
if (idx == -1) return;
for (size_t i = 0; i < N_ELEMENTS(item_selector); i++)
{
struct item_selector *is = &item_selector[i];
Code:
.\src\game-cmd.c(396) : error C2143: syntax error : missing ';' before 'type'
.\src\game-cmd.c(396) : error C2143: syntax error : missing ';' before 'type'
.\src\game-cmd.c(396) : error C2143: syntax error : missing ')' before 'type'
.\src\game-cmd.c(396) : error C2143: syntax error : missing ';' before 'type'
.\src\game-cmd.c(396) : error C2065: 'i' : undeclared identifier
.\src\game-cmd.c(396) : warning C4552: '<' : operator has no effect; expected operator with side-effect
.\src\game-cmd.c(396) : error C2065: 'i' : undeclared identifier
.\src\game-cmd.c(396) : error C2059: syntax error : ')'
.\src\game-cmd.c(397) : error C2143: syntax error : missing ';' before '{'
.\src\game-cmd.c(398) : error C2065: 'i' : undeclared identifier
.\src\game-cmd.c(401) : error C2044: illegal continue
Comment