Back to index

tetex-bin  3.0
Functions | Variables
prescan.c File Reference
#include "dvips.h"
#include "protos.h"

Go to the source code of this file.

Functions

void readpreamble P1H (void)

Variables

integer debug_flag
fontdesctypefonthead
real conv
real vconv
real alpha
integer firstpage
integer lastpage
integer firstseq
integer lastseq
integer maxsecsize
Boolean notfirst
Boolean notlast
Boolean evenpages
Boolean oddpages
Boolean pagelist
integer fontmem
integer pagecount
integer pagenum
integer maxpages
sectiontypesections
FILEdvifile
integer num
integer den
double mag
int overridemag
integer swmem
int quiet
int actualdpi
int vactualdpi
Boolean reverse
int totalpages
integer fsizetol
char * oname
Boolean pprescan
Boolean abspage
char preamblecomment []
static integer firstmatch = -1
static integer lastmatch = -1

Function Documentation

void readpreamble P1H ( void  ) [read]

Definition at line 50 of file prescan.c.

{
   register int i ;
   char *p ;

   if (dvibyte()!=247) error("! Bad DVI file: first byte not preamble") ;
   if (dvibyte()!=2) error("! Bad DVI file: id byte not 2") ;
   num = signedquad() ;
   den = signedquad() ;
   if (overridemag > 0) (void)signedquad() ;
   else if (overridemag < 0) mag = (mag * signedquad()) / 1000.0 ;
   else mag = signedquad() ;
   conv = (real) num * DPI * mag / ( den * 254000000.0 ) ; 
   vconv = (real) num * VDPI * mag / ( den * 254000000.0 ) ; 
   alpha = (((real)den / 7227.0) / 0x100000) * (25400000.0 / (real) num) ;
   fsizetol = 1 + (integer)(DPI/(72270.0 * conv)) ;
   if (!pprescan) {
     for (i=dvibyte(),p=preamblecomment;i>0;i--,p++) *p=dvibyte() ;
     *p='\0' ;
     if (!quiet) {
        (void)fprintf(stderr, "'") ;
#ifdef VMCMS /* IBM: VM/CMS */
        for(p=preamblecomment;*p;p++) (void)putc(ascii2ebcdic[*p], stderr) ;
#else
#ifdef MVSXA /* IBM: MVS/XA */
        for(p=preamblecomment;*p;p++) (void)putc(ascii2ebcdic[*p], stderr) ;
#else
        for(p=preamblecomment;*p;p++) (void)putc(*p, stderr) ;
#endif  /* IBM: VM/CMS */
#endif
        (void)fprintf(stderr, "' -> %s\n", oname) ;
      }
   } else
      skipover(dvibyte()) ;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 65 of file dvips.c.

Definition at line 103 of file dvips.c.

Definition at line 99 of file dvips.c.

Definition at line 97 of file dvips.c.

Definition at line 199 of file dvips.c.

Definition at line 592 of file dvi2xx.h.

Definition at line 93 of file dvips.c.

Definition at line 74 of file dvips.c.

integer firstmatch = -1 [static]

Definition at line 89 of file prescan.c.

Definition at line 78 of file dvips.c.

Definition at line 80 of file dvips.c.

Definition at line 53 of file dvips.c.

Definition at line 109 of file dvips.c.

Definition at line 182 of file dvips.c.

integer lastmatch = -1 [static]

Definition at line 89 of file prescan.c.

Definition at line 79 of file dvips.c.

Definition at line 81 of file dvips.c.

double mag

Definition at line 598 of file dvi2xx.h.

Definition at line 72 of file dvips.c.

Definition at line 84 of file dvips.c.

Definition at line 73 of file dvips.c.

Definition at line 73 of file dvips.c.

Definition at line 1386 of file png.h.

Definition at line 74 of file dvips.c.

char* oname

Definition at line 88 of file dvips.c.

Definition at line 102 of file dvips.c.

Definition at line 110 of file dvips.c.

Definition at line 75 of file dvips.c.

Definition at line 111 of file dvips.c.

Definition at line 35 of file pprescan.c.

Definition at line 71 of file output.c.

Definition at line 158 of file dvips.c.

Definition at line 165 of file dvips.c.

Definition at line 55 of file dvips.c.

Definition at line 157 of file dvips.c.

Definition at line 164 of file dvips.c.

Definition at line 104 of file dvips.c.

Definition at line 591 of file dvi2xx.h.