Subversion Repositories freemyipod

Rev

Rev 160 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 160 Rev 184
Line 43... Line 43...
43
 
43
 
44
/***********************************************************************
44
/***********************************************************************
45
// memory checkers
45
// memory checkers
46
************************************************************************/
46
************************************************************************/
47
 
47
 
48
#if defined(__BOUNDS_CHECKING_ON)
48
#if !defined(__BOUNDS_CHECKING_ON)
49
#  include <unchecked.h>
-
 
50
#else
-
 
51
#  define BOUNDS_CHECKING_OFF_DURING(stmt)      stmt
49
#  define BOUNDS_CHECKING_OFF_DURING(stmt)      stmt
52
#  define BOUNDS_CHECKING_OFF_IN_EXPR(expr)     (expr)
50
#  define BOUNDS_CHECKING_OFF_IN_EXPR(expr)     (expr)
53
#endif
51
#endif
54
 
52
 
55
 
53
 
56
/***********************************************************************
54
/***********************************************************************
57
// autoconf section
55
// autoconf section
58
************************************************************************/
56
************************************************************************/
59
 
57
 
60
#if !defined(UCL_HAVE_CONFIG_H)
58
#if !defined(UCL_HAVE_CONFIG_H)
61
#  include <stddef.h>           /* ptrdiff_t, size_t */
-
 
62
#  include <string.h>           /* memcpy, memmove, memcmp, memset */
-
 
63
#  if !defined(NO_STDLIB_H)
-
 
64
#    include <stdlib.h>
-
 
65
#  endif
-
 
66
#  define HAVE_MEMCMP
59
#  define HAVE_MEMCMP
67
#  define HAVE_MEMCPY
60
#  define HAVE_MEMCPY
68
#  define HAVE_MEMMOVE
61
#  define HAVE_MEMMOVE
69
#  define HAVE_MEMSET
62
#  define HAVE_MEMSET
70
#else
-
 
71
#  include <sys/types.h>
-
 
72
#  if defined(STDC_HEADERS)
-
 
73
#    include <string.h>
-
 
74
#    include <stdlib.h>
-
 
75
#  endif
-
 
76
#  if defined(HAVE_STDDEF_H)
-
 
77
#    include <stddef.h>
-
 
78
#  endif
-
 
79
#  if defined(HAVE_MEMORY_H)
-
 
80
#    include <memory.h>
-
 
81
#  endif
-
 
82
#endif
63
#endif
83
 
64
 
84
#if defined(__UCL_DOS16) || defined(__UCL_WIN16)
65
#if defined(__UCL_DOS16) || defined(__UCL_WIN16)
85
#  define HAVE_MALLOC_H
66
#  define HAVE_MALLOC_H
86
#  define HAVE_HALLOC
67
#  define HAVE_HALLOC
Line 89... Line 70...
89
 
70
 
90
#undef NDEBUG
71
#undef NDEBUG
91
#if !defined(UCL_DEBUG)
72
#if !defined(UCL_DEBUG)
92
#  define NDEBUG
73
#  define NDEBUG
93
#endif
74
#endif
94
#if 1 || defined(UCL_DEBUG) || !defined(NDEBUG)
-
 
95
#  if !defined(NO_STDIO_H)
-
 
96
#    include <stdio.h>
-
 
97
#  endif
-
 
98
#endif
-
 
99
#include <assert.h>
-
 
100
 
75
 
101
 
76
 
102
#if !defined(UCL_UNUSED)
77
#if !defined(UCL_UNUSED)
103
#  define UCL_UNUSED(parm)  (parm = parm)
78
#  define UCL_UNUSED(parm)  (parm = parm)
104
#endif
79
#endif