Refactor/fix/document the default port implementation (#2317)
- Various constructs could be expressed with simpler and/or more readable code. - The jerry_port_log implementation for the debugger case was prone to buffer overflow error. - Some documentation was still missing (even from jerryscript-port.h). JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -87,6 +87,7 @@ typedef struct
|
||||
* CONFIG_DISABLE_DATE_BUILTIN is _not_ defined. Otherwise this function is
|
||||
* not used.
|
||||
*
|
||||
* @param[out] tz_p time zone structure to fill.
|
||||
* @return true - if success
|
||||
* false - otherwise
|
||||
*/
|
||||
@@ -134,6 +135,8 @@ struct jerry_instance_t *jerry_port_get_current_instance (void);
|
||||
* Note:
|
||||
* This port function is called by jerry-core when JERRY_DEBUGGER is
|
||||
* defined. Otherwise this function is not used.
|
||||
*
|
||||
* @param sleep_time milliseconds to sleep.
|
||||
*/
|
||||
void jerry_port_sleep (uint32_t sleep_time);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user