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
|
@ -30,7 +30,7 @@
|
|||
* Dave Pare, 1986
|
||||
* Ken Stevens, 1995
|
||||
* Steve McClure, 1998
|
||||
* Markus Armbruster, 2004-2016
|
||||
* Markus Armbruster, 2004-2020
|
||||
*/
|
||||
|
||||
#ifndef PLANE_H
|
||||
|
@ -41,7 +41,6 @@
|
|||
#include "queue.h"
|
||||
#include "types.h"
|
||||
|
||||
#define PLN_TYPE_MAX 46
|
||||
#define PLANE_MINEFF 10
|
||||
|
||||
struct plnstr {
|
||||
|
@ -135,7 +134,7 @@ struct plist {
|
|||
#define putplane(n, p) ef_write(EF_PLANE, (n), (p))
|
||||
#define getplanep(n) ((struct plnstr *)ef_ptr(EF_PLANE, (n)))
|
||||
|
||||
extern struct plchrstr plchr[PLN_TYPE_MAX + 2];
|
||||
extern struct plchrstr plchr[48];
|
||||
|
||||
struct shiplist {
|
||||
int uid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue