

/*
 * Configuration for Plotfoil v3
 *
 * Pick one: */
/* #define  SunOS4 		/**/
/* #define  Solaris2	/**/
/* #define  Linux 		/**/
/* #define  MSDOS 		/**/
/* #define  BSD 		/**/
#define THINK_C60 		/**/


#if defined(BSD)
#define STRINGS_H 1
#endif


#if defined(MSDOS)
#define STRINGS_H 1
#endif

#define CheapInterp 1


&&&&& PLOTFOIL.H &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&


/*
 * Copyright 1992 Shamim P. Mohamed
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * Author:
 * shamim@crl.com
 * Shamim Mohamed
 *
 */

#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef THINK_C60
#include <console.h>
#endif
#ifdef STRINGS_H
#include <strings.h>
#else
#include <string.h>
#endif
#include <ctype.h>
#include <math.h>

#include "foil_lib.h"
#include "lib.h"

#define MAX_SPARS  10		/* max number of spars for airfoil */

/*
 * Page size stuff. Define page types and sizes
 */
typedef struct pagestruct {
    int width, height;
    char name[10];
} pagestruct;
extern pagestruct pages[20];
extern void init_pagestruct(void);
#define A0      0
#define A1      1
#define A2      2
#define A3      3
#define A4      4
#define A5      5
#define B0      6
#define B1      7
#define B2      8
#define B3      9
#define B4      10
#define B5      11
#define C0		12
#define C1		13
#define C2		14
#define C3		15
#define C4		16
#define C5		17
#define LETTER    18
#define LEGAL     19
#define LEDGER    20
#define STATEMENT 21
#define FOLIO     22
#define QUARTO    23
#define LASTPAGETYPE LETTER
extern int pagesize;

#define DEFAULT_PAGESIZE LETTER

/*
 * The margin is space to leave on all sides; the ljet4 driver for
 * ghostscript, for instance, puts the page too far to the left and down.
 * Depending on your printer this may need adjustment.
 */
#define MARGIN 20
extern int PAGEWIDTH, PAGEHEIGHT;

/*
 * output scaling etc. 
 */
#define SCALE  	10000		/* size of the field (output)        */
#define RADIUS     10       	/* radius of circles denoting points */

#define PS 12
#define VS 13.4
#define TITLE_SIZE 30
#define CROSS_SIZE 20

/*
 * type definitions
 */

typedef struct {
   float raw_value, scale, pts;
   char *units;
} value_t;

typedef struct {
   float offset;
   value_t thick;
} spar_t;

#include "COPYRIGHT"

