Add spreadsheet program

This commit is contained in:
Ole Morud
2022-12-25 16:06:34 +01:00
committed by Ole Morud
commit 2712a1bf3e
24 changed files with 1314 additions and 0 deletions

21
src/celltree.h Normal file
View File

@@ -0,0 +1,21 @@
#ifndef CELLTREE_H
#define CELLTREE_H
#include <stdbool.h>
#include "cell.h"
/* TODO: implement red-black tree */
struct celltree {
struct cell *cell;
struct celltree *right;
struct celltree *left;
bool isRed;
};
void celltree_delete(struct celltree *root);
struct cell *celltree_search(struct celltree *root, size_t x, size_t y);
void celltree_insert(struct celltree **root, struct cell *c);
#endif