Add SPDX header to core C files

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-04-27 20:18:03 +02:00
parent b641757a0c
commit 6399eaf271
43 changed files with 43 additions and 0 deletions

View file

@ -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"

View file

@ -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"

View file

@ -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

View file

@ -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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef DECO_H #ifndef DECO_H
#define DECO_H #define DECO_H

View file

@ -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"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef DEVICE_H #ifndef DEVICE_H
#define DEVICE_H #define DEVICE_H

View file

@ -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:

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef DIVELIST_H #ifndef DIVELIST_H
#define DIVELIST_H #define DIVELIST_H

View file

@ -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>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef FILE_H #ifndef FILE_H
#define FILE_H #define FILE_H

View file

@ -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"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef GITACCESS_H #ifndef GITACCESS_H
#define GITACCESS_H #define GITACCESS_H

View file

@ -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"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef LIBDIVECOMPUTER_H #ifndef LIBDIVECOMPUTER_H
#define LIBDIVECOMPUTER_H #define LIBDIVECOMPUTER_H

View file

@ -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"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include <string.h> #include <string.h>
#include "dive.h" #include "dive.h"

View file

@ -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>

View file

@ -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"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef MEMBUFFER_H #ifndef MEMBUFFER_H
#define MEMBUFFER_H #define MEMBUFFER_H

View file

@ -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"

View file

@ -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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef PLANNER_H #ifndef PLANNER_H
#define PLANNER_H #define PLANNER_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef PREF_H #ifndef PREF_H
#define PREF_H #define PREF_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef PREFSMACROS_H #ifndef PREFSMACROS_H
#define PREFSMACROS_H #define PREFSMACROS_H

View file

@ -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"

View file

@ -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"

View file

@ -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

View file

@ -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"

View file

@ -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 -

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* statistics.h * statistics.h
* *

View file

@ -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__

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Sane helper for 'strtod()'. * Sane helper for 'strtod()'.
* *

View file

@ -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>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef SUBSURFACESTARTUP_H #ifndef SUBSURFACESTARTUP_H
#define SUBSURFACESTARTUP_H #define SUBSURFACESTARTUP_H

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include <string.h> #include <string.h>
#include "dive.h" #include "dive.h"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* uemis-downloader.c * uemis-downloader.c
* *

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT
/* /*
* uemis.c * uemis.c
* *

View file

@ -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
*/ */

View file

@ -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>

View file

@ -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

View file

@ -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"

View file

@ -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