-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraphNode.h
More file actions
executable file
·44 lines (34 loc) · 1.03 KB
/
graphNode.h
File metadata and controls
executable file
·44 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef GRPAHNODE_H
#define GRAPHNODE_H
struct targetNode* graphBuilder( struct targetNode *headTarget);
struct targetNode* getNode(char* targetName, struct targetNode* headTarget);
//The graph will be made up of targetNode structs
typedef struct targetNode{
struct targetNode* nextTarget;
struct dependencyNode* firstDependency;
char*** commands;
//struct dependencyNode* dependentTargets;
struct targetList* dependentTargets;
char* targetName;
int hasVisited;
int outDated;
}targetNode;
//Used to store dependencies of a target
typedef struct dependencyNode{
struct dependencyNode* nextDependency;
char* dependencyName;
}dependencyNode;
typedef struct targetList{
struct targetNode* target;
struct targetList* nextTarget;
}targetList;
// typedef struct commandNode{
// struct commandNode* nextCommand;
// char* commandName;
// }commandNode;
// typedef struct orderNode{
// struct orderNode* prevNode;
// struct orderNode* nextNode;
// char* targetName;
// }orderNode;
#endif