29#include FT_CONFIG_CONFIG_H
30#include FT_INTERNAL_DEBUG_H
31#include FT_INTERNAL_STREAM_H
148#ifndef FT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT
157#define FT_COMPONENT io
161#define STREAM_FILE( stream ) ( (FT_FILE*)stream->descriptor.pointer )
217 unsigned long count )
238 const char* filepathname )
244 return FT_THROW( Invalid_Stream_Handle );
247 stream->pathname.pointer = (
char*)filepathname;
257 " could not open `%s'\n", filepathname ));
259 return FT_THROW( Cannot_Open_Resource );
267 FT_ERROR((
" opened `%s' but zero-sized\n", filepathname ));
269 return FT_THROW( Cannot_Open_Stream );
278 FT_TRACE1((
" opened `%s' (%d bytes) successfully\n",
286#ifdef FT_DEBUG_MEMORY
312#ifdef FT_DEBUG_MEMORY
313 ft_mem_debug_init(
memory );
326#ifdef FT_DEBUG_MEMORY
327 ft_mem_debug_done(
memory );
#define FT_CALLBACK_DEF(x)
#define FT_ERROR(varformat)
#define FT_TRACE1(varformat)
ft_realloc(FT_Memory memory, long cur_size, long new_size, void *block)
ft_ansi_stream_close(FT_Stream stream)
ft_free(FT_Memory memory, void *block)
ft_alloc(FT_Memory memory, long size)
ft_ansi_stream_io(FT_Stream stream, unsigned long offset, unsigned char *buffer, unsigned long count)
#define STREAM_FILE(stream)
FT_Stream_Open(FT_Stream stream, const char *filepathname)
FT_Done_Memory(FT_Memory memory)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
GLuint GLuint GLsizei count
static char memory[1024 *256]
static unsigned int block