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 <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.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 (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 175 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().

◆ STREAM_FILE

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

Definition at line 179 of file ftsystem.c.

Function Documentation

◆ ft_alloc()

ft_alloc ( FT_Memory  memory,
long  size 
)

Definition at line 96 of file ftsystem.c.

References FT_CALLBACK_DEF, FT_UNUSED, and malloc().

◆ ft_close_stream()

ft_close_stream ( FT_Stream  stream)

Definition at line 194 of file ftsystem.c.

References FT_BASE_DEF, MUNMAP_ARG_CAST, and NULL.

Referenced by FT_Stream_Open().

◆ FT_Done_Memory()

FT_Done_Memory ( FT_Memory  memory)

Definition at line 319 of file ftsystem.c.

◆ ft_free()

ft_free ( FT_Memory  memory,
void block 
)

Definition at line 152 of file ftsystem.c.

References free(), and FT_UNUSED.

◆ FT_New_Memory()

FT_New_Memory ( void  )

Definition at line 295 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 126 of file ftsystem.c.

References FT_CALLBACK_DEF, and FT_UNUSED.

◆ FT_Stream_Open()

FT_Stream_Open ( FT_Stream  stream,
const char *  filepathname 
)

Definition at line 207 of file ftsystem.c.

References close(), FT_BASE_DEF, ft_close_stream(), FT_Err_Ok, FT_ERROR, FT_TRACE1, MAP_FILE, NULL, and open().