Skip to content

Commit 949b556

Browse files
committed
py/compile2: Rename "Micro Python" to "MicroPython".
1 parent d64154c commit 949b556

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

py/compile2.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ STATIC void close_over_variables_etc(compiler_t *comp, scope_t *this_scope, int
574574
for (int j = 0; j < this_scope->id_info_len; j++) {
575575
id_info_t *id2 = &this_scope->id_info[j];
576576
if (id2->kind == ID_INFO_KIND_FREE && id->qst == id2->qst) {
577-
// in Micro Python we load closures using LOAD_FAST
577+
// in MicroPython we load closures using LOAD_FAST
578578
EMIT_LOAD_FAST(id->qst, id->local_num);
579579
nfree += 1;
580580
}
@@ -662,9 +662,9 @@ STATIC void compile_funcdef_lambdef_param(compiler_t *comp, const byte *p) {
662662

663663
if (comp->have_star) {
664664
comp->num_dict_params += 1;
665-
// in Micro Python we put the default dict parameters into a dictionary using the bytecode
665+
// in MicroPython we put the default dict parameters into a dictionary using the bytecode
666666
if (comp->num_dict_params == 1) {
667-
// in Micro Python we put the default positional parameters into a tuple using the bytecode
667+
// in MicroPython we put the default positional parameters into a tuple using the bytecode
668668
// we need to do this here before we start building the map for the default keywords
669669
if (comp->num_default_params > 0) {
670670
EMIT_ARG(build_tuple, comp->num_default_params);
@@ -708,7 +708,7 @@ STATIC void compile_funcdef_lambdef(compiler_t *comp, scope_t *scope, const byte
708708
return;
709709
}
710710

711-
// in Micro Python we put the default positional parameters into a tuple using the bytecode
711+
// in MicroPython we put the default positional parameters into a tuple using the bytecode
712712
// the default keywords args may have already made the tuple; if not, do it now
713713
if (comp->num_default_params > 0 && comp->num_dict_params == 0) {
714714
EMIT_ARG(build_tuple, comp->num_default_params);
@@ -3208,7 +3208,7 @@ STATIC void compile_scope_inline_asm(compiler_t *comp, scope_t *scope, pass_kind
32083208
#endif
32093209

32103210
STATIC void scope_compute_things(scope_t *scope) {
3211-
// in Micro Python we put the *x parameter after all other parameters (except **y)
3211+
// in MicroPython we put the *x parameter after all other parameters (except **y)
32123212
if (scope->scope_flags & MP_SCOPE_FLAG_VARARGS) {
32133213
id_info_t *id_param = NULL;
32143214
for (int i = scope->id_info_len - 1; i >= 0; i--) {
@@ -3246,7 +3246,7 @@ STATIC void scope_compute_things(scope_t *scope) {
32463246
// compute the index of cell vars
32473247
for (int i = 0; i < scope->id_info_len; i++) {
32483248
id_info_t *id = &scope->id_info[i];
3249-
// in Micro Python the cells come right after the fast locals
3249+
// in MicroPython the cells come right after the fast locals
32503250
// parameters are not counted here, since they remain at the start
32513251
// of the locals, even if they are cell vars
32523252
if (id->kind == ID_INFO_KIND_CELL && !(id->flags & ID_FLAG_IS_PARAM)) {
@@ -3266,14 +3266,14 @@ STATIC void scope_compute_things(scope_t *scope) {
32663266
id_info_t *id2 = &scope->id_info[j];
32673267
if (id2->kind == ID_INFO_KIND_FREE && id->qst == id2->qst) {
32683268
assert(!(id2->flags & ID_FLAG_IS_PARAM)); // free vars should not be params
3269-
// in Micro Python the frees come first, before the params
3269+
// in MicroPython the frees come first, before the params
32703270
id2->local_num = num_free;
32713271
num_free += 1;
32723272
}
32733273
}
32743274
}
32753275
}
3276-
// in Micro Python shift all other locals after the free locals
3276+
// in MicroPython shift all other locals after the free locals
32773277
if (num_free > 0) {
32783278
for (int i = 0; i < scope->id_info_len; i++) {
32793279
id_info_t *id = &scope->id_info[i];

0 commit comments

Comments
 (0)