Header consolidation - main.h, misc.h, and share.h merge to advent.h.

For a project this small size with a small type ontology, it's better
C style to have one header where all the assumptions about types and
structures are immediately visible.

This is a first step towards turning all that global state into a handful
of structures - probably just two, one saveable as a binary game state.
This commit is contained in:
Eric S. Raymond 2017-06-02 15:01:52 -04:00
parent 4209b82c5a
commit d402e09411
10 changed files with 53 additions and 64 deletions

4
misc.c
View file

@ -3,9 +3,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include "main.h"
#include "share.h" /* for SETUP */
#include "misc.h"
#include "advent.h"
#include "funcs.h"
#include "database.h"