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:
parent
f75544ee70
commit
d9cafc156c
4 changed files with 26 additions and 26 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue