Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
ftsystem.c File Reference
#include <ft2build.h>
#include <ftconfig.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>

Go to the source code of this file.

Macros

#define MAP_FILE   0x00
 
#define MUNMAP_ARG_CAST   char *
 
#define FT_COMPONENT   trace_io
 
#define STREAM_FILE(stream)   ( (FILE*)stream->descriptor.pointer )
 

Functions

 ft_alloc (FT_Memory memory, long size)
 
 ft_realloc (FT_Memory memory, long cur_size, long new_size, void *block)
 
 ft_free (FT_Memory memory, void *block)
 
 ft_close_stream_by_munmap (FT_Stream stream)
 
 ft_close_stream_by_free (FT_Stream stream)
 
 FT_Stream_Open (FT_Stream stream, const char *filepathname)
 
 FT_New_Memory (void)
 
 FT_Done_Memory (FT_Memory memory)
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   trace_io

Definition at line 176 of file ftsystem.c.

◆ MAP_FILE

#define MAP_FILE   0x00

Definition at line 35 of file ftsystem.c.

Referenced by FT_Stream_Open().

◆ MUNMAP_ARG_CAST

#define MUNMAP_ARG_CAST   char *

Definition at line 41 of file ftsystem.c.

Referenced by ft_close_stream_by_munmap().

◆ STREAM_FILE

#define STREAM_FILE (   stream)    ( (FILE*)stream->descriptor.pointer )

Definition at line 180 of file ftsystem.c.

Function Documentation

◆ ft_alloc()

ft_alloc ( FT_Memory  memory,
long  size 
)

Definition at line 97 of file ftsystem.c.

References FT_CALLBACK_DEF, FT_UNUSED, and malloc().

◆ ft_close_stream_by_free()

ft_close_stream_by_free ( FT_Stream  stream)

Definition at line 217 of file ftsystem.c.

References FT_BASE_DEF, ft_free(), and NULL.

Referenced by FT_Stream_Open().

◆ ft_close_stream_by_munmap()

ft_close_stream_by_munmap ( FT_Stream  stream)

Definition at line 195 of file ftsystem.c.

References FT_CALLBACK_DEF, MUNMAP_ARG_CAST, and NULL.

Referenced by FT_Stream_Open().

◆ FT_Done_Memory()

FT_Done_Memory ( FT_Memory  memory)

Definition at line 410 of file ftsystem.c.

◆ ft_free()

ft_free ( FT_Memory  memory,
void block 
)

Definition at line 153 of file ftsystem.c.

References free(), and FT_UNUSED.

◆ FT_New_Memory()

FT_New_Memory ( void  )

Definition at line 386 of file ftsystem.c.

References ft_alloc(), FT_BASE_DEF, ft_free(), ft_realloc(), and malloc().

◆ ft_realloc()

ft_realloc ( FT_Memory  memory,
long  cur_size,
long  new_size,
void block 
)

Definition at line 127 of file ftsystem.c.

References FT_CALLBACK_DEF, and FT_UNUSED.

◆ FT_Stream_Open()

FT_Stream_Open ( FT_Stream  stream,
const char *  filepathname 
)