4 static unsigned char Buffer[10000];     
 
   31     register int offset3 = 0;   
 
   42         offset3 = 3 + t_cnt + t_cnt;    
 
   46         for (i = 0; i < Cube->
n_thresh; i++) {  
 
   50             for (j = 0; j < Cube->
data[i].
npoly; j++) {
 
   51                 Poly_info = &(Cube->
data[i].
poly[j]);
 
   53                 Buffer[offset3++] = Poly_info->
v1[0];
 
   54                 Buffer[offset3++] = Poly_info->
v1[1];
 
   55                 Buffer[offset3++] = Poly_info->
v1[2];
 
   56                 Buffer[offset3++] = Poly_info->
v2[0];
 
   57                 Buffer[offset3++] = Poly_info->
v2[1];
 
   58                 Buffer[offset3++] = Poly_info->
v2[2];
 
   59                 Buffer[offset3++] = Poly_info->
v3[0];
 
   60                 Buffer[offset3++] = Poly_info->
v3[1];
 
   61                 Buffer[offset3++] = Poly_info->
v3[2];
 
   62                 Buffer[offset3++] = Poly_info->
n1[0];
 
   63                 Buffer[offset3++] = Poly_info->
n1[1];
 
   64                 Buffer[offset3++] = Poly_info->
n1[2];
 
   68                     Buffer[offset3++] = Poly_info->
n2[0];
 
   69                     Buffer[offset3++] = Poly_info->
n2[1];
 
   70                     Buffer[offset3++] = Poly_info->
n2[2];
 
   71                     Buffer[offset3++] = Poly_info->
n3[0];
 
   72                     Buffer[offset3++] = Poly_info->
n3[1];
 
   73                     Buffer[offset3++] = Poly_info->
n3[2];
 
   78         Buffer[1] = (size >> 8) & 0xff; 
 
   79         Buffer[2] = size & 0xff;
 
   95     static int num_zero = 0;
 
  100         if (num_zero == 126 || cur_x == headfax->
xdim - 2) {
 
  101             junk = 0x80 | num_zero;
 
  109             junk = 0x80 | num_zero;
 
  115         fwrite(Buffer, 1, size, headfax->
dspfoutfp);
 
  121 static long fsize = 0;
 
  122 static char *fptr = 
NULL;
 
  135     register int offset1, offset2, offset3;
 
  139     unsigned char inchar;
 
  141     static int first = 1;
 
  144     static int zeros_left = 0;  
 
  161         fsize = stop - start + 1;
 
  168               fprintf(stderr, 
"Malloc failed\n");
 
  173         for (i = 0; ret = fread(fptr + i, 1, 10240, fp); i += ret) ;
 
  183         zeros_left = (0x7f & inchar) - 1;
 
  195     if (0 >= (ret = 
my_fread(Buffer, 1, size, fp))) {
 
  196         fprintf(stderr, 
"Error reading display file offset %ld\n", ftell(fp));
 
  201         fprintf(stderr, 
"Error (size) reading display file offset %ld\n",
 
  210         offset3 = t_cnt + t_cnt;        
 
  212         for (i = 0; i < t_cnt; i++) {   
 
  216             for (j = 0; j < Cube->
data[i].
npoly; j++) {
 
  217                 Poly_info = &(Cube->
data[i].
poly[j]);
 
  218                 Poly_info->
v1[0] = Buffer[offset3++];
 
  219                 Poly_info->
v1[1] = Buffer[offset3++];
 
  220                 Poly_info->
v1[2] = Buffer[offset3++];
 
  221                 Poly_info->
v2[0] = Buffer[offset3++];
 
  222                 Poly_info->
v2[1] = Buffer[offset3++];
 
  223                 Poly_info->
v2[2] = Buffer[offset3++];
 
  224                 Poly_info->
v3[0] = Buffer[offset3++];
 
  225                 Poly_info->
v3[1] = Buffer[offset3++];
 
  226                 Poly_info->
v3[2] = Buffer[offset3++];
 
  227                 Poly_info->
n1[0] = Buffer[offset3++];
 
  228                 Poly_info->
n1[1] = Buffer[offset3++];
 
  229                 Poly_info->
n1[2] = Buffer[offset3++];
 
  236                     Poly_info->
n2[0] = Buffer[offset3++];
 
  237                     Poly_info->
n2[1] = Buffer[offset3++];
 
  238                     Poly_info->
n2[2] = Buffer[offset3++];
 
  239                     Poly_info->
n3[0] = Buffer[offset3++];
 
  240                     Poly_info->
n3[1] = Buffer[offset3++];
 
  241                     Poly_info->
n3[2] = Buffer[offset3++];
 
  252     static char in_buf[10240];
 
  253     static char *start, *end;
 
  257     if (ret = fread(in_buf, 1, 10240, fp)) ;
 
  266 int my_fread(
char *buf, 
int size, 
int cnt, FILE * fp)
 
  269         return fread(buf, size, cnt, fp);
 
  274         if (cptr + amt >= fsize)
 
  275             amt = fsize - cptr - 1;
 
int write_cube(Cube_data *Cube, int cur_x, file_info *headfax)
 
int struct_copy(char *To, char *From, int size)
 
int write_cube_buffer(unsigned char *Buffer, int size, int cur_x, file_info *headfax)
 
int my_fread(char *buf, int size, int cnt, FILE *fp)
 
cube_info data[MAXTHRESH]
 
int new_dspf(file_info *hfax)
 
int read_cube(Cube_data *Cube, file_info *headfax)
 
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
 
int reset_reads(file_info *headfax)