diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -13,19 +13,19 @@ void process(ref(char) line, unsigned idx, team obj) unsigned s; switch(idx) { case 1: - set(obj, name, line); + Set(obj, name, line); break; case 2: - set(obj, institution, line); + Set(obj, institution, line); break; case 3: sscanf(line, "%u", &s); - set(obj, solved, s); + Set(obj, solved, s); break; case 4: // falls through case 5: // falls through case 6: - set(obj, member_name, idx - 3, line); + Set(obj, member_name, idx - 3, line); break; default: break; @@ -48,7 +48,7 @@ int main() } for(i = 0; i < num; i++) { - teams[i] = new(team); + teams[i] = New(team); unsigned idx = 0; while (idx ++ < 6) { getline(line, 255, stdin); @@ -56,10 +56,10 @@ int main() } } - team champion = call(dref(teams), find_champion, teams, num); - call(champion, printf); + team champion = Call(dref(teams), find_champion, teams, num); + Call(champion, printf); - while(num --) del(team, teams[num]); + while(num --) Del(team, teams[num]); free(teams); return 0; |