Skip to content

Commit ebc232e

Browse files
committed
更新版权声明
1 parent 7e1535b commit ebc232e

15 files changed

+51
-40
lines changed

darwin.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* You should have received a copy of the GNU Affero General Public License
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*
17-
* Copyright (C) 2017 Michael Lee(李登淳)
17+
* Copyright (C) 2018 Michael Lee(李登淳)
1818
1919
* Github: https://github.com/mikecovlee
2020
*/
@@ -34,9 +34,11 @@ static cs::extension_t darwin_ui_ext_shared = cs::make_shared_extension(darwin_u
3434
static cs::extension_t darwin_drawable_ext_shared = cs::make_shared_extension(darwin_drawable_ext);
3535
namespace cs_impl {
3636
template<>
37-
cs::extension_t &get_ext<std::shared_ptr<darwin::drawable>>()
37+
cs::extension_t &get_ext<std::shared_ptr < darwin::drawable>>
38+
()
3839
{
39-
return darwin_drawable_ext_shared;
40+
return
41+
darwin_drawable_ext_shared;
4042
}
4143

4244
template<>
@@ -52,7 +54,8 @@ namespace cs_impl {
5254
}
5355

5456
template<>
55-
constexpr const char *get_name_of_type<std::shared_ptr<darwin::drawable>>()
57+
constexpr const char *get_name_of_type<std::shared_ptr < darwin::drawable>>
58+
()
5659
{
5760
return "cs::darwin::drawable";
5861
}

include/darwin/adapter.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* You should have received a copy of the GNU Affero General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*
18-
* Copyright (C) 2017 Michael Lee(李登淳)
18+
* Copyright (C) 2018 Michael Lee(李登淳)
1919
2020
* Github: https://github.com/mikecovlee
2121
*/

include/darwin/core.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* You should have received a copy of the GNU Affero General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*
18-
* Copyright (C) 2017 Michael Lee(李登淳)
18+
* Copyright (C) 2018 Michael Lee(李登淳)
1919
2020
* Github: https://github.com/mikecovlee
2121
*/
@@ -154,7 +154,7 @@ namespace darwin {
154154
return typeid(*this);
155155
}
156156

157-
virtual std::shared_ptr<drawable> clone()
157+
virtual std::shared_ptr <drawable> clone()
158158
{
159159
return nullptr;
160160
}

include/darwin/darwin.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* You should have received a copy of the GNU Affero General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*
18-
* Copyright (C) 2017 Michael Lee(李登淳)
18+
* Copyright (C) 2018 Michael Lee(李登淳)
1919
2020
* Github: https://github.com/mikecovlee
2121
*
@@ -177,7 +177,9 @@ void darwin::darwin_rt::exit()
177177
#include "./win32_module.hpp"
178178

179179
#else
180+
180181
#include "./unix_module.hpp"
182+
181183
#endif
182184
#endif
183185
#endif

include/darwin/debugger.hpp

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* You should have received a copy of the GNU Affero General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*
18-
* Copyright (C) 2017 Michael Lee(李登淳)
18+
* Copyright (C) 2018 Michael Lee(李登淳)
1919
2020
* Github: https://github.com/mikecovlee
2121
*/
@@ -131,49 +131,55 @@ namespace darwin {
131131
};
132132

133133
#ifndef DARWIN_DISABLE_LOG
134+
134135
class debugger final {
135136
static outfs out;
136137
public:
137138
#ifdef DARWIN_STRICT_CHECK
138139
static constexpr bool strict=true;
139140
#else
140-
static constexpr bool strict=false;
141+
static constexpr bool strict = false;
141142
#endif
142143
#ifdef DARWIN_IGNORE_WARNING
143144
static constexpr bool ignore=true;
144145
#else
145-
static constexpr bool ignore=false;
146+
static constexpr bool ignore = false;
146147
#endif
147-
static void log(const char* file,int line,const char* func,const char* msg)
148+
149+
static void log(const char *file, int line, const char *func, const char *msg)
148150
{
149-
if(!out.usable())
151+
if (!out.usable())
150152
out.open("./darwin_runtime.log");
151-
out.printf("[Darwin Log(%ums)]:In function \"%s\"(%s:%d):%s\n",timer::time(),func,file,line,msg);
153+
out.printf("[Darwin Log(%ums)]:In function \"%s\"(%s:%d):%s\n", timer::time(), func, file, line, msg);
152154
}
153-
static void warning(const char* file,int line,const char* func,const char* msg)
155+
156+
static void warning(const char *file, int line, const char *func, const char *msg)
154157
{
155-
if(ignore)
158+
if (ignore)
156159
return;
157-
if(!out.usable())
160+
if (!out.usable())
158161
out.open("./darwin_runtime.log");
159-
out.printf("[Darwin Warning(%ums)]:In function \"%s\"(%s:%d):%s\n",timer::time(),func,file,line,msg);
160-
if(strict) {
162+
out.printf("[Darwin Warning(%ums)]:In function \"%s\"(%s:%d):%s\n", timer::time(), func, file, line, msg);
163+
if (strict) {
161164
out.flush();
162165
std::terminate();
163166
}
164167
}
165-
static void error(const char* file,int line,const char* func,const char* msg)
168+
169+
static void error(const char *file, int line, const char *func, const char *msg)
166170
{
167-
out.printf("[Darwin Error(%ums)]:In function \"%s\"(%s:%d):%s\n",timer::time(),func,file,line,msg);
171+
out.printf("[Darwin Error(%ums)]:In function \"%s\"(%s:%d):%s\n", timer::time(), func, file, line, msg);
168172
out.flush();
169173
std::terminate();
170174
}
171-
static void log_path(const char* path)
175+
176+
static void log_path(const char *path)
172177
{
173178
out.close();
174179
out.open(path);
175180
}
176181
};
182+
177183
outfs debugger::out;
178184
#endif
179185
}

include/darwin/graphics.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* You should have received a copy of the GNU Affero General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*
18-
* Copyright (C) 2017 Michael Lee(李登淳)
18+
* Copyright (C) 2018 Michael Lee(李登淳)
1919
2020
* Github: https://github.com/mikecovlee
2121
*/
@@ -82,7 +82,7 @@ namespace darwin {
8282
return *this;
8383
}
8484

85-
virtual std::shared_ptr<drawable> clone() override
85+
virtual std::shared_ptr <drawable> clone() override
8686
{
8787
return std::make_shared<picture>(*this);
8888
}

include/darwin/module.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* You should have received a copy of the GNU Affero General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*
18-
* Copyright (C) 2017 Michael Lee(李登淳)
18+
* Copyright (C) 2018 Michael Lee(李登淳)
1919
2020
* Github: https://github.com/mikecovlee
2121
*/

include/darwin/random.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* You should have received a copy of the GNU Affero General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*
18-
* Copyright (C) 2017 Michael Lee(李登淳)
18+
* Copyright (C) 2018 Michael Lee(李登淳)
1919
2020
* Github: https://github.com/mikecovlee
2121
*/

include/darwin/timer.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* You should have received a copy of the GNU Affero General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*
18-
* Copyright (C) 2017 Michael Lee(李登淳)
18+
* Copyright (C) 2018 Michael Lee(李登淳)
1919
2020
* Github: https://github.com/mikecovlee
2121
*/
@@ -29,7 +29,7 @@ namespace darwin {
2929
class timer;
3030
}
3131
class darwin::timer final {
32-
static std::chrono::time_point<std::chrono::high_resolution_clock> m_timer;
32+
static std::chrono::time_point <std::chrono::high_resolution_clock> m_timer;
3333
public:
3434
enum class time_unit {
3535
nano_sec, micro_sec, milli_sec, second, minute
@@ -93,5 +93,5 @@ class darwin::timer final {
9393
}
9494
};
9595

96-
std::chrono::time_point<std::chrono::high_resolution_clock>
96+
std::chrono::time_point <std::chrono::high_resolution_clock>
9797
darwin::timer::m_timer(std::chrono::high_resolution_clock::now());

include/darwin/unix_adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* You should have received a copy of the GNU Affero General Public License
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*
17-
* Copyright (C) 2017 Michael Lee(李登淳)
17+
* Copyright (C) 2018 Michael Lee(李登淳)
1818
1919
* Github: https://github.com/mikecovlee
2020
*/

0 commit comments

Comments
 (0)