Add HB_CODEPOINT_INVALID

Fixes https://github.com/harfbuzz/harfbuzz/issues/4262
pull/4264/head
Behdad Esfahbod 2 years ago
parent efefec13cc
commit c3e7f45166
  1. 1
      docs/harfbuzz-sections.txt
  2. 10
      src/hb-common.h
  3. 2
      src/hb-map.h
  4. 2
      src/hb-set.h

@ -151,6 +151,7 @@ hb_variation_from_string
hb_variation_to_string
hb_bool_t
hb_codepoint_t
HB_CODEPOINT_INVALID
hb_destroy_func_t
hb_direction_t
hb_language_t

@ -104,6 +104,16 @@ typedef int hb_bool_t;
*
**/
typedef uint32_t hb_codepoint_t;
/**
* HB_SET_VALUE_INVALID:
*
* Unused #hb_codepoint_t value.
*
* XSince: REPLACEME
*/
#define HB_CODEPOINT_INVALID ((hb_codepoint_t) -1)
/**
* hb_position_t:
*

@ -44,7 +44,7 @@ HB_BEGIN_DECLS
*
* Since: 1.7.7
*/
#define HB_MAP_VALUE_INVALID ((hb_codepoint_t) -1)
#define HB_MAP_VALUE_INVALID HB_CODEPOINT_INVALID
/**
* hb_map_t:

@ -43,7 +43,7 @@ HB_BEGIN_DECLS
*
* Since: 0.9.21
*/
#define HB_SET_VALUE_INVALID ((hb_codepoint_t) -1)
#define HB_SET_VALUE_INVALID HB_CODEPOINT_INVALID
/**
* hb_set_t:

Loading…
Cancel
Save