Browse Source

fixed compilation for msvc

cl-refactor
U-SVZ13\Arkady 10 years ago
parent
commit
aa5e44571b
  1. 6
      mix/AssemblyDebuggerControl.cpp
  2. 4
      mix/AssemblyDebuggerControl.h
  3. 4
      mix/AssemblyDebuggerModel.cpp
  4. 4
      mix/AssemblyDebuggerModel.h
  5. 1
      mix/DebuggingStateWrapper.h
  6. 1
      mix/KeyEventManager.h

6
mix/AssemblyDebuggerControl.cpp

@ -17,6 +17,10 @@
* display opcode debugging. * display opcode debugging.
*/ */
//These 2 includes should be at the top to avoid conflicts with macros defined in windows.h
//@todo fix this is solidity headers
#include <libsolidity/Token.h>
#include <libsolidity/Types.h>
#include <QtConcurrent/QtConcurrent> #include <QtConcurrent/QtConcurrent>
#include <QDebug> #include <QDebug>
#include <QVariableDefinition.h> #include <QVariableDefinition.h>
@ -86,7 +90,7 @@ void AssemblyDebuggerControl::keyPressed(int _key)
} }
} }
void AssemblyDebuggerControl::callContract(TransactionSettings _tr, Address _contract) void AssemblyDebuggerControl::callContract(TransactionSettings _tr, dev::Address _contract)
{ {
CompilerResult compilerRes = m_compilation->compile(m_doc->toPlainText()); CompilerResult compilerRes = m_compilation->compile(m_doc->toPlainText());
if (!compilerRes.success) if (!compilerRes.success)

4
mix/AssemblyDebuggerControl.h

@ -19,6 +19,10 @@
#pragma once #pragma once
//These 2 includes should be at the top to avoid conflicts with macros defined in windows.h
//@todo fix this is solidity headers
#include <libsolidity/Token.h>
#include <libsolidity/Types.h>
#include <QKeySequence> #include <QKeySequence>
#include <QTextDocument> #include <QTextDocument>
#include "Extension.h" #include "Extension.h"

4
mix/AssemblyDebuggerModel.cpp

@ -17,6 +17,10 @@
* used as a model to debug contract assembly code. * used as a model to debug contract assembly code.
*/ */
//These 2 includes should be at the top to avoid conflicts with macros defined in windows.h
//@todo fix this is solidity headers
#include <libsolidity/Token.h>
#include <libsolidity/Types.h>
#include <QApplication> #include <QApplication>
#include <libdevcore/Common.h> #include <libdevcore/Common.h>
#include <libevm/VM.h> #include <libevm/VM.h>

4
mix/AssemblyDebuggerModel.h

@ -19,6 +19,10 @@
#pragma once #pragma once
//These 2 includes should be at the top to avoid conflicts with macros defined in windows.h
//@todo fix this is solidity headers
#include <libsolidity/Token.h>
#include <libsolidity/Types.h>
#include <QObject> #include <QObject>
#include <QList> #include <QList>
#include <libdevcore/Common.h> #include <libdevcore/Common.h>

1
mix/DebuggingStateWrapper.h

@ -23,6 +23,7 @@
#pragma once #pragma once
#include <QStringList> #include <QStringList>
#include <QMap>
#include <libdevcore/Common.h> #include <libdevcore/Common.h>
#include <libethereum/State.h> #include <libethereum/State.h>
#include <libethereum/Executive.h> #include <libethereum/Executive.h>

1
mix/KeyEventManager.h

@ -23,6 +23,7 @@
#pragma once #pragma once
#include <QObject> #include <QObject>
#include <QVariant>
class KeyEventManager: public QObject class KeyEventManager: public QObject
{ {

Loading…
Cancel
Save