mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
The never ending, futile fight for whitespace consistency
I just need to write a tool that does this... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7757363953
commit
115e5e5fbc
16 changed files with 116 additions and 130 deletions
|
@ -194,9 +194,9 @@ void get_dive_gas(struct dive *dive, int *o2_p, int *he_p, int *o2low_p)
|
|||
int used = 0;
|
||||
int first_gas_explicit = 0;
|
||||
|
||||
while (dc){
|
||||
while (dc) {
|
||||
struct event *event = dc->events;
|
||||
while(event){
|
||||
while (event) {
|
||||
if (event->value) {
|
||||
if (event->name && !strcmp(event->name, "gaschange")) {
|
||||
unsigned int event_he = event->value >> 16;
|
||||
|
@ -204,7 +204,7 @@ void get_dive_gas(struct dive *dive, int *o2_p, int *he_p, int *o2low_p)
|
|||
|
||||
if (event->time.seconds < 30)
|
||||
first_gas_explicit = 1;
|
||||
if (is_air(o2, he)){
|
||||
if (is_air(o2, he)) {
|
||||
if (is_air(event_o2 * 10, event_he * 10))
|
||||
used = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue