mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: remove system includes from dive.c
Let the various source files include the system headers they need themselves. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2b86fe84f9
commit
f9c3227975
9 changed files with 20 additions and 13 deletions
10
core/dive.h
10
core/dive.h
|
@ -4,19 +4,13 @@
|
||||||
|
|
||||||
// dive and dive computer related structures and helpers
|
// dive and dive computer related structures and helpers
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <time.h>
|
|
||||||
#include <math.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#include "divemode.h"
|
#include "divemode.h"
|
||||||
#include "divecomputer.h"
|
#include "divecomputer.h"
|
||||||
#include "equipment.h"
|
#include "equipment.h"
|
||||||
#include "picture.h"
|
#include "picture.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
#include "gaspressures.h"
|
#include "gaspressures.h"
|
||||||
#include "pref.h"
|
#include "pref.h"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* simple structure to track the beginning and end tank pressure as
|
* simple structure to track the beginning and end tank pressure as
|
||||||
* well as the integral of depth over time spent while we have no
|
* well as the integral of depth over time spent while we have no
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <libdivecomputer/parser.h>
|
#include <libdivecomputer/parser.h>
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
#include "membuffer.h"
|
#include "membuffer.h"
|
||||||
#include "gettext.h"
|
#include "gettext.h"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
static int shearwater_cylinders(void *param, int columns, char **data, char **column)
|
static int shearwater_cylinders(void *param, int columns, char **data, char **column)
|
||||||
{
|
{
|
||||||
UNUSED(columns);
|
UNUSED(columns);
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
#include "gettext.h"
|
#include "gettext.h"
|
||||||
#include "tag.h"
|
#include "tag.h"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
static int dm4_events(void *param, int columns, char **data, char **column)
|
static int dm4_events(void *param, int columns, char **data, char **column)
|
||||||
{
|
{
|
||||||
UNUSED(columns);
|
UNUSED(columns);
|
||||||
|
|
|
@ -17,7 +17,9 @@
|
||||||
#include "tag.h"
|
#include "tag.h"
|
||||||
#include "subsurface-time.h"
|
#include "subsurface-time.h"
|
||||||
#include "trip.h"
|
#include "trip.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
static void write_attribute(struct membuffer *b, const char *att_name, const char *value, const char *separator)
|
static void write_attribute(struct membuffer *b, const char *att_name, const char *value, const char *separator)
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,19 +6,21 @@
|
||||||
* void calculate_stats_summary(struct stats_summary *out, bool selected_only);
|
* void calculate_stats_summary(struct stats_summary *out, bool selected_only);
|
||||||
* void calculate_stats_selected(stats_t *stats_selection);
|
* void calculate_stats_selected(stats_t *stats_selection);
|
||||||
*/
|
*/
|
||||||
#include "gettext.h"
|
|
||||||
#include <string.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
|
|
||||||
|
#include "statistics.h"
|
||||||
#include "dive.h"
|
#include "dive.h"
|
||||||
#include "display.h"
|
#include "display.h"
|
||||||
#include "event.h"
|
#include "event.h"
|
||||||
|
#include "gettext.h"
|
||||||
#include "sample.h"
|
#include "sample.h"
|
||||||
#include "subsurface-time.h"
|
#include "subsurface-time.h"
|
||||||
#include "trip.h"
|
#include "trip.h"
|
||||||
#include "statistics.h"
|
|
||||||
#include "units.h"
|
#include "units.h"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
static void process_temperatures(struct dive *dp, stats_t *stats)
|
static void process_temperatures(struct dive *dp, stats_t *stats)
|
||||||
{
|
{
|
||||||
temperature_t min_temp, mean_temp, max_temp = {.mkelvin = 0};
|
temperature_t min_temp, mean_temp, max_temp = {.mkelvin = 0};
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
#define STATS_MAX_TEMP 40 /* Max temp for stats bucket is 40C */
|
#define STATS_MAX_TEMP 40 /* Max temp for stats bucket is 40C */
|
||||||
#define STATS_TEMP_BUCKET 5 /* Size of buckets for temp range */
|
#define STATS_TEMP_BUCKET 5 /* Size of buckets for temp range */
|
||||||
|
|
||||||
|
struct dive;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
int period;
|
int period;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include "subsurface-string.h"
|
#include "subsurface-string.h"
|
||||||
#include "display.h"
|
#include "display.h"
|
||||||
#include "membuffer.h"
|
#include "membuffer.h"
|
||||||
#include <string.h>
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <fnmatch.h>
|
#include <fnmatch.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue