Don't use NULL in public headers

pull/569/head
Behdad Esfahbod 7 years ago
parent c3448e8d21
commit fbb937b680
  1. 4
      src/hb-buffer.h
  2. 2
      src/hb-common.h

@ -132,8 +132,8 @@ typedef struct hb_segment_properties_t {
#define HB_SEGMENT_PROPERTIES_DEFAULT {HB_DIRECTION_INVALID, \ #define HB_SEGMENT_PROPERTIES_DEFAULT {HB_DIRECTION_INVALID, \
HB_SCRIPT_INVALID, \ HB_SCRIPT_INVALID, \
HB_LANGUAGE_INVALID, \ HB_LANGUAGE_INVALID, \
NULL, \ (void *) 0, \
NULL} (void *) 0}
HB_EXTERN hb_bool_t HB_EXTERN hb_bool_t
hb_segment_properties_equal (const hb_segment_properties_t *a, hb_segment_properties_equal (const hb_segment_properties_t *a,

@ -134,7 +134,7 @@ hb_language_from_string (const char *str, int len);
HB_EXTERN const char * HB_EXTERN const char *
hb_language_to_string (hb_language_t language); hb_language_to_string (hb_language_t language);
#define HB_LANGUAGE_INVALID ((hb_language_t) NULL) #define HB_LANGUAGE_INVALID ((hb_language_t) 0)
HB_EXTERN hb_language_t HB_EXTERN hb_language_t
hb_language_get_default (void); hb_language_get_default (void);

Loading…
Cancel
Save