| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | CMakeLists.txt: Fix missing parameter namesHEADmaster | Xavier Del Campo Romero | 2023-11-10 | 1 | -1/+1 |
| | | | | | | | VERSION must be indicated when passing a version string to project(). Also, LANGUAGES must be also be passed when the language name is not the only argument to project() (apart from the project name itself). | ||||
| * | Makefile: Set -O1v0.1.0-rc4v0.1.0 | Xavier Del Campo Romero | 2023-10-25 | 1 | -1/+1 |
| | | |||||
| * | Makefile: Adhere to GNU Make directory variables | Xavier Del Campo Romero | 2023-10-25 | 1 | -15/+17 |
| | | |||||
| * | Makefile: Build dynstr also as a shared library | Xavier Del Campo Romero | 2023-10-25 | 2 | -7/+23 |
| | | |||||
| * | Makefile: Update copyright year | Xavier Del Campo Romero | 2023-10-25 | 1 | -1/+1 |
| | | |||||
| * | CMakeLists.txt: set project VERSIONv0.1.0-rc3 | Xavier Del Campo Romero | 2023-10-25 | 1 | -1/+1 |
| | | |||||
| * | CMakeLists.txt: Stop forcing STATIC libraryv0.1.0-rc2 | Xavier Del Campo Romero | 2023-10-16 | 1 | -1/+1 |
| | | | | | Distribution packagers might prefer dynstr as a shared object. | ||||
| * | Makefile: Fix wrong installation directory | Xavier Del Campo Romero | 2023-10-16 | 1 | -3/+3 |
| | | | | | Libraries are meant to be placed in $PREFIX/lib, and not $PREFIX/bin. | ||||
| * | Install .pc file | Xavier Del Campo Romero | 2023-10-16 | 3 | -1/+25 |
| | | |||||
| * | Support installationv0.1.0-rc1 | Xavier Del Campo Romero | 2023-10-02 | 2 | -0/+11 |
| | | |||||
| * | CMakeLists.txt: add cmake_minimum_required | Xavier Del Campo Romero | 2023-10-02 | 1 | -0/+1 |
| | | | | | | This command is mandatory for all CMake projects. 3.0 was chosen since dynstr does not require any newer CMake features. | ||||
| * | CMakeLists.txt: Set project language to C | Xavier Del Campo Romero | 2023-08-02 | 1 | -1/+1 |
| | | | | | | Otherwise, CMake tests the system C++ compiler by default, which is not a requirement for dynstr. | ||||
| * | Makefile: add clean target | Xavier Del Campo Romero | 2023-08-01 | 1 | -0/+3 |
| | | |||||
| * | Support POSIX make(1) as build system | Xavier Del Campo Romero | 2023-05-28 | 2 | -1/+26 |
| | | |||||
| * | dynstr.c: Fix memory leak if realloc(3) fails | Xavier Del Campo Romero | 2023-03-08 | 1 | -15/+17 |
| | | | | | | | | | | | According to C99 ยง7.20.3.4: If memory for the new object cannot be allocated, the old object is not deallocated and its value is unchanged. Therefore, a temporary pointer must be used to ensure the original object can still be deallocated should realloc(3) return a null pointer. | ||||
| * | dynstr.c: Make zero-initialization portable | Xavier Del Campo Romero | 2023-03-08 | 1 | -1/+1 |
| | | |||||
| * | Update copyright notice | Xavier Del Campo Romero | 2023-03-08 | 2 | -2/+2 |
| | | |||||
| * | Fix lifetime issues with va_list | Xavier Del Campo Romero | 2020-10-14 | 1 | -34/+53 |
| | | | | | | | | The standard requires both va_start and va_end to be called from the same function. On the other hand, vsnprintf and vsprintf leave the va_list on an undefined state according to the standard, so a copy must be created before a second call to these functions. | ||||
| * | Add missing do/while (0) on convenience macros | Xavier Del Campo Romero | 2020-10-08 | 1 | -2/+4 |
| | | |||||
| * | Move convenience macros down for readability | Xavier Del Campo Romero | 2020-10-08 | 1 | -69/+69 |
| | | |||||
| * | Add convenience macros for dynstr_prepend | Xavier Del Campo Romero | 2020-10-08 | 1 | -0/+33 |
| | | |||||
| * | Add dynstr_vprepend | Xavier Del Campo Romero | 2020-10-08 | 2 | -32/+42 |
| | | |||||
| * | Add dynstr_vappend | Xavier Del Campo Romero | 2020-10-06 | 2 | -20/+35 |
| | | |||||
| * | Avoid exceeding 80-column per line | Xavier Del Campo Romero | 2020-09-03 | 1 | -1/+5 |
| | | |||||
| * | Avoid potential undesirable effects caused by macros | Xavier Del Campo Romero | 2020-09-03 | 1 | -4/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | The macros provided by this library would expand to an unguarded conditional that could have potential unwanted consequences. Consider the following example: dynstr_append_or_ret_null(&d, "example"); else { /* This is unexpectedly working. */ } The example above would expand to: if (dynstr_append(__VA_ARGS__) != DYNSTR_OK) return false; else { /* This is unexpectedly working. */ } Which is valid C yet allows possibly unexpected behaviour. The solution is then to enclose these conditions into a `do while (0)` statement. | ||||
| * | Rephrase documentation to avoid confusion | Xavier Del Campo Romero | 2020-09-03 | 1 | -5/+11 |
| | | |||||
| * | Call dynstr_init on dynstr_free | Xavier Del Campo Romero | 2020-09-03 | 2 | -4/+6 |
| | | |||||
| * | Updated README.md with dynstr_prepend example | Xavier Del Campo Romero | 2020-08-04 | 1 | -1/+2 |
| | | |||||
| * | dynstr_prepend(), fixed typo in comment | Xavier Del Campo Romero | 2020-08-03 | 2 | -1/+58 |
| | | |||||
| * | Added license notice to CMakeLists.txt, used PROJECT_NAME | Xavier Del Campo Romero | 2020-07-26 | 1 | -4/+16 |
| | | |||||
| * | Added convenience macro dynstr_append_or_ret_nonzero | Xavier Del Campo Romero | 2020-07-26 | 1 | -1/+6 |
| | | |||||
| * | Added CMakeLists.txt for other projects to use | Xavier Del Campo Romero | 2020-07-09 | 1 | -0/+4 |
| | | |||||
| * | Various minor changes | Xavier Del Campo Romero | 2020-06-12 | 2 | -14/+11 |
| | | | | | | | | | - Removed trailing ';' from convenience macros. - Convenience macros did not really need the ## __VA_ARGS__ extension. Simply grouping all parameters into '...', while decreasing readability, solves the portability issue. - Added C99 check to dynstr.c. | ||||
| * | Avoid free() if no string is present | Xavier Del Campo Romero | 2020-03-25 | 1 | -2/+5 |
| | | |||||
| * | Removed esp-idf files | Xavier Del Campo Romero | 2020-03-23 | 2 | -7/+0 |
| | | |||||
| * | Minor change | Xavi Del Campo | 2020-03-21 | 1 | -2/+2 |
| | | |||||
| * | Added comments to dynstr_dup() | Xavi Del Campo | 2020-03-21 | 1 | -0/+7 |
| | | |||||
| * | Various changes and improvements | XaviDCR92 | 2020-03-21 | 2 | -17/+69 |
| | | | | | | | - Replaced int by specific, more meaningful error codes. - C99 states realloc can be safely called using NULL pointers. - New function dynstr_dup(). | ||||
| * | Fixed typo | XaviDCR92 | 2020-03-21 | 1 | -1/+1 |
| | | |||||
| * | Merge branch 'master' of https://github.com/XaviDCR92/dynstr | XaviDCR92 | 2020-03-21 | 1 | -22/+25 |
| |\ | |||||
| | * | Solved compiler error by adding scope block | Xavi Del Campo | 2020-03-21 | 1 | -22/+25 |
| | | | |||||
| * | | Added compile-time error when C99 is not present | XaviDCR92 | 2020-03-21 | 1 | -0/+4 |
| |/ | |||||
| * | Build files for esp-idf | Xavier Del Campo Romero | 2020-03-20 | 2 | -0/+7 |
| | | |||||
| * | New convenience macro dynstr_append_or_ret_zero | Xavier Del Campo Romero | 2020-03-20 | 1 | -2/+7 |
| | | |||||
| * | Replaced unneeded calloc() by malloc() | Xavier Del Campo Romero | 2020-03-20 | 1 | -2/+2 |
| | | |||||
| * | First commit | Xavi Del Campo | 2020-03-19 | 5 | -0/+389 |
