w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ftstdlib.h File Reference
#include <stddef.h>
#include <limits.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <setjmp.h>
#include <stdarg.h>
Include dependency graph for ftstdlib.h:

Go to the source code of this file.

Macros

#define ft_ptrdiff_t   ptrdiff_t
 
#define FT_CHAR_BIT   CHAR_BIT
 
#define FT_USHORT_MAX   USHRT_MAX
 
#define FT_INT_MAX   INT_MAX
 
#define FT_INT_MIN   INT_MIN
 
#define FT_UINT_MAX   UINT_MAX
 
#define FT_LONG_MIN   LONG_MIN
 
#define FT_LONG_MAX   LONG_MAX
 
#define FT_ULONG_MAX   ULONG_MAX
 
#define ft_memchr   memchr
 
#define ft_memcmp   memcmp
 
#define ft_memcpy   memcpy
 
#define ft_memmove   memmove
 
#define ft_memset   memset
 
#define ft_strcat   strcat
 
#define ft_strcmp   strcmp
 
#define ft_strcpy   strcpy
 
#define ft_strlen   strlen
 
#define ft_strncmp   strncmp
 
#define ft_strncpy   strncpy
 
#define ft_strrchr   strrchr
 
#define ft_strstr   strstr
 
#define FT_FILE   FILE
 
#define ft_fclose   fclose
 
#define ft_fopen   fopen
 
#define ft_fread   fread
 
#define ft_fseek   fseek
 
#define ft_ftell   ftell
 
#define ft_sprintf   sprintf
 
#define ft_qsort   qsort
 
#define ft_scalloc   calloc
 
#define ft_sfree   free
 
#define ft_smalloc   malloc
 
#define ft_srealloc   realloc
 
#define ft_strtol   strtol
 
#define ft_getenv   getenv
 
#define ft_jmp_buf   jmp_buf /* note: this cannot be a typedef since */
 
#define ft_longjmp   longjmp
 
#define ft_setjmp(b)   setjmp( *(ft_jmp_buf*) &(b) ) /* same thing here */
 

Macro Definition Documentation

◆ FT_CHAR_BIT

#define FT_CHAR_BIT   CHAR_BIT
                     integer limits

UINT_MAX and ULONG_MAX are used to automatically compute the size of int and long in bytes at compile-time. So far, this works for all platforms the library has been tested on.

Note that on the extremely rare platforms that do not provide integer types that are exactly 16 and 32~bits wide (e.g., some old Crays where int is 36~bits), we do not make any guarantee about the correct behaviour of FreeType~2 with all fonts.

In these cases, ftconfig.h will refuse to compile anyway with a message like 'couldn't find 32-bit type' or something similar.

Definition at line 61 of file ftstdlib.h.

◆ ft_fclose

#define ft_fclose   fclose

Definition at line 111 of file ftstdlib.h.

◆ FT_FILE

#define FT_FILE   FILE

file handling

Definition at line 110 of file ftstdlib.h.

◆ ft_fopen

#define ft_fopen   fopen

Definition at line 115 of file ftstdlib.h.

◆ ft_fread

#define ft_fread   fread

Definition at line 117 of file ftstdlib.h.

◆ ft_fseek

#define ft_fseek   fseek

Definition at line 118 of file ftstdlib.h.

◆ ft_ftell

#define ft_ftell   ftell

Definition at line 119 of file ftstdlib.h.

◆ ft_getenv

#define ft_getenv   getenv

Definition at line 156 of file ftstdlib.h.

◆ FT_INT_MAX

#define FT_INT_MAX   INT_MAX

Definition at line 63 of file ftstdlib.h.

◆ FT_INT_MIN

#define FT_INT_MIN   INT_MIN

Definition at line 64 of file ftstdlib.h.

◆ ft_jmp_buf

#define ft_jmp_buf   jmp_buf /* note: this cannot be a typedef since */

execution control

Definition at line 168 of file ftstdlib.h.

◆ FT_LONG_MAX

#define FT_LONG_MAX   LONG_MAX

Definition at line 67 of file ftstdlib.h.

◆ FT_LONG_MIN

#define FT_LONG_MIN   LONG_MIN

Definition at line 66 of file ftstdlib.h.

◆ ft_longjmp

#define ft_longjmp   longjmp

Definition at line 172 of file ftstdlib.h.

◆ ft_memchr

#define ft_memchr   memchr

character and string processing

Definition at line 80 of file ftstdlib.h.

◆ ft_memcmp

#define ft_memcmp   memcmp

Definition at line 81 of file ftstdlib.h.

◆ ft_memcpy

#define ft_memcpy   memcpy

Definition at line 82 of file ftstdlib.h.

◆ ft_memmove

#define ft_memmove   memmove

Definition at line 83 of file ftstdlib.h.

◆ ft_memset

#define ft_memset   memset

Definition at line 84 of file ftstdlib.h.

◆ ft_ptrdiff_t

#define ft_ptrdiff_t   ptrdiff_t

ftstdlib.h

ANSI-specific library and header configuration file (specification only).

Copyright (C) 2002-2020 by David Turner, Robert Wilhelm, and Werner Lemberg.

This file is part of the FreeType project, and may only be used, modified, and distributed under the terms of the FreeType project license, LICENSE.TXT. By continuing to use, modify, or distribute this file you indicate that you have read the license and understand and accept it fully. This file is used to group all #includes to the ANSI~C library that FreeType normally requires. It also defines macros to rename the standard functions within the FreeType source code.

Load a file which defines FTSTDLIB_H_ before this one to override it.

Definition at line 37 of file ftstdlib.h.

◆ ft_qsort

#define ft_qsort   qsort

sorting

Definition at line 132 of file ftstdlib.h.

◆ ft_scalloc

#define ft_scalloc   calloc

memory allocation

Definition at line 142 of file ftstdlib.h.

◆ ft_setjmp

#define ft_setjmp (   b)    setjmp( *(ft_jmp_buf*) &(b) ) /* same thing here */

Definition at line 173 of file ftstdlib.h.

◆ ft_sfree

#define ft_sfree   free

Definition at line 143 of file ftstdlib.h.

◆ ft_smalloc

#define ft_smalloc   malloc

Definition at line 144 of file ftstdlib.h.

◆ ft_sprintf

#define ft_sprintf   sprintf

Definition at line 120 of file ftstdlib.h.

◆ ft_srealloc

#define ft_srealloc   realloc

Definition at line 145 of file ftstdlib.h.

◆ ft_strcat

#define ft_strcat   strcat

Definition at line 85 of file ftstdlib.h.

◆ ft_strcmp

#define ft_strcmp   strcmp

Definition at line 86 of file ftstdlib.h.

◆ ft_strcpy

#define ft_strcpy   strcpy

Definition at line 87 of file ftstdlib.h.

◆ ft_strlen

#define ft_strlen   strlen

Definition at line 88 of file ftstdlib.h.

◆ ft_strncmp

#define ft_strncmp   strncmp

Definition at line 89 of file ftstdlib.h.

◆ ft_strncpy

#define ft_strncpy   strncpy

Definition at line 90 of file ftstdlib.h.

◆ ft_strrchr

#define ft_strrchr   strrchr

Definition at line 91 of file ftstdlib.h.

◆ ft_strstr

#define ft_strstr   strstr

Definition at line 92 of file ftstdlib.h.

◆ ft_strtol

#define ft_strtol   strtol

miscellaneous

Definition at line 155 of file ftstdlib.h.

◆ FT_UINT_MAX

#define FT_UINT_MAX   UINT_MAX

Definition at line 65 of file ftstdlib.h.

◆ FT_ULONG_MAX

#define FT_ULONG_MAX   ULONG_MAX

Definition at line 68 of file ftstdlib.h.

◆ FT_USHORT_MAX

#define FT_USHORT_MAX   USHRT_MAX

Definition at line 62 of file ftstdlib.h.