shithub: asif

Download patch

ref: 94c7554f09f3c4b35a7c9c8086426a6abdfa807b
parent: 5256da0634295bcdb48c1da4ece5bddd4f75166d
author: qwx <qwx@sciops.net>
date: Wed Jul 6 01:54:19 EDT 2022

path.h: add missing defs

--- a/path/path.h
+++ b/path/path.h
@@ -1,7 +1,7 @@
-typedef struct Vertex Vertex;
 typedef struct State State;
 typedef struct PState PState;
 typedef struct Node Node;
+typedef struct Vertex Vertex;
 
 struct Vertex{
 	int x;
@@ -51,3 +51,5 @@
 Node*	initgrid(int, int);
 
 int	a∗findpath(Node*, Node*);
+int	bfsfindpath(Node*, Node*);
+int	dijkstrafindpath(Node*, Node*);