aocc23

Advent of Code 2023
git clone git://www.tkruger.se/aocc23.git
Log | Files | Refs | README

common.h (381B)


      1 #ifndef COMMON_H_
      2 #define COMMON_H_
      3 
      4 #include <assert.h>
      5 #include <stdint.h>
      6 #include <stdio.h>
      7 #include <stdlib.h>
      8 #include <sys/queue.h>
      9 
     10 #include <graph.h>
     11 #include <reading.h>
     12 #include <set_u64p.h>
     13 
     14 typedef struct entry {
     15   size_t node;
     16   size_t dist;
     17 
     18   SIMPLEQ_ENTRY(entry) entries;
     19 } entry_t;
     20 
     21 void read_grid(graph_t *g, size_t *start, char **lines, size_t nlines);
     22 
     23 #endif