Rename jerry-port.h to jerryscript-port.h (#1762)
All public headers should follow the pattern `jerryscript[-*].h`. The `jerry-api.h` to `jerryscript.h` renaming has already happened a while ago, now it's time for the port API header to follow. This patch * renames the public header file, * updates all includes to use the new file name (in `jerry-main`, in all the targets, and in the docs), and * keeps `jerry-port.h` as a deprecated forwarding header to leave some time for external users to follow up with this change. As a related change, the header of the default port implementation is also changed to `jerryscript-port-default.h`. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -30,8 +30,8 @@
|
||||
#include "infra/wdt_helper.h"
|
||||
|
||||
#include "jerryscript.h"
|
||||
#include "jerryscript-port.h"
|
||||
#include "string.h"
|
||||
#include "jerry-port.h"
|
||||
|
||||
#include "zephyr.h"
|
||||
#include "microkernel/task.h"
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include "jerry-port.h"
|
||||
#include "jerryscript-port.h"
|
||||
|
||||
/**
|
||||
* Provide console message implementation for the engine.
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#include "jerry-port.h"
|
||||
#include "jerry-port-default.h"
|
||||
#include "jerryscript-port.h"
|
||||
#include "jerryscript-port-default.h"
|
||||
|
||||
/**
|
||||
* Default implementation of jerry_port_get_time_zone.
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "jerry-port.h"
|
||||
#include "jerry-port-default.h"
|
||||
#include "jerryscript-port.h"
|
||||
#include "jerryscript-port-default.h"
|
||||
|
||||
static bool abort_on_fail = false;
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "jerry-port.h"
|
||||
#include "jerry-port-default.h"
|
||||
#include "jerryscript-port.h"
|
||||
#include "jerryscript-port-default.h"
|
||||
|
||||
/**
|
||||
* Actual log level
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
*/
|
||||
|
||||
#include "jerryscript.h"
|
||||
#include "jerry-port.h"
|
||||
#include "jerry-port-default.h"
|
||||
#include "jerryscript-port.h"
|
||||
#include "jerryscript-port-default.h"
|
||||
#include "jmem.h"
|
||||
#include "jrt.h"
|
||||
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef JERRY_PORT_DEFAULT_H
|
||||
#define JERRY_PORT_DEFAULT_H
|
||||
#ifndef JERRYSCRIPT_PORT_DEFAULT_H
|
||||
#define JERRYSCRIPT_PORT_DEFAULT_H
|
||||
|
||||
#include "jerryscript.h"
|
||||
#include "jerry-port.h"
|
||||
#include "jerryscript-port.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
@@ -49,4 +49,4 @@ jerry_value_t jerry_port_jobqueue_run (void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
#endif /* !JERRY_PORT_DEFAULT_H */
|
||||
#endif /* !JERRYSCRIPT_PORT_DEFAULT_H */
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "jerry-core/jerry-port.h"
|
||||
#include "jerry-core/jerryscript-port.h"
|
||||
int ets_putc (int);
|
||||
|
||||
/**
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include "jerry-core/jerry-port.h"
|
||||
#include "jerry-core/jerryscript-port.h"
|
||||
|
||||
#include "mbed-hal/us_ticker_api.h"
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include "jerry-core/jerry-port.h"
|
||||
#include "jerry-core/jerryscript-port.h"
|
||||
|
||||
#include "us_ticker_api.h"
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "jerryscript.h"
|
||||
#include "jerry-port.h"
|
||||
#include "jerryscript-port.h"
|
||||
#include "jmem.h"
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include <zephyr.h>
|
||||
|
||||
#include "jerry-port.h"
|
||||
#include "jerryscript-port.h"
|
||||
|
||||
/**
|
||||
* Provide console message implementation for the engine.
|
||||
|
||||
Reference in New Issue
Block a user