9 #ifndef __AFW_SAFE_CAST_H__
10 #define __AFW_SAFE_CAST_H__
72 if (result != integer) {
88 AFW_DEFINE_STATIC_INLINE(
int)
91 int result = (int)integer;
93 if (result != integer) {
109 AFW_DEFINE_STATIC_INLINE(
int)
112 int result = (int)size;
114 if (result != size) {
135 if (result != size) {
156 if (result != size) {
177 if (result != size) {
#define AFW_BEGIN_DECLARES
Interfaceafw_interface header.
apr_int32_t afw_int32_t
32-bit signed integer.
apr_uint32_t afw_uint32_t
32-bit unsigned integer.
apr_size_t afw_size_t
size_t.
apr_int64_t afw_integer_t
typedef for big signed int.
apr_off_t afw_off_t
off_t.
#define AFW_THROW_ERROR_Z(code, message_z, xctx)
Macro used to set error and 0 rv in xctx and throw it.
afw_integer_t afw_safe_cast_size_to_integer(afw_size_t size, afw_xctx_t *xctx)
Safely cast afw_size_t to afw_integer_t.
int afw_safe_cast_size_to_int(afw_size_t size, afw_xctx_t *xctx)
Safely cast afw_size_t to int.
afw_uint32_t afw_safe_cast_size_to_uint32(afw_size_t size, afw_xctx_t *xctx)
Safely cast afw_size_t to afw_uint32_t.
int afw_safe_cast_integer_to_int(afw_integer_t integer, afw_xctx_t *xctx)
Safely cast afw_integer_t to int.
afw_size_t afw_safe_cast_integer_to_size(afw_integer_t integer, afw_xctx_t *xctx)
Safely cast afw_integer_t to afw_size_t.
afw_size_t afw_safe_cast_off_to_size(afw_off_t off, afw_xctx_t *xctx)
Safely cast afw_off_t to afw_size_t.
afw_int32_t afw_safe_cast_size_to_int32(afw_size_t size, afw_xctx_t *xctx)
Safely cast afw_size_t to afw_int32_t.
Interface afw_xctx public struct.