Skip to content

Commit c29c3fa

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 eda775a commit c29c3fa

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
2+
* Copiright 2014-2016 University of Szeged
23
*
34
* Licensed under the Apache License, Version 2.0 (the "License");
45
* you may not use this file except in compliance with the License.
@@ -13,8 +14,8 @@
1314
* limitations under the License.
1415
*/
1516

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

1920
/**
2021
* Provide log message to filestream implementation for the engine.
@@ -42,13 +43,10 @@ int jerry_port_errormsg (const char* format, ...)
4243
return count;
4344
}
4445

45-
4646
/**
4747
* Provide output character to console implementation for the engine.
4848
*/
4949
int jerry_port_putchar (int c)
5050
{
5151
return putchar (c);
5252
}
53-
54-
#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)