Skip to content

Commit f25c93c

Browse files
committed
update
1 parent ec4144f commit f25c93c

File tree

3 files changed

+41
-3
lines changed

3 files changed

+41
-3
lines changed

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 zhangpanyi
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

astar/blockallocator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,4 @@ void BlockAllocator::clear()
196196
num_chunk_count_ = 0;
197197
memset(chunks_, 0, num_chunk_space_ * sizeof(Chunk));
198198
memset(free_lists_, 0, sizeof(free_lists_));
199-
}
199+
}

astar/blockallocator.h

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
#ifndef __BLOCKALLOCATOR_H__
1+
/*
2+
* Copyright (c) 2006-2009 Erin Catto http://www.box2d.org
3+
*
4+
* This software is provided 'as-is', without any express or implied
5+
* warranty. In no event will the authors be held liable for any damages
6+
* arising from the use of this software.
7+
* Permission is granted to anyone to use this software for any purpose,
8+
* including commercial applications, and to alter it and redistribute it
9+
* freely, subject to the following restrictions:
10+
* 1. The origin of this software must not be misrepresented; you must not
11+
* claim that you wrote the original software. If you use this software
12+
* in a product, an acknowledgment in the product documentation would be
13+
* appreciated but is not required.
14+
* 2. Altered source versions must be plainly marked as such, and must not be
15+
* misrepresented as being the original software.
16+
* 3. This notice may not be removed or altered from any source distribution.
17+
*/
18+
19+
#ifndef __BLOCKALLOCATOR_H__
220
#define __BLOCKALLOCATOR_H__
321

422
#include <cstdint>
@@ -32,4 +50,4 @@ class BlockAllocator
3250
static bool s_block_size_lookup_initialized_;
3351
};
3452

35-
#endif
53+
#endif

0 commit comments

Comments
 (0)