From 8921ce29627b45d78d1870d550418fc3d13dcdbe Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sat, 30 Apr 2022 05:28:06 -0700 Subject: grow memory for visits as needed --- match.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'match.h') diff --git a/match.h b/match.h index 9cdb261..ef75bac 100644 --- a/match.h +++ b/match.h @@ -15,11 +15,12 @@ struct leg { char *name; int start; int rem; - int n_visits; + int n_visits, size_visits; struct visit *visits; }; struct leg *leg_init(int points, char *name); void leg_free(struct leg *l); +void leg_grow_visits(struct leg *l); #endif -- cgit v1.2.3-70-g09d2