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.89 2005/11/13 12:14:28 nilsson Exp $ + || $Id: font.c,v 1.90 2006/03/06 08:47:36 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:337:    {    THREADS_ALLOW();   #ifdef HAVE_MMAP    fh = (struct file_head *)    mmap(0, size, PROT_READ, MAP_SHARED, fd, 0);    if (fh != (struct file_head *)MAP_FAILED)    mmaped_size = size;    else    {   #endif -  fh = (struct file_head *)malloc(size); +  fh = (struct file_head *)xalloc(size);   #ifdef FONT_DEBUG    fprintf(stderr,"FONT Malloced %p (%d)\n", fh, size);   #endif    if (fh && (!my_read(fd, fh, size)))    {    free(fh);    fh = NULL;    }   #ifdef HAVE_MMAP    }