diff --git a/lite-python/demo/Hi3861/test.c b/lite-python/demo/Hi3861/test.c index 6a854b3bc144244f7273eff92fc3a1da1bf0edda..0545e0a49fe15b921275b19491a8326e2ddba0be 100755 --- a/lite-python/demo/Hi3861/test.c +++ b/lite-python/demo/Hi3861/test.c @@ -25,6 +25,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *****************************************************************************/ +shijian const char* c_math_py = { "import math\r\n" @@ -283,4 +284,4 @@ const char* c_another_py = "\r\n" " def SayHello(self):" "\r\n" " print(\'My name is:\', self.name)" "\r\n" -}; \ No newline at end of file +}; diff --git a/lite-python/dtpython.c b/lite-python/dtpython.c index 19df0abb4b54845ed664d3b01458cae4cb7f2f87..3e8dab43ce5a1a46c0066233d5269384b86b54f8 100755 --- a/lite-python/dtpython.c +++ b/lite-python/dtpython.c @@ -1,31 +1,4 @@ -/**************************************************************************** - -MIT License - -Copyright (c) 2021 唐佐林 -WeChat : delphi_tang -EMail: delphi_tang@dt4sw.com - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -*****************************************************************************/ - +shijian #include "py/compile.h" #include "py/runtime.h" #include "py/repl.h"