diff options
author | Remi Collet <remi@remirepo.net> | 2020-03-24 12:14:43 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-03-24 12:14:43 +0100 |
commit | 0572e619765eeca7505d93050cb6524381a5977a (patch) | |
tree | 9b50cd327134afd3084cc801780ac3a372a2b3b0 /libxlsxio-feat.patch | |
parent | bc6d4ea585458f967e49b464487b42ea91961dde (diff) |
update to 0.2.26
drop patch merged upstream
Diffstat (limited to 'libxlsxio-feat.patch')
-rw-r--r-- | libxlsxio-feat.patch | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/libxlsxio-feat.patch b/libxlsxio-feat.patch deleted file mode 100644 index c22712c..0000000 --- a/libxlsxio-feat.patch +++ /dev/null @@ -1,59 +0,0 @@ -Adapted for 0.2.24 from changes in https://github.com/viest/xlsxio - - -From 2ca1dd9967982dc3f4b5b4d49e019b95250893bf Mon Sep 17 00:00:00 2001 -From: viest <dev@service.viest.me> -Date: Sat, 29 Feb 2020 22:15:15 +0800 -Subject: [PATCH] Feat: get read sheet information - ---- - .gitignore | 2 ++ - include/xlsxio_read.h | 12 +++++++++ - lib/xlsxio_read.c | 63 +++++++++++++++++++++++++------------------ - 3 files changed, 51 insertions(+), 26 deletions(-) - -diff --git a/include/xlsxio_read.h b/include/xlsxio_read.h -index b3d05a0..9ae382d 100644 ---- a/include/xlsxio_read.h -+++ b/include/xlsxio_read.h -@@ -224,6 +224,18 @@ DLL_EXPORT_XLSXIO const XLSXIOCHAR* xlsxioread_sheetlist_next (xlsxioreadersheet - /*! \brief read handle for worksheet object */ - typedef struct xlsxio_read_sheet_struct* xlsxioreadersheet; - -+/*! \brief get the index of the last column of the current worksheet row -+ * \param sheethandle read handle for worksheet object -+ * \sa xlsxioread_sheet_open() -+ */ -+DLL_EXPORT_XLSXIO int xlsxioread_sheet_last_column_index(xlsxioreadersheet sheethandle); -+ -+/*! \brief get worksheet open flags -+ * \param sheethandle read handle for worksheet object -+ * \sa xlsxioread_sheet_open() -+ */ -+DLL_EXPORT_XLSXIO unsigned int xlsxioread_sheet_flags(xlsxioreadersheet sheethandle); -+ - /*! \brief open worksheet - * \param handle read handle for .xlsx object - * \param sheetname worksheet name (NULL for first sheet) -diff --git a/lib/xlsxio_read.c b/lib/xlsxio_read.c -index 5d33705..2c63237 100644 ---- a/lib/xlsxio_read.c -+++ b/lib/xlsxio_read.c -@@ -1262,6 +1262,17 @@ struct xlsxio_read_sheet_struct { - size_t paddingcol; - }; - -+DLL_EXPORT_XLSXIO int xlsxioread_sheet_last_column_index(xlsxioreadersheet sheethandle) -+{ -+ return (int)sheethandle->lastcolnr; -+} -+ -+ -+DLL_EXPORT_XLSXIO unsigned int xlsxioread_sheet_flags(xlsxioreadersheet sheethandle) -+{ -+ return (int)sheethandle->processcallbackdata.flags; -+} -+ - DLL_EXPORT_XLSXIO int xlsxioread_process (xlsxioreader handle, const XLSXIOCHAR* sheetname, unsigned int flags, xlsxioread_process_cell_callback_fn cell_callback, xlsxioread_process_row_callback_fn row_callback, void* callbackdata) - { - int result = 0; |