subsurface/tests
Berthold Stoeger 7c9f46acd2 Core: remove MAX_CYLINDERS restriction
Instead of using fixed size arrays, use a new cylinder_table structure.
The code copies the weightsystem code, but is significantly more complex
because cylinders are such an integral part of the core.

Two functions to access the cylinders were added:
get_cylinder() and get_or_create_cylinder()
The former does a simple array access and supposes that the cylinder
exists. The latter is used by the parser(s) and if a cylinder with
the given id does not exist, cylinders up to that id are generated.

One point will make C programmers cringe: the cylinder structure is
passed by value. This is due to the way the table-macros work. A
refactoring of the table macros is planned. It has to be noted that
the size of a cylinder_t is 64 bytes, i.e. 8 long words on a 64-bit
architecture, so passing on the stack is probably not even significantly
slower than passing as reference.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-11-09 19:19:04 +01:00
..
.gitignore
CMakeLists.txt Convert the atmospheric pressure in the Information Tab to an editable field 2019-05-15 07:37:14 -07:00
testAirPressure.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
testAirPressure.h Convert the atmospheric pressure in the Information Tab to an editable field 2019-05-15 07:37:14 -07:00
testdivesiteduplication.cpp Cleanup: move trip-related functions into own translation unit 2019-06-19 13:11:10 -07:00
testdivesiteduplication.h
testgitstorage.cpp Cleanup: move trip-related functions into own translation unit 2019-06-19 13:11:10 -07:00
testgitstorage.h
testgpscoords.cpp
testgpscoords.h
testhelper.cpp Tests: allow compilation with older Qt versions 2018-10-12 08:22:44 -07:00
testhelper.h Bluetooth: add helper to separate BT name and address 2018-10-12 08:22:44 -07:00
testmerge.cpp Cleanup: move trip-related functions into own translation unit 2019-06-19 13:11:10 -07:00
testmerge.h
testparse.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
testparse.h
testparseperformance.cpp Cleanup: move trip-related functions into own translation unit 2019-06-19 13:11:10 -07:00
testparseperformance.h
testpicture.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
testpicture.h
testplan.cpp Core: remove MAX_CYLINDERS restriction 2019-11-09 19:19:04 +01:00
testplan.h A test for gases used in the planner 2018-10-30 15:33:43 +01:00
testprofile.cpp Cleanup: move trip-related functions into own translation unit 2019-06-19 13:11:10 -07:00
testprofile.h
testqml.cpp Cleanup: make qPref::registerQML() static 2019-04-04 09:29:45 -07:00
testqml.h
testqPrefCloudStorage.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefCloudStorage.h
testqPrefDisplay.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefDisplay.h
testqPrefDiveComputer.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefDiveComputer.h
testqPrefDivePlanner.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefDivePlanner.h
testqPrefGeneral.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefGeneral.h
testqPrefGeocoding.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefGeocoding.h
testqPrefLanguage.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefLanguage.h
testqPrefLocationService.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefLocationService.h
testqPrefPartialPressureGas.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefPartialPressureGas.h
testqPrefProxy.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefProxy.h
testqPrefTechnicalDetails.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefTechnicalDetails.h
testqPrefUnits.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefUnits.h
testqPrefUpdateManager.cpp tests: use new style syntax to connect QSignalSpy 2019-04-12 12:59:17 +03:00
testqPrefUpdateManager.h
testrenumber.cpp Cleanup: move trip-related functions into own translation unit 2019-06-19 13:11:10 -07:00
testrenumber.h
testtaglist.cpp Cleanup: move tag functions into own translation unit 2019-06-19 13:11:10 -07:00
testtaglist.h
testunitconversion.cpp Cleanup: remove pointless call to get_units 2019-10-27 07:35:46 -07:00
testunitconversion.h
tst_qPrefCloudStorage.qml
tst_qPrefDisplay.qml
tst_qPrefDiveComputer.qml Tests: remove testing of download_mode 2018-10-15 19:46:18 +02:00
tst_qPrefDivePlanner.qml
tst_qPrefGeneral.qml
tst_qPrefGeocoding.qml
tst_qPrefLanguage.qml
tst_qPrefLocationService.qml
tst_qPrefPartialPressureGas.qml
tst_qPrefProxy.qml
tst_qPrefTechnicalDetails.qml
tst_qPrefUnits.qml
tst_qPrefUpdateManager.qml