فهرست منبع

cleanup whitespace shuffling in several files

Kolten Pearson 2 سال پیش
والد
کامیت
d57b977074
4فایلهای تغییر یافته به همراه6 افزوده شده و 7 حذف شده
  1. 1 2
      src/main.cpp
  2. 1 1
      src/obj.h
  3. 3 3
      src/pocketpy.h
  4. 1 1
      src/str.h

+ 1 - 2
src/main.cpp

@@ -56,5 +56,4 @@ __HELP:
     return 0;
 }
 
-#endif
-
+#endif

+ 1 - 1
src/obj.h

@@ -370,4 +370,4 @@ struct Py_<DummyModule> final: PyObject {
 };
 
 
-}   // namespace pkpy
+}   // namespace pkpy

+ 3 - 3
src/pocketpy.h

@@ -5,6 +5,7 @@
 #include "obj.h"
 #include "repl.h"
 #include "iter.h"
+#include "base64.h"
 #include "cffi.h"
 #include "requests.h"
 #include "io.h"
@@ -920,6 +921,7 @@ inline void VM::post_init(){
     add_module_c(this);
     add_module_gc(this);
     add_module_random(this);
+    add_module_base64(this);
 
     for(const char* name: {"this", "functools", "collections", "heapq", "bisect"}){
         _lazy_modules[name] = kPythonLibs[name];
@@ -1048,6 +1050,4 @@ extern "C" {
         std::string json = vm->read_output();
         return strdup(json.c_str());
     }
-
-}
-
+}

+ 1 - 1
src/str.h

@@ -434,4 +434,4 @@ const StrName __and__ = StrName::get("__and__");
 const StrName __or__ = StrName::get("__or__");
 const StrName __xor__ = StrName::get("__xor__");
 
-} // namespace pkpy
+} // namespace pkpy