pike.git / src / modules / Image / font.c

version» Context lines:

pike.git/src/modules/Image/font.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: font.c,v 1.83 2004/03/05 23:04:02 nilsson Exp $ + || $Id: font.c,v 1.84 2006/03/06 08:47:47 peter Exp $   */      #include "global.h"      #define SPACE_CHAR 'i'      extern const unsigned char image_default_font[];   #define IMAGE_DEFAULT_FONT_SIZE 30596      
pike.git/src/modules/Image/font.c:351: Inside #if defined(HAVE_MMAP)
  #else    if (new_font->mem==(void*)-1)   #endif    {    new_font->mem=0;    new_font->mmaped_size=0;    }    else    new_font->mmaped_size=size;   #else -  new_font->mem = malloc(size); +  new_font->mem = xalloc(size);   #ifdef FONT_DEBUG    fprintf(stderr,"FONT Malloced %p (%d)\n",new_font->mem,size);   #endif    if ((new_font->mem) && (!my_read(fd,new_font->mem,size)))    {    free(new_font->mem);    new_font->mem = NULL;    }   #endif    THREADS_DISALLOW();