mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Hitherto, code under the `targets` directory was not tested and so its maintenance was sometimes speculative. This commit adds build testing for several targets to prevent them from bit rotting. Targets covered by this commit are: ESP8266, Mbed, Mbed OS 5, NuttX, RIOT, Tizen RT, and Zephyr. Some issues were revealed and fixed: - ESP8266: added missing include for `uint32_t` typedef. - Tizen RT: replaced missing `str_to_uint` with `strtol`. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
37 lines
920 B
C
37 lines
920 B
C
/* Copyright JS Foundation and other contributors, http://js.foundation
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef __JERRY_RUN_H__
|
|
#define __JERRY_RUN_H__
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
void js_entry (void);
|
|
int js_eval (const char *source_p, const size_t source_size);
|
|
int js_loop (uint32_t ticknow);
|
|
void js_exit (void);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|