uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
reent.h
Go to the documentation of this file.
1 #ifndef __RENT_H__
2 #define __RENT_H__
3 
4 #include <errno.h>
5 
6 struct _reent {
7  enum errno_t _errno;
8 };
9 
10 static inline void _REENT_INIT_PTR(struct _reent * reent) { reent->_errno = ENOERROR; }
11 extern struct _reent * _impure_ptr;
12 static inline void set_errno(enum errno_t _errno) { _impure_ptr->_errno = errno = _errno; }
13 
14 #endif