aboutsummaryrefslogtreecommitdiff
path: root/src/dstring.h
AgeCommit message (Collapse)AuthorFiles
2024-01-14Upgrade copyright yearsSergey Poznyakoff1
2023-04-28Whitespace cleanupSergey Poznyakoff1
2023-01-22Update copyright yearsSergey Poznyakoff1
2022-01-02Update copyright yearsSergey Poznyakoff1
2021-08-07Rewrite dynamic string support.Sergey Poznyakoff1
* src/dstring.c (ds_init): Take a single argument. (ds_free): New function. (ds_resize): Take a single argument. Use x2nrealloc to expand the storage. (ds_reset,ds_append,ds_concat,ds_endswith): New function. (ds_fgetstr): Rewrite. In particular, this fixes integer overflow. * src/dstring.h (dynamic_string): Keep both the allocated length (ds_size) and index of the next free byte in the string (ds_idx). (ds_init,ds_resize): Change signature. (ds_len): New macro. (ds_free,ds_reset,ds_append,ds_concat,ds_endswith): New protos. * src/copyin.c: Use new ds_ functions. * src/copyout.c: Likewise. * src/copypass.c: Likewise. * src/util.c: Likewise.
2021-01-06Update copyright yearsSergey Poznyakoff1
2020-02-08Update copyright yearsSergey Poznyakoff1
2017-01-02Update copyright yearsSergey Poznyakoff1
2015-09-12Update docs, use gettext 0.19.6Sergey Poznyakoff1
2014-01-30Update copyright years.Sergey Poznyakoff1
2010-02-11Update copyright years.Sergey Poznyakoff1
2007-06-27Relicense under GPLv3Sergey Poznyakoff1
2005-05-19Updated FSF postal mail address.Sergey Poznyakoff1
2004-09-06Switched to ANSI C (sigh)Sergey Poznyakoff1
2004-02-27Added to the repositorySergey Poznyakoff1

Return to:

Send suggestions and report system problems to the System administrator.