From 677e15fefe5c61b833dcbe2fa4e9ee90bc996f8c Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Sun, 13 Aug 2023 18:15:01 +0400 Subject: Remove OUTPROC and GENG_MAIN macros --- nauty/geng-iter.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 nauty/geng-iter.h (limited to 'nauty/geng-iter.h') diff --git a/nauty/geng-iter.h b/nauty/geng-iter.h new file mode 100644 index 0000000..1e78b93 --- /dev/null +++ b/nauty/geng-iter.h @@ -0,0 +1,23 @@ +#ifndef GENG_ITER_H +#define GENG_ITER_H + +#include "gtools.h" +#include +#include + +struct geng_iterator +{ + ucontext_t geng_worker, geng_user; + char geng_stack[1 << 20]; + int graph_size; + bool generation_done; + bool iteration_done; + int batch_size; + int batch_capacity; + set *batch; +}; + +void +outproc(FILE *, graph *, int n, struct geng_iterator *); + +#endif // GENG_ITER_H -- cgit v1.2.3