/*
* genHTML.h -- include file for genHTML.c
*/
/* includes */
#include
#include
#include
#include
/* constants */
#define TRUE (1)
#define FALSE (0)
#define MAX_LINE (120)
/* global variables */
float FloatGlobal; /* float: a real number */
int IntGlobal; /* integer: a signed whole number */
/* flag-settable parameters (global variables) */
int Debug; /* Boolean: TRUE = debug writes */
int Check; /* Boolean: TRUE = check file but don't output HTML */
float FloatParam; /* float: a real number */
int IntParam; /* integer: a signed whole number */
/* Doubly-Linked Lists */
/* Defining a Doubly-Linked List Node */
struct node
{
struct node *Prev;
int Year;
struct node *Next;
};
typedef struct node NODE;
struct node *YearListHeader;
struct place
{
struct place *Prev;
char handle[MAX_LINE];
char name[MAX_LINE];
float lat;
float lon;
int startDate;
int endDate;
int numThings;
struct thing *thingListHeader;
int numTrips;
struct trip *tripListHeader;
int numJumps;
struct jump *jumpListHeader;
struct place *Next;
};
typedef struct place PLACE;
struct place *PlaceListHeader;
struct thing
{
struct thing *Prev;
char pic[MAX_LINE];
char txt[MAX_LINE];
char cat[MAX_LINE];
int startDate;
int endDate;
struct thing *Next;
};
typedef struct thing THING;
struct trip
{
struct trip *Prev;
char name[MAX_LINE];
char pic[MAX_LINE];
char txt[MAX_LINE];
char toHandle[MAX_LINE];
int startDate;
int endDate;
int hours;
struct trip *Next;
};
typedef struct trip TRIP;
struct jump
{
struct jump *Prev;
char name[MAX_LINE];
char pic[MAX_LINE];
char txt[MAX_LINE];
int targetDate;
int startDate;
int endDate;
struct jump *Next;
};
typedef struct jump JUMP;