Skip to content

Commit c7156dd

Browse files
author
Roland Takacs
committed
Move jerry_port functions into jerry-core.
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
1 parent 0219f37 commit c7156dd

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

main.h renamed to jerry-core/jerry-port.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
1+
/* Copyright 2014-2016 Samsung Electronics Co., Ltd.
22
*
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
@@ -13,8 +13,8 @@
1313
* limitations under the License.
1414
*/
1515

16-
#ifndef MAIN_H
17-
#define MAIN_H
16+
#include "jerry-port.h"
17+
#include <stdarg.h>
1818

1919
/**
2020
* Provide log message to filestream implementation for the engine.
@@ -45,13 +45,10 @@ int jerry_port_errormsg (const char *format, /**< format string */
4545
return count;
4646
} /* jerry_port_errormsg */
4747

48-
4948
/**
5049
* Provide output character to console implementation for the engine.
5150
*/
5251
int jerry_port_putchar (int c) /**< character to put */
5352
{
5453
return putchar (c);
5554
} /* jerry_port_putchar */
56-
57-
#endif /* !MAIN_H */

main-mcu.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
*/
1515

1616
#include "jerry.h"
17-
#include "main.h"
1817

1918
/**
2019
* Standalone Jerry exit codes

main-unix.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
#include "jerry.h"
2121
#include "jrt/jrt.h"
22-
#include "main.h"
2322

2423
/**
2524
* Maximum command line arguments number

0 commit comments

Comments
 (0)