src/hb-object.hh


Log

Author Commit Date CI Message
Behdad Esfahbod 2eda2ab3 2022-08-18T16:15:54 [object] Forward hb_object_create() arguments to constructor
Behdad Esfahbod de37b265 2022-08-18T15:21:48 [object] Only destruct object if it's not trivially-destructible Such that we're legally free to access the object to destruct its (pointer) fields ourselves afterwards. For things like hb_font_t, hb_face_t, etc.
Behdad Esfahbod f73c15ca 2022-08-03T12:54:03 [atomic-int] Add operators for relaxed ops
Behdad Esfahbod 86d1e22d 2022-08-03T12:43:28 [atomic-ptr] Rename get
Behdad Esfahbod e1b5f2f8 2022-07-20T15:03:20 [object] Call destructor in hb_object_destroy()
Behdad Esfahbod 9ea4ab60 2022-07-20T14:57:32 [object] Call constructor
Behdad Esfahbod cd979978 2022-01-19T11:14:25 [vector] Remove old find() method
Behdad Esfahbod 9cc4da96 2021-08-16T20:17:53 [object] Remove hb_object_is_inert()
Behdad Esfahbod f6d6eff6 2021-08-16T19:41:44 [object] Remove unused HB_REFERENCE_COUNT_INIT
Behdad Esfahbod 0e37c07f 2021-07-30T12:52:59 Revert "Construct user_data in hb_object" This reverts commit a78eb43c79e7a2d870add6b686426748e104b7b3. See: https://github.com/harfbuzz/harfbuzz/pull/3100#issuecomment-890088227
Ben Wagner a78eb43c 2021-07-29T17:35:25 Construct user_data in hb_object hb_object's user_data is created lazily. The previous implementation of hb_object_set_user_data created space for the user_data but did not actually construct it. This means that hb_user_data_array_t's lock was not constructed. If hb_mutex_t is backed by an implementation which requires that it be constructed (not just zero initialized) then errors will occur when taking the lock when setting the user data. Change hb_object_set_user_data to construct the user_data in the created space and hb_object_fini to call the destructor.
Behdad Esfahbod 2337f0d0 2021-07-08T10:58:50 Internally use hb_malloc/.../hb_free instead of malloc/.../free Redefining those stock names as macros was conflicting with gcc 10 headers. Fixes https://github.com/harfbuzz/harfbuzz/issues/3044
Behdad Esfahbod 140797d4 2020-06-29T03:51:09 [constexpr] hb_atomic_int_t
Behdad Esfahbod 2ec802b4 2020-06-29T03:48:38 [object] Simplify reference_count_t
Behdad Esfahbod 6a45df0a 2020-07-08T18:17:40 Fix -Wambiguous-reversed-operator warning Fixes https://github.com/harfbuzz/harfbuzz/issues/2554
Ebrahim Byagowi a0b4ac4d 2019-08-24T17:57:14 Turn 8 spaces to tab across the project According to the current code style of the project
Behdad Esfahbod fa333e34 2018-12-27T17:56:22 [vector] Remove static_array Was good idea, but with C++ types with constructor/destructor, was getting in the way as compiler was destructing those items where it was not desired. Since C++ does not allow zero-sized arrays, just remove it...
Behdad Esfahbod 474a1205 2018-12-21T18:46:51 [array/vector] Rename len to length
Ebrahim Byagowi e4120085 2018-12-17T21:31:01 Remove redundant void from C++ sources (#1486)
Ebrahim Byagowi b2ebaa9a 2018-12-16T22:38:10 Remove redundant 'inline' from methods (#1483)
Behdad Esfahbod 9579ed97 2018-11-13T11:45:12 Make atomic types' internal values non-mutable This resulted from confusion previously...
Behdad Esfahbod 5570c87f 2018-11-03T14:51:38 Port objects to use header.writable instead of immutable Saves 4 or 8 bytes per object on 64bit archs.
Behdad Esfahbod ee351a38 2018-11-03T14:28:55 [object] Add "writable"
Behdad Esfahbod b1862743 2018-10-29T23:21:14 [set/map] Fix uninitialized memory I keep forgetting that primitive types are NOT initialized during construction. :|
Behdad Esfahbod 35d410f2 2018-10-29T14:45:44 Remove ASSERT_POD Newer compilers / language allows structs with constructor in union. So, this was not actually testing anything. Indeed, the recent change in DISALLOW_COPY *is* making some of our types non-POD. That broke some bots. Just remove this since it wasn't doing much, and I'd rather have DISALLOW_COPY.
Behdad Esfahbod c77ae408 2018-08-25T22:36:36 Rename hb-*private.hh to hb-*.hh Sorry for the noise, downstream custom builders. Please adjust.