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

version» Context lines:

pike.git/src/modules/Image/font.c:1: - /* $Id: font.c,v 1.45 1999/04/25 19:58:22 grubba Exp $ */ + /* $Id: font.c,v 1.46 1999/04/25 20:00:57 grubba Exp $ */   #include "global.h"   #include <config.h>      #define SPACE_CHAR 'i'      /*   **! module Image   **! note - **! $Id: font.c,v 1.45 1999/04/25 19:58:22 grubba Exp $ + **! $Id: font.c,v 1.46 1999/04/25 20:00:57 grubba Exp $   **! class Font   **!   **! note   **! Short technical documentation on a font file:   **! This object adds the text-drawing and -creation   **! capabilities of the <ref>Image</ref> module.   **!   **! For simple usage, see   **! <ref>write</ref> and <ref>load</ref>.   **!
pike.git/src/modules/Image/font.c:272: Inside #if undefined(HAVE_MMAP)
      default:    res = 0;    return 0;    }    }    return res;   }   #endif    - static INLINE long file_size(int fd) + static INLINE size_t file_size(int fd)   {    struct stat tmp;    if((!fd_fstat(fd, &tmp)) &&    (tmp.st_mode & S_IFREG)) -  return (long)tmp.st_size; +  return (size_t)tmp.st_size;    return -1;   }      static INLINE void write_char(struct _char *ci,    rgb_group *pos,    INT32 xsize,    INT32 height)   {    rgb_group *nl;    INT32 x,y;