ucommon
7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc.. Fossies Dox: ucommon-7.0.0.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 26 #ifndef _UCOMMON_CONFIG_H_ 30 #ifndef _UCOMMON_CPR_H_ 31 #define _UCOMMON_CPR_H_ 36 __EXPORT int setenv(
const char *s,
const char *v,
int p);
38 __EXPORT int gettimeofday(
struct timeval *tv,
void *tz);
85 #ifdef UCOMMON_SYSRUNTIME 91 __EXPORT void *
operator new(
size_t size);
98 __EXPORT void *
operator new[](
size_t size);
108 __EXPORT void *
operator new[](
size_t size,
void *address);
119 __EXPORT void *
operator new[](
size_t size,
void *address,
size_t known);
125 #if __cplusplus <= 199711L 126 __EXPORT void operator delete(
void *object);
128 __EXPORT void operator delete(
void *object) noexcept (
true);
135 #if __cplusplus <= 199711L 136 __EXPORT void operator delete[](
void *array);
138 __EXPORT void operator delete[](
void *array) noexcept(
true);
142 extern "C" __EXPORT void __cxa_pure_virtual(
void);
147 #if !defined(_MSWINDOWS_) && !defined(__QNX__) 151 #elif defined(_MSWINDOWS_) 152 inline char *strdup(
const char *s)
155 inline int stricmp(
const char *s1,
const char *s2)
156 {
return _stricmp(s1, s2);}
158 inline int strnicmp(
const char *s1,
const char *s2,
size_t size)
159 {
return _strnicmp(s1, s2, size);}
175 template <
typename T>
177 return static_cast<T*>(
cpr_newp(handle,
sizeof(T)));
180 template <
typename T>
__EXPORT uint32_t lsb_getlong(uint8_t *b)
__EXPORT void msb_setshort(uint8_t *b, uint16_t v)
__EXPORT void msb_setlong(uint8_t *b, uint32_t v)
__EXPORT void lsb_setshort(uint8_t *b, uint16_t v)
__EXPORT void lsb_setlong(uint8_t *b, uint32_t v)
__EXPORT void cpr_freep(void **handle)
__EXPORT void cpr_memswap(void *mem1, void *mem2, size_t size)
__EXPORT void * cpr_memassign(size_t size, caddr_t address, size_t known) __MALLOC
__EXPORT int stricmp(const char *s1, const char *s2)
__EXPORT uint16_t lsb_getshort(uint8_t *b)
__EXPORT void * cpr_memalloc(size_t size) __MALLOC
__EXPORT long tzoffset(struct timezone *tz=NULL)
__EXPORT void cpr_runtime_error(const char *text)
__EXPORT uint32_t msb_getlong(uint8_t *b)
__EXPORT uint16_t msb_getshort(uint8_t *b)
__EXPORT void * cpr_newp(void **handle, size_t size)
__EXPORT int strnicmp(const char *s1, const char *s2, size_t size)