| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2025-12-22 | move all standard library includes into util.h | Randy Palamar | 1 | -5/+0 | |
| 2025-12-16 | mark all functions in headers with VIS_EXPORT or VIS_INTERNAL | Randy Palamar | 1 | -1/+0 | |
| if vis actually wants to be a library exported symbols may need mark up depending on the platform (eg. __declspec(dllexport)). This needs to be hidden behind a macro because the way you export is not the same on every platform. I did this based on the assumption that vis.h was supposed to be the only interface to the "vis" library. Since nobody actually uses vis as a library I have no idea if this is actually correct. Anyway marking up all prototypes like this allows for one to convert all functions to static if a single translation unit is used by inserting at the start: #define VIS_INTERNAL static #define VIS_EXPORT static | |||||
| 2025-02-28 | buffer: remove more unused exposed functions | Randy Palamar | 1 | -10/+2 | |
| NOTE: buffer-test.c now directly includes buffer.c so that it can continue to test functions which are defined as static/internal to buffer.c | |||||
| 2025-02-28 | buffer: remove buffer_printf | Randy Palamar | 1 | -9/+0 | |
| There was only a single user of this function because buffer_appendf is significantly more useful. Change that caller and reduce the code. | |||||
| 2025-01-12 | buffer: drop buffer_move function | Randy Palamar | 1 | -6/+0 | |
| 2025-01-11 | buffer: clear out one line functions | Randy Palamar | 1 | -17/+1 | |
| Buffer is fully exposed to the program, no need to rely on the linker to optimize useless code. | |||||
| 2025-01-11 | buffer: delete pointless buffer_init function | Randy Palamar | 1 | -6/+2 | |
| lets not make the code harder to read for no reason | |||||
| 2025-01-04 | remove duplicated read_buffer functions | Randy Palamar | 1 | -0/+5 | |
| When you take a pointer to a function in C that function is going to appear in full in the final binary. This means that there were 3 sections of the final binary with the exact same code. You could argue that in very high performance programs having that function closer to the current instruction when it is needed will give a performance boost but there are so many other places to gain more significant speed ups in vis before that would be remotely relevant. In fact, removing these allows the buffer_append call to inlined so that buffer_insert can be hopped to directly instead of including a useless hop in the middle. | |||||
| 2017-04-18 | buffer: simplify buffer_content0 | Marc André Tanner | 1 | -1/+1 | |
| 2017-02-20 | buffer: fix integer overflow issue | Marc André Tanner | 1 | -1/+2 | |
| 2017-02-20 | buffer: add buffer_grow | Marc André Tanner | 1 | -2/+9 | |
| 2017-02-20 | buffer: rename buffer_grow to buffer_reserve | Marc André Tanner | 1 | -4/+4 | |
| 2017-01-07 | buffer: make sure mem{cpy,move} are called with valid arguments | Marc André Tanner | 1 | -1/+5 | |
| 2017-01-07 | buffer: fix buffer_move bug | Marc André Tanner | 1 | -2/+1 | |
| Capacity also needs to be reset. | |||||
| 2017-01-07 | buffer: remove redundant function | Marc André Tanner | 1 | -4/+0 | |
| For some reason we ended up with two identical functions: buffer_{clear,terminate}. | |||||
| 2016-12-31 | buffer: implement buffer_move | Marc André Tanner | 1 | -0/+7 | |
| 2016-12-22 | buffer: make default buffer size overridable via C pre-processor | Marc André Tanner | 1 | -3/+5 | |
| 2016-12-20 | buffer: implement buffer_capacity utility function | Marc André Tanner | 1 | -0/+4 | |
| 2016-12-20 | buffer: implement buffer_appendf to append formatted content | Marc André Tanner | 1 | -13/+23 | |
| 2016-12-20 | buffer: fix error case in buffer_append0 | Marc André Tanner | 1 | -3/+6 | |
| Do not change buffer length when failing to append. | |||||
| 2016-10-05 | Fix various issues reported by coverity scan | Marc André Tanner | 1 | -1/+3 | |
| 2016-08-20 | buffer: add buffer_remove implementation | Marc André Tanner | 1 | -0/+10 | |
| 2016-05-18 | buffer: implement buffer_{v,}printf functions | Marc André Tanner | 1 | -0/+23 | |
| 2016-05-18 | buffer: add utility function to NUL terminate buffer | Marc André Tanner | 1 | -0/+5 | |
| 2016-04-03 | buffer: add buffer_content0 utility function | Marc André Tanner | 1 | -0/+6 | |
| 2016-04-03 | buffer: add buffer_content utility function | Marc André Tanner | 1 | -0/+4 | |
| 2016-04-03 | buffer: add buffer_length utility function | Marc André Tanner | 1 | -0/+4 | |
| 2016-02-25 | vis: ignore trailing NUL byte of register content by default | Marc André Tanner | 1 | -0/+7 | |
| This is handy when editing registers used for macros. | |||||
| 2016-01-30 | Implement system clipboard registers "* and "+ | Marc André Tanner | 1 | -0/+4 | |
| Both registers are currently treated identically. The actual system integration is performed by two shell scripts vis-copy and vis-paste. | |||||
| 2015-11-20 | buffer: tweak memory allocation strategy | Marc André Tanner | 1 | -4/+1 | |
| Do not simply double the requested size. Instead take the maximum of - the requested size - double the current buffer size This will use less memory for large register operations (e.g. deleting the whole file). | |||||
| 2015-11-19 | buffer: add some comments to clarify allocation strategy | Marc André Tanner | 1 | -0/+3 | |
| Closes #116 | |||||
| 2015-11-03 | buffer: add buffer_insert to insert data at an arbitrary position | Marc André Tanner | 1 | -10/+19 | |
| Use it to implement buffer_{pre,ap}pend. | |||||
| 2015-10-05 | buffer: add functions to prepend data to an existing buffer | Marc André Tanner | 1 | -0/+13 | |
| 2015-09-15 | buffer: add buffer_put0 to store a NUL terminated string | Marc André Tanner | 1 | -1/+5 | |
| 2015-09-15 | buffer: add buffer_append0 to append NUL terminated strings | Marc André Tanner | 1 | -0/+6 | |
| 2015-05-16 | Cleanup general purpose buffer API | Marc André Tanner | 1 | -7/+9 | |
| Introduce buffer_init to initialize a stack allocated buffer. Rename buffer_{alloc,free} functions because they do something different than the usual convention. They operate on the underlying buffer data but do not allocate/free an actual Buffer struct. | |||||
| 2015-03-31 | Check return value of realloc | Marc André Tanner | 1 | -5/+3 | |
| 2015-01-02 | Constify buffer API | Marc André Tanner | 1 | -2/+2 | |
| 2014-12-18 | Macro support | Marc André Tanner | 1 | -0/+54 | |
| At some point this should be optimized further at the moment there is some 20 byte overhead for each entered key. | |||||
