diff options
author | 2023-10-28 20:05:49 +0600 | |
---|---|---|
committer | 2023-10-28 20:05:49 +0600 | |
commit | 7455c3d0bda6ab60d3f67fafd0ce04428143bcbe (patch) | |
tree | 4a139278995f0602469b10223aaa448ae0a967f9 /src/teams.h | |
parent | c47100c331e1fcc4353b6ed83a1d3485c9331eaf (diff) | |
download | c-obp-example-7455c3d0bda6ab60d3f67fafd0ce04428143bcbe.tar.gz c-obp-example-7455c3d0bda6ab60d3f67fafd0ce04428143bcbe.zip |
Use better names for reference helpers
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
Diffstat (limited to 'src/teams.h')
-rw-r--r-- | src/teams.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/teams.h b/src/teams.h index 342ce95..2fc1be3 100644 --- a/src/teams.h +++ b/src/teams.h @@ -13,21 +13,21 @@ NEW(team); DEL(team); // field getters -SETTER(team, name, const ref(char)); -SETTER(team, institution, const ref(char)); -SETTER(team, member_name, const ref(char), int); +SETTER(team, name, ref(char)); +SETTER(team, institution, ref(char)); +SETTER(team, member_name, ref(char), int); SETTER(team, solved, uint8_t); // field setters -GETTER(team, name, char *); -GETTER(team, institution, char *); -GETTER(team, member_name, char *, int); +GETTER(team, name, ptr(char)); +GETTER(team, institution, ptr(char)); +GETTER(team, member_name, ptr(char), int); GETTER(team, solved, uint8_t); // helper functions DEFINE(team, printf, int); -DEFINE(team, fprintf, int, FILE *); -DEFINE(team, find_champion, team, team *, unsigned); +DEFINE(team, fprintf, int, ptr(FILE)); +DEFINE(team, find_champion, team, ptr(team), unsigned); # include "cobj.h" #endif /* __TEAMS_H__ */ |