diff --git a/main.h b/jerry-core/jerry-port.cpp similarity index 93% rename from main.h rename to jerry-core/jerry-port.cpp index 5d84af4090..4812410927 100644 --- a/main.h +++ b/jerry-core/jerry-port.cpp @@ -1,4 +1,4 @@ -/* Copyright 2014-2015 Samsung Electronics Co., Ltd. +/* Copyright 2014-2016 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,8 +13,8 @@ * limitations under the License. */ -#ifndef MAIN_H -#define MAIN_H +#include "jerry-port.h" +#include /** * Provide log message to filestream implementation for the engine. @@ -45,7 +45,6 @@ int jerry_port_errormsg (const char *format, /**< format string */ return count; } /* jerry_port_errormsg */ - /** * Provide output character to console implementation for the engine. */ @@ -53,5 +52,3 @@ int jerry_port_putchar (int c) /**< character to put */ { return putchar (c); } /* jerry_port_putchar */ - -#endif /* !MAIN_H */ diff --git a/main-mcu.cpp b/main-mcu.cpp index 465079d1a0..009369851d 100644 --- a/main-mcu.cpp +++ b/main-mcu.cpp @@ -14,7 +14,6 @@ */ #include "jerry.h" -#include "main.h" /** * Standalone Jerry exit codes diff --git a/main-unix.cpp b/main-unix.cpp index 61e6434a18..b81f69ee7f 100644 --- a/main-unix.cpp +++ b/main-unix.cpp @@ -19,7 +19,6 @@ #include "jerry.h" #include "jrt/jrt.h" -#include "main.h" /** * Maximum command line arguments number