aboutsummaryrefslogtreecommitdiffstats
path: root/smtk-import/cmake
diff options
context:
space:
mode:
authorGravatar Salvador Cuñat <salvador.cunat@gmail.com>2018-09-05 21:20:29 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-06 12:23:51 -0700
commit856848466af607267d67ee3d44b71beaf20c5bf0 (patch)
tree1afc6fd2dd0196ba6a6097984e292fe6dc7d50a5 /smtk-import/cmake
parentdd633119bb42f0c38c522db2e4bd4eb27e95f8fe (diff)
downloadsubsurface-856848466af607267d67ee3d44b71beaf20c5bf0.tar.gz
[smtk-import] Add a function to get the size of an array
We can allocate fixed size arrays for smartrak tables as its size can be known in advance. Simply reading table->num_rows is too dangereous as smartrak tables have "holes" commonly. This is, they can look like: Idx | Txt 1 | blablabla 2 | blebleble 4 | blobloblo table->num_rows would give us 3, but we need to allocate 4 to get an array like: |0|blablabla |1|blebleble |2| |3|blobloblo as the idea is to use the table index to reference the array data. Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
Diffstat (limited to 'smtk-import/cmake')
0 files changed, 0 insertions, 0 deletions