#ifndef _MESSAGE_P_H_
#define _MESSAGE_P_H_
#include "memory.h"
#include "useful.h"
#include "darray.h"
#include "registry.h"
#include <stdio.h>

/* the altext system works by keeping a registry of file names to */
 /* Text_file struct pairs in the registry TextReg defined in */
 /* text.c. */
 /* The registry part of Text_file is a registry of char* */
 /* (names of messages) to file offsets */
 /* to a file offset numbers where that message begins.  The other member of */
 /* the pair is the file offset position of the last character of the last */
 /* message read in and put into the registry. */

typedef struct TextFile_str {
  Registry reg;
  FILE     *the_file;
  long     current_offset;
  long     max_offset;
  int      max_place;
} *TextFile;

  
#endif
