summaryrefslogtreecommitdiffstats
path: root/profile.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-27 20:09:57 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-27 20:09:57 -0800
commit76e6420f6b3503b76bd3eec00ab0e53d6ea17a20 (patch)
tree8b50298f41bd29d55bbd6f4301f36ad31dc0b008 /profile.h
parent006265d7a088cff4fea665159dbb454956c2cd76 (diff)
downloadsubsurface-76e6420f6b3503b76bd3eec00ab0e53d6ea17a20.tar.gz
Massive automated whitespace cleanup
I know everyone will hate it. Go ahead. Complain. Call me names. At least now things are consistent and reproducible. If you want changes, have your complaint come with a patch to scripts/whitespace.pl so that we can automate it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.h')
-rw-r--r--profile.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/profile.h b/profile.h
index ff51f4734..3c29b0505 100644
--- a/profile.h
+++ b/profile.h
@@ -5,14 +5,20 @@
extern "C" {
#endif
-typedef enum { STABLE, SLOW, MODERATE, FAST, CRAZY } velocity_t;
+typedef enum {
+ STABLE,
+ SLOW,
+ MODERATE,
+ FAST,
+ CRAZY
+} velocity_t;
struct membuffer;
struct divecomputer;
struct graphics_context;
struct plot_info;
struct plot_data {
- unsigned int in_deco:1;
+ unsigned int in_deco : 1;
int cylinderindex;
int sec;
/* pressure[0] is sensor pressure
@@ -37,7 +43,7 @@ struct plot_data {
struct plot_data *max[3];
int avg[3];
/* values calculated by us */
- unsigned int in_deco_calc:1;
+ unsigned int in_deco_calc : 1;
int ndl_calc;
int tts_calc;
int stoptime_calc;
@@ -109,13 +115,13 @@ void setup_pp_limits(struct graphics_context *gc);
#define MIDDLE (-0.5)
#define BOTTOM (-1)
-#define SCALEXGC(x) (((x) - gc.leftx) / (gc.rightx - gc.leftx) * gc.maxx)
-#define SCALEYGC(y) (((y) - gc.topy) / (gc.bottomy - gc.topy) * gc.maxy)
-#define SCALEGC(x,y) SCALEXGC(x),SCALEYGC(y)
+#define SCALEXGC(x) (((x) - gc.leftx) / (gc.rightx - gc.leftx) * gc.maxx)
+#define SCALEYGC(y) (((y) - gc.topy) / (gc.bottomy - gc.topy) * gc.maxy)
+#define SCALEGC(x, y) SCALEXGC(x), SCALEYGC(y)
-#define SCALEX(gc,x) (((x)-gc->leftx)/(gc->rightx-gc->leftx)*gc->maxx)
-#define SCALEY(gc,y) (((y)-gc->topy)/(gc->bottomy-gc->topy)*gc->maxy)
-#define SCALE(gc,x,y) SCALEX(gc,x),SCALEY(gc,y)
+#define SCALEX(gc, x) (((x) - gc->leftx) / (gc->rightx - gc->leftx) * gc->maxx)
+#define SCALEY(gc, y) (((y) - gc->topy) / (gc->bottomy - gc->topy) * gc->maxy)
+#define SCALE(gc, x, y) SCALEX(gc, x), SCALEY(gc, y)
#define SENSOR_PR 0
#define INTERPOLATED_PR 1
@@ -123,7 +129,7 @@ void setup_pp_limits(struct graphics_context *gc);
#define INTERPOLATED_PRESSURE(_entry) (_entry)->pressure[INTERPOLATED_PR]
#define GET_PRESSURE(_entry) (SENSOR_PRESSURE(_entry) ? SENSOR_PRESSURE(_entry) : INTERPOLATED_PRESSURE(_entry))
-#define SAC_WINDOW 45 /* sliding window in seconds for current SAC calculation */
+#define SAC_WINDOW 45 /* sliding window in seconds for current SAC calculation */
#ifdef __cplusplus
}