Add header for jsonCompiler

This commit is contained in:
Alex Beregszaszi
2017-08-29 13:43:55 +01:00
parent 2d39a42d37
commit c861817875
4 changed files with 47 additions and 24 deletions
+1 -7
View File
@@ -20,6 +20,7 @@
#include <libevmasm/Assembly.h>
#include <libevmasm/ConstantOptimiser.h>
#include <solc/jsonCompiler.h>
#include <json/json.h>
@@ -33,13 +34,6 @@ using namespace dev;
using namespace dev::eth;
namespace po = boost::program_options;
extern "C"
{
extern char const* compileJSON(char const* _input, bool _optimize);
typedef void (*CStyleReadFileCallback)(char const* _path, char** o_contents, char** o_error);
extern char const* compileStandard(char const* _input, CStyleReadFileCallback _readCallback);
}
namespace
{
+1 -10
View File
@@ -23,22 +23,13 @@
#include <boost/test/unit_test.hpp>
#include <libdevcore/JSON.h>
#include <libsolidity/interface/Version.h>
#include <solc/jsonCompiler.h>
#include "../Metadata.h"
#include "../TestHelper.h"
using namespace std;
extern "C"
{
extern char const* version();
extern char const* license();
extern char const* compileJSON(char const* _input, bool _optimize);
extern char const* compileJSONMulti(char const* _input, bool _optimize);
extern char const* compileJSONCallback(char const* _input, bool _optimize, void* _readCallback);
extern char const* compileStandard(char const* _input, void* _readCallback);
}
namespace dev
{
namespace solidity