SPDXify the code.
This commit is contained in:
parent
c0a4d55d6c
commit
782c5c3f29
9 changed files with 56 additions and 13 deletions
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
* Actions for the duneon-running code.
|
||||
*
|
||||
* Copyright (c) 1977, 2005 by Will Crowther and Don Woods
|
||||
* Copyright (c) 2017 by Eric S. Raymond
|
||||
* SPDX-License-Identifier: BSD-2-clause
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -112,6 +112,9 @@
|
|||
# %s = an ASCII string
|
||||
# %S = The letter 's' or nothing (if a previous %d value is exactly 1)
|
||||
# %V = substitute program version string
|
||||
#
|
||||
# Copyright (c) 2017 by Eric S. Raymond
|
||||
# SPDX-License-Identifier: BSD-2-clause
|
||||
|
||||
motions: !!omap
|
||||
- MOT_0:
|
||||
|
|
4
cheat.c
4
cheat.c
|
@ -3,6 +3,10 @@
|
|||
* not happen. It leverages chunks of advent, mostly initialize() and
|
||||
* savefile(), so we know we're always outputing save files that advent
|
||||
* can import.
|
||||
*
|
||||
* Copyright (c) 1977, 2005 by Will Crowther and Don Woods
|
||||
* Copyright (c) 2017 by Eric S. Raymond
|
||||
* SPDX-License-Identifier: BSD-2-clause
|
||||
*/
|
||||
#include <getopt.h>
|
||||
#include <stdlib.h>
|
||||
|
|
12
init.c
12
init.c
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
* Initialisation
|
||||
*
|
||||
* Copyright (c) 1977, 2005 by Will Crowther and Don Woods
|
||||
* Copyright (c) 2017 by Eric S. Raymond
|
||||
* SPDX-License-Identifier: BSD-2-clause
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
@ -6,10 +14,6 @@
|
|||
|
||||
#include "advent.h"
|
||||
|
||||
/*
|
||||
* Initialisation
|
||||
*/
|
||||
|
||||
struct settings_t settings = {
|
||||
.logfp = NULL,
|
||||
.oldstyle = false,
|
||||
|
|
4
main.c
4
main.c
|
@ -11,6 +11,10 @@
|
|||
* ESR apologizes for the remaing gotos (now confined to one function
|
||||
* in this file - there used to be over 350 of them, *everywhere*).
|
||||
* Applying the Structured Program Theorem can be hard.
|
||||
*
|
||||
* Copyright (c) 1977, 2005 by Will Crowther and Don Woods
|
||||
* Copyright (c) 2017 by Eric S. Raymond
|
||||
* SPDX-License-Identifier: BSD-2-clause
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
# The nontrivial part of this is the compilation of the YAML for
|
||||
# movement rules to the travel array that's actually used by
|
||||
# playermove().
|
||||
#
|
||||
# Copyright (c) 2017 by Eric S. Raymond
|
||||
# SPDX-License-Identifier: BSD-2-clause
|
||||
|
||||
import sys, yaml
|
||||
|
||||
|
|
8
misc.c
8
misc.c
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
* I/O and support riutines.
|
||||
*
|
||||
* Copyright (c) 1977, 2005 by Will Crowther and Don Woods
|
||||
* Copyright (c) 2017 by Eric S. Raymond
|
||||
* SPDX-License-Identifier: BSD-2-clause
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
|
16
saveresume.c
16
saveresume.c
|
@ -1,3 +1,14 @@
|
|||
/*
|
||||
* Saving and resuming.
|
||||
*
|
||||
* (ESR) This replaces a bunch of particularly nasty FORTRAN-derived code;
|
||||
* see the history.adoc file in the source distribution for discussion.
|
||||
*
|
||||
* Copyright (c) 1977, 2005 by Will Crowther and Don Woods
|
||||
* Copyright (c) 2017 by Eric S. Raymond
|
||||
* SPDX-License-Identifier: BSD-2-clause
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <editline/readline.h>
|
||||
|
@ -7,11 +18,6 @@
|
|||
#include "advent.h"
|
||||
#include "dungeon.h"
|
||||
|
||||
/*
|
||||
* (ESR) This replaces a bunch of particularly nasty FORTRAN-derived code;
|
||||
* see the history.adoc file in the source distribution for discussion.
|
||||
*/
|
||||
|
||||
#define VRSION 28 /* bump on save format change */
|
||||
|
||||
/*
|
||||
|
|
11
score.c
11
score.c
|
@ -1,11 +1,14 @@
|
|||
/*
|
||||
* Scoring and wrap-up.
|
||||
*
|
||||
* Copyright (c) 1977, 2005 by Will Crowther and Don Woods
|
||||
* Copyright (c) 2017 by Eric S. Raymond
|
||||
* SPDX-License-Identifier: BSD-2-clause
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include "advent.h"
|
||||
#include "dungeon.h"
|
||||
|
||||
/*
|
||||
* scoring and wrap-up
|
||||
*/
|
||||
|
||||
static int mxscor; /* ugh..the price for having score() not exit. */
|
||||
|
||||
long score(enum termination mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue