[CCR PATCH] Split profile.c into two files, with gas calculations separate.

Willem Ferguson willemferguson at zoology.up.ac.za
Sun Aug 24 12:06:18 PDT 2014

Subject: [PATCH 2/2] CCR code: Split profile.c into two files, with gas
  calculations separate.

This patch implements a separation of the code for gas pressure
calculations from the rest of the code in profile.c. The latter
file is now split into: profile.c and gaspressures.c. The
details of the transferred functions is given at the top of
gaspressures.c. The following changes were made:
1) dive.h: The function types of calculate_depth_to_mbar
    and depth_to_mbar were made non-static in order to make them
    available within gaspressures.c.
2) profile.c: Prototypes for the functions in gaspressures.c
    were inserted at the top of profile.c. Ten functions were
    transferred from profile.c to gaspressures.c
3) gaspressures.c as well as a short header, gaspressures.h
    were created.
4) subsurface.pro: gaspressures.h and gaspressures.c added.

For the gas pressure calculations for CCR dives, gaspressures.c
forms the immediate basis for further code development.

Signed-off-by: Willem Ferguson <willemferguson at zoology.up.ac.za>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-CCR-code-Split-profile.c-into-two-files-with-gas-cal.patch
Type: text/x-diff
Size: 25203 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140824/32d8e37a/attachment.patch>

More information about the subsurface mailing list