Commit Graph

20 Commits (master)

Author SHA1 Message Date
Kim Alvefur 8136aa749a util: Add compat for prosody module name change to C sources 3 years ago
Kim Alvefur dff4beae02 util-src: Remove Lua 5.1 compat macros 4 years ago
Matthew Wild b9a670dace util.ringbuffer: Ensure unsigned chars are always returned from :byte() 6 years ago
Kim Alvefur 625ec0a93f util-src: Use the luaL_pushfail API added in Lua 5.4 to highlight all failure conditions 6 years ago
Matthew Wild 14a436817d util.ringbuffer: Add :sub() and :byte() methods equivalent to the string methods 6 years ago
Kim Alvefur 4bab7af07d util.ringbuffer: Prevent creation of buffer with negative size 6 years ago
Kim Alvefur 0bb1474ce6 util.ringbuffer: Prevent creation of zero-size buffer 6 years ago
Emmanuel Gil Peyrot a149dda0e3 util.*.c: Add static qualifiers everywhere 6 years ago
Kim Alvefur 1eb7584483 util.ringbuffer: Fix typo in comment [codespell] 8 years ago
Kim Alvefur 28ba10b6b4 util.ringbuffer: Add method for discarding buffered data without returning it to lua 8 years ago
Kim Alvefur a92cdf75b1 util.ringbuffer: Add various comments 8 years ago
Kim Alvefur 384687ffa4 util-src: Specify size of various tables to be allocated 9 years ago
Kim Alvefur 2246bd21b5 util.ringbuffer: Change types of length related variables to size_t [-Wsign-compare] 9 years ago
Kim Alvefur 40d8e257d8 util-src/*.c: Attach pointer * to name instead of type 9 years ago
Kim Alvefur 3e41ed8099 util.ringbuffer: Remove address of buffer itself from __tostring since is now in the same struct 9 years ago
Kim Alvefur 5b10d245e3 util-src: Make C modules assert that the Lua runtime matches what it was compiled for 9 years ago
Kim Alvefur 0d28378a7a util-src/*.c: Squeeze repeated blank lines 9 years ago
Kim Alvefur c8e4e17b46 util.ringbuffer: Allocate buffer itself as part of userdata (simpler, single allocation, no need for __gc) 9 years ago
Kim Alvefur 26d03a9a1a util.ringbuffer: Remove unused macros 9 years ago
Kim Alvefur ea0373f3ad Add util.ringbuffer, a ringbuffer with a file handle like interface 10 years ago