mirror of https://github.com/stella-emu/stella.git
Fixed some shadowed variable warnings detected by Xcode.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3111 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
f5ceb39149
commit
04b99e3503
|
@ -88,13 +88,13 @@ class MouseControl
|
||||||
xid(-1),
|
xid(-1),
|
||||||
yid(-1),
|
yid(-1),
|
||||||
message(msg) { }
|
message(msg) { }
|
||||||
MouseMode(Controller::Type xtype, int xid,
|
MouseMode(Controller::Type xt, int xi,
|
||||||
Controller::Type ytype, int yid,
|
Controller::Type yt, int yi,
|
||||||
const string& msg)
|
const string& msg)
|
||||||
: xtype(xtype),
|
: xtype(xt),
|
||||||
ytype(ytype),
|
ytype(yt),
|
||||||
xid(xid),
|
xid(xi),
|
||||||
yid(yid),
|
yid(yi),
|
||||||
message(msg) { }
|
message(msg) { }
|
||||||
|
|
||||||
friend ostream& operator<<(ostream& os, const MouseMode& mm)
|
friend ostream& operator<<(ostream& os, const MouseMode& mm)
|
||||||
|
|
|
@ -1036,8 +1036,8 @@ string CartDebug::saveDisassembly()
|
||||||
{
|
{
|
||||||
buf << ".byte " << (settings.gfx_format == Base::F_2 ? "%" : "$")
|
buf << ".byte " << (settings.gfx_format == Base::F_2 ? "%" : "$")
|
||||||
<< tag.bytes << " ; |";
|
<< tag.bytes << " ; |";
|
||||||
for(int i = 12; i < 20; ++i)
|
for(int c = 12; c < 20; ++c)
|
||||||
buf << ((tag.disasm[i] == '\x1e') ? "#" : " ");
|
buf << ((tag.disasm[c] == '\x1e') ? "#" : " ");
|
||||||
buf << "| $" << Base::HEX4 << tag.address << " (G)\n";
|
buf << "| $" << Base::HEX4 << tag.address << " (G)\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1045,8 +1045,8 @@ string CartDebug::saveDisassembly()
|
||||||
{
|
{
|
||||||
buf << ".byte " << (settings.gfx_format == Base::F_2 ? "%" : "$")
|
buf << ".byte " << (settings.gfx_format == Base::F_2 ? "%" : "$")
|
||||||
<< tag.bytes << " ; |";
|
<< tag.bytes << " ; |";
|
||||||
for(int i = 12; i < 20; ++i)
|
for(int c = 12; c < 20; ++c)
|
||||||
buf << ((tag.disasm[i] == '\x1f') ? "*" : " ");
|
buf << ((tag.disasm[c] == '\x1f') ? "*" : " ");
|
||||||
buf << "| $" << Base::HEX4 << tag.address << " (P)\n";
|
buf << "| $" << Base::HEX4 << tag.address << " (P)\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -392,9 +392,9 @@ bool DebuggerParser::getArgs(const string& command, string& verb)
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
for(int i = 0; i < argCount; i++)
|
for(int arg = 0; arg < argCount; ++arg)
|
||||||
{
|
{
|
||||||
if(!YaccParser::parse(argStrings[i].c_str()))
|
if(!YaccParser::parse(argStrings[arg].c_str()))
|
||||||
{
|
{
|
||||||
unique_ptr<Expression> expr(YaccParser::getResult());
|
unique_ptr<Expression> expr(YaccParser::getResult());
|
||||||
args.push_back(expr->evaluate());
|
args.push_back(expr->evaluate());
|
||||||
|
|
|
@ -24,12 +24,12 @@ using namespace Common;
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
DiStella::DiStella(const CartDebug& dbg, CartDebug::DisassemblyList& list,
|
DiStella::DiStella(const CartDebug& dbg, CartDebug::DisassemblyList& list,
|
||||||
CartDebug::BankInfo& info, const DiStella::Settings& settings,
|
CartDebug::BankInfo& info, const DiStella::Settings& s,
|
||||||
uInt8* labels, uInt8* directives,
|
uInt8* labels, uInt8* directives,
|
||||||
CartDebug::ReservedEquates& reserved)
|
CartDebug::ReservedEquates& reserved)
|
||||||
: myDbg(dbg),
|
: myDbg(dbg),
|
||||||
myList(list),
|
myList(list),
|
||||||
mySettings(settings),
|
mySettings(s),
|
||||||
myReserved(reserved),
|
myReserved(reserved),
|
||||||
myLabels(labels),
|
myLabels(labels),
|
||||||
myDirectives(directives)
|
myDirectives(directives)
|
||||||
|
|
|
@ -1196,10 +1196,10 @@ void EventHandler::setKeymap()
|
||||||
if(event == Event::LastType && map.size() == KBDK_LAST * kNumModes)
|
if(event == Event::LastType && map.size() == KBDK_LAST * kNumModes)
|
||||||
{
|
{
|
||||||
// Fill the keymap table with events
|
// Fill the keymap table with events
|
||||||
auto event = map.begin();
|
auto e = map.begin();
|
||||||
for(int mode = 0; mode < kNumModes; ++mode)
|
for(int mode = 0; mode < kNumModes; ++mode)
|
||||||
for(int i = 0; i < KBDK_LAST; ++i)
|
for(int i = 0; i < KBDK_LAST; ++i)
|
||||||
myKeyTable[i][mode] = (Event::Type) *event++;
|
myKeyTable[i][mode] = (Event::Type) *e++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -121,9 +121,9 @@ string EventHandler::StellaJoystick::getMap() const
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
bool EventHandler::StellaJoystick::setMap(const string& m)
|
bool EventHandler::StellaJoystick::setMap(const string& mapString)
|
||||||
{
|
{
|
||||||
istringstream buf(m);
|
istringstream buf(mapString);
|
||||||
StringList items;
|
StringList items;
|
||||||
string item;
|
string item;
|
||||||
while(getline(buf, item, '|'))
|
while(getline(buf, item, '|'))
|
||||||
|
@ -445,20 +445,20 @@ void EventHandler::JoystickHandler::setStickDefaultMapping(int stick,
|
||||||
EventHandler& handler = myOSystem.eventHandler();
|
EventHandler& handler = myOSystem.eventHandler();
|
||||||
bool eraseAll = (event == Event::NoType);
|
bool eraseAll = (event == Event::NoType);
|
||||||
|
|
||||||
auto setDefaultAxis = [&](int stick, int axis, int value, Event::Type a_event)
|
auto setDefaultAxis = [&](int a_stick, int a_axis, int a_value, Event::Type a_event)
|
||||||
{
|
{
|
||||||
if(eraseAll || a_event == event)
|
if(eraseAll || a_event == event)
|
||||||
handler.addJoyAxisMapping(a_event, mode, stick, axis, value, false);
|
handler.addJoyAxisMapping(a_event, mode, a_stick, a_axis, a_value, false);
|
||||||
};
|
};
|
||||||
auto setDefaultBtn = [&](int stick, int button, Event::Type b_event)
|
auto setDefaultBtn = [&](int b_stick, int b_button, Event::Type b_event)
|
||||||
{
|
{
|
||||||
if(eraseAll || b_event == event)
|
if(eraseAll || b_event == event)
|
||||||
handler.addJoyButtonMapping(b_event, mode, stick, button, false);
|
handler.addJoyButtonMapping(b_event, mode, b_stick, b_button, false);
|
||||||
};
|
};
|
||||||
auto setDefaultHat = [&](int stick, int hat, int dir, Event::Type h_event)
|
auto setDefaultHat = [&](int h_stick, int h_hat, int h_dir, Event::Type h_event)
|
||||||
{
|
{
|
||||||
if(eraseAll || h_event == event)
|
if(eraseAll || h_event == event)
|
||||||
handler.addJoyHatMapping(h_event, mode, stick, hat, dir, false);
|
handler.addJoyHatMapping(h_event, mode, h_stick, h_hat, h_dir, false);
|
||||||
};
|
};
|
||||||
|
|
||||||
switch(mode)
|
switch(mode)
|
||||||
|
|
|
@ -46,10 +46,10 @@ CommandDialog::CommandDialog(OSystem& osystem, DialogContainer& parent)
|
||||||
|
|
||||||
auto ADD_CD_BUTTON = [&](const string& label, int cmd)
|
auto ADD_CD_BUTTON = [&](const string& label, int cmd)
|
||||||
{
|
{
|
||||||
ButtonWidget* b = new ButtonWidget(this, font, xoffset, yoffset,
|
ButtonWidget* bw = new ButtonWidget(this, font, xoffset, yoffset,
|
||||||
buttonWidth, buttonHeight, label, cmd);
|
buttonWidth, buttonHeight, label, cmd);
|
||||||
xoffset += buttonWidth + 6;
|
xoffset += buttonWidth + 6;
|
||||||
return b;
|
return bw;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Row 1
|
// Row 1
|
||||||
|
|
|
@ -165,8 +165,8 @@ void Dialog::addToFocusList(WidgetArray& list, TabWidget* w, int tabId)
|
||||||
assert(w == _myTabList[w->getID()].widget);
|
assert(w == _myTabList[w->getID()].widget);
|
||||||
|
|
||||||
// All focusable widgets should retain focus
|
// All focusable widgets should retain focus
|
||||||
for(const auto& w: list)
|
for(const auto& fw: list)
|
||||||
w->setFlags(WIDGET_RETAIN_FOCUS);
|
fw->setFlags(WIDGET_RETAIN_FOCUS);
|
||||||
|
|
||||||
// First get the appropriate focus list
|
// First get the appropriate focus list
|
||||||
FocusList& focus = _myTabList[w->getID()].focus;
|
FocusList& focus = _myTabList[w->getID()].focus;
|
||||||
|
|
|
@ -62,10 +62,10 @@ OptionsDialog::OptionsDialog(OSystem& osystem, DialogContainer& parent,
|
||||||
|
|
||||||
auto ADD_OD_BUTTON = [&](const string& label, int cmd)
|
auto ADD_OD_BUTTON = [&](const string& label, int cmd)
|
||||||
{
|
{
|
||||||
ButtonWidget* b = new ButtonWidget(this, font, xoffset, yoffset,
|
ButtonWidget* bw = new ButtonWidget(this, font, xoffset, yoffset,
|
||||||
buttonWidth, buttonHeight, label, cmd);
|
buttonWidth, buttonHeight, label, cmd);
|
||||||
yoffset += rowHeight;
|
yoffset += rowHeight;
|
||||||
return b;
|
return bw;
|
||||||
};
|
};
|
||||||
|
|
||||||
b = ADD_OD_BUTTON("Video Settings", kVidCmd);
|
b = ADD_OD_BUTTON("Video Settings", kVidCmd);
|
||||||
|
|
|
@ -56,10 +56,8 @@
|
||||||
<string>4.5</string>
|
<string>4.5</string>
|
||||||
<key>LSMinimumSystemVersionByArchitecture</key>
|
<key>LSMinimumSystemVersionByArchitecture</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>i386</key>
|
|
||||||
<string>10.5.0</string>
|
|
||||||
<key>x86_64</key>
|
<key>x86_64</key>
|
||||||
<string>10.6.0</string>
|
<string>10.7.0</string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>NSMainNibFile</key>
|
<key>NSMainNibFile</key>
|
||||||
<string>SDLMain.nib</string>
|
<string>SDLMain.nib</string>
|
||||||
|
|
|
@ -1314,6 +1314,7 @@
|
||||||
2D6050C5089876F300C6DE89 /* common */ = {
|
2D6050C5089876F300C6DE89 /* common */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
DCC467EA14FBEC9600E15508 /* tv_filters */,
|
||||||
DC79F81017A88D9E00288B91 /* Base.cxx */,
|
DC79F81017A88D9E00288B91 /* Base.cxx */,
|
||||||
DC79F81117A88D9E00288B91 /* Base.hxx */,
|
DC79F81117A88D9E00288B91 /* Base.hxx */,
|
||||||
DCC527D810B9DA6A005E1287 /* bspf.hxx */,
|
DCC527D810B9DA6A005E1287 /* bspf.hxx */,
|
||||||
|
@ -1338,7 +1339,6 @@
|
||||||
DC5D1AA6102C6FC900E59AC1 /* Stack.hxx */,
|
DC5D1AA6102C6FC900E59AC1 /* Stack.hxx */,
|
||||||
DC5C768E14C26F7C0031EBC7 /* StellaKeys.hxx */,
|
DC5C768E14C26F7C0031EBC7 /* StellaKeys.hxx */,
|
||||||
DC74D6A0138D4D7E00F05C5C /* StringParser.hxx */,
|
DC74D6A0138D4D7E00F05C5C /* StringParser.hxx */,
|
||||||
DCC467EA14FBEC9600E15508 /* tv_filters */,
|
|
||||||
DC7A24D4173B1CF600B20FE9 /* Variant.hxx */,
|
DC7A24D4173B1CF600B20FE9 /* Variant.hxx */,
|
||||||
DCF490791A0ECE5B00A67AA9 /* Vec.hxx */,
|
DCF490791A0ECE5B00A67AA9 /* Vec.hxx */,
|
||||||
DCF467BC0F9399F500B25D7A /* Version.hxx */,
|
DCF467BC0F9399F500B25D7A /* Version.hxx */,
|
||||||
|
|
Loading…
Reference in New Issue