mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix typos in the API documentation. (#2423)
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
parent
857ba99694
commit
0ca04376a5
@ -362,7 +362,7 @@ typedef void (*jerry_object_native_free_callback_t) (void *native_p);
|
||||
|
||||
**Summary**
|
||||
|
||||
The type infomation of the native pointer.
|
||||
The type information of the native pointer.
|
||||
It includes the free callback that will be called when associated JavaScript object is garbage collected. It can be left NULL in case it is not needed.
|
||||
|
||||
Typically, one would create a `static const jerry_object_native_info_t` for
|
||||
@ -4505,7 +4505,7 @@ The pointer and the type information are previously associated with the object b
|
||||
and dereferencing `out_native_pointer_p`.
|
||||
|
||||
*Note*: `out_native_pointer_p` and `out_native_info_p` can be NULL, and it means the
|
||||
caller doesn't want to get the native_pointer or type infomation.
|
||||
caller doesn't want to get the native_pointer or type information.
|
||||
|
||||
**Prototype**
|
||||
|
||||
@ -4518,7 +4518,7 @@ jerry_get_object_native_pointer (const jerry_value_t obj_val,
|
||||
|
||||
- `obj_val` - object value to get native pointer from.
|
||||
- `out_native_pointer_p` - native pointer (output parameter).
|
||||
- `out_native_info_p` - native pointer's type infomation (output parameter).
|
||||
- `out_native_info_p` - native pointer's type information (output parameter).
|
||||
- return value
|
||||
- true, if there is native pointer associated with the object
|
||||
- false, otherwise
|
||||
@ -4615,7 +4615,7 @@ jerry_set_object_native_pointer (const jerry_value_t obj_val,
|
||||
|
||||
- `obj_val` - object to set native pointer in.
|
||||
- `native_p` - native pointer.
|
||||
- `info_p` - native pointer's type infomation or NULL. When used, this should
|
||||
- `info_p` - native pointer's type information or NULL. When used, this should
|
||||
be a long-lived pointer, usually a pointer to a
|
||||
`static const jerry_object_native_info_t` makes most sense.
|
||||
|
||||
@ -4773,7 +4773,7 @@ bool jerry_objects_foreach_by_native_info (const jerry_object_native_info_t *nat
|
||||
void *user_data_p);
|
||||
```
|
||||
|
||||
- `native_info_p` - native pointer's type infomation.
|
||||
- `native_info_p` - native pointer's type information.
|
||||
- return value
|
||||
- `true`, if the search function terminated the traversal by returning `false`
|
||||
- `false`, if the end of the list of objects was reached
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user