29#include FT_CONFIG_CONFIG_H
30#include FT_INTERNAL_DEBUG_H
31#include FT_INTERNAL_STREAM_H
140#ifndef FT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT
149#define FT_COMPONENT trace_io
153#define STREAM_FILE( stream ) ( (FT_FILE*)stream->descriptor.pointer )
204 unsigned long count )
225 const char* filepathname )
231 return FT_THROW( Invalid_Stream_Handle );
234 stream->pathname.pointer = (
char*)filepathname;
244 " could not open `%s'\n", filepathname ));
246 return FT_THROW( Cannot_Open_Resource );
254 FT_ERROR((
" opened `%s' but zero-sized\n", filepathname ));
256 return FT_THROW( Cannot_Open_Stream );
265 FT_TRACE1((
" opened `%s' (%d bytes) successfully\n",
273#ifdef FT_DEBUG_MEMORY
299#ifdef FT_DEBUG_MEMORY
300 ft_mem_debug_init(
memory );
313#ifdef FT_DEBUG_MEMORY
314 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