summaryrefslogtreecommitdiff
path: root/match.h
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-30 05:28:06 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-30 05:28:06 -0700
commit8921ce29627b45d78d1870d550418fc3d13dcdbe (patch)
tree1b5b37a317c93d55247ac3da719a8dcd8eaf072b /match.h
parentfbdb393ae1e2ea5d368e4dda1577a10715e26a75 (diff)
downloaddartboat-8921ce29627b45d78d1870d550418fc3d13dcdbe.tar.gz
dartboat-8921ce29627b45d78d1870d550418fc3d13dcdbe.tar.xz
grow memory for visits as needed
Diffstat (limited to 'match.h')
-rw-r--r--match.h3
1 files changed, 2 insertions, 1 deletions
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