Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
91386eee
Commit
91386eee
authored
Nov 17, 2014
by
Paul Sokolovsky
Browse files
ports: Define mp_off_t.
parent
fa2edabc
Changes
5
Hide whitespace changes
Inline
Side-by-side
bare-arm/mpconfigport.h
View file @
91386eee
...
...
@@ -46,6 +46,7 @@ typedef int32_t mp_int_t; // must be pointer size
typedef
uint32_t
mp_uint_t
;
// must be pointer size
typedef
void
*
machine_ptr_t
;
// must be of pointer size
typedef
const
void
*
machine_const_ptr_t
;
// must be of pointer size
typedef
long
mp_off_t
;
// extra built in names to add to the global namespace
extern
const
struct
_mp_obj_fun_builtin_t
mp_builtin_open_obj
;
...
...
qemu-arm/mpconfigport.h
View file @
91386eee
...
...
@@ -29,6 +29,7 @@ typedef int32_t mp_int_t; // must be pointer size
typedef
uint32_t
mp_uint_t
;
// must be pointer size
typedef
void
*
machine_ptr_t
;
// must be of pointer size
typedef
const
void
*
machine_const_ptr_t
;
// must be of pointer size
typedef
long
mp_off_t
;
// extra built in names to add to the global namespace
extern
const
struct
_mp_obj_fun_builtin_t
mp_builtin_open_obj
;
...
...
teensy/mpconfigport.h
View file @
91386eee
...
...
@@ -55,6 +55,7 @@ typedef int32_t mp_int_t; // must be pointer size
typedef
unsigned
int
mp_uint_t
;
// must be pointer size
typedef
void
*
machine_ptr_t
;
// must be of pointer size
typedef
const
void
*
machine_const_ptr_t
;
// must be of pointer size
typedef
long
mp_off_t
;
// We have inlined IRQ functions for efficiency (they are generally
// 1 machine instruction).
...
...
unix-cpy/mpconfigport.h
View file @
91386eee
...
...
@@ -48,6 +48,7 @@ typedef unsigned int mp_uint_t; // must be pointer size
typedef
void
*
machine_ptr_t
;
// must be of pointer size
typedef
const
void
*
machine_const_ptr_t
;
// must be of pointer size
typedef
double
machine_float_t
;
typedef
long
mp_off_t
;
// We need to provide a declaration/definition of alloca()
#ifdef __FreeBSD__
...
...
windows/mpconfigport.h
View file @
91386eee
...
...
@@ -92,6 +92,13 @@ typedef unsigned int mp_uint_t; // must be pointer size
// define standard endianness macros.
#define MP_ENDIANNESS_LITTLE (1)
// Cannot include <sys/types.h>, as it may lead to symbol name clashes
#if _FILE_OFFSET_BITS == 64 && !defined(__LP64__)
typedef
long
long
mp_off_t
;
#else
typedef
long
mp_off_t
;
#endif
typedef
void
*
machine_ptr_t
;
// must be of pointer size
typedef
const
void
*
machine_const_ptr_t
;
// must be of pointer size
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment