From 6608cc4b7dcb9573df16300f2717fc0d7a2f9cdb Mon Sep 17 00:00:00 2001 From: Roland Takacs Date: Mon, 1 Feb 2016 18:38:14 +0100 Subject: [PATCH] Move jerry_port functions into jerry-core. JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com --- main.h => jerry-core/jerry-port.cpp | 9 +++------ main-mcu.cpp | 1 - main-unix.cpp | 1 - 3 files changed, 3 insertions(+), 8 deletions(-) rename main.h => jerry-core/jerry-port.cpp (93%) 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 5d84af409..481241092 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 465079d1a..009369851 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 8a838f61e..7e25903ef 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