summaryrefslogtreecommitdiff
path: root/core/pkg
diff options
context:
space:
mode:
authorruki <[email protected]>2015-11-25 22:07:25 +0800
committerruki <[email protected]>2015-11-25 22:07:25 +0800
commit59ab74881403640bc58dd73cf6fbd56d01e1fca6 (patch)
treec0b54a0d10d44ff926d5051c17e481464e1e6e6f /core/pkg
parentc8e83565addad6ca85d9a6c0386dae52409791cc (diff)
update tbox and fix remove relative file bug
Diffstat (limited to 'core/pkg')
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/mac/x64/tbox.config.h29
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/distance.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/find.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/find_if.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/for.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/for_if.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/heap_sort.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/insert_sort.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/predicate.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/quick_sort.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/remove.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/remove_first.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/remove_first_if.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/remove_if.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/rfind.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/rfind_if.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/rfor.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/rfor_if.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/rwalk.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/sort.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/algorithm/walk.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/asio/aice.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/asio/aico.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/asio/aicp.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/asio/aioe.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/asio/aioo.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/asio/aiop.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/asio/asio.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/asio/dns.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/asio/http.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/asio/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/asio/ssl.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/charset/charset.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/charset/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/config.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/bloom_filter.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/circle_queue.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/container.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/element.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/element/hash.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/element/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/hash_map.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/hash_set.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/heap.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/iterator.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/iterator/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/list.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/list_entry.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/priority_queue.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/queue.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/single_list.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/single_list_entry.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/stack.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/container/vector.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/database/database.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/database/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/database/sql.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/database/value.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/libc.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/misc/ctype.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/misc/limits.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/misc/misc.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/misc/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/misc/setjmp.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/misc/signal.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/misc/stdarg.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/misc/time/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/misc/time/time.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/misc/time/type.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/stdio/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/stdio/printf_object.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/stdio/stdio.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/stdlib/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/stdlib/stdlib.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/string/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libc/string/string.h4
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libm/ceil.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libm/fabs.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libm/floor.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libm/inf.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libm/libm.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libm/maf.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libm/math.h4
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libm/mif.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libm/nan.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libm/pi.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libm/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/libm/round.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/fixed.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/fixed16.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/fixed30.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/fixed6.h0
-rwxr-xr-xcore/pkg/tbox.pkg/inc/tbox/math/impl/fixed16_arm.h66
-rwxr-xr-xcore/pkg/tbox.pkg/inc/tbox/math/impl/fixed30_arm.h65
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h (renamed from core/pkg/tbox.pkg/inc/tbox/platform/linux/android/prefix.h)9
-rwxr-xr-xcore/pkg/tbox.pkg/inc/tbox/math/impl/random.h85
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/int32.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/math.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/math/random.h0
-rwxr-xr-xcore/pkg/tbox.pkg/inc/tbox/memory/allocator.h175
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/memory/buffer.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/memory/fixed_pool.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/memory/large_pool.h3
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/memory/memory.h13
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/memory/pool.h6
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/memory/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/memory/queue_buffer.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/memory/small_pool.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/memory/static_buffer.h0
-rwxr-xr-xcore/pkg/tbox.pkg/inc/tbox/memory/static_pool.h166
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/memory/string_pool.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/cookies.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/dns/cache.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/dns/dns.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/dns/looker.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/dns/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/dns/server.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/http.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/hwaddr.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/ipaddr.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/ipv4.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/ipv6.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/network.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/ssl.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/network/url.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/object/array.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/object/boolean.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/object/data.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/object/date.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/object/dictionary.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/object/null.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/object/number.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/object/object.h18
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/object/prefix.h4
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/object/string.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/android/android.h (renamed from core/pkg/tbox.pkg/inc/tbox/platform/linux/android/android.h)14
-rwxr-xr-xcore/pkg/tbox.pkg/inc/tbox/platform/android/prefix.h34
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/atomic.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/frame.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/atomic.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/barrier.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/frame.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/atomic.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/barrier.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/frame.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/atomic.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/barrier.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/frame.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/atomic.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/atomic64.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/backtrace.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/barrier.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/cache_time.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/atomic.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/atomic64.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/barrier.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/compiler/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/directory.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/dns.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/dynamic.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/environment.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/event.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/exception.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/file.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/hostname.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/ifaddrs.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/libc/exception.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/libc/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/linux/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/ltimer.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/mach/barrier.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/mach/ios/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/mach/mac/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/mach/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/memory.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/mutex.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/page.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/path.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/platform.h2
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/posix/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/posix/sockaddr.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/print.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/process.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/processor.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/sched.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/semaphore.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/socket.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/spinlock.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/systemv/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/thread.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/thread_pool.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/thread_store.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/time.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/timer.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/unix/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/unix/syscall.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic64.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/barrier.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/exception.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/dbghelp.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/interface.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/iphlpapi.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/kernel32.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/mswsock.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/shell32.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/user32.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/ws2_32.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/ntstatus.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/platform/windows/socket_pool.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/abort.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/arch.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/asm.h0
-rwxr-xr-xcore/pkg/tbox.pkg/inc/tbox/prefix/asm/arm/prefix.S1
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/asm/arm/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/asm/asm.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/asm/cache.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/asm/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/assembler.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/assert.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/check.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/compiler.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/config.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/cpu.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/endian.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/keyword.h15
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/limits.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/malloc.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/packed.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/state.h37
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/trace.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/type.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/utils.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/prefix/version.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/stream/async_stream.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/stream/async_transfer.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/stream/filter.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/stream/prefix.h1
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/stream/static_stream.h18
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/stream/stream.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/stream/transfer.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/stream/transfer_pool.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/string/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/string/static_string.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/string/string.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/tbox.h11
-rwxr-xr-xcore/pkg/tbox.pkg/inc/tbox/utils/adler32.h57
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/base32.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/base64.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/bits.h60
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/crc.h6
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/dump.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_arm.h2
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_gcc.h2
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_sh4.h2
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_x86.h2
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/impl/crc_arm.h2
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/impl/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/lock_profiler.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/md5.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/option.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/sha.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/singleton.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/trace.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/url.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/used.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/utils/utils.h1
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/xml/node.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/xml/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/xml/reader.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/xml/writer.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/xml/xml.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/zip/gzip.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/zip/lzsw.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/zip/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/zip/rlc.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/zip/vlc.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/zip/vlc/prefix.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/zip/zip.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/zip/zlib.h0
-rwxr-xr-x[-rw-r--r--]core/pkg/tbox.pkg/inc/tbox/zip/zlibraw.h0
297 files changed, 840 insertions, 74 deletions
diff --git a/core/pkg/tbox.pkg/inc/mac/x64/tbox.config.h b/core/pkg/tbox.pkg/inc/mac/x64/tbox.config.h
index f9ca5d77d..b91e4b526 100644..100755
--- a/core/pkg/tbox.pkg/inc/mac/x64/tbox.config.h
+++ b/core/pkg/tbox.pkg/inc/mac/x64/tbox.config.h
@@ -2,25 +2,26 @@
#define TB_CONFIG_H
// version
-#define TB_CONFIG_VERSION "1.5.0"
+#define TB_CONFIG_VERSION "1.5.1"
#define TB_CONFIG_VERSION_MAJOR 1
#define TB_CONFIG_VERSION_MINOR 5
-#define TB_CONFIG_VERSION_ALTER 0
-#define TB_CONFIG_VERSION_BUILD 201507131129
+#define TB_CONFIG_VERSION_ALTER 1
+#define TB_CONFIG_VERSION_BUILD 201511252203
// defines
#define TB_CONFIG_OS_MACOSX
+#define TB_CONFIG_INFO_HAVE_VERSION
#define TB_CONFIG_TYPE_HAVE_FLOAT
#define TB_CONFIG_MODULE_HAVE_XML
#define TB_CONFIG_MODULE_HAVE_ZIP
#define TB_CONFIG_MODULE_HAVE_ASIO
#define TB_CONFIG_MODULE_HAVE_OBJECT
#define TB_CONFIG_MODULE_HAVE_CHARSET
-#define TB_CONFIG_MODULE_HAVE_DATABASE
#define TB_CONFIG_LIBC_HAVE_MEMCPY
#define TB_CONFIG_LIBC_HAVE_MEMSET
#define TB_CONFIG_LIBC_HAVE_MEMMOVE
#define TB_CONFIG_LIBC_HAVE_MEMCMP
+#define TB_CONFIG_LIBC_HAVE_MEMMEM
#define TB_CONFIG_LIBC_HAVE_STRCAT
#define TB_CONFIG_LIBC_HAVE_STRNCAT
#define TB_CONFIG_LIBC_HAVE_STRCPY
@@ -59,6 +60,26 @@
#define TB_CONFIG_LIBC_HAVE_SYSTEM
#define TB_CONFIG_LIBM_HAVE_LOG2
#define TB_CONFIG_LIBM_HAVE_LOG2F
+#define TB_CONFIG_LIBM_HAVE_SQRT
+#define TB_CONFIG_LIBM_HAVE_SQRTF
+#define TB_CONFIG_LIBM_HAVE_ACOS
+#define TB_CONFIG_LIBM_HAVE_ACOSF
+#define TB_CONFIG_LIBM_HAVE_ASIN
+#define TB_CONFIG_LIBM_HAVE_ASINF
+#define TB_CONFIG_LIBM_HAVE_POW
+#define TB_CONFIG_LIBM_HAVE_POWF
+#define TB_CONFIG_LIBM_HAVE_FMOD
+#define TB_CONFIG_LIBM_HAVE_FMODF
+#define TB_CONFIG_LIBM_HAVE_ATAN
+#define TB_CONFIG_LIBM_HAVE_ATANF
+#define TB_CONFIG_LIBM_HAVE_ATAN2
+#define TB_CONFIG_LIBM_HAVE_ATAN2F
+#define TB_CONFIG_LIBM_HAVE_COS
+#define TB_CONFIG_LIBM_HAVE_COSF
+#define TB_CONFIG_LIBM_HAVE_SIN
+#define TB_CONFIG_LIBM_HAVE_SINF
+#define TB_CONFIG_LIBM_HAVE_EXP
+#define TB_CONFIG_LIBM_HAVE_EXPF
#define TB_CONFIG_POSIX_HAVE_POLL
#define TB_CONFIG_POSIX_HAVE_PTHREAD_MUTEX_INIT
#define TB_CONFIG_POSIX_HAVE_PTHREAD_CREATE
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/distance.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/distance.h
index 268049483..268049483 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/distance.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/distance.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/find.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/find.h
index be3ed6f3c..be3ed6f3c 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/find.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/find.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/find_if.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/find_if.h
index d5239aa5c..d5239aa5c 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/find_if.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/find_if.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/for.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/for.h
index 814607a3e..814607a3e 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/for.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/for.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/for_if.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/for_if.h
index cd2270a25..cd2270a25 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/for_if.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/for_if.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/heap_sort.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/heap_sort.h
index 092ba2387..092ba2387 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/heap_sort.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/heap_sort.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/insert_sort.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/insert_sort.h
index 595be6a66..595be6a66 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/insert_sort.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/insert_sort.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/predicate.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/predicate.h
index 3b9e13eb2..3b9e13eb2 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/predicate.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/predicate.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/prefix.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/prefix.h
index c991dc554..c991dc554 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/quick_sort.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/quick_sort.h
index 51aca3eae..51aca3eae 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/quick_sort.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/quick_sort.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/remove.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/remove.h
index 55d688378..55d688378 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/remove.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/remove.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_first.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_first.h
index a5524d6c4..a5524d6c4 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_first.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_first.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_first_if.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_first_if.h
index 12a547e41..12a547e41 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_first_if.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_first_if.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_if.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_if.h
index 382a94ffd..382a94ffd 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_if.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_if.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/rfind.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/rfind.h
index 5c9bf5368..5c9bf5368 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/rfind.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/rfind.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/rfind_if.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/rfind_if.h
index 6608f39fa..6608f39fa 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/rfind_if.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/rfind_if.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/rfor.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/rfor.h
index bbe553812..bbe553812 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/rfor.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/rfor.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/rfor_if.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/rfor_if.h
index 41da291b1..41da291b1 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/rfor_if.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/rfor_if.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/rwalk.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/rwalk.h
index f85b0f1a3..f85b0f1a3 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/rwalk.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/rwalk.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/sort.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/sort.h
index 8d76f7c03..8d76f7c03 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/sort.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/sort.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/walk.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/walk.h
index b5fe70f03..b5fe70f03 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/algorithm/walk.h
+++ b/core/pkg/tbox.pkg/inc/tbox/algorithm/walk.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/aice.h b/core/pkg/tbox.pkg/inc/tbox/asio/aice.h
index 5093b6b2f..5093b6b2f 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/asio/aice.h
+++ b/core/pkg/tbox.pkg/inc/tbox/asio/aice.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/aico.h b/core/pkg/tbox.pkg/inc/tbox/asio/aico.h
index 9b808c738..9b808c738 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/asio/aico.h
+++ b/core/pkg/tbox.pkg/inc/tbox/asio/aico.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/aicp.h b/core/pkg/tbox.pkg/inc/tbox/asio/aicp.h
index f8c0fbf62..f8c0fbf62 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/asio/aicp.h
+++ b/core/pkg/tbox.pkg/inc/tbox/asio/aicp.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/aioe.h b/core/pkg/tbox.pkg/inc/tbox/asio/aioe.h
index e9c692a48..e9c692a48 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/asio/aioe.h
+++ b/core/pkg/tbox.pkg/inc/tbox/asio/aioe.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/aioo.h b/core/pkg/tbox.pkg/inc/tbox/asio/aioo.h
index 372cbd86d..372cbd86d 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/asio/aioo.h
+++ b/core/pkg/tbox.pkg/inc/tbox/asio/aioo.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/aiop.h b/core/pkg/tbox.pkg/inc/tbox/asio/aiop.h
index 4b5cc15e3..4b5cc15e3 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/asio/aiop.h
+++ b/core/pkg/tbox.pkg/inc/tbox/asio/aiop.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/asio.h b/core/pkg/tbox.pkg/inc/tbox/asio/asio.h
index 8d96712c2..8d96712c2 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/asio/asio.h
+++ b/core/pkg/tbox.pkg/inc/tbox/asio/asio.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/dns.h b/core/pkg/tbox.pkg/inc/tbox/asio/dns.h
index 5039b4cec..5039b4cec 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/asio/dns.h
+++ b/core/pkg/tbox.pkg/inc/tbox/asio/dns.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/http.h b/core/pkg/tbox.pkg/inc/tbox/asio/http.h
index 1fddab323..1fddab323 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/asio/http.h
+++ b/core/pkg/tbox.pkg/inc/tbox/asio/http.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/prefix.h b/core/pkg/tbox.pkg/inc/tbox/asio/prefix.h
index fe7990e96..fe7990e96 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/asio/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/asio/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/ssl.h b/core/pkg/tbox.pkg/inc/tbox/asio/ssl.h
index a2d192e52..a2d192e52 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/asio/ssl.h
+++ b/core/pkg/tbox.pkg/inc/tbox/asio/ssl.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/charset/charset.h b/core/pkg/tbox.pkg/inc/tbox/charset/charset.h
index e33d12436..e33d12436 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/charset/charset.h
+++ b/core/pkg/tbox.pkg/inc/tbox/charset/charset.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/charset/prefix.h b/core/pkg/tbox.pkg/inc/tbox/charset/prefix.h
index 4f36158ce..4f36158ce 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/charset/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/charset/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/config.h b/core/pkg/tbox.pkg/inc/tbox/config.h
index 27ccfd550..27ccfd550 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/config.h
+++ b/core/pkg/tbox.pkg/inc/tbox/config.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/bloom_filter.h b/core/pkg/tbox.pkg/inc/tbox/container/bloom_filter.h
index 346e115d5..346e115d5 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/bloom_filter.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/bloom_filter.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/circle_queue.h b/core/pkg/tbox.pkg/inc/tbox/container/circle_queue.h
index 82157147c..82157147c 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/circle_queue.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/circle_queue.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/container.h b/core/pkg/tbox.pkg/inc/tbox/container/container.h
index 237ceb9c1..237ceb9c1 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/container.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/container.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/element.h b/core/pkg/tbox.pkg/inc/tbox/container/element.h
index 1ded4b0ff..1ded4b0ff 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/element.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/element.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/element/hash.h b/core/pkg/tbox.pkg/inc/tbox/container/element/hash.h
index 54a4e411a..54a4e411a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/element/hash.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/element/hash.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/element/prefix.h b/core/pkg/tbox.pkg/inc/tbox/container/element/prefix.h
index 51bf8c8a4..51bf8c8a4 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/element/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/element/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/hash_map.h b/core/pkg/tbox.pkg/inc/tbox/container/hash_map.h
index 976369f6f..976369f6f 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/hash_map.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/hash_map.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/hash_set.h b/core/pkg/tbox.pkg/inc/tbox/container/hash_set.h
index db0e930e8..db0e930e8 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/hash_set.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/hash_set.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/heap.h b/core/pkg/tbox.pkg/inc/tbox/container/heap.h
index 612618bca..612618bca 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/heap.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/heap.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/iterator.h b/core/pkg/tbox.pkg/inc/tbox/container/iterator.h
index c0d26e620..c0d26e620 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/iterator.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/iterator.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/iterator/prefix.h b/core/pkg/tbox.pkg/inc/tbox/container/iterator/prefix.h
index d84483189..d84483189 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/iterator/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/iterator/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/list.h b/core/pkg/tbox.pkg/inc/tbox/container/list.h
index f27c4935a..f27c4935a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/list.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/list.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/list_entry.h b/core/pkg/tbox.pkg/inc/tbox/container/list_entry.h
index 810736b64..810736b64 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/list_entry.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/list_entry.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/prefix.h b/core/pkg/tbox.pkg/inc/tbox/container/prefix.h
index 3dde431fe..3dde431fe 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/priority_queue.h b/core/pkg/tbox.pkg/inc/tbox/container/priority_queue.h
index 2e87a64ae..2e87a64ae 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/priority_queue.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/priority_queue.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/queue.h b/core/pkg/tbox.pkg/inc/tbox/container/queue.h
index 8aa5a98aa..8aa5a98aa 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/queue.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/queue.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/single_list.h b/core/pkg/tbox.pkg/inc/tbox/container/single_list.h
index 861c749c0..861c749c0 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/single_list.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/single_list.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/single_list_entry.h b/core/pkg/tbox.pkg/inc/tbox/container/single_list_entry.h
index a5e0923a3..a5e0923a3 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/single_list_entry.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/single_list_entry.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/stack.h b/core/pkg/tbox.pkg/inc/tbox/container/stack.h
index d357eca0a..d357eca0a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/stack.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/stack.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/container/vector.h b/core/pkg/tbox.pkg/inc/tbox/container/vector.h
index 53b3e111d..53b3e111d 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/container/vector.h
+++ b/core/pkg/tbox.pkg/inc/tbox/container/vector.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/database/database.h b/core/pkg/tbox.pkg/inc/tbox/database/database.h
index 26122a4ec..26122a4ec 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/database/database.h
+++ b/core/pkg/tbox.pkg/inc/tbox/database/database.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/database/prefix.h b/core/pkg/tbox.pkg/inc/tbox/database/prefix.h
index e0e7f10d5..e0e7f10d5 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/database/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/database/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/database/sql.h b/core/pkg/tbox.pkg/inc/tbox/database/sql.h
index 26f66c99a..26f66c99a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/database/sql.h
+++ b/core/pkg/tbox.pkg/inc/tbox/database/sql.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/database/value.h b/core/pkg/tbox.pkg/inc/tbox/database/value.h
index a28d286ee..a28d286ee 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/database/value.h
+++ b/core/pkg/tbox.pkg/inc/tbox/database/value.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/libc.h b/core/pkg/tbox.pkg/inc/tbox/libc/libc.h
index 0ae380055..0ae380055 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/libc.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/libc.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/ctype.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/ctype.h
index 878fce45c..878fce45c 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/misc/ctype.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/misc/ctype.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/limits.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/limits.h
index 45828a1a7..45828a1a7 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/misc/limits.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/misc/limits.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/misc.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/misc.h
index 84a6aebbf..84a6aebbf 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/misc/misc.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/misc/misc.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/prefix.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/prefix.h
index 3cd542525..3cd542525 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/misc/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/misc/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/setjmp.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/setjmp.h
index b8583dcfd..b8583dcfd 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/misc/setjmp.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/misc/setjmp.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/signal.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/signal.h
index ca15dc661..ca15dc661 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/misc/signal.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/misc/signal.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/stdarg.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/stdarg.h
index 16aff2378..16aff2378 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/misc/stdarg.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/misc/stdarg.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/time/prefix.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/time/prefix.h
index af57dee8b..af57dee8b 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/misc/time/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/misc/time/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/time/time.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/time/time.h
index d96c76432..d96c76432 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/misc/time/time.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/misc/time/time.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/time/type.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/time/type.h
index 25679768a..25679768a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/misc/time/type.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/misc/time/type.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/prefix.h b/core/pkg/tbox.pkg/inc/tbox/libc/prefix.h
index d01c40204..d01c40204 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/stdio/prefix.h b/core/pkg/tbox.pkg/inc/tbox/libc/stdio/prefix.h
index 0b3b5db9e..0b3b5db9e 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/stdio/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/stdio/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/stdio/printf_object.h b/core/pkg/tbox.pkg/inc/tbox/libc/stdio/printf_object.h
index 966ddc4a9..966ddc4a9 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/stdio/printf_object.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/stdio/printf_object.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/stdio/stdio.h b/core/pkg/tbox.pkg/inc/tbox/libc/stdio/stdio.h
index 99935bce8..99935bce8 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/stdio/stdio.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/stdio/stdio.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/stdlib/prefix.h b/core/pkg/tbox.pkg/inc/tbox/libc/stdlib/prefix.h
index 16225fb06..16225fb06 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/stdlib/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/stdlib/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/stdlib/stdlib.h b/core/pkg/tbox.pkg/inc/tbox/libc/stdlib/stdlib.h
index e22467e29..e22467e29 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/stdlib/stdlib.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/stdlib/stdlib.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/string/prefix.h b/core/pkg/tbox.pkg/inc/tbox/libc/string/prefix.h
index 4a7bd507e..4a7bd507e 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/string/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/string/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/string/string.h b/core/pkg/tbox.pkg/inc/tbox/libc/string/string.h
index eb4e4cf5b..ead619b44 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libc/string/string.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libc/string/string.h
@@ -73,6 +73,10 @@ tb_pointer_t tb_memmov_(tb_pointer_t s1, tb_cpointer_t s2, tb_size_t n);
tb_long_t tb_memcmp(tb_cpointer_t s1, tb_cpointer_t s2, tb_size_t n);
tb_long_t tb_memcmp_(tb_cpointer_t s1, tb_cpointer_t s2, tb_size_t n);
+// memmem
+tb_pointer_t tb_memmem(tb_cpointer_t s1, tb_size_t n1, tb_cpointer_t s2, tb_size_t n2);
+tb_pointer_t tb_memmem_(tb_cpointer_t s1, tb_size_t n1, tb_cpointer_t s2, tb_size_t n2);
+
// strlen
tb_size_t tb_strlen(tb_char_t const* s);
tb_size_t tb_strnlen(tb_char_t const* s, tb_size_t n);
diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/ceil.h b/core/pkg/tbox.pkg/inc/tbox/libm/ceil.h
index eb3eaf343..eb3eaf343 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libm/ceil.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libm/ceil.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/fabs.h b/core/pkg/tbox.pkg/inc/tbox/libm/fabs.h
index 2465c49e2..2465c49e2 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libm/fabs.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libm/fabs.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/floor.h b/core/pkg/tbox.pkg/inc/tbox/libm/floor.h
index 8c31041c1..8c31041c1 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libm/floor.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libm/floor.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/inf.h b/core/pkg/tbox.pkg/inc/tbox/libm/inf.h
index 289ead7e3..289ead7e3 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libm/inf.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libm/inf.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/libm.h b/core/pkg/tbox.pkg/inc/tbox/libm/libm.h
index ddcb0df07..ddcb0df07 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libm/libm.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libm/libm.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/maf.h b/core/pkg/tbox.pkg/inc/tbox/libm/maf.h
index 3101d4a4a..3101d4a4a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libm/maf.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libm/maf.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/math.h b/core/pkg/tbox.pkg/inc/tbox/libm/math.h
index ec85c209a..5f6b91737 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libm/math.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libm/math.h
@@ -118,6 +118,10 @@ tb_void_t tb_sincosf(tb_float_t x, tb_float_t* s, tb_float_t* c);
// pow
tb_double_t tb_pow(tb_double_t x, tb_double_t y);
tb_float_t tb_powf(tb_float_t x, tb_float_t y);
+
+// fmod
+tb_double_t tb_fmod(tb_double_t x, tb_double_t y);
+tb_float_t tb_fmodf(tb_float_t x, tb_float_t y);
#endif
// ilog2i
diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/mif.h b/core/pkg/tbox.pkg/inc/tbox/libm/mif.h
index 0518db0d3..0518db0d3 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libm/mif.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libm/mif.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/nan.h b/core/pkg/tbox.pkg/inc/tbox/libm/nan.h
index 0aca2f237..0aca2f237 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libm/nan.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libm/nan.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/pi.h b/core/pkg/tbox.pkg/inc/tbox/libm/pi.h
index 29bbc59c7..29bbc59c7 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libm/pi.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libm/pi.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/prefix.h b/core/pkg/tbox.pkg/inc/tbox/libm/prefix.h
index 0e0e72d14..0e0e72d14 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libm/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libm/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/round.h b/core/pkg/tbox.pkg/inc/tbox/libm/round.h
index 17e9148fc..17e9148fc 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/libm/round.h
+++ b/core/pkg/tbox.pkg/inc/tbox/libm/round.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/fixed.h b/core/pkg/tbox.pkg/inc/tbox/math/fixed.h
index 590578a73..590578a73 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/fixed.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/fixed.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/fixed16.h b/core/pkg/tbox.pkg/inc/tbox/math/fixed16.h
index abe99aadc..abe99aadc 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/fixed16.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/fixed16.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/fixed30.h b/core/pkg/tbox.pkg/inc/tbox/math/fixed30.h
index 41965701a..41965701a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/fixed30.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/fixed30.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/fixed6.h b/core/pkg/tbox.pkg/inc/tbox/math/fixed6.h
index 0703e2b0d..0703e2b0d 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/fixed6.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/fixed6.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/impl/fixed16_arm.h b/core/pkg/tbox.pkg/inc/tbox/math/impl/fixed16_arm.h
new file mode 100755
index 000000000..2a84fca64
--- /dev/null
+++ b/core/pkg/tbox.pkg/inc/tbox/math/impl/fixed16_arm.h
@@ -0,0 +1,66 @@
+/*!The Treasure Box Library
+ *
+ * TBox is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * TBox is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with TBox;
+ * If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+ *
+ * Copyright (C) 2009 - 2015, ruki All rights reserved.
+ *
+ * @author ruki
+ * @file fixed16_arm.h
+ *
+ */
+#ifndef TB_MATH_IMPL_FIXED16_ARM_H
+#define TB_MATH_IMPL_FIXED16_ARM_H
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * includes
+ */
+#include "../prefix.h"
+
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * macros
+ */
+
+#ifdef TB_ASSEMBLER_IS_GAS
+
+#if 0
+# define tb_fixed16_mul(x, y) tb_fixed16_mul_asm(x, y)
+#endif
+
+#endif /* TB_ASSEMBLER_IS_GAS */
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * interfaces
+ */
+
+#if defined(TB_ASSEMBLER_IS_GAS) && !defined(TB_ARCH_ARM64)
+static __tb_inline__ tb_fixed16_t tb_fixed16_mul_asm(tb_fixed16_t x, tb_fixed16_t y)
+{
+ __tb_register__ tb_fixed16_t t;
+ __tb_asm__ __tb_volatile__
+ (
+ "smull %0, %2, %1, %3 \n" // r64 = (l, h) = x * y
+ "mov %0, %0, lsr #16 \n" // to fixed16: r64 >>= 16
+ "orr %0, %0, %2, lsl #16 \n" // x = l = (h << (32 - 16)) | (l >> 16);
+
+ : "=r"(x), "=&r"(y), "=r"(t)
+ : "r"(x), "1"(y)
+ );
+ return x;
+}
+#endif
+
+#endif
+
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/impl/fixed30_arm.h b/core/pkg/tbox.pkg/inc/tbox/math/impl/fixed30_arm.h
new file mode 100755
index 000000000..68ea25f26
--- /dev/null
+++ b/core/pkg/tbox.pkg/inc/tbox/math/impl/fixed30_arm.h
@@ -0,0 +1,65 @@
+/*!The Treasure Box Library
+ *
+ * TBox is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * TBox is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with TBox;
+ * If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+ *
+ * Copyright (C) 2009 - 2015, ruki All rights reserved.
+ *
+ * @author ruki
+ * @file fixed30_arm.h
+ *
+ */
+#ifndef TB_MATH_IMPL_FIXED30_ARM_H
+#define TB_MATH_IMPL_FIXED30_ARM_H
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * includes
+ */
+#include "../prefix.h"
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * macros
+ */
+
+#ifdef TB_ASSEMBLER_IS_GAS
+
+#if 0
+# define tb_fixed30_mul(x, y) tb_fixed30_mul_asm(x, y)
+#endif
+
+#endif /* TB_ASSEMBLER_IS_GAS */
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * interfaces
+ */
+#if defined(TB_ASSEMBLER_IS_GAS)
+static __tb_inline__ tb_fixed30_t tb_fixed30_mul_asm(tb_fixed30_t x, tb_fixed30_t y)
+{
+ __tb_register__ tb_fixed30_t t;
+ __tb_asm__ __tb_volatile__
+ (
+ "smull %0, %2, %1, %3 \n" // r64 = (l, h) = x * y
+ "mov %0, %0, lsr #30 \n" // to fixed30: r64 >>= 30
+ "orr %0, %0, %2, lsl #2 \n" // x = l = (h << (32 - 30)) | (l >> 30);
+
+ : "=r"(x), "=&r"(y), "=r"(t)
+ : "r"(x), "1"(y)
+ );
+ return x;
+}
+#endif
+
+
+#endif
+
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/linux/android/prefix.h b/core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h
index 1208719a8..55e9f3aff 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/linux/android/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h
@@ -18,15 +18,16 @@
*
* @author ruki
* @file prefix.h
- * @ingroup platform
+ *
*/
-#ifndef TB_PLATFORM_LINUX_ANDROID_PREFIX_H
-#define TB_PLATFORM_LINUX_ANDROID_PREFIX_H
+#ifndef TB_MATH_IMPL_PREFIX_H
+#define TB_MATH_IMPL_PREFIX_H
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
*/
#include "../prefix.h"
-#include <jni.h>
+
+
#endif
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/impl/random.h b/core/pkg/tbox.pkg/inc/tbox/math/impl/random.h
new file mode 100755
index 000000000..c73accf88
--- /dev/null
+++ b/core/pkg/tbox.pkg/inc/tbox/math/impl/random.h
@@ -0,0 +1,85 @@
+/*!The Treasure Box Library
+ *
+ * TBox is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * TBox is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with TBox;
+ * If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+ *
+ * Copyright (C) 2009 - 2015, ruki All rights reserved.
+ *
+ * @author ruki
+ * @file random.h
+ *
+ */
+#ifndef TB_MATH_IMPL_RANDOM_H
+#define TB_MATH_IMPL_RANDOM_H
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * includes
+ */
+#include "prefix.h"
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * extern
+ */
+__tb_extern_c_enter__
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * types
+ */
+
+// the random type enum
+typedef enum __tb_random_type_e
+{
+ TB_RANDOM_TYPE_NONE = 0
+, TB_RANDOM_TYPE_LINEAR = 1
+
+}tb_random_type_e;
+
+// the random impl type
+typedef struct __tb_random_impl_t
+{
+ // the type
+ tb_size_t type;
+
+ // exit
+ tb_void_t (*exit)(struct __tb_random_impl_t* random);
+
+ // seed
+ tb_void_t (*seed)(struct __tb_random_impl_t* random, tb_size_t seed);
+
+ // clear
+ tb_void_t (*clear)(struct __tb_random_impl_t* random);
+
+ // range
+ tb_long_t (*range)(struct __tb_random_impl_t* random, tb_long_t beg, tb_long_t end);
+
+}tb_random_impl_t;
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * declaration
+ */
+
+/* init the linear random
+ *
+ * @param seed the seed
+ *
+ * @return the random
+ */
+tb_random_impl_t* tb_random_linear_init(tb_size_t seed);
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * extern
+ */
+__tb_extern_c_leave__
+
+#endif
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/int32.h b/core/pkg/tbox.pkg/inc/tbox/math/int32.h
index b51d425a3..b51d425a3 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/int32.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/int32.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/math.h b/core/pkg/tbox.pkg/inc/tbox/math/math.h
index 9eef102c4..9eef102c4 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/math.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/math.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/prefix.h b/core/pkg/tbox.pkg/inc/tbox/math/prefix.h
index e42d4e57a..e42d4e57a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/math/random.h b/core/pkg/tbox.pkg/inc/tbox/math/random.h
index f21a364ee..f21a364ee 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/math/random.h
+++ b/core/pkg/tbox.pkg/inc/tbox/math/random.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/allocator.h b/core/pkg/tbox.pkg/inc/tbox/memory/allocator.h
new file mode 100755
index 000000000..cbd3db77c
--- /dev/null
+++ b/core/pkg/tbox.pkg/inc/tbox/memory/allocator.h
@@ -0,0 +1,175 @@
+/*!The Treasure Box Library
+ *
+ * TBox is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * TBox is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with TBox;
+ * If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+ *
+ * Copyright (C) 2009 - 2015, ruki All rights reserved.
+ *
+ * @author ruki
+ * @file allocator.h
+ * @ingroup memory
+ *
+ */
+#ifndef TB_MEMORY_ALLOCATOR_H
+#define TB_MEMORY_ALLOCATOR_H
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * includes
+ */
+#include "prefix.h"
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * extern
+ */
+__tb_extern_c_enter__
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * macros
+ */
+
+#define tb_allocator_malloc(allocator, size) tb_allocator_malloc_(allocator, size __tb_debug_vals__)
+#define tb_allocator_malloc0(allocator, size) tb_allocator_malloc0_(allocator, size __tb_debug_vals__)
+
+#define tb_allocator_nalloc(allocator, item, size) tb_allocator_nalloc_(allocator, item, size __tb_debug_vals__)
+#define tb_allocator_nalloc0(allocator, item, size) tb_allocator_nalloc0_(allocator, item, size __tb_debug_vals__)
+
+#define tb_allocator_ralloc(allocator, data, size) tb_allocator_ralloc_(allocator, (tb_pointer_t)(data), size __tb_debug_vals__)
+#define tb_allocator_free(allocator, data) tb_allocator_free_(allocator, (tb_pointer_t)(data) __tb_debug_vals__)
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * types
+ */
+
+/// the allocator type
+typedef struct __tb_allocator_t
+{
+ /*! malloc data
+ *
+ * @param allocator the allocator
+ * @param size the size
+ *
+ * @return the data address
+ */
+ tb_pointer_t (*malloc)(struct __tb_allocator_t* allocator, tb_size_t size __tb_debug_decl__);
+
+ /*! realloc data
+ *
+ * @param allocator the allocator
+ * @param data the data address
+ * @param size the data size
+ *
+ * @return the new data address
+ */
+ tb_pointer_t (*ralloc)(struct __tb_allocator_t* allocator, tb_pointer_t data, tb_size_t size __tb_debug_decl__);
+
+ /*! free data
+ *
+ * @param allocator the allocator
+ * @param data the data address
+ *
+ * @return tb_true or tb_false
+ */
+ tb_bool_t (*free)(struct __tb_allocator_t* allocator, tb_pointer_t data __tb_debug_decl__);
+
+#ifdef __tb_debug__
+ /*! dump allocator
+ *
+ * @param allocator the allocator
+ */
+ tb_void_t (*dump)(struct __tb_allocator_t* allocator);
+#endif
+
+}tb_allocator_t, *tb_allocator_ref_t;
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * interfaces
+ */
+
+/*! the native allocator
+ *
+ * @return the allocator
+ */
+tb_allocator_ref_t tb_allocator_native(tb_noarg_t);
+
+/*! malloc data
+ *
+ * @param allocator the allocator
+ * @param size the size
+ *
+ * @return the data address
+ */
+tb_pointer_t tb_allocator_malloc_(tb_allocator_ref_t allocator, tb_size_t size __tb_debug_decl__);
+
+/*! malloc data and fill zero
+ *
+ * @param allocator the allocator
+ * @param size the size
+ *
+ * @return the data address
+ */
+tb_pointer_t tb_allocator_malloc0_(tb_allocator_ref_t allocator, tb_size_t size __tb_debug_decl__);
+
+/*! malloc data with the item count
+ *
+ * @param allocator the allocator
+ * @param item the item count
+ * @param size the item size
+ *
+ * @return the data address
+ */
+tb_pointer_t tb_allocator_nalloc_(tb_allocator_ref_t allocator, tb_size_t item, tb_size_t size __tb_debug_decl__);
+
+/*! malloc data with the item count and fill zero
+ *
+ * @param allocator the allocator
+ * @param item the item count
+ * @param size the item size
+ *
+ * @return the data address
+ */
+tb_pointer_t tb_allocator_nalloc0_(tb_allocator_ref_t allocator, tb_size_t item, tb_size_t size __tb_debug_decl__);
+
+/*! realloc data
+ *
+ * @param allocator the allocator
+ * @param data the data address
+ * @param size the data size
+ *
+ * @return the new data address
+ */
+tb_pointer_t tb_allocator_ralloc_(tb_allocator_ref_t allocator, tb_pointer_t data, tb_size_t size __tb_debug_decl__);
+
+/*! free data
+ *
+ * @param allocator the allocator
+ * @param data the data address
+ *
+ * @return tb_true or tb_false
+ */
+tb_bool_t tb_allocator_free_(tb_allocator_ref_t allocator, tb_pointer_t data __tb_debug_decl__);
+
+#ifdef __tb_debug__
+/*! dump it
+ *
+ * @param allocator the allocator
+ */
+tb_void_t tb_allocator_dump(tb_allocator_ref_t allocator);
+#endif
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * extern
+ */
+__tb_extern_c_leave__
+
+#endif
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/buffer.h b/core/pkg/tbox.pkg/inc/tbox/memory/buffer.h
index 98c6f568e..98c6f568e 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/memory/buffer.h
+++ b/core/pkg/tbox.pkg/inc/tbox/memory/buffer.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/fixed_pool.h b/core/pkg/tbox.pkg/inc/tbox/memory/fixed_pool.h
index 998a0a02f..998a0a02f 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/memory/fixed_pool.h
+++ b/core/pkg/tbox.pkg/inc/tbox/memory/fixed_pool.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/large_pool.h b/core/pkg/tbox.pkg/inc/tbox/memory/large_pool.h
index e95137b6c..5cb79d18d 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/memory/large_pool.h
+++ b/core/pkg/tbox.pkg/inc/tbox/memory/large_pool.h
@@ -169,8 +169,7 @@ tb_bool_t tb_large_pool_free_(tb_large_pool_ref_t pool, tb_pointer
#ifdef __tb_debug__
/*! dump the pool
*
- * @param pool the pool
- * @param prefix the trace prefix
+ * @param pool the pool
*/
tb_void_t tb_large_pool_dump(tb_large_pool_ref_t pool);
#endif
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/memory.h b/core/pkg/tbox.pkg/inc/tbox/memory/memory.h
index 4db46adb5..9dbc7fc47 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/memory/memory.h
+++ b/core/pkg/tbox.pkg/inc/tbox/memory/memory.h
@@ -29,11 +29,13 @@
*/
#include "prefix.h"
#include "pool.h"
+#include "buffer.h"
+#include "allocator.h"
#include "fixed_pool.h"
#include "large_pool.h"
#include "small_pool.h"
+#include "static_pool.h"
#include "string_pool.h"
-#include "buffer.h"
#include "queue_buffer.h"
#include "static_buffer.h"
@@ -50,9 +52,9 @@ __tb_extern_c_enter__
*
* <pre>
*
- * ---------------- -------------------------------------------------------
- * | native memory | or | data |
- * ---------------- -------------------------------------------------------
+ * ---------------- ------------------------------------------------------- ----------------------
+ * | native memory | or | data | -> | static_pool |
+ * ---------------- ------------------------------------------------------- ----------------------
* | if data be null |
* `---------------------------------------> |
* |
@@ -110,12 +112,13 @@ __tb_extern_c_enter__
/*! init memory
*
+ * @param allocator the allocator, uses data and size if be null
* @param data the memory pool data
* @param size the memory pool size
*
* @return tb_true or tb_false
*/
-tb_bool_t tb_memory_init(tb_byte_t* data, tb_size_t size);
+tb_bool_t tb_memory_init(tb_allocator_ref_t allocator, tb_byte_t* data, tb_size_t size);
/// exit memory
tb_void_t tb_memory_exit(tb_noarg_t);
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/pool.h b/core/pkg/tbox.pkg/inc/tbox/memory/pool.h
index 2a0c6de16..e66fcd27d 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/memory/pool.h
+++ b/core/pkg/tbox.pkg/inc/tbox/memory/pool.h
@@ -28,6 +28,7 @@
* includes
*/
#include "prefix.h"
+#include "allocator.h"
#include "large_pool.h"
/* //////////////////////////////////////////////////////////////////////////////////////
@@ -91,11 +92,12 @@ tb_pool_ref_t tb_pool();
/*! init the pool
*
- * @param large_pool the large pool, using the default large pool if be null
+ * @param allocator the allocator, uses large pool if be null
+ * @param large_pool the large pool, uses the default large pool if be null
*
* @return the pool
*/
-tb_pool_ref_t tb_pool_init(tb_large_pool_ref_t large_pool);
+tb_pool_ref_t tb_pool_init(tb_allocator_ref_t allocator, tb_large_pool_ref_t large_pool);
/*! exit the pool
*
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/prefix.h b/core/pkg/tbox.pkg/inc/tbox/memory/prefix.h
index 120511a2a..120511a2a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/memory/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/memory/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/queue_buffer.h b/core/pkg/tbox.pkg/inc/tbox/memory/queue_buffer.h
index cb4c18d4f..cb4c18d4f 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/memory/queue_buffer.h
+++ b/core/pkg/tbox.pkg/inc/tbox/memory/queue_buffer.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/small_pool.h b/core/pkg/tbox.pkg/inc/tbox/memory/small_pool.h
index 7736adf39..7736adf39 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/memory/small_pool.h
+++ b/core/pkg/tbox.pkg/inc/tbox/memory/small_pool.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/static_buffer.h b/core/pkg/tbox.pkg/inc/tbox/memory/static_buffer.h
index daaa065fd..daaa065fd 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/memory/static_buffer.h
+++ b/core/pkg/tbox.pkg/inc/tbox/memory/static_buffer.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/static_pool.h b/core/pkg/tbox.pkg/inc/tbox/memory/static_pool.h
new file mode 100755
index 000000000..d14945c6b
--- /dev/null
+++ b/core/pkg/tbox.pkg/inc/tbox/memory/static_pool.h
@@ -0,0 +1,166 @@
+/*!The Treasure Box Library
+ *
+ * TBox is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * TBox is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with TBox;
+ * If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+ *
+ * Copyright (C) 2009 - 2015, ruki All rights reserved.
+ *
+ * @author ruki
+ * @file static_pool.h
+ * @ingroup memory
+ *
+ */
+#ifndef TB_MEMORY_STATIC_POOL_H
+#define TB_MEMORY_STATIC_POOL_H
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * includes
+ */
+#include "prefix.h"
+#include "large_pool.h"
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * extern
+ */
+__tb_extern_c_enter__
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * macros
+ */
+#define tb_static_pool_malloc(pool, size) tb_static_pool_malloc_(pool, size __tb_debug_vals__)
+#define tb_static_pool_malloc0(pool, size) tb_static_pool_malloc0_(pool, size __tb_debug_vals__)
+
+#define tb_static_pool_nalloc(pool, item, size) tb_static_pool_nalloc_(pool, item, size __tb_debug_vals__)
+#define tb_static_pool_nalloc0(pool, item, size) tb_static_pool_nalloc0_(pool, item, size __tb_debug_vals__)
+
+#define tb_static_pool_ralloc(pool, data, size) tb_static_pool_ralloc_(pool, (tb_pointer_t)(data), size __tb_debug_vals__)
+#define tb_static_pool_free(pool, data) tb_static_pool_free_(pool, (tb_pointer_t)(data) __tb_debug_vals__)
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * types
+ */
+
+/*! the static pool ref type
+ *
+ * <pre>
+ *
+ * -----------------------------------------------------
+ * | data |
+ * -----------------------------------------------------
+ * |
+ * -----------------------------------------------------
+ * | static pool |
+ * -----------------------------------------------------
+ *
+ * </pre>
+ *
+ */
+typedef struct{}* tb_static_pool_ref_t;
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * interfaces
+ */
+
+/*! init the static pool
+ *
+ * @param data the pool data
+ * @param size the pool size
+ *
+ * @return the pool
+ */
+tb_static_pool_ref_t tb_static_pool_init(tb_byte_t* data, tb_size_t size);
+
+/*! exit the pool
+ *
+ * @param pool the pool
+ */
+tb_void_t tb_static_pool_exit(tb_static_pool_ref_t pool);
+
+/*! clear the pool
+ *
+ * @param pool the pool
+ */
+tb_void_t tb_static_pool_clear(tb_static_pool_ref_t pool);
+
+/*! malloc data
+ *
+ * @param pool the pool
+ * @param size the size
+ *
+ * @return the data address
+ */
+tb_pointer_t tb_static_pool_malloc_(tb_static_pool_ref_t pool, tb_size_t size __tb_debug_decl__);
+
+/*! malloc data and fill zero
+ *
+ * @param pool the pool
+ * @param size the size
+ *
+ * @return the data address
+ */
+tb_pointer_t tb_static_pool_malloc0_(tb_static_pool_ref_t pool, tb_size_t size __tb_debug_decl__);
+
+/*! malloc data with the item count
+ *
+ * @param pool the pool
+ * @param item the item count
+ * @param size the item size
+ *
+ * @return the data address
+ */
+tb_pointer_t tb_static_pool_nalloc_(tb_static_pool_ref_t pool, tb_size_t item, tb_size_t size __tb_debug_decl__);
+
+/*! malloc data with the item count and fill zero
+ *
+ * @param pool the pool
+ * @param item the item count
+ * @param size the item size
+ *
+ * @return the data address
+ */
+tb_pointer_t tb_static_pool_nalloc0_(tb_static_pool_ref_t pool, tb_size_t item, tb_size_t size __tb_debug_decl__);
+
+/*! realloc data
+ *
+ * @param pool the pool
+ * @param data the data address
+ * @param size the data size
+ *
+ * @return the new data address
+ */
+tb_pointer_t tb_static_pool_ralloc_(tb_static_pool_ref_t pool, tb_pointer_t data, tb_size_t size __tb_debug_decl__);
+
+/*! free data
+ *
+ * @param pool the pool
+ * @param data the data address
+ *
+ * @return tb_true or tb_false
+ */
+tb_bool_t tb_static_pool_free_(tb_static_pool_ref_t pool, tb_pointer_t data __tb_debug_decl__);
+
+#ifdef __tb_debug__
+/*! dump the pool
+ *
+ * @param pool the pool
+ */
+tb_void_t tb_static_pool_dump(tb_static_pool_ref_t pool);
+#endif
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * extern
+ */
+__tb_extern_c_leave__
+
+#endif
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/string_pool.h b/core/pkg/tbox.pkg/inc/tbox/memory/string_pool.h
index a1c068a92..a1c068a92 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/memory/string_pool.h
+++ b/core/pkg/tbox.pkg/inc/tbox/memory/string_pool.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/cookies.h b/core/pkg/tbox.pkg/inc/tbox/network/cookies.h
index 5d6438fe9..5d6438fe9 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/cookies.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/cookies.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/dns/cache.h b/core/pkg/tbox.pkg/inc/tbox/network/dns/cache.h
index b4bcdd662..b4bcdd662 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/dns/cache.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/dns/cache.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/dns/dns.h b/core/pkg/tbox.pkg/inc/tbox/network/dns/dns.h
index d4553323f..d4553323f 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/dns/dns.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/dns/dns.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/dns/looker.h b/core/pkg/tbox.pkg/inc/tbox/network/dns/looker.h
index b400e8108..b400e8108 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/dns/looker.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/dns/looker.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/dns/prefix.h b/core/pkg/tbox.pkg/inc/tbox/network/dns/prefix.h
index ba0e8ccbe..ba0e8ccbe 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/dns/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/dns/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/dns/server.h b/core/pkg/tbox.pkg/inc/tbox/network/dns/server.h
index 7a574a28c..7a574a28c 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/dns/server.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/dns/server.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/http.h b/core/pkg/tbox.pkg/inc/tbox/network/http.h
index 6ff4cb986..6ff4cb986 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/http.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/http.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/hwaddr.h b/core/pkg/tbox.pkg/inc/tbox/network/hwaddr.h
index f3168cf24..f3168cf24 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/hwaddr.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/hwaddr.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/ipaddr.h b/core/pkg/tbox.pkg/inc/tbox/network/ipaddr.h
index d24f7400d..d24f7400d 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/ipaddr.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/ipaddr.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/ipv4.h b/core/pkg/tbox.pkg/inc/tbox/network/ipv4.h
index 5d6639c9d..5d6639c9d 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/ipv4.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/ipv4.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/ipv6.h b/core/pkg/tbox.pkg/inc/tbox/network/ipv6.h
index b9b4b99d5..b9b4b99d5 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/ipv6.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/ipv6.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/network.h b/core/pkg/tbox.pkg/inc/tbox/network/network.h
index 31e6b74c0..31e6b74c0 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/network.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/network.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/prefix.h b/core/pkg/tbox.pkg/inc/tbox/network/prefix.h
index f84388c05..f84388c05 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/ssl.h b/core/pkg/tbox.pkg/inc/tbox/network/ssl.h
index 160bec37d..160bec37d 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/ssl.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/ssl.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/network/url.h b/core/pkg/tbox.pkg/inc/tbox/network/url.h
index b82094ec8..b82094ec8 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/network/url.h
+++ b/core/pkg/tbox.pkg/inc/tbox/network/url.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/object/array.h b/core/pkg/tbox.pkg/inc/tbox/object/array.h
index 7e860acbd..7e860acbd 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/object/array.h
+++ b/core/pkg/tbox.pkg/inc/tbox/object/array.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/object/boolean.h b/core/pkg/tbox.pkg/inc/tbox/object/boolean.h
index 5ad12edb6..5ad12edb6 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/object/boolean.h
+++ b/core/pkg/tbox.pkg/inc/tbox/object/boolean.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/object/data.h b/core/pkg/tbox.pkg/inc/tbox/object/data.h
index 893f1568b..893f1568b 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/object/data.h
+++ b/core/pkg/tbox.pkg/inc/tbox/object/data.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/object/date.h b/core/pkg/tbox.pkg/inc/tbox/object/date.h
index 289951c85..289951c85 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/object/date.h
+++ b/core/pkg/tbox.pkg/inc/tbox/object/date.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/object/dictionary.h b/core/pkg/tbox.pkg/inc/tbox/object/dictionary.h
index fac229aa9..fac229aa9 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/object/dictionary.h
+++ b/core/pkg/tbox.pkg/inc/tbox/object/dictionary.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/object/null.h b/core/pkg/tbox.pkg/inc/tbox/object/null.h
index f1e20b427..f1e20b427 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/object/null.h
+++ b/core/pkg/tbox.pkg/inc/tbox/object/null.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/object/number.h b/core/pkg/tbox.pkg/inc/tbox/object/number.h
index 830afc660..830afc660 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/object/number.h
+++ b/core/pkg/tbox.pkg/inc/tbox/object/number.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/object/object.h b/core/pkg/tbox.pkg/inc/tbox/object/object.h
index 59320f46a..f3853df22 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/object/object.h
+++ b/core/pkg/tbox.pkg/inc/tbox/object/object.h
@@ -65,7 +65,7 @@ tb_void_t tb_object_context_exit(tb_noarg_t);
*/
tb_bool_t tb_object_init(tb_object_ref_t object, tb_size_t flag, tb_size_t type);
-/*! exit object
+/*! decrease the object reference count, will exit it if --refn == 0
*
* @param object the object
*
@@ -73,11 +73,11 @@ tb_bool_t tb_object_init(tb_object_ref_t object, tb_size_t flag, tb_si
*/
tb_void_t tb_object_exit(tb_object_ref_t object);
-/*! cler object
+/*! clear object
*
* @param object the object
*/
-tb_void_t tb_object_cler(tb_object_ref_t object);
+tb_void_t tb_object_clear(tb_object_ref_t object);
/*! set the object private data
*
@@ -245,19 +245,13 @@ tb_object_ref_t tb_object_dump(tb_object_ref_t object, tb_size_t format);
*
* @return the object reference count
*/
-tb_size_t tb_object_ref(tb_object_ref_t object);
+tb_size_t tb_object_refn(tb_object_ref_t object);
-/*! increase the object reference count
+/*! retain object and increase the object reference count
*
* @param object the object
*/
-tb_void_t tb_object_inc(tb_object_ref_t object);
-
-/*! decrease the object reference count, will free it if --refn == 0
- *
- * @param object the object
- */
-tb_void_t tb_object_dec(tb_object_ref_t object);
+tb_void_t tb_object_retain(tb_object_ref_t object);
/* //////////////////////////////////////////////////////////////////////////////////////
* extern
diff --git a/core/pkg/tbox.pkg/inc/tbox/object/prefix.h b/core/pkg/tbox.pkg/inc/tbox/object/prefix.h
index 8aa6e4df0..0179b06ce 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/object/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/object/prefix.h
@@ -93,8 +93,8 @@ typedef struct __tb_object_t
/// the copy func
struct __tb_object_t* (*copy)(struct __tb_object_t* object);
- /// the cler func
- tb_void_t (*cler)(struct __tb_object_t* object);
+ /// the clear func
+ tb_void_t (*clear)(struct __tb_object_t* object);
/// the exit func
tb_void_t (*exit)(struct __tb_object_t* object);
diff --git a/core/pkg/tbox.pkg/inc/tbox/object/string.h b/core/pkg/tbox.pkg/inc/tbox/object/string.h
index a3721b777..a3721b777 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/object/string.h
+++ b/core/pkg/tbox.pkg/inc/tbox/object/string.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/linux/android/android.h b/core/pkg/tbox.pkg/inc/tbox/platform/android/android.h
index 1d00defb3..3868f34e5 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/linux/android/android.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/android/android.h
@@ -20,8 +20,8 @@
* @file android.h
* @ingroup platform
*/
-#ifndef TB_PLATFORM_LINUX_ANDROID_H
-#define TB_PLATFORM_LINUX_ANDROID_H
+#ifndef TB_PLATFORM_ANDROID_H
+#define TB_PLATFORM_ANDROID_H
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
@@ -34,19 +34,19 @@
/*! init the android platform
*
- * @param jenv the jni environment pointer
+ * @param jvm the java machine pointer
*
* @return tb_true or tb_false
*/
-tb_bool_t tb_android_init(JNIEnv* jenv);
+tb_bool_t tb_android_init(JavaVM* jvm);
/// exit the android platform
tb_void_t tb_android_exit(tb_noarg_t);
-/*! the jni environment pointer
+/*! the java machine pointer
*
- * @return the environment pointer
+ * @return the java machine pointer
*/
-JNIEnv* tb_android_jenv(tb_noarg_t);
+JavaVM* tb_android_jvm(tb_noarg_t);
#endif
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/android/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/android/prefix.h
new file mode 100755
index 000000000..65be2ee39
--- /dev/null
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/android/prefix.h
@@ -0,0 +1,34 @@
+/*!The Treasure Box Library
+ *
+ * TBox is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * TBox is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with TBox;
+ * If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+ *
+ * Copyright (C) 2009 - 2015, ruki All rights reserved.
+ *
+ * @author ruki
+ * @file prefix.h
+ * @ingroup platform
+ */
+#ifndef TB_PLATFORM_ANDROID_PREFIX_H
+#define TB_PLATFORM_ANDROID_PREFIX_H
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * includes
+ */
+#include "../prefix.h"
+#include "../../libc/libc.h"
+#include "../../utils/utils.h"
+#include <jni.h>
+
+#endif
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/atomic.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/atomic.h
index 131cd2ed3..131cd2ed3 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/atomic.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/atomic.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/frame.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/frame.h
index 4e0b57417..4e0b57417 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/frame.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/frame.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/prefix.h
index 6e4b9b805..6e4b9b805 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/atomic.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/atomic.h
index ea9bc45d8..ea9bc45d8 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/atomic.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/atomic.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/barrier.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/barrier.h
index 5c4542140..5c4542140 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/barrier.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/barrier.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/frame.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/frame.h
index 9d029823a..9d029823a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/frame.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/frame.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/prefix.h
index ead1d4e22..ead1d4e22 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/atomic.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/atomic.h
index 8ff26d126..8ff26d126 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/atomic.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/atomic.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/barrier.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/barrier.h
index 08fdb7c11..08fdb7c11 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/barrier.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/barrier.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/frame.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/frame.h
index 512b06e00..512b06e00 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/frame.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/frame.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/prefix.h
index c2d356bde..c2d356bde 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/atomic.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/atomic.h
index b708e5d03..b708e5d03 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/atomic.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/atomic.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/barrier.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/barrier.h
index e88531d88..e88531d88 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/barrier.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/barrier.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/frame.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/frame.h
index bdbbcd715..bdbbcd715 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/frame.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/frame.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/prefix.h
index ca366b4b1..ca366b4b1 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/atomic.h b/core/pkg/tbox.pkg/inc/tbox/platform/atomic.h
index 0075668f9..0075668f9 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/atomic.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/atomic.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/atomic64.h b/core/pkg/tbox.pkg/inc/tbox/platform/atomic64.h
index c7e88121d..c7e88121d 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/atomic64.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/atomic64.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/backtrace.h b/core/pkg/tbox.pkg/inc/tbox/platform/backtrace.h
index 733a75dbd..733a75dbd 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/backtrace.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/backtrace.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/barrier.h b/core/pkg/tbox.pkg/inc/tbox/platform/barrier.h
index 5054febfe..5054febfe 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/barrier.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/barrier.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/cache_time.h b/core/pkg/tbox.pkg/inc/tbox/platform/cache_time.h
index 1979c7817..1979c7817 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/cache_time.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/cache_time.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/atomic.h b/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/atomic.h
index 66eba4d6d..66eba4d6d 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/atomic.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/atomic.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/atomic64.h b/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/atomic64.h
index e4bc06098..e4bc06098 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/atomic64.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/atomic64.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/barrier.h b/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/barrier.h
index 06ac42942..06ac42942 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/barrier.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/barrier.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/prefix.h
index 2900ee549..2900ee549 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/compiler/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/compiler/prefix.h
index c41e8c01d..c41e8c01d 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/compiler/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/compiler/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/directory.h b/core/pkg/tbox.pkg/inc/tbox/platform/directory.h
index 23df0b329..23df0b329 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/directory.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/directory.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/dns.h b/core/pkg/tbox.pkg/inc/tbox/platform/dns.h
index 8fa360c63..8fa360c63 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/dns.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/dns.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/dynamic.h b/core/pkg/tbox.pkg/inc/tbox/platform/dynamic.h
index 420772d19..420772d19 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/dynamic.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/dynamic.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/environment.h b/core/pkg/tbox.pkg/inc/tbox/platform/environment.h
index 238e368af..238e368af 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/environment.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/environment.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/event.h b/core/pkg/tbox.pkg/inc/tbox/platform/event.h
index 48b05e008..48b05e008 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/event.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/event.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/exception.h b/core/pkg/tbox.pkg/inc/tbox/platform/exception.h
index 080fb7e21..080fb7e21 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/exception.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/exception.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/file.h b/core/pkg/tbox.pkg/inc/tbox/platform/file.h
index 0590e47a2..0590e47a2 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/file.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/file.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/hostname.h b/core/pkg/tbox.pkg/inc/tbox/platform/hostname.h
index f6eb57090..f6eb57090 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/hostname.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/hostname.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/ifaddrs.h b/core/pkg/tbox.pkg/inc/tbox/platform/ifaddrs.h
index b24acf3b8..b24acf3b8 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/ifaddrs.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/ifaddrs.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/libc/exception.h b/core/pkg/tbox.pkg/inc/tbox/platform/libc/exception.h
index a8ffbc1b7..a8ffbc1b7 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/libc/exception.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/libc/exception.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/libc/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/libc/prefix.h
index 0b9dab421..0b9dab421 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/libc/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/libc/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/linux/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/linux/prefix.h
index e131be8ad..e131be8ad 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/linux/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/linux/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/ltimer.h b/core/pkg/tbox.pkg/inc/tbox/platform/ltimer.h
index 523cd2c0a..523cd2c0a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/ltimer.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/ltimer.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/mach/barrier.h b/core/pkg/tbox.pkg/inc/tbox/platform/mach/barrier.h
index 3a54f5ef5..3a54f5ef5 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/mach/barrier.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/mach/barrier.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/mach/ios/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/mach/ios/prefix.h
index d8bdbc6d3..d8bdbc6d3 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/mach/ios/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/mach/ios/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/mach/mac/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/mach/mac/prefix.h
index f4e014c91..f4e014c91 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/mach/mac/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/mach/mac/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/mach/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/mach/prefix.h
index e306ad0da..e306ad0da 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/mach/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/mach/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/memory.h b/core/pkg/tbox.pkg/inc/tbox/platform/memory.h
index be46941a8..be46941a8 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/memory.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/memory.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/mutex.h b/core/pkg/tbox.pkg/inc/tbox/platform/mutex.h
index 2600463f7..2600463f7 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/mutex.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/mutex.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/page.h b/core/pkg/tbox.pkg/inc/tbox/platform/page.h
index ecdb61458..ecdb61458 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/page.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/page.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/path.h b/core/pkg/tbox.pkg/inc/tbox/platform/path.h
index c08eb4f6c..c08eb4f6c 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/path.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/path.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/platform.h b/core/pkg/tbox.pkg/inc/tbox/platform/platform.h
index 3b759e2f7..7233c2272 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/platform.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/platform.h
@@ -71,7 +71,7 @@ __tb_extern_c_enter__
/*! init the platform
*
* @param priv the platform private data
- * pass JNIEnv* env for android
+ * pass JavaVM* jvm for android
* pass tb_null for other platform
*
* @return tb_true or tb_false
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/posix/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/posix/prefix.h
index cf88c8e85..cf88c8e85 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/posix/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/posix/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/posix/sockaddr.h b/core/pkg/tbox.pkg/inc/tbox/platform/posix/sockaddr.h
index 1b18bfaf8..1b18bfaf8 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/posix/sockaddr.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/posix/sockaddr.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/prefix.h
index 0795b9f37..0795b9f37 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/print.h b/core/pkg/tbox.pkg/inc/tbox/platform/print.h
index a7b00e490..a7b00e490 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/print.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/print.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/process.h b/core/pkg/tbox.pkg/inc/tbox/platform/process.h
index 1bc0d09c7..1bc0d09c7 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/process.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/process.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/processor.h b/core/pkg/tbox.pkg/inc/tbox/platform/processor.h
index 16ca7360c..16ca7360c 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/processor.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/processor.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/sched.h b/core/pkg/tbox.pkg/inc/tbox/platform/sched.h
index 09ca92f27..09ca92f27 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/sched.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/sched.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/semaphore.h b/core/pkg/tbox.pkg/inc/tbox/platform/semaphore.h
index 1eb800ce8..1eb800ce8 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/semaphore.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/semaphore.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/socket.h b/core/pkg/tbox.pkg/inc/tbox/platform/socket.h
index 2f05ca48e..2f05ca48e 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/socket.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/socket.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/spinlock.h b/core/pkg/tbox.pkg/inc/tbox/platform/spinlock.h
index 583943c26..583943c26 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/spinlock.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/spinlock.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/systemv/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/systemv/prefix.h
index 64c917a0f..64c917a0f 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/systemv/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/systemv/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/thread.h b/core/pkg/tbox.pkg/inc/tbox/platform/thread.h
index e1de62e96..e1de62e96 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/thread.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/thread.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/thread_pool.h b/core/pkg/tbox.pkg/inc/tbox/platform/thread_pool.h
index 2f8df50dc..2f8df50dc 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/thread_pool.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/thread_pool.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/thread_store.h b/core/pkg/tbox.pkg/inc/tbox/platform/thread_store.h
index 150799caa..150799caa 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/thread_store.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/thread_store.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/time.h b/core/pkg/tbox.pkg/inc/tbox/platform/time.h
index bc9009c70..bc9009c70 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/time.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/time.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/timer.h b/core/pkg/tbox.pkg/inc/tbox/platform/timer.h
index 9e18ecd57..9e18ecd57 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/timer.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/timer.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/unix/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/unix/prefix.h
index c5735c89c..c5735c89c 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/unix/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/unix/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/unix/syscall.h b/core/pkg/tbox.pkg/inc/tbox/platform/unix/syscall.h
index ffa028f34..ffa028f34 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/unix/syscall.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/unix/syscall.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic.h
index 6d11e832a..6d11e832a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic64.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic64.h
index 3cf651b98..3cf651b98 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic64.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic64.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/barrier.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/barrier.h
index 61e27d51c..61e27d51c 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/barrier.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/barrier.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/exception.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/exception.h
index 132d38d17..132d38d17 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/exception.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/exception.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/dbghelp.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/dbghelp.h
index 582082055..582082055 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/dbghelp.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/dbghelp.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/interface.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/interface.h
index 24e843258..24e843258 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/interface.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/interface.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/iphlpapi.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/iphlpapi.h
index 677690f66..677690f66 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/iphlpapi.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/iphlpapi.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/kernel32.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/kernel32.h
index aafd97c91..aafd97c91 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/kernel32.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/kernel32.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/mswsock.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/mswsock.h
index b791d5c07..b791d5c07 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/mswsock.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/mswsock.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/prefix.h
index c65ec26ab..c65ec26ab 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/shell32.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/shell32.h
index 54f3d38ca..54f3d38ca 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/shell32.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/shell32.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/user32.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/user32.h
index a1875436c..a1875436c 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/user32.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/user32.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/ws2_32.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/ws2_32.h
index d53b99cfb..d53b99cfb 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/ws2_32.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/ws2_32.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/ntstatus.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/ntstatus.h
index c57efe865..c57efe865 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/ntstatus.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/ntstatus.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/prefix.h
index d14a6fea8..d14a6fea8 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/socket_pool.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/socket_pool.h
index ff8fde64a..ff8fde64a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/socket_pool.h
+++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/socket_pool.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix.h b/core/pkg/tbox.pkg/inc/tbox/prefix.h
index c72e3af69..c72e3af69 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/abort.h b/core/pkg/tbox.pkg/inc/tbox/prefix/abort.h
index a882013f9..a882013f9 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/abort.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/abort.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/arch.h b/core/pkg/tbox.pkg/inc/tbox/prefix/arch.h
index 8364dceb6..8364dceb6 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/arch.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/arch.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/asm.h b/core/pkg/tbox.pkg/inc/tbox/prefix/asm.h
index 7480e805d..7480e805d 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/asm.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/asm.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/asm/arm/prefix.S b/core/pkg/tbox.pkg/inc/tbox/prefix/asm/arm/prefix.S
index d815dcbb7..85744e43e 100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/asm/arm/prefix.S
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/asm/arm/prefix.S
@@ -121,6 +121,7 @@ ELF .size \name, . - \name
#endif
.if \export
.global EXTERN_ASM\name
+ .hidden EXTERN_ASM\name
EXTERN_ASM\name:
.endif
ELF .type \name, %function
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/asm/arm/prefix.h b/core/pkg/tbox.pkg/inc/tbox/prefix/asm/arm/prefix.h
index 58d8a6e9f..58d8a6e9f 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/asm/arm/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/asm/arm/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/asm/asm.h b/core/pkg/tbox.pkg/inc/tbox/prefix/asm/asm.h
index f3c6bbfa4..f3c6bbfa4 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/asm/asm.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/asm/asm.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/asm/cache.h b/core/pkg/tbox.pkg/inc/tbox/prefix/asm/cache.h
index 9ffa51d6d..9ffa51d6d 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/asm/cache.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/asm/cache.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/asm/prefix.h b/core/pkg/tbox.pkg/inc/tbox/prefix/asm/prefix.h
index d211e155e..d211e155e 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/asm/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/asm/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/assembler.h b/core/pkg/tbox.pkg/inc/tbox/prefix/assembler.h
index 8f55841a3..8f55841a3 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/assembler.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/assembler.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/assert.h b/core/pkg/tbox.pkg/inc/tbox/prefix/assert.h
index cf42f6770..cf42f6770 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/assert.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/assert.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/check.h b/core/pkg/tbox.pkg/inc/tbox/prefix/check.h
index b64aacd55..b64aacd55 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/check.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/check.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/compiler.h b/core/pkg/tbox.pkg/inc/tbox/prefix/compiler.h
index aab9863e5..aab9863e5 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/compiler.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/compiler.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/config.h b/core/pkg/tbox.pkg/inc/tbox/prefix/config.h
index d8b62dcb3..d8b62dcb3 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/config.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/config.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/cpu.h b/core/pkg/tbox.pkg/inc/tbox/prefix/cpu.h
index 1ce3717de..1ce3717de 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/cpu.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/cpu.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/endian.h b/core/pkg/tbox.pkg/inc/tbox/prefix/endian.h
index 04ce3c8db..04ce3c8db 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/endian.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/endian.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/keyword.h b/core/pkg/tbox.pkg/inc/tbox/prefix/keyword.h
index 683ec43ff..df3236d90 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/keyword.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/keyword.h
@@ -33,7 +33,13 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* macros
*/
-#define __tb_register__ register
+
+// the register keyword will be deprecated in C++
+#ifndef __cplusplus
+# define __tb_register__ register
+#else
+# define __tb_register__
+#endif
#define __tb_volatile__ volatile
#define __tb_func__ __FUNCTION__
#define __tb_file__ __FILE__
@@ -146,6 +152,13 @@
# define __tb_lstring__(x) x
#endif
+// the string only for the debug mode
+#ifdef __tb_debug__
+# define __tb_dstring__(x) x
+#else
+# define __tb_dstring__(x) tb_null
+#endif
+
// extern c
#ifdef __cplusplus
# define __tb_extern_c__ extern "C"
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/limits.h b/core/pkg/tbox.pkg/inc/tbox/prefix/limits.h
index 7bc322f8c..7bc322f8c 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/limits.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/limits.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/malloc.h b/core/pkg/tbox.pkg/inc/tbox/prefix/malloc.h
index b20c0fd71..b20c0fd71 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/malloc.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/malloc.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/packed.h b/core/pkg/tbox.pkg/inc/tbox/prefix/packed.h
index 815c294bb..815c294bb 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/packed.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/packed.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/prefix.h b/core/pkg/tbox.pkg/inc/tbox/prefix/prefix.h
index db4bf42f3..db4bf42f3 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/state.h b/core/pkg/tbox.pkg/inc/tbox/prefix/state.h
index 658f43dac..d8e5dc454 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/state.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/state.h
@@ -61,24 +61,25 @@ typedef enum __tb_state_type_e
typedef enum __tb_state_e
{
TB_STATE_OK = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 0)
-, TB_STATE_FAILED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 1)
-, TB_STATE_KILLED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 2)
-, TB_STATE_PAUSED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 3)
-, TB_STATE_CLOSED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 4)
-, TB_STATE_OPENED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 5)
-, TB_STATE_OPENING = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 6)
-, TB_STATE_PENDING = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 7)
-, TB_STATE_WAITING = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 8)
-, TB_STATE_WORKING = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 9)
-, TB_STATE_KILLING = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 10)
-, TB_STATE_PAUSING = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 11)
-, TB_STATE_EXITING = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 12)
-, TB_STATE_TIMEOUT = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 13)
-, TB_STATE_FINISHED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 14)
-, TB_STATE_WAIT_FAILED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 15)
-, TB_STATE_POST_FAILED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 16)
-, TB_STATE_NOT_SUPPORTED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 17)
-, TB_STATE_UNKNOWN_ERROR = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 18)
+, TB_STATE_END = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 1)
+, TB_STATE_FAILED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 2)
+, TB_STATE_KILLED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 3)
+, TB_STATE_PAUSED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 4)
+, TB_STATE_CLOSED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 5)
+, TB_STATE_OPENED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 6)
+, TB_STATE_OPENING = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 7)
+, TB_STATE_PENDING = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 8)
+, TB_STATE_WAITING = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 9)
+, TB_STATE_WORKING = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 10)
+, TB_STATE_KILLING = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 11)
+, TB_STATE_PAUSING = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 12)
+, TB_STATE_EXITING = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 13)
+, TB_STATE_TIMEOUT = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 14)
+, TB_STATE_FINISHED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 15)
+, TB_STATE_WAIT_FAILED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 16)
+, TB_STATE_POST_FAILED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 17)
+, TB_STATE_NOT_SUPPORTED = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 18)
+, TB_STATE_UNKNOWN_ERROR = TB_STATE_DEFINE(TB_STATE_TYPE_NONE, 19)
, TB_STATE_FILE_NOT_EXISTS = TB_STATE_DEFINE(TB_STATE_TYPE_FILE, 1)
, TB_STATE_FILE_OPEN_FAILED = TB_STATE_DEFINE(TB_STATE_TYPE_FILE, 2)
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/trace.h b/core/pkg/tbox.pkg/inc/tbox/prefix/trace.h
index 15fcbf4a4..15fcbf4a4 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/trace.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/trace.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/type.h b/core/pkg/tbox.pkg/inc/tbox/prefix/type.h
index d8b08ee95..d8b08ee95 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/type.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/type.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/utils.h b/core/pkg/tbox.pkg/inc/tbox/prefix/utils.h
index 51c4e35b5..51c4e35b5 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/utils.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/utils.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/version.h b/core/pkg/tbox.pkg/inc/tbox/prefix/version.h
index 9d066993f..9d066993f 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/prefix/version.h
+++ b/core/pkg/tbox.pkg/inc/tbox/prefix/version.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/stream/async_stream.h b/core/pkg/tbox.pkg/inc/tbox/stream/async_stream.h
index 4f7517d66..4f7517d66 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/stream/async_stream.h
+++ b/core/pkg/tbox.pkg/inc/tbox/stream/async_stream.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/stream/async_transfer.h b/core/pkg/tbox.pkg/inc/tbox/stream/async_transfer.h
index 525820a59..525820a59 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/stream/async_transfer.h
+++ b/core/pkg/tbox.pkg/inc/tbox/stream/async_transfer.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/stream/filter.h b/core/pkg/tbox.pkg/inc/tbox/stream/filter.h
index f6c1535e2..f6c1535e2 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/stream/filter.h
+++ b/core/pkg/tbox.pkg/inc/tbox/stream/filter.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/stream/prefix.h b/core/pkg/tbox.pkg/inc/tbox/stream/prefix.h
index c2891bcbb..f2e4b50d7 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/stream/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/stream/prefix.h
@@ -107,6 +107,7 @@ typedef enum __tb_stream_ctrl_e
// the stream for file
, TB_STREAM_CTRL_FILE_GET_MODE = TB_STREAM_CTRL(TB_STREAM_TYPE_FILE, 1)
, TB_STREAM_CTRL_FILE_SET_MODE = TB_STREAM_CTRL(TB_STREAM_TYPE_FILE, 2)
+, TB_STREAM_CTRL_FILE_IS_STREAM = TB_STREAM_CTRL(TB_STREAM_TYPE_FILE, 3)
// the stream for sock
, TB_STREAM_CTRL_SOCK_GET_TYPE = TB_STREAM_CTRL(TB_STREAM_TYPE_SOCK, 1)
diff --git a/core/pkg/tbox.pkg/inc/tbox/stream/static_stream.h b/core/pkg/tbox.pkg/inc/tbox/stream/static_stream.h
index 0a4952540..3cead8dc0 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/stream/static_stream.h
+++ b/core/pkg/tbox.pkg/inc/tbox/stream/static_stream.h
@@ -317,6 +317,24 @@ tb_uint32_t tb_static_stream_read_ubits32(tb_static_stream_ref_t stream,
*/
tb_sint32_t tb_static_stream_read_sbits32(tb_static_stream_ref_t stream, tb_size_t nbits);
+/*! read ubits value for uint64
+ *
+ * @param stream the stream
+ * @param nbits the bits count
+ *
+ * @return the ubits value
+ */
+tb_uint64_t tb_static_stream_read_ubits64(tb_static_stream_ref_t stream, tb_size_t nbits);
+
+/*! read sbits value for sint64
+ *
+ * @param stream the stream
+ * @param nbits the bits count
+ *
+ * @return the sbits value
+ */
+tb_sint64_t tb_static_stream_read_sbits64(tb_static_stream_ref_t stream, tb_size_t nbits);
+
/*! read ubits1 value
*
* @param stream the stream
diff --git a/core/pkg/tbox.pkg/inc/tbox/stream/stream.h b/core/pkg/tbox.pkg/inc/tbox/stream/stream.h
index 1cf448447..1cf448447 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/stream/stream.h
+++ b/core/pkg/tbox.pkg/inc/tbox/stream/stream.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/stream/transfer.h b/core/pkg/tbox.pkg/inc/tbox/stream/transfer.h
index f82a23308..f82a23308 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/stream/transfer.h
+++ b/core/pkg/tbox.pkg/inc/tbox/stream/transfer.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/stream/transfer_pool.h b/core/pkg/tbox.pkg/inc/tbox/stream/transfer_pool.h
index a251b099c..a251b099c 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/stream/transfer_pool.h
+++ b/core/pkg/tbox.pkg/inc/tbox/stream/transfer_pool.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/string/prefix.h b/core/pkg/tbox.pkg/inc/tbox/string/prefix.h
index baa78f413..baa78f413 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/string/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/string/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/string/static_string.h b/core/pkg/tbox.pkg/inc/tbox/string/static_string.h
index 8f97aeacb..8f97aeacb 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/string/static_string.h
+++ b/core/pkg/tbox.pkg/inc/tbox/string/static_string.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/string/string.h b/core/pkg/tbox.pkg/inc/tbox/string/string.h
index f59bb04ae..f59bb04ae 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/string/string.h
+++ b/core/pkg/tbox.pkg/inc/tbox/string/string.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/tbox.h b/core/pkg/tbox.pkg/inc/tbox/tbox.h
index 926b584b9..e5ce2c7ab 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/tbox.h
+++ b/core/pkg/tbox.pkg/inc/tbox/tbox.h
@@ -86,7 +86,7 @@ __tb_extern_c_enter__
int main(int argc, char** argv)
{
// init tbox
- if (!tb_init(tb_null, tb_null, 0)) return 0;
+ if (!tb_init(tb_null, tb_null, tb_null, 0)) return 0;
// print info with tag
tb_trace_i("hello tbox");
@@ -125,7 +125,7 @@ __tb_extern_c_enter__
}
* @endcode
*/
-#define tb_init(priv, data, size) tb_init_(priv, data, size, (tb_size_t)(__tb_mode_debug__ | __tb_mode_small__), TB_VERSION_BUILD)
+#define tb_init(priv, allocator, data, size) tb_init_(priv, allocator, data, size, (tb_size_t)(__tb_mode_debug__ | __tb_mode_small__), TB_VERSION_BUILD)
/* //////////////////////////////////////////////////////////////////////////////////////
* interfaces
@@ -134,8 +134,9 @@ __tb_extern_c_enter__
/*! init the tbox library
*
* @param priv the platform private data
- * pass JNIEnv* env for android
+ * pass JavaVM* jvm for android jni
* pass tb_null for other platform
+ * @param allocator the allocator, uses data and size if be null
* @param data the memory data for the memory pool, uses the native memory if be tb_null
* @param size the memory size for the memory pool, uses the native memory if be zero
* @param mode the compile mode for check __tb_small__ and __tb_debug__
@@ -143,16 +144,18 @@ __tb_extern_c_enter__
*
* @return tb_true or tb_false
*/
-tb_bool_t tb_init_(tb_handle_t priv, tb_byte_t* data, tb_size_t size, tb_size_t mode, tb_hize_t build);
+tb_bool_t tb_init_(tb_handle_t priv, tb_allocator_ref_t allocator, tb_byte_t* data, tb_size_t size, tb_size_t mode, tb_hize_t build);
/// exit the tbox library
tb_void_t tb_exit(tb_noarg_t);
+#ifdef TB_CONFIG_INFO_HAVE_VERSION
/*! the tbox version
*
* @return the tbox version
*/
tb_version_t const* tb_version(tb_noarg_t);
+#endif
/* //////////////////////////////////////////////////////////////////////////////////////
* extern
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/adler32.h b/core/pkg/tbox.pkg/inc/tbox/utils/adler32.h
new file mode 100755
index 000000000..dc0240a55
--- /dev/null
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/adler32.h
@@ -0,0 +1,57 @@
+/*!The Treasure Box Library
+ *
+ * TBox is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * TBox is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with TBox;
+ * If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+ *
+ * Copyright (C) 2009 - 2015, ruki All rights reserved.
+ *
+ * @author ruki
+ * @file adler32.h
+ * @ingroup utils
+ *
+ */
+#ifndef TB_UTILS_ADLER32_H
+#define TB_UTILS_ADLER32_H
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * includes
+ */
+#include "prefix.h"
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * extern
+ */
+__tb_extern_c_enter__
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * interfaces
+ */
+
+/*! encode adler32
+ *
+ * @param adler the initial adler value
+ * @param data the data
+ * @param size the size
+ *
+ * @return the adler32 value
+ */
+tb_uint32_t tb_adler32_encode(tb_uint32_t adler, tb_byte_t const* data, tb_size_t size);
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * extern
+ */
+__tb_extern_c_leave__
+
+#endif
+
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/base32.h b/core/pkg/tbox.pkg/inc/tbox/utils/base32.h
index 912139a89..912139a89 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/base32.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/base32.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/base64.h b/core/pkg/tbox.pkg/inc/tbox/utils/base64.h
index 957dd0910..957dd0910 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/base64.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/base64.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/bits.h b/core/pkg/tbox.pkg/inc/tbox/utils/bits.h
index 5ba791c87..cdc05ad66 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/bits.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/bits.h
@@ -525,11 +525,63 @@ __tb_extern_c_enter__
* interfaces
*/
-tb_uint32_t tb_bits_get_ubits32(tb_byte_t const* p, tb_size_t b, tb_size_t n);
-tb_sint32_t tb_bits_get_sbits32(tb_byte_t const* p, tb_size_t b, tb_size_t n);
+/*! get ubits32 integer
+ *
+ * @param p the data pointer
+ * @param b the start bits
+ * @param n the bits count
+ *
+ * @return the ubits32 integer
+ */
+tb_uint32_t tb_bits_get_ubits32(tb_byte_t const* p, tb_size_t b, tb_size_t n);
+
+/*! get sbits32 integer
+ *
+ * @param p the data pointer
+ * @param b the start bits
+ * @param n the bits count
+ *
+ * @return the ubits32 integer
+ */
+tb_sint32_t tb_bits_get_sbits32(tb_byte_t const* p, tb_size_t b, tb_size_t n);
+
+/*! set ubits32 integer
+ *
+ * @param p the data pointer
+ * @param b the start bits
+ * @param x the value
+ * @param n the bits count
+ */
+tb_void_t tb_bits_set_ubits32(tb_byte_t* p, tb_size_t b, tb_uint32_t x, tb_size_t n);
-tb_void_t tb_bits_set_ubits32(tb_byte_t* p, tb_size_t b, tb_uint32_t x, tb_size_t n);
-tb_void_t tb_bits_set_sbits32(tb_byte_t* p, tb_size_t b, tb_sint32_t x, tb_size_t n);
+/*! set ubits32 integer
+ *
+ * @param p the data pointer
+ * @param b the start bits
+ * @param x the value
+ * @param n the bits count
+ */
+tb_void_t tb_bits_set_sbits32(tb_byte_t* p, tb_size_t b, tb_sint32_t x, tb_size_t n);
+
+/*! get ubits64 integer
+ *
+ * @param p the data pointer
+ * @param b the start bits
+ * @param n the bits count
+ *
+ * @return the ubits64 integer
+ */
+tb_uint64_t tb_bits_get_ubits64(tb_byte_t const* p, tb_size_t b, tb_size_t n);
+
+/*! get sbits64 integer
+ *
+ * @param p the data pointer
+ * @param b the start bits
+ * @param n the bits count
+ *
+ * @return the ubits64 integer
+ */
+tb_sint64_t tb_bits_get_sbits64(tb_byte_t const* p, tb_size_t b, tb_size_t n);
/* //////////////////////////////////////////////////////////////////////////////////////
* bits
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/crc.h b/core/pkg/tbox.pkg/inc/tbox/utils/crc.h
index 7fab11e13..047ca5142 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/crc.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/crc.h
@@ -71,12 +71,12 @@ typedef enum __tb_crc_mode_t
*
* @param mode the crc mode
* @param crc the initial crc value
- * @param ib the input data
- * @param in the input size
+ * @param data the input data
+ * @param size the input size
*
* @return the crc value
*/
-tb_uint32_t tb_crc_encode(tb_crc_mode_t mode, tb_uint32_t crc, tb_byte_t const* ib, tb_size_t in);
+tb_uint32_t tb_crc_encode(tb_crc_mode_t mode, tb_uint32_t crc, tb_byte_t const* data, tb_size_t size);
/*! encode crc for cstr
*
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/dump.h b/core/pkg/tbox.pkg/inc/tbox/utils/dump.h
index 07f254673..07f254673 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/dump.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/dump.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_arm.h b/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_arm.h
index de8c1615e..988e2a311 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_arm.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_arm.h
@@ -26,7 +26,7 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
*/
-#include "../prefix.h"
+#include "prefix.h"
/* //////////////////////////////////////////////////////////////////////////////////////
* macros
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_gcc.h b/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_gcc.h
index 97bd3fbe8..70df7ae14 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_gcc.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_gcc.h
@@ -26,7 +26,7 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
*/
-#include "../prefix.h"
+#include "prefix.h"
/* //////////////////////////////////////////////////////////////////////////////////////
* macros
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_sh4.h b/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_sh4.h
index 58c99e1e4..d73418104 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_sh4.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_sh4.h
@@ -26,7 +26,7 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
*/
-#include "../prefix.h"
+#include "prefix.h"
/* //////////////////////////////////////////////////////////////////////////////////////
* macros
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_x86.h b/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_x86.h
index 587da75ce..2eef8b0fd 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_x86.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_x86.h
@@ -26,7 +26,7 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
*/
-#include "../prefix.h"
+#include "prefix.h"
/* //////////////////////////////////////////////////////////////////////////////////////
* macros
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/impl/crc_arm.h b/core/pkg/tbox.pkg/inc/tbox/utils/impl/crc_arm.h
index 9908bfb5a..e3164bd20 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/impl/crc_arm.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/impl/crc_arm.h
@@ -26,7 +26,7 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
*/
-#include "../prefix.h"
+#include "prefix.h"
/* //////////////////////////////////////////////////////////////////////////////////////
* macros
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/impl/prefix.h b/core/pkg/tbox.pkg/inc/tbox/utils/impl/prefix.h
index 0f32a6b68..0f32a6b68 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/impl/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/impl/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/lock_profiler.h b/core/pkg/tbox.pkg/inc/tbox/utils/lock_profiler.h
index 657d5ee31..657d5ee31 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/lock_profiler.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/lock_profiler.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/md5.h b/core/pkg/tbox.pkg/inc/tbox/utils/md5.h
index 3503712cf..3503712cf 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/md5.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/md5.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/option.h b/core/pkg/tbox.pkg/inc/tbox/utils/option.h
index f1c67cc5e..f1c67cc5e 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/option.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/option.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/prefix.h b/core/pkg/tbox.pkg/inc/tbox/utils/prefix.h
index c9bbc618f..c9bbc618f 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/sha.h b/core/pkg/tbox.pkg/inc/tbox/utils/sha.h
index 845dd5c64..845dd5c64 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/sha.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/sha.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/singleton.h b/core/pkg/tbox.pkg/inc/tbox/utils/singleton.h
index 72e41713a..72e41713a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/singleton.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/singleton.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/trace.h b/core/pkg/tbox.pkg/inc/tbox/utils/trace.h
index ffdd0efd3..ffdd0efd3 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/trace.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/trace.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/url.h b/core/pkg/tbox.pkg/inc/tbox/utils/url.h
index e8b671152..e8b671152 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/url.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/url.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/used.h b/core/pkg/tbox.pkg/inc/tbox/utils/used.h
index 624ce2acd..624ce2acd 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/used.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/used.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/utils.h b/core/pkg/tbox.pkg/inc/tbox/utils/utils.h
index 8cc4b6d9c..8be786da1 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/utils/utils.h
+++ b/core/pkg/tbox.pkg/inc/tbox/utils/utils.h
@@ -39,6 +39,7 @@
#include "base32.h"
#include "base64.h"
#include "option.h"
+#include "adler32.h"
#include "singleton.h"
#include "lock_profiler.h"
diff --git a/core/pkg/tbox.pkg/inc/tbox/xml/node.h b/core/pkg/tbox.pkg/inc/tbox/xml/node.h
index 23da09d11..23da09d11 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/xml/node.h
+++ b/core/pkg/tbox.pkg/inc/tbox/xml/node.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/xml/prefix.h b/core/pkg/tbox.pkg/inc/tbox/xml/prefix.h
index eddf8bca1..eddf8bca1 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/xml/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/xml/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/xml/reader.h b/core/pkg/tbox.pkg/inc/tbox/xml/reader.h
index df67e03b3..df67e03b3 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/xml/reader.h
+++ b/core/pkg/tbox.pkg/inc/tbox/xml/reader.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/xml/writer.h b/core/pkg/tbox.pkg/inc/tbox/xml/writer.h
index 8541ba03e..8541ba03e 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/xml/writer.h
+++ b/core/pkg/tbox.pkg/inc/tbox/xml/writer.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/xml/xml.h b/core/pkg/tbox.pkg/inc/tbox/xml/xml.h
index 4c0214775..4c0214775 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/xml/xml.h
+++ b/core/pkg/tbox.pkg/inc/tbox/xml/xml.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/gzip.h b/core/pkg/tbox.pkg/inc/tbox/zip/gzip.h
index e614e1a5f..e614e1a5f 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/zip/gzip.h
+++ b/core/pkg/tbox.pkg/inc/tbox/zip/gzip.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/lzsw.h b/core/pkg/tbox.pkg/inc/tbox/zip/lzsw.h
index d1a28d738..d1a28d738 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/zip/lzsw.h
+++ b/core/pkg/tbox.pkg/inc/tbox/zip/lzsw.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/prefix.h b/core/pkg/tbox.pkg/inc/tbox/zip/prefix.h
index b4d16270c..b4d16270c 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/zip/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/zip/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/rlc.h b/core/pkg/tbox.pkg/inc/tbox/zip/rlc.h
index adaec0ce6..adaec0ce6 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/zip/rlc.h
+++ b/core/pkg/tbox.pkg/inc/tbox/zip/rlc.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/vlc.h b/core/pkg/tbox.pkg/inc/tbox/zip/vlc.h
index b0e23f339..b0e23f339 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/zip/vlc.h
+++ b/core/pkg/tbox.pkg/inc/tbox/zip/vlc.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/vlc/prefix.h b/core/pkg/tbox.pkg/inc/tbox/zip/vlc/prefix.h
index 4fb7ae046..4fb7ae046 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/zip/vlc/prefix.h
+++ b/core/pkg/tbox.pkg/inc/tbox/zip/vlc/prefix.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/zip.h b/core/pkg/tbox.pkg/inc/tbox/zip/zip.h
index 04d8a145a..04d8a145a 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/zip/zip.h
+++ b/core/pkg/tbox.pkg/inc/tbox/zip/zip.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/zlib.h b/core/pkg/tbox.pkg/inc/tbox/zip/zlib.h
index f6b2ae730..f6b2ae730 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/zip/zlib.h
+++ b/core/pkg/tbox.pkg/inc/tbox/zip/zlib.h
diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/zlibraw.h b/core/pkg/tbox.pkg/inc/tbox/zip/zlibraw.h
index 805f7c50b..805f7c50b 100644..100755
--- a/core/pkg/tbox.pkg/inc/tbox/zip/zlibraw.h
+++ b/core/pkg/tbox.pkg/inc/tbox/zip/zlibraw.h