fix construction of maps

This commit is contained in:
Felix Van der Jeugt 2023-10-30 23:38:10 +01:00
parent 35f48eb570
commit cdd56b8e25
No known key found for this signature in database
GPG key ID: 58B209295023754D
2 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,9 @@
#ifndef SORTED_MAP
#define SORTED_MAP
/* A map datastructure which maps strings to void*.
* A binary search tree putting string equal to or smaller than the current node left.
*/
enum nodetype { EMPTY, LEAF, INTERN };
typedef struct node {