Skip to content

Commit 361e212

Browse files
committed
Update and fix some issues in EXT-REFERENCE documentation
There was some issues and typos in the EXT-REFERENCE documentation. This patch fixes these issues and typos. JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi [email protected]
1 parent 5f467a6 commit 361e212

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/10.EXT-REFERENCE-HANDLER.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The engine must be initialized before specifying the `jerry_value_t` in the stru
2424
typedef struct {
2525
const char *name;
2626
jerry_value_t value;
27-
} jerryx_function_list_entry;
27+
} jerryx_property_entry;
2828
```
2929

3030
**See also**

docs/12.EXT-REFERENCE-MODULE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ to `jerryx_module_resolve` with a module name whose canonical name matches an al
6363
```c
6464
jerry_value_t
6565
jerryx_module_resolve (const jerry_value_t name,
66-
const jerryx_module_resolver_t *resolvers_p,
66+
const jerryx_module_resolver_t **resolvers_p,
6767
size_t resolver_count);
6868
```
6969
@@ -84,7 +84,7 @@ Remove a module from the current context's cache, or clear the cache entirely.
8484
```c
8585
void
8686
jerryx_module_clear_cache (const jerry_value_t name,
87-
const jerryx_module_resolver_t *resolvers_p,
87+
const jerryx_module_resolver_t **resolvers_p,
8888
size_t resolver_count);
8989
```
9090

jerry-ext/include/jerryscript-ext/arg.impl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ jerryx_arg_custom (void *dest, /**< pointer to the native argument where the res
347347
* @return a jerryx_arg_t instance.
348348
*/
349349
static inline jerryx_arg_t
350-
jerryx_arg_object_properties (const jerryx_arg_object_props_t *object_props, /**< pointer to object property mapping */
350+
jerryx_arg_object_properties (const jerryx_arg_object_props_t *object_props_p, /**< pointer to object property mapping */
351351
jerryx_arg_optional_t opt_flag) /**< whether the argument is optional */
352352
{
353353
jerryx_arg_transform_func_t func;
@@ -361,7 +361,7 @@ jerryx_arg_object_properties (const jerryx_arg_object_props_t *object_props, /**
361361
func = jerryx_arg_transform_object_props;
362362
}
363363

364-
return (jerryx_arg_t){ .func = func, .dest = NULL, .extra_info = (uintptr_t) object_props };
364+
return (jerryx_arg_t){ .func = func, .dest = NULL, .extra_info = (uintptr_t) object_props_p };
365365
} /* jerryx_arg_object_properties */
366366

367367
/**

jerry-ext/include/jerryscript-ext/module.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ extern jerryx_module_resolver_t jerryx_module_native_resolver;
161161
* loaded if it is found.
162162
*/
163163
jerry_value_t
164-
jerryx_module_resolve (const jerry_value_t name, const jerryx_module_resolver_t **resolvers, size_t count);
164+
jerryx_module_resolve (const jerry_value_t name, const jerryx_module_resolver_t **resolvers_p, size_t count);
165165

166166
/**
167167
* Delete a module from the cache or, if name has the JavaScript value of undefined, clear the entire cache.
168168
*/
169-
void jerryx_module_clear_cache (const jerry_value_t name, const jerryx_module_resolver_t **resolvers, size_t count);
169+
void jerryx_module_clear_cache (const jerry_value_t name, const jerryx_module_resolver_t **resolvers_p, size_t count);
170170

171171
JERRY_C_API_END
172172

0 commit comments

Comments
 (0)