[ale] Parse error on make

James P. Kinney III jkinney at localnetsolutions.com
Wed Dec 5 13:30:37 EST 2001


I'm going blind, I guess. I am getting a parse error on the block below:



/*
 * Open font
 */
int
vf_open_font(const byte *font_name, int len, int print_message)
{
  static int initialized_f = 0;
  int code;

  if ( ! initialized_f ) {
    code = init_vflib();
    if (code < 0) return code;  /* error */
    initialized_f = 1; /* Now, initialization done. */
  }

  code = search(font_name, len);
#define FONT_OPEN_FAIL_MARK -1000
  if(code == FONT_OPEN_FAIL_MARK)
    return -1;
  if (code < 0) {
    char *fn = gs_malloc(len+1,1,"VFlib(open_font)");

    if (fn == NULL) return -1; /*e_VMerror*/
    memcpy(fn,font_name, len);
    fn[len] = 0;
    code = VF_OpenFont(fn); <<--PARSE ERROR BEFORE ";"
    if (code < 0){
      if(print_message)
        eprintf1("VFlib: Cannot open the font `%s'.\n",fn);
      store(font_name,len,FONT_OPEN_FAIL_MARK);
      code = -1; /*e_ioerror*/
    }
    else {
      code = store(font_name,len,code);
    }
    gs_free(fn,len+1,1,"VFlib(open_font)");
  }

  return code;
}

I'm working on adding in the HP Business Inkjet 2200 patch into
ghotscript 6.51 src.rpm

-- 
James P. Kinney III   \Changing the mobile computing world/
President and COO      \          one Linux user         /
Local Net Solutions,LLC \           at a time.          /
770-493-8244             \.___________________________./

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 



 PGP signature




More information about the Ale mailing list