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__
// Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifdef __clang__
// Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers"

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* calculate deco values
* based on Bühlmann ZHL-16b
* 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
#define DECO_H

View file

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

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* divelist.c */
/* core logic for the dive list -
* accessed through the following interfaces:

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifdef __clang__
// Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers"

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifdef __clang__
// Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers"

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* linux.c */
/* implements Linux specific functions */
#include "dive.h"

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* macos.c */
/* implements Mac OS X specific functions */
#include <stdlib.h>

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifdef __clang__
// Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers"

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifdef __clang__
// Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* planner.c
*
* code that allows us to plan future dives

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifdef __clang__
// Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifdef __clang__
// Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers"

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifdef __clang__
// Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers"

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* statistics.c
*
* core logic for the Info & Stats page -

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/*
* defines and prototypes for the uemis Zurich SDA file parser
*/

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
/* windows.c */
/* implements Windows specific functions */
#include <io.h>

View file

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

View file

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0
#ifdef __clang__
// Clang has a bug on zero-initialization of C structs.
#pragma clang diagnostic ignored "-Wmissing-field-initializers"

View file

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