aocc22

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

common.h (384B)


      1 #ifndef COMMON_H_
      2 #define COMMON_H_
      3 
      4 #include <assert.h>
      5 #include <reading.h>
      6 #include <stdint.h>
      7 #include <stdio.h>
      8 #include <sys/queue.h>
      9 
     10 typedef struct entry {
     11   uint64_t v;
     12   SIMPLEQ_HEAD(listhead, entry) * head;
     13 
     14   SIMPLEQ_ENTRY(entry) entries;
     15 } lori;
     16 
     17 void printlori(const lori *x);
     18 lori *parseline(char *line, char **next);
     19 int compare(const lori *a, const lori *b);
     20 
     21 #endif