aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/ringbuffer.c
Commit message (Collapse)AuthorAgeFilesLines
* util-src: Remove Lua 5.1 compat macrosKim Alvefur2022-07-011-2/+0
| | | | Part of #1600
* util.ringbuffer: Ensure unsigned chars are always returned from :byte()Matthew Wild2020-06-241-3/+3
|
* util-src: Use the luaL_pushfail API added in Lua 5.4 to highlight all ↵Kim Alvefur2020-06-071-2/+6
| | | | | | | failure conditions Actually just an alias of pushnil, but it does make it more obvious where the failure conditions are, which is good for readability.
* util.ringbuffer: Add :sub() and :byte() methods equivalent to the string methodsMatthew Wild2020-06-041-1/+102
|
* util.ringbuffer: Prevent creation of buffer with negative sizeKim Alvefur2020-06-041-1/+1
| | | | | Previously this would have been (unsigned)-1 which is a large positive integer.
* util.ringbuffer: Prevent creation of zero-size bufferKim Alvefur2020-05-291-0/+1
|
* util.*.c: Add static qualifiers everywhereEmmanuel Gil Peyrot2019-12-011-18/+13
|
* util.ringbuffer: Fix typo in comment [codespell]Kim Alvefur2018-04-061-1/+1
|
* util.ringbuffer: Add method for discarding buffered data without returning ↵Kim Alvefur2018-02-241-0/+23
| | | | it to lua
* util.ringbuffer: Add various commentsKim Alvefur2018-02-241-0/+19
|
* util-src: Specify size of various tables to be allocatedKim Alvefur2017-03-091-2/+2
|
* util.ringbuffer: Change types of length related variables to size_t ↵Kim Alvefur2017-03-021-2/+2
| | | | [-Wsign-compare]
* util-src/*.c: Attach pointer * to name instead of typeKim Alvefur2017-02-121-25/+26
|
* util.ringbuffer: Remove address of buffer itself from __tostring since is ↵Kim Alvefur2017-02-121-1/+1
| | | | now in the same struct
* util-src/*.c: Squeeze repeated blank linesKim Alvefur2017-01-231-3/+0
|
* util.ringbuffer: Allocate buffer itself as part of userdata (simpler, single ↵Kim Alvefur2017-01-221-19/+3
| | | | allocation, no need for __gc)
* util.ringbuffer: Remove unused macrosKim Alvefur2017-01-221-3/+0
|
* util-src: Make C modules assert that the Lua runtime matches what it was ↵Kim Alvefur2017-01-081-0/+3
| | | | compiled for
* Add util.ringbuffer, a ringbuffer with a file handle like interfaceKim Alvefur2016-02-021-0/+232