blob: 3d5b7fc7628c174ff8354307c54a62c6dcac4b8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
/* ftstdlib.h -- modified for XFree86. */
/* $XFree86: xc/lib/font/FreeType/ftstdlib.h,v 1.5 2003/02/22 06:00:36 dawes Exp $ */
#ifndef __FTSTDLIB_H__
#define __FTSTDLIB_H__
#ifndef FONTMODULE
#include <limits.h>
#define FT_UINT_MAX UINT_MAX
#define FT_ULONG_MAX ULONG_MAX
#include <ctype.h>
#define ft_isalnum isalnum
#define ft_isupper isupper
#define ft_islower islower
#define ft_isdigit isdigit
#define ft_isxdigit isxdigit
#include <string.h>
#define ft_strlen strlen
#define ft_strcat strcat
#define ft_strcmp strcmp
#define ft_strncmp strncmp
#define ft_memcpy memcpy
#define ft_strcpy strcpy
#define ft_strncpy strncpy
#define ft_memset memset
#define ft_memmove memmove
#define ft_memcmp memcmp
#include <stdio.h>
#define ft_sprintf sprintf
#include <stdlib.h>
#define ft_qsort qsort
#define ft_exit exit
#define ft_atoi atoi
#include <setjmp.h>
#define ft_jmp_buf jmp_buf /* note: this cannot be a typedef since */
/* jmp_buf is defined as a macro */
/* on certain platforms */
#define ft_setjmp setjmp /* same thing here */
#define ft_longjmp longjmp /* " */
#else
#include "Xmd.h"
#define _XTYPEDEF_BOOL
#include "Xdefs.h"
#define DONT_DEFINE_WRAPPERS
#define DEFINE_SETJMP_WRAPPERS
#include "xf86_ansic.h"
#undef DONT_DEFINE_WRAPPERS
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((xf86size_t)&((TYPE*)0)->MEMBER)
#endif
#define FT_UINT_MAX 4294967295U
#ifdef LONG64
#define FT_ULONG_MAX 18446744073709551615UL
#else
#define FT_ULONG_MAX 4294967295UL
#endif
#define ft_isalnum xf86isalnum
#define ft_isupper xf86isupper
#define ft_islower xf86islower
#define ft_xdigit xf86isxdigit
#define ft_strlen xf86strlen
#define ft_strcmp xf86strcmp
#define ft_strncmp xf86strncmp
#define ft_memcpy xf86memcpy
#define ft_strcpy xf86strcpy
#define ft_strncpy xf86strncpy
#define ft_memset xf86memset
#define ft_memmove xf86memmove
#define ft_memcmp xf86memcmp
#define ft_sprintf xf86sprintf
#define ft_qsort xf86qsort
#define ft_exit xf86exit
#define ft_atoi xf86atoi
#define ft_jmp_buf jmp_buf
#define ft_setjmp setjmp
#define ft_longjmp longjmp
#endif /* FONTMODULE */
#include <stdarg.h>
#endif /* __FTSTDLIB_H__ */
/* END */
|