BSD 4_4_Lite1 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Tue, 7 Oct 1986 05:31:32 +0000 (21:31 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Tue, 7 Oct 1986 05:31:32 +0000 (21:31 -0800)
Work on file usr/src/contrib/dipress/src/bin/dipress/externs.h

Synthesized-from: CSRG/cd2/4.4BSD-Lite1

usr/src/contrib/dipress/src/bin/dipress/externs.h [new file with mode: 0644]

diff --git a/usr/src/contrib/dipress/src/bin/dipress/externs.h b/usr/src/contrib/dipress/src/bin/dipress/externs.h
new file mode 100644 (file)
index 0000000..2277a96
--- /dev/null
@@ -0,0 +1,94 @@
+/******************************************************************************
+ *
+ *     externs --      external declarations for global variables and 
+ *                     external functions used by the ditroff to 
+ *                     interpress conversion routines
+ *
+ *     John Mellor-Crummey (Xerox Corp)
+ *
+ *     Copyright (c) 1985 Xerox Corporation
+ *
+ *****************************************************************************/
+
+#include       "types.h"               /* data type declarations */
+
+
+/*-----------------------------------------------------------------------------
+ *
+ *     external declarations for
+ *     global variables used by the ditroff to interpress conversion routines
+ *
+ *---------------------------------------------------------------------------*/
+
+extern char    *tempfilename;          /* used to form names of output files */
+extern int     outputfile;             /* output file descriptor */
+extern int     pagebodyfile;           /* temporary file to hold page bodies */
+extern int     outputflag;             /* output this page? */
+
+extern int     nPageRanges;            /* output page list if > 0 */
+extern int     pagerange[][2];         /* pairs of page numbers */
+
+extern enum IPDeviceType IPDeviceType;
+
+/* font tables  */
+extern char    *fontdirectory;
+extern char    devicename[];
+extern struct  device_entry device;
+extern struct  font_entry *fontPtr[];
+extern short   *pointsizeTab;
+extern int     specFontPos;            /* position of first special font */
+extern char    *specCharStrTab;
+extern short   *specCharTab;
+extern unsigned char *fontIndexTab[];
+extern char    *charCodeTab[];         /* character codes for device */
+char   *stipTypeName[];                /* names of the stipple families */
+extern unsigned char *charWidthTab[];  /* contains width info for fonts */
+extern int     dbg;
+
+extern int     spotsPerInch;           /* input uses this resolution */
+extern int     lineThickness;          /* set by draw command, not pointsize */
+extern int     lineStyle;              /* set by draw command, not pointsize */
+extern int     stippleFamily;          /* current stipple Family */
+extern int     size;                   /* current size */
+extern int     font;                   /* current font */
+extern long    ftsz;                   /* combination of size and font */
+extern long    oldftsz;                /* former value of ftsz */
+extern int     hor_pos;                /* next horizontal position (= 0, left of page ) */
+extern int     old_hor;                /* previous horizontal position */
+extern int     ver_pos;                /* current vertical position (> 0, down page) */
+extern int     old_ver;                /* previous vertical position */
+extern int     hor_orig;               /* horizontal origin of current block */
+extern int     ver_orig;               /* vertical origin of current block */
+
+extern int linenumber;                 /* line number for error reporting */
+
+/* hooks for reporting system errors */
+extern int     errno;          
+extern char    *sys_errlist[];
+
+/* interpress stuff */
+
+extern struct  ifont *currfonts[MAX_NUM_FONTS+1];
+extern struct  ifont *inactfonts;
+
+extern int frameindex;                 /* current frame index */
+extern int mapcnt;                     /* number of names in troff to ip map */
+extern int charw;                      /* current character's troff width */
+extern char **trname;                  /* troff name pointers (into timap) */
+extern char **ipname;                  /* interpress name pointers (into timap) */
+extern char *timap;                    /* buffer holds strings for font mapping */
+extern char in_correct;                        /* true when inside a "correct" body */
+extern char virgin_line;               /* true if line untouched (char not yet shown) */
+extern double scale;                   /* scale used to trans troff to ip co-ords */
+
+/* this is for the bitmap interface */
+extern int drawidth;                   /* width of the drawing pen */
+extern double drawscale;               /* scaling factor for drawing points */
+
+/* external function declarations */
+extern char *malloc();
+
+/* for saving environments with push, pop */
+extern struct  state   state[MAXSTATE];
+extern struct  state   *statep;