- 30 Nov, 2022 2 commits
-
-
Evan Welsh authored
signals: Fix bugs when multiple handlers are connected and disconnect is called See merge request !818
-
Evan Welsh authored
-
- 25 Nov, 2022 2 commits
-
-
Philip Chimento authored
log: Fix an off-by-one buffer overflow See merge request !817
-
Valentin David authored
This error causes gnome-shell to crash on GNOME OS
-
- 21 Nov, 2022 6 commits
-
-
Philip Chimento authored
cairo-surface: Add finish() and flush() Closes #515 See merge request !816
-
To be consistent with other implementations.
-
Philip Chimento authored
arg-cache: Add support passing caller-allocated C-arrays See merge request !806
-
When a function uses caller-allocated C-arrays are used, we can easily create such structures when we know the size of the array elements. GI tests at: gobject-introspection!370
-
We may need to know element sizes for types in various places, so let's split it for further usage.
-
- 19 Nov, 2022 21 commits
-
-
-
They only use constexpr operations, so indeed they can be too.
-
-
-
-
-
-
-
It makes access to members using constexpr definitions
-
We can avoid storing the destructor in this way, together with all the constexpr operations.
-
-
-
-
Return will implies also calling the auto-cleanups functions we have, so it's just nicer.
-
-
-
We know this size at compile time, so we can definitely use a std::array instead of a vector.
-
-
We can use a simpler version here.
-
While vectors are cool, they implies some memory overhead that we may not need in some cases. In the GjsCallbackTrampoline in fact we already know the size of the callable arguments, so we can just use a smart pointer of GjsParamType[] and use native features. (Changed to std::unique_ptr<T[]> by Philip)
-
Philip Chimento authored
gobject: Guard against null JS wrapper in set/get property Closes #510 See merge request !813
-
- 17 Nov, 2022 5 commits
-
-
Philip Chimento authored
Legacy signals code optimizations See merge request !757
-
-
Having the connection name in both objects we can be faster at disconnecting the connections as we can just remove the id from the target array.
-
Use dicts and array lookups to emit signals instead of iterating through them. Using native Map() and Set() would have been better, but performances are worse.
-
We often reference connection IDs, so now we can use a more optimized native way to handle connections without having to iterate them all the times. This could have been implemented using the newer Map() object, but sadly it's still way slower than using normal objects.
-
- 16 Nov, 2022 4 commits
-
-
Philip Chimento authored
ci: Only run source check jobs if relevant files have been changed See merge request !812
-
There's no point to run eslint if no js file has been modified or similarly cppcheck if no cpp source has. So only run the jobs that are affected by the changed source files.
-
Philip Chimento authored
Quick-fix IWYU jobs See merge request !814
-
Philip Chimento authored
These need to match what's in js/TypeDecls.h for the current version of SpiderMonkey.
-