Clean up use of union empobj_storage * as parameter type

Use it only for functions that assign objects through a pointer
parameter.  Anything else can and should use struct empobj *.
This commit is contained in:
Markus Armbruster 2012-07-01 12:21:58 +02:00
parent f75544ee70
commit d9cafc156c
4 changed files with 26 additions and 26 deletions

View file

@ -57,9 +57,9 @@ struct trdstr {
coord trd_y;
};
extern int trade_check_ok(struct trdstr *, union empobj_storage *);
extern char *trade_nameof(struct trdstr *, union empobj_storage *);
extern int trade_desc(struct trdstr *, union empobj_storage *);
extern int trade_check_ok(struct trdstr *, struct empobj *);
extern char *trade_nameof(struct trdstr *, struct empobj *);
extern int trade_desc(struct trdstr *, struct empobj *);
extern int trade_getitem(struct trdstr *, union empobj_storage *);
#define gettrade(n, p) ef_read(EF_TRADE, (n), (p))