From c5a88a068b933ab67ffa8c39c97ad11f2dfbd7d0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 25 Feb 2023 12:43:22 -0700 Subject: [PATCH] [wasm-api] Minor cleanup --- src/hb-wasm-api.h | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/hb-wasm-api.h b/src/hb-wasm-api.h index 94cf58fd4..67e33e7e1 100644 --- a/src/hb-wasm-api.h +++ b/src/hb-wasm-api.h @@ -275,27 +275,24 @@ typedef struct #define FEATURE_GLOBAL_START 0 #define FEATURE_GLOBAL_END ((uint32_t) -1) -HB_WASM_INTERFACE (bool_t, shape_with) (HB_WASM_EXEC_ENV - ptr_d(font_t, font), - ptr_d(buffer_t, buffer), - ptr_d(const feature_t, features), - uint32_t num_features, - const char *shaper); +HB_WASM_API (bool_t, shape_with) (HB_WASM_EXEC_ENV + ptr_d(font_t, font), + ptr_d(buffer_t, buffer), + ptr_d(const feature_t, features), + uint32_t num_features, + const char *shaper); /* Implement these in your shaper. */ -HB_WASM_INTERFACE (ptr_t(void), shape_plan_create) (HB_WASM_EXEC_ENV - ptr_d(face_t, face)); +HB_WASM_INTERFACE (ptr_t(void), shape_plan_create) (ptr_d(face_t, face)); -HB_WASM_INTERFACE (bool_t, shape) (HB_WASM_EXEC_ENV - ptr_d(void, shape_plan), +HB_WASM_INTERFACE (bool_t, shape) (ptr_d(void, shape_plan), ptr_d(font_t, font), ptr_d(buffer_t, buffer), ptr_d(const feature_t, features), uint32_t num_features); -HB_WASM_INTERFACE (void, shape_plan_destroy) (HB_WASM_EXEC_ENV - ptr_d(void, shape_plan)); +HB_WASM_INTERFACE (void, shape_plan_destroy) (ptr_d(void, shape_plan)); HB_WASM_END_DECLS