WinDBG/Exts/CodeAnalyzer/gdbplus/gdb-1824/src/gdb/gdb_dep.c
// return the array index of g_reg_infos[] by name
// -1 when not found
return the array index of g_reg_infos[] by name
1 when not found
return the array index of g_reg_infos [] by name 1 when not found
static int reg_name_to_index(const char* regname)
{
	int i;
	for (i = 0; i < NUM_KNOWN_REGS; i++)
	{
		if (strcmp(regname, g_reg_infos[i].name) == 0)
			return g_reg_infos[i].index;
	}
	return -1;
}
static int reg_name_to_index ( const char * regname ) { int i ; for ( i = 0 ; i < NUM_KNOWN_REGS ; i ++ ) { if ( strcmp ( regname , g_reg_infos [ i ] . name ) == 0 ) return g_reg_infos [ i ] . index ; } return -1 ; }
return the array index of g_reg_infos[] by name
1 when not found
return the array index of g_reg_infos [] by name 1 when not found