mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
|
||
|---|---|---|
| .. | ||
| cmake/Modules | ||
| CMakeLists.txt | ||
| smartrak.c | ||
| smrtk2ssrfc_window.cpp | ||
| smrtk2ssrfc_window.h | ||
| smrtk2ssrfc_window.ui | ||
| smtk2ssrf.desktop | ||
| smtk_standalone.cpp | ||