Explorar o código

[添加]:MICROPY_PY_SYS_STDFILES宏控制的modsys模块中一些属性的qstr。

SummerGift %!s(int64=8) %!d(string=hai) anos
pai
achega
b4c0a47f91
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  1. 3 0
      port/genhdr/qstrdefs.generated.h
  2. 1 0
      port/mpconfigport.h

+ 3 - 0
port/genhdr/qstrdefs.generated.h

@@ -573,6 +573,9 @@ QDEF(MP_QSTR_delattr, (const byte*)"\xdb\x07" "delattr")
 QDEF(MP_QSTR_FileIO, (const byte*)"\xc5\x06" "FileIO")
 QDEF(MP_QSTR_FileIO, (const byte*)"\xc5\x06" "FileIO")
 QDEF(MP_QSTR_TextIOWrapper, (const byte*)"\xad\x0d" "TextIOWrapper")
 QDEF(MP_QSTR_TextIOWrapper, (const byte*)"\xad\x0d" "TextIOWrapper")
 QDEF(MP_QSTR_io, (const byte*)"\x23\x02" "io")
 QDEF(MP_QSTR_io, (const byte*)"\x23\x02" "io")
+QDEF(MP_QSTR_stdin, (const byte*)"\x21\x05" "stdin")
+QDEF(MP_QSTR_stdout, (const byte*)"\x08\x06" "stdout")
+QDEF(MP_QSTR_stderr, (const byte*)"\xa3\x06" "stderr")
 
 
 
 
 // This file was automatically generated by makeqstrdata.py
 // This file was automatically generated by makeqstrdata.py

+ 1 - 0
port/mpconfigport.h

@@ -126,6 +126,7 @@
 #define MICROPY_VFS_FAT             (0)
 #define MICROPY_VFS_FAT             (0)
 #define MICROPY_PY_MODUOS_FILE      (1)
 #define MICROPY_PY_MODUOS_FILE      (1)
 #define MICROPY_PY_UERRNO           (1)
 #define MICROPY_PY_UERRNO           (1)
+#define MICROPY_PY_SYS_STDFILES     (1)
 
 
 // extended modules
 // extended modules
 #define MICROPY_PY_UCTYPES          (1)
 #define MICROPY_PY_UCTYPES          (1)