summaryrefslogtreecommitdiff
path: root/extmod
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2020-04-16 09:13:57 +0200
committerDamien George <damien.p.george@gmail.com>2020-04-23 11:24:25 +1000
commit84fa3312cfa7d2237d4b56952f2cd6e3591210c4 (patch)
treedc2b3e67bad9969fc5792ca0822798d58addf174 /extmod
parentd6243568a05d423b58522435c3779975acbf56dd (diff)
all: Format code to add space after C++-style comment start.
Note: the uncrustify configuration is explicitly set to 'add' instead of 'force' in order not to alter the comments which use extra spaces after // as a means of indenting text for clarity.
Diffstat (limited to 'extmod')
-rw-r--r--extmod/modubinascii.c2
-rw-r--r--extmod/moducryptolib.c2
-rw-r--r--extmod/moductypes.c6
-rw-r--r--extmod/moduhashlib.c2
-rw-r--r--extmod/moduheapq.c2
-rw-r--r--extmod/modujson.c2
-rw-r--r--extmod/modurandom.c2
-rw-r--r--extmod/modure.c2
-rw-r--r--extmod/modutimeq.c2
-rw-r--r--extmod/moduwebsocket.c2
-rw-r--r--extmod/modwebrepl.c2
-rw-r--r--extmod/network_cyw43.c2
12 files changed, 14 insertions, 14 deletions
diff --git a/extmod/modubinascii.c b/extmod/modubinascii.c
index 5f441b58a..1d4c72b24 100644
--- a/extmod/modubinascii.c
+++ b/extmod/modubinascii.c
@@ -248,4 +248,4 @@ const mp_obj_module_t mp_module_ubinascii = {
.globals = (mp_obj_dict_t *)&mp_module_binascii_globals,
};
-#endif //MICROPY_PY_UBINASCII
+#endif // MICROPY_PY_UBINASCII
diff --git a/extmod/moducryptolib.c b/extmod/moducryptolib.c
index 9ea24c9fd..6c89d6d9f 100644
--- a/extmod/moducryptolib.c
+++ b/extmod/moducryptolib.c
@@ -375,4 +375,4 @@ const mp_obj_module_t mp_module_ucryptolib = {
.globals = (mp_obj_dict_t *)&mp_module_ucryptolib_globals,
};
-#endif //MICROPY_PY_UCRYPTOLIB
+#endif // MICROPY_PY_UCRYPTOLIB
diff --git a/extmod/moductypes.c b/extmod/moductypes.c
index e12b05f96..f7d2be1bc 100644
--- a/extmod/moductypes.c
+++ b/extmod/moductypes.c
@@ -431,7 +431,7 @@ STATIC mp_obj_t uctypes_struct_attr_op(mp_obj_t self_in, qstr attr, mp_obj_t set
mp_int_t offset = MP_OBJ_SMALL_INT_VALUE(deref);
mp_uint_t val_type = GET_TYPE(offset, VAL_TYPE_BITS);
offset &= VALUE_MASK(VAL_TYPE_BITS);
-//printf("scalar type=%d offset=%x\n", val_type, offset);
+// printf("scalar type=%d offset=%x\n", val_type, offset);
if (val_type <= INT64 || val_type == FLOAT32 || val_type == FLOAT64) {
// printf("size=%d\n", GET_SCALAR_SIZE(val_type));
@@ -501,7 +501,7 @@ STATIC mp_obj_t uctypes_struct_attr_op(mp_obj_t self_in, qstr attr, mp_obj_t set
mp_int_t offset = MP_OBJ_SMALL_INT_VALUE(sub->items[0]);
mp_uint_t agg_type = GET_TYPE(offset, AGG_TYPE_BITS);
offset &= VALUE_MASK(AGG_TYPE_BITS);
-//printf("agg type=%d offset=%x\n", agg_type, offset);
+// printf("agg type=%d offset=%x\n", agg_type, offset);
switch (agg_type) {
case STRUCT: {
@@ -525,7 +525,7 @@ STATIC mp_obj_t uctypes_struct_attr_op(mp_obj_t self_in, qstr attr, mp_obj_t set
o->desc = MP_OBJ_FROM_PTR(sub);
o->addr = self->addr + offset;
o->flags = self->flags;
-//printf("PTR/ARR base addr=%p\n", o->addr);
+// printf("PTR/ARR base addr=%p\n", o->addr);
return MP_OBJ_FROM_PTR(o);
}
}
diff --git a/extmod/moduhashlib.c b/extmod/moduhashlib.c
index fb786f370..195a24334 100644
--- a/extmod/moduhashlib.c
+++ b/extmod/moduhashlib.c
@@ -346,4 +346,4 @@ const mp_obj_module_t mp_module_uhashlib = {
.globals = (mp_obj_dict_t *)&mp_module_uhashlib_globals,
};
-#endif //MICROPY_PY_UHASHLIB
+#endif // MICROPY_PY_UHASHLIB
diff --git a/extmod/moduheapq.c b/extmod/moduheapq.c
index 187c10474..073ce516b 100644
--- a/extmod/moduheapq.c
+++ b/extmod/moduheapq.c
@@ -119,4 +119,4 @@ const mp_obj_module_t mp_module_uheapq = {
};
#endif
-#endif //MICROPY_PY_UHEAPQ
+#endif // MICROPY_PY_UHEAPQ
diff --git a/extmod/modujson.c b/extmod/modujson.c
index 3a196ee0c..8dff67358 100644
--- a/extmod/modujson.c
+++ b/extmod/modujson.c
@@ -323,4 +323,4 @@ const mp_obj_module_t mp_module_ujson = {
.globals = (mp_obj_dict_t *)&mp_module_ujson_globals,
};
-#endif //MICROPY_PY_UJSON
+#endif // MICROPY_PY_UJSON
diff --git a/extmod/modurandom.c b/extmod/modurandom.c
index c547339e2..ab83b0f70 100644
--- a/extmod/modurandom.c
+++ b/extmod/modurandom.c
@@ -224,4 +224,4 @@ const mp_obj_module_t mp_module_urandom = {
};
#endif
-#endif //MICROPY_PY_URANDOM
+#endif // MICROPY_PY_URANDOM
diff --git a/extmod/modure.c b/extmod/modure.c
index ff99e66d8..1847ec288 100644
--- a/extmod/modure.c
+++ b/extmod/modure.c
@@ -474,4 +474,4 @@ const mp_obj_module_t mp_module_ure = {
#include "re1.5/recursiveloop.c"
#include "re1.5/charclass.c"
-#endif //MICROPY_PY_URE
+#endif // MICROPY_PY_URE
diff --git a/extmod/modutimeq.c b/extmod/modutimeq.c
index 53ab7febb..c7467f3bf 100644
--- a/extmod/modutimeq.c
+++ b/extmod/modutimeq.c
@@ -230,4 +230,4 @@ const mp_obj_module_t mp_module_utimeq = {
.globals = (mp_obj_dict_t *)&mp_module_utimeq_globals,
};
-#endif //MICROPY_PY_UTIMEQ
+#endif // MICROPY_PY_UTIMEQ
diff --git a/extmod/moduwebsocket.c b/extmod/moduwebsocket.c
index a9bfd8589..34b520f33 100644
--- a/extmod/moduwebsocket.c
+++ b/extmod/moduwebsocket.c
@@ -200,7 +200,7 @@ STATIC mp_uint_t websocket_read(mp_obj_t self_in, void *buf, mp_uint_t size, int
return 0;
}
- //DEBUG_printf("Finished receiving ctrl message %x, ignoring\n", self->last_flags);
+ // DEBUG_printf("Finished receiving ctrl message %x, ignoring\n", self->last_flags);
continue;
}
}
diff --git a/extmod/modwebrepl.c b/extmod/modwebrepl.c
index 3c398f650..a8430bafb 100644
--- a/extmod/modwebrepl.c
+++ b/extmod/modwebrepl.c
@@ -190,7 +190,7 @@ STATIC mp_uint_t _webrepl_read(mp_obj_t self_in, void *buf, mp_uint_t size, int
mp_obj_webrepl_t *self = MP_OBJ_TO_PTR(self_in);
const mp_stream_p_t *sock_stream = mp_get_stream(self->sock);
mp_uint_t out_sz = sock_stream->read(self->sock, buf, size, errcode);
- //DEBUG_printf("webrepl: Read %d initial bytes from websocket\n", out_sz);
+ // DEBUG_printf("webrepl: Read %d initial bytes from websocket\n", out_sz);
if (out_sz == 0 || out_sz == MP_STREAM_ERROR) {
return out_sz;
}
diff --git a/extmod/network_cyw43.c b/extmod/network_cyw43.c
index 86cdeee9c..adbe427b1 100644
--- a/extmod/network_cyw43.c
+++ b/extmod/network_cyw43.c
@@ -153,7 +153,7 @@ STATIC int network_cyw43_scan_cb(void *env, const cyw43_ev_scan_result_t *res) {
MP_OBJ_NEW_SMALL_INT(res->channel),
MP_OBJ_NEW_SMALL_INT(res->rssi),
MP_OBJ_NEW_SMALL_INT(res->auth_mode),
- //mp_const_false, // hidden
+ // mp_const_false, // hidden
MP_OBJ_NEW_SMALL_INT(1), // N
};
mp_obj_list_append(list, mp_obj_new_tuple(6, tuple));