ref: 41a004af782c71c7f72e06c727e10a2ef9c26c01
parent: fd50731b43864c9e2e7dcaf1a8aae4d3a3c7c8fb
author: qwx <qwx@sciops.net>
date: Tue Feb 22 21:34:11 EST 2022
link in qtrees
--- a/fns.h
+++ b/fns.h
@@ -75,6 +75,8 @@
void dprint(char *, ...);
int max(int, int);
int min(int, int);
+QNode* qtmerge(QNode*);
+QNode* qtsplit(QNode*);
void clearvec(Vector*);
void popsparsevec(Vector*, int);
void* pushsparsevec(Vector*, void*);
--- a/mkfile
+++ b/mkfile
@@ -10,6 +10,7 @@
net.$O\
path.$O\
pheap.$O\
+ qtree.$O\
sce.$O\
sim.$O\
sim.gather.$O\
--- a/qtree.c
+++ b/qtree.c
@@ -21,7 +21,7 @@
freeq.prev = q;
}
-void
+static void
qtfree(QNode *q)
{
if(q == nil)