mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Add SPDX header to core C files
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b641757a0c
commit
6399eaf271
43 changed files with 43 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
// Clang has a bug on zero-initialization of C structs.
|
// Clang has a bug on zero-initialization of C structs.
|
||||||
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
// Clang has a bug on zero-initialization of C structs.
|
// Clang has a bug on zero-initialization of C structs.
|
||||||
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef DATATRAK_HEADER_H
|
#ifndef DATATRAK_HEADER_H
|
||||||
#define DATATRAK_HEADER_H
|
#define DATATRAK_HEADER_H
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
/* calculate deco values
|
/* calculate deco values
|
||||||
* based on Bühlmann ZHL-16b
|
* based on Bühlmann ZHL-16b
|
||||||
* based on an implemention by heinrichs weikamp for the DR5
|
* based on an implemention by heinrichs weikamp for the DR5
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef DECO_H
|
#ifndef DECO_H
|
||||||
#define DECO_H
|
#define DECO_H
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "dive.h"
|
#include "dive.h"
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef DEVICE_H
|
#ifndef DEVICE_H
|
||||||
#define DEVICE_H
|
#define DEVICE_H
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
/* divelist.c */
|
/* divelist.c */
|
||||||
/* core logic for the dive list -
|
/* core logic for the dive list -
|
||||||
* accessed through the following interfaces:
|
* accessed through the following interfaces:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef DIVELIST_H
|
#ifndef DIVELIST_H
|
||||||
#define DIVELIST_H
|
#define DIVELIST_H
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef FILE_H
|
#ifndef FILE_H
|
||||||
#define FILE_H
|
#define FILE_H
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
// Clang has a bug on zero-initialization of C structs.
|
// Clang has a bug on zero-initialization of C structs.
|
||||||
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef GITACCESS_H
|
#ifndef GITACCESS_H
|
||||||
#define GITACCESS_H
|
#define GITACCESS_H
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
// Clang has a bug on zero-initialization of C structs.
|
// Clang has a bug on zero-initialization of C structs.
|
||||||
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef LIBDIVECOMPUTER_H
|
#ifndef LIBDIVECOMPUTER_H
|
||||||
#define LIBDIVECOMPUTER_H
|
#define LIBDIVECOMPUTER_H
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
/* linux.c */
|
/* linux.c */
|
||||||
/* implements Linux specific functions */
|
/* implements Linux specific functions */
|
||||||
#include "dive.h"
|
#include "dive.h"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "dive.h"
|
#include "dive.h"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
/* macos.c */
|
/* macos.c */
|
||||||
/* implements Mac OS X specific functions */
|
/* implements Mac OS X specific functions */
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
// Clang has a bug on zero-initialization of C structs.
|
// Clang has a bug on zero-initialization of C structs.
|
||||||
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef MEMBUFFER_H
|
#ifndef MEMBUFFER_H
|
||||||
#define MEMBUFFER_H
|
#define MEMBUFFER_H
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
// Clang has a bug on zero-initialization of C structs.
|
// Clang has a bug on zero-initialization of C structs.
|
||||||
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
/* planner.c
|
/* planner.c
|
||||||
*
|
*
|
||||||
* code that allows us to plan future dives
|
* code that allows us to plan future dives
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef PLANNER_H
|
#ifndef PLANNER_H
|
||||||
#define PLANNER_H
|
#define PLANNER_H
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef PREF_H
|
#ifndef PREF_H
|
||||||
#define PREF_H
|
#define PREF_H
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef PREFSMACROS_H
|
#ifndef PREFSMACROS_H
|
||||||
#define PREFSMACROS_H
|
#define PREFSMACROS_H
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
// Clang has a bug on zero-initialization of C structs.
|
// Clang has a bug on zero-initialization of C structs.
|
||||||
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
// Clang has a bug on zero-initialization of C structs.
|
// Clang has a bug on zero-initialization of C structs.
|
||||||
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef HTML_SAVE_H
|
#ifndef HTML_SAVE_H
|
||||||
#define HTML_SAVE_H
|
#define HTML_SAVE_H
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
// Clang has a bug on zero-initialization of C structs.
|
// Clang has a bug on zero-initialization of C structs.
|
||||||
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
/* statistics.c
|
/* statistics.c
|
||||||
*
|
*
|
||||||
* core logic for the Info & Stats page -
|
* core logic for the Info & Stats page -
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
/*
|
/*
|
||||||
* statistics.h
|
* statistics.h
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef STRNDUP_H
|
#ifndef STRNDUP_H
|
||||||
#define STRNDUP_H
|
#define STRNDUP_H
|
||||||
#if __WIN32__
|
#if __WIN32__
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
/*
|
/*
|
||||||
* Sane helper for 'strtod()'.
|
* Sane helper for 'strtod()'.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#include "subsurfacestartup.h"
|
#include "subsurfacestartup.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef SUBSURFACESTARTUP_H
|
#ifndef SUBSURFACESTARTUP_H
|
||||||
#define SUBSURFACESTARTUP_H
|
#define SUBSURFACESTARTUP_H
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "dive.h"
|
#include "dive.h"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
/*
|
/*
|
||||||
* uemis-downloader.c
|
* uemis-downloader.c
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
/*
|
/*
|
||||||
* uemis.c
|
* uemis.c
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
/*
|
/*
|
||||||
* defines and prototypes for the uemis Zurich SDA file parser
|
* defines and prototypes for the uemis Zurich SDA file parser
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
/* windows.c */
|
/* windows.c */
|
||||||
/* implements Windows specific functions */
|
/* implements Windows specific functions */
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef WORLDMAP_OPTIONS_H
|
#ifndef WORLDMAP_OPTIONS_H
|
||||||
#define WORLDMAP_OPTIONS_H
|
#define WORLDMAP_OPTIONS_H
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
// Clang has a bug on zero-initialization of C structs.
|
// Clang has a bug on zero-initialization of C structs.
|
||||||
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#ifndef WORLDMAP_SAVE_H
|
#ifndef WORLDMAP_SAVE_H
|
||||||
#define WORLDMAP_SAVE_H
|
#define WORLDMAP_SAVE_H
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue