/* GNUPLOT
   gem.h	header file for the gem vdi support.
   mjr.
*/
#ifdef GEM

# ifdef TOS
#  include <osbind.h>
# endif

# include <gemdefs.h>
# include <vdibind.h>

# define GemXmax	term_tbl[GEMindex].xmax	 /*	(WorkOut[0] + 1) */
# define GemYmax	term_tbl[GEMindex].ymax	 /*	(WorkOut[1] + 1) */
# define GemVchar	term_tbl[GEMindex].v_char/*	(WorkOut[48])	 */
# define GemHchar	term_tbl[GEMindex].h_char/*	(WorkOut[47])	 */
# define GemVtic	term_tbl[GEMindex].v_tic /*	(WorkOut[0] / 90)*/
# define GemHtic	term_tbl[GEMindex].h_tic /*	(WorkOut[0] / 90)*/

   int WorkIn[11], wp, WorkOut[57];
   int GEMindex;		/* position of GEM in term_tbl[]	 */
   int GemXY[4];		/* for move and line			 */
   int Gemxy[2];		/* for markers and text			 */
   int GemXmode = 1;		/* mode variables for text output	 */
   int GemYmode = 1; 

   char * gem_init();

#endif /* GEM */
