summaryrefslogtreecommitdiff
path: root/unix
diff options
context:
space:
mode:
authorEmmanuel Blot <emmanuel.blot@free.fr>2014-06-19 18:54:34 +0200
committerEmmanuel Blot <emmanuel.blot@free.fr>2014-06-19 18:54:34 +0200
commitf6932d650620d3753b5a18df5131227276260f74 (patch)
tree977c539a77da4fa73d547414b78c266e511cfc46 /unix
parentbf3366a48bca2808ae04ac49e5f5737481d28b57 (diff)
Prefix ARRAY_SIZE with micropython prefix MP_
Diffstat (limited to 'unix')
-rw-r--r--unix/modffi.c4
-rw-r--r--unix/modos.c4
-rw-r--r--unix/modsocket.c4
-rw-r--r--unix/modtime.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/unix/modffi.c b/unix/modffi.c
index bfc840cef..f1b219987 100644
--- a/unix/modffi.c
+++ b/unix/modffi.c
@@ -421,8 +421,8 @@ STATIC const mp_obj_dict_t mp_module_ffi_globals = {
.map = {
.all_keys_are_qstrs = 1,
.table_is_fixed_array = 1,
- .used = ARRAY_SIZE(mp_module_ffi_globals_table),
- .alloc = ARRAY_SIZE(mp_module_ffi_globals_table),
+ .used = MP_ARRAY_SIZE(mp_module_ffi_globals_table),
+ .alloc = MP_ARRAY_SIZE(mp_module_ffi_globals_table),
.table = (mp_map_elem_t*)mp_module_ffi_globals_table,
},
};
diff --git a/unix/modos.c b/unix/modos.c
index 657958d04..2e02ef0aa 100644
--- a/unix/modos.c
+++ b/unix/modos.c
@@ -75,8 +75,8 @@ STATIC const mp_obj_dict_t mp_module_os_globals = {
.map = {
.all_keys_are_qstrs = 1,
.table_is_fixed_array = 1,
- .used = ARRAY_SIZE(mp_module_os_globals_table),
- .alloc = ARRAY_SIZE(mp_module_os_globals_table),
+ .used = MP_ARRAY_SIZE(mp_module_os_globals_table),
+ .alloc = MP_ARRAY_SIZE(mp_module_os_globals_table),
.table = (mp_map_elem_t*)mp_module_os_globals_table,
},
};
diff --git a/unix/modsocket.c b/unix/modsocket.c
index b1a34a39b..8c5c9706c 100644
--- a/unix/modsocket.c
+++ b/unix/modsocket.c
@@ -436,8 +436,8 @@ STATIC const mp_obj_dict_t mp_module_socket_globals = {
.map = {
.all_keys_are_qstrs = 1,
.table_is_fixed_array = 1,
- .used = ARRAY_SIZE(mp_module_socket_globals_table),
- .alloc = ARRAY_SIZE(mp_module_socket_globals_table),
+ .used = MP_ARRAY_SIZE(mp_module_socket_globals_table),
+ .alloc = MP_ARRAY_SIZE(mp_module_socket_globals_table),
.table = (mp_map_elem_t*)mp_module_socket_globals_table,
},
};
diff --git a/unix/modtime.c b/unix/modtime.c
index 3cc09e3cd..006fd0ebd 100644
--- a/unix/modtime.c
+++ b/unix/modtime.c
@@ -113,8 +113,8 @@ STATIC const mp_obj_dict_t mp_module_time_globals = {
.map = {
.all_keys_are_qstrs = 1,
.table_is_fixed_array = 1,
- .used = ARRAY_SIZE(mp_module_time_globals_table),
- .alloc = ARRAY_SIZE(mp_module_time_globals_table),
+ .used = MP_ARRAY_SIZE(mp_module_time_globals_table),
+ .alloc = MP_ARRAY_SIZE(mp_module_time_globals_table),
.table = (mp_map_elem_t*)mp_module_time_globals_table,
},
};