/* Copyright (C) 1993,1994 by the author(s).
 
 This software is published in the hope that it will be useful, but
 WITHOUT ANY WARRANTY for any part of this software to work correctly
 or as described in the manuals. See the ShapeTools Public License
 for details.

 Permission is granted to use, copy, modify, or distribute any part of
 this software but only under the conditions described in the ShapeTools 
 Public License. A copy of this license is supposed to have been given
 to you along with ShapeTools in a file named LICENSE. Among other
 things, this copyright notice and the Public License must be
 preserved on all copies.
*/
/*
 * ShapeTools/shape program - mfiles.h
 *
 * by Juergen.Nickelsen@cs.tu-berlin.de
 *
 * $Header: mfiles.h[8.0] Tue Mar  2 15:02:19 1993 shape@cs.tu-berlin.de frozen $
 */
#ifndef __MFILES_H
#define __MFILES_H

#define STDIN_NAME "Standard Input" /* Name used for standard input */
#define INITIAL_BUFFER_SIZE 8192    /* initial buffer size for reading
				       from special file or stdin */

typedef struct MFILE__ {
    char           *mf_name ;	/* filename */
    char           *mf_buffer ;	/* pointer to mfile buffer */
    char          **mf_lbeg ;	/* array of original line beginnings */
    int             mf_lines ;	/* number of lines */
    int             mf_curline ;/* current line */
    char           *mf_end ;	/* end of buffer */
    struct MFILE__ *mf_next ;	/* pointer to next, don't use! */
} MFILE ;

#include "mffuncs.h"
#endif /* __MFILES_H */
