diff options
author | Matthew Seaman <matthew@FreeBSD.org> | 2017-01-03 12:27:55 +0000 |
---|---|---|
committer | Matthew Seaman <matthew@FreeBSD.org> | 2017-01-03 12:27:55 +0000 |
commit | 00adc5c753832b8d7afd63c67cd59361759e48c1 (patch) | |
tree | 71a07f1c0654d64e75f01cdf1601215b9c12c458 /textproc/libcsv/files/patch-libcsv.c | |
parent | sysutils/storcli: Update from 1.19.04 to 1.20.15 (diff) |
New maintainer: bob@eager.cx
Add new 'EXAMPLES' option
Use OPTIONS helpers
Spelling fixes for man pages
Add a csv_get_blk_size() function
PR: 215720
Submitted by: bob@eager.cx
Notes
Notes:
svn path=/head/; revision=430461
Diffstat (limited to 'textproc/libcsv/files/patch-libcsv.c')
-rw-r--r-- | textproc/libcsv/files/patch-libcsv.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/textproc/libcsv/files/patch-libcsv.c b/textproc/libcsv/files/patch-libcsv.c new file mode 100644 index 000000000000..7ef2bcb587f9 --- /dev/null +++ b/textproc/libcsv/files/patch-libcsv.c @@ -0,0 +1,18 @@ +--- libcsv.c.orig 2012-12-28 22:50:44 UTC ++++ libcsv.c +@@ -259,6 +259,15 @@ csv_set_blk_size(struct csv_parser *p, s + } + + size_t ++csv_get_blk_size(struct csv_parser *p) ++{ ++ /* Get the block size used to increment buffer size */ ++ if (p) ++ return p->blk_size; ++ return 0; ++} ++ ++size_t + csv_get_buffer_size(struct csv_parser *p) + { + /* Get the size of the entry buffer */ |