コード例 #1
0
ファイル: Symbol.cpp プロジェクト: jimhourihan/mu
void
Symbol::resolve() const
{
    if ( symbolState() != ResolvedState )
    {
	const_cast<Symbol*>(this)->_resolving = true;

	if ( _scope && resolveSymbols() )
	{
	    const_cast<Symbol*>(this)->_state = ResolvedState;
            MU_GC_END_CHANGE_STUBBORN(this);
	}
	else
	{
	    //
	    //	Symbol is not resolved -- it still contains
	    //	names which are unresolved. It will be ignored
	    //	by other table functions
	    //
	    
	    const_cast<Symbol*>(this)->_state = Symbol::UnresolvedState;
	}
	
	const_cast<Symbol*>(this)->_resolving = false;
    }
}
コード例 #2
0
QVistaHelper::QVistaHelper(QWizard *wizard)
    : pressed(false)
    , wizard(wizard)
    , backButton_(0)
{
    is_vista = resolveSymbols();
    if (is_vista)
        backButton_ = new QVistaBackButton(wizard);
}
コード例 #3
0
ファイル: RuntimeDyld.cpp プロジェクト: bluemutedwisdom/bhyve
// Resolve the relocations for all symbols we currently know about.
void RuntimeDyldImpl::resolveRelocations() {
  // First, resolve relocations associated with external symbols.
  resolveSymbols();

  // Just iterate over the sections we have and resolve all the relocations
  // in them. Gross overkill, but it gets the job done.
  for (int i = 0, e = Sections.size(); i != e; ++i) {
    reassignSectionAddress(i, Sections[i].LoadAddress);
  }
}
コード例 #4
0
ファイル: qwizard_win.cpp プロジェクト: AlekSi/phantomjs
QVistaHelper::QVistaHelper(QWizard *wizard)
    : QObject(wizard)
    , pressed(false)
    , wizard(wizard)
    , backButton_(0)
{
    is_vista = resolveSymbols();
    if (is_vista)
        backButton_ = new QVistaBackButton(wizard);

    // Handle diff between Windows 7 and Vista
    iconSpacing = QStyleHelper::dpiScaled(7);
    textSpacing = QSysInfo::WindowsVersion >= QSysInfo::WV_WINDOWS7 ?
                  iconSpacing : QStyleHelper::dpiScaled(20);
}
コード例 #5
0
QVistaHelper::QVistaHelper(QWizard *wizard)
    : QObject(wizard)
    , pressed(false)
    , wizard(wizard)
    , backButton_(0)
{
    is_vista = resolveSymbols();
    if (instanceCount++ == 0)
        cachedVistaState = Dirty;
    if (is_vista) {
        backButton_ = new QVistaBackButton(wizard);
        backButton_->hide();
    }

    // Handle diff between Windows 7 and Vista
    iconSpacing = QStyleHelper::dpiScaled(7);
    textSpacing = QSysInfo::WindowsVersion >= QSysInfo::WV_WINDOWS7 ?
                  iconSpacing : QStyleHelper::dpiScaled(20);
}
コード例 #6
0
WindowsModernStyle::WindowsModernStyle() : QWindowsVistaStyle(),
	m_mode( Classic )
{
	resolveSymbols();
}