Stub for lab graph.

This commit is contained in:
Neil 2023-09-05 22:23:14 -07:00
parent 81fc10966d
commit 7f8937db55
3 changed files with 15 additions and 0 deletions

View File

@ -64,6 +64,10 @@ int main(void) {
if(!freopen(intent, "w", stdout)) goto catch;
scan_score_graph(&scn);
intent = "labs.gnu";
if(!freopen(intent, "w", stdout)) goto catch;
scan_labs_graph(&scn);
intent = "glider.gnu";
if(!freopen(intent, "w", stdout)) goto catch;
scan_glider_graph(&scn);

View File

@ -159,6 +159,7 @@ void scan_(struct scan *);
struct scan scan(struct journal *);
const struct kvpair *scan_source_lookup(struct scan *, const union line64);
void scan_score_graph(struct scan *);
void scan_labs_graph(struct scan *);
void scan_glider_graph(struct scan *);
void scan_flight_graph(struct scan *);
void scan_kjv_graph(struct scan *);

View File

@ -1212,6 +1212,16 @@ void scan_score_graph(struct scan *const scan) {
fprintf(stderr, "\n");
}
void scan_labs_graph(struct scan *const scan) {
struct linekvpair_tree_iterator it
= linekvpair_tree_iterator(&scan->labs);
assert(scan);
fprintf(stderr, "*** Labs graph %s.\n",
linekvpair_tree_to_string(&scan->labs));
fprintf(stderr, "\n");
}
#include <inttypes.h>
void scan_glider_graph(struct scan *const scan) {