config: Drop configuration table size macros
Macros LND_TYPE_MAX, N_MAXNUKE, PLN_TYPE_MAX, P_MAX, SCT_TYPE_MAX, SHP_TYPE_MAX are only used to size a single array each. Eliminate. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
a374e6435d
commit
e379edc648
12 changed files with 17 additions and 25 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* Known contributors to this file:
|
||||
* Dave Pare, 1986
|
||||
* Markus Armbruster, 2004-2016
|
||||
* Markus Armbruster, 2004-2020
|
||||
*/
|
||||
|
||||
#ifndef NUKE_H
|
||||
|
@ -38,7 +38,6 @@
|
|||
#include "item.h"
|
||||
#include "types.h"
|
||||
|
||||
#define N_MAXNUKE 20
|
||||
#define MIN_DRNUKE_CONST 0.001
|
||||
|
||||
struct nukstr {
|
||||
|
@ -83,7 +82,7 @@ struct nchrstr {
|
|||
#define putnuke(n, p) ef_write(EF_NUKE, (n), (p))
|
||||
#define getnukep(n) ((struct nukstr *)ef_ptr(EF_NUKE, (n)))
|
||||
|
||||
extern struct nchrstr nchr[N_MAXNUKE + 1];
|
||||
extern struct nchrstr nchr[21];
|
||||
|
||||
/* src/lib/common/cargo.c */
|
||||
extern void nuk_carrier_change(struct nukstr *, int, int, int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue