Martin Dørum
Martin Dørum
Well, it would be _possible_ to add a timeout, albeit not in a very nice way. You could make a `tick` function which calls time() and compares it to a...
This is largely an alternative to https://github.com/codeplea/tinyexpr/pull/57. If someone who needs static memory (@stawiski? @RallyTronics?) could have a look at my custom allocators suggestion and see if it would work...
That's a good idea. It takes this patch from a +168/-7 to a +90/-7. https://github.com/codeplea/tinyexpr/pull/68/files#diff-9dd905150ef73f001f71a847631eaf1c3c8cf53b7cb0ec921a200620fdf9cd04R375-R383 This was the only place I couldn't use the CHECK_NULL macro. However, if we changed...
Actually, nevermind. I didn't realize `new_expr` already zero-initializes the entire expression, including the parameters. I force-pushed a version which uses `CHECK_NULL` in the `ret->parameters[i]` case too, turning this into a...
> If malloc fails in this library, your system probably either already bogged down to a halt, and there is small chances to recover anyway. That's true in the very...
I wonder, maybe a simple way to drop in a custom `malloc` and `free`, in addition to handling `malloc` returning NULL, would be better? You could then make an allocator...
I encountered a similar issue to this just now, using the official Ubuntu PPA. I was unable to use howdy with swaylock - `ModuleNotFoundError: No module named 'recorders.video_capture'` - because...
Alright, I've changed the code to avoid extra roundtrips in the event handler. I also moved the `zxdg_output_manager_v1_get_xdg_output` to the `create_layer_surface` function, because that felt more in line with the...
Having looked at this more carefully, I don't think this solution is sound. Instead, it happens to work in my testing because the `zxdg_output_manager_v1_get_xdg_output` callback happen to fire before the...
https://github.com/swaywm/swaylock/pull/155/commits/7bcf95b21525bd67cc5b8024204fe39b7de39fe3 adds what I believe is the necessary ordering using an `events_pending` counter; adding an event listener increments it, an event listener firing decrements it, and only when it reaches...