From 59ab74881403640bc58dd73cf6fbd56d01e1fca6 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 25 Nov 2015 22:07:25 +0800 Subject: update tbox and fix remove relative file bug --- core/pkg/tbox.pkg/inc/mac/x64/tbox.config.h | 29 +++- core/pkg/tbox.pkg/inc/tbox/algorithm/distance.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/find.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/find_if.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/for.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/for_if.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/heap_sort.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/insert_sort.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/predicate.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/quick_sort.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/remove.h | 0 .../pkg/tbox.pkg/inc/tbox/algorithm/remove_first.h | 0 .../tbox.pkg/inc/tbox/algorithm/remove_first_if.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/remove_if.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/rfind.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/rfind_if.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/rfor.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/rfor_if.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/rwalk.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/sort.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/walk.h | 0 core/pkg/tbox.pkg/inc/tbox/asio/aice.h | 0 core/pkg/tbox.pkg/inc/tbox/asio/aico.h | 0 core/pkg/tbox.pkg/inc/tbox/asio/aicp.h | 0 core/pkg/tbox.pkg/inc/tbox/asio/aioe.h | 0 core/pkg/tbox.pkg/inc/tbox/asio/aioo.h | 0 core/pkg/tbox.pkg/inc/tbox/asio/aiop.h | 0 core/pkg/tbox.pkg/inc/tbox/asio/asio.h | 0 core/pkg/tbox.pkg/inc/tbox/asio/dns.h | 0 core/pkg/tbox.pkg/inc/tbox/asio/http.h | 0 core/pkg/tbox.pkg/inc/tbox/asio/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/asio/ssl.h | 0 core/pkg/tbox.pkg/inc/tbox/charset/charset.h | 0 core/pkg/tbox.pkg/inc/tbox/charset/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/config.h | 0 .../pkg/tbox.pkg/inc/tbox/container/bloom_filter.h | 0 .../pkg/tbox.pkg/inc/tbox/container/circle_queue.h | 0 core/pkg/tbox.pkg/inc/tbox/container/container.h | 0 core/pkg/tbox.pkg/inc/tbox/container/element.h | 0 .../pkg/tbox.pkg/inc/tbox/container/element/hash.h | 0 .../tbox.pkg/inc/tbox/container/element/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/container/hash_map.h | 0 core/pkg/tbox.pkg/inc/tbox/container/hash_set.h | 0 core/pkg/tbox.pkg/inc/tbox/container/heap.h | 0 core/pkg/tbox.pkg/inc/tbox/container/iterator.h | 0 .../tbox.pkg/inc/tbox/container/iterator/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/container/list.h | 0 core/pkg/tbox.pkg/inc/tbox/container/list_entry.h | 0 core/pkg/tbox.pkg/inc/tbox/container/prefix.h | 0 .../tbox.pkg/inc/tbox/container/priority_queue.h | 0 core/pkg/tbox.pkg/inc/tbox/container/queue.h | 0 core/pkg/tbox.pkg/inc/tbox/container/single_list.h | 0 .../inc/tbox/container/single_list_entry.h | 0 core/pkg/tbox.pkg/inc/tbox/container/stack.h | 0 core/pkg/tbox.pkg/inc/tbox/container/vector.h | 0 core/pkg/tbox.pkg/inc/tbox/database/database.h | 0 core/pkg/tbox.pkg/inc/tbox/database/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/database/sql.h | 0 core/pkg/tbox.pkg/inc/tbox/database/value.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/libc.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/misc/ctype.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/misc/limits.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/misc/misc.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/misc/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/misc/setjmp.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/misc/signal.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/misc/stdarg.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/misc/time/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/misc/time/time.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/misc/time/type.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/stdio/prefix.h | 0 .../tbox.pkg/inc/tbox/libc/stdio/printf_object.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/stdio/stdio.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/stdlib/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/stdlib/stdlib.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/string/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/string/string.h | 4 + core/pkg/tbox.pkg/inc/tbox/libm/ceil.h | 0 core/pkg/tbox.pkg/inc/tbox/libm/fabs.h | 0 core/pkg/tbox.pkg/inc/tbox/libm/floor.h | 0 core/pkg/tbox.pkg/inc/tbox/libm/inf.h | 0 core/pkg/tbox.pkg/inc/tbox/libm/libm.h | 0 core/pkg/tbox.pkg/inc/tbox/libm/maf.h | 0 core/pkg/tbox.pkg/inc/tbox/libm/math.h | 4 + core/pkg/tbox.pkg/inc/tbox/libm/mif.h | 0 core/pkg/tbox.pkg/inc/tbox/libm/nan.h | 0 core/pkg/tbox.pkg/inc/tbox/libm/pi.h | 0 core/pkg/tbox.pkg/inc/tbox/libm/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/libm/round.h | 0 core/pkg/tbox.pkg/inc/tbox/math/fixed.h | 0 core/pkg/tbox.pkg/inc/tbox/math/fixed16.h | 0 core/pkg/tbox.pkg/inc/tbox/math/fixed30.h | 0 core/pkg/tbox.pkg/inc/tbox/math/fixed6.h | 0 core/pkg/tbox.pkg/inc/tbox/math/impl/fixed16_arm.h | 66 ++++++++ core/pkg/tbox.pkg/inc/tbox/math/impl/fixed30_arm.h | 65 ++++++++ core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h | 33 ++++ core/pkg/tbox.pkg/inc/tbox/math/impl/random.h | 85 ++++++++++ core/pkg/tbox.pkg/inc/tbox/math/int32.h | 0 core/pkg/tbox.pkg/inc/tbox/math/math.h | 0 core/pkg/tbox.pkg/inc/tbox/math/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/math/random.h | 0 core/pkg/tbox.pkg/inc/tbox/memory/allocator.h | 175 +++++++++++++++++++++ core/pkg/tbox.pkg/inc/tbox/memory/buffer.h | 0 core/pkg/tbox.pkg/inc/tbox/memory/fixed_pool.h | 0 core/pkg/tbox.pkg/inc/tbox/memory/large_pool.h | 3 +- core/pkg/tbox.pkg/inc/tbox/memory/memory.h | 13 +- core/pkg/tbox.pkg/inc/tbox/memory/pool.h | 6 +- core/pkg/tbox.pkg/inc/tbox/memory/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/memory/queue_buffer.h | 0 core/pkg/tbox.pkg/inc/tbox/memory/small_pool.h | 0 core/pkg/tbox.pkg/inc/tbox/memory/static_buffer.h | 0 core/pkg/tbox.pkg/inc/tbox/memory/static_pool.h | 166 +++++++++++++++++++ core/pkg/tbox.pkg/inc/tbox/memory/string_pool.h | 0 core/pkg/tbox.pkg/inc/tbox/network/cookies.h | 0 core/pkg/tbox.pkg/inc/tbox/network/dns/cache.h | 0 core/pkg/tbox.pkg/inc/tbox/network/dns/dns.h | 0 core/pkg/tbox.pkg/inc/tbox/network/dns/looker.h | 0 core/pkg/tbox.pkg/inc/tbox/network/dns/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/network/dns/server.h | 0 core/pkg/tbox.pkg/inc/tbox/network/http.h | 0 core/pkg/tbox.pkg/inc/tbox/network/hwaddr.h | 0 core/pkg/tbox.pkg/inc/tbox/network/ipaddr.h | 0 core/pkg/tbox.pkg/inc/tbox/network/ipv4.h | 0 core/pkg/tbox.pkg/inc/tbox/network/ipv6.h | 0 core/pkg/tbox.pkg/inc/tbox/network/network.h | 0 core/pkg/tbox.pkg/inc/tbox/network/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/network/ssl.h | 0 core/pkg/tbox.pkg/inc/tbox/network/url.h | 0 core/pkg/tbox.pkg/inc/tbox/object/array.h | 0 core/pkg/tbox.pkg/inc/tbox/object/boolean.h | 0 core/pkg/tbox.pkg/inc/tbox/object/data.h | 0 core/pkg/tbox.pkg/inc/tbox/object/date.h | 0 core/pkg/tbox.pkg/inc/tbox/object/dictionary.h | 0 core/pkg/tbox.pkg/inc/tbox/object/null.h | 0 core/pkg/tbox.pkg/inc/tbox/object/number.h | 0 core/pkg/tbox.pkg/inc/tbox/object/object.h | 18 +-- core/pkg/tbox.pkg/inc/tbox/object/prefix.h | 4 +- core/pkg/tbox.pkg/inc/tbox/object/string.h | 0 .../tbox.pkg/inc/tbox/platform/android/android.h | 52 ++++++ .../tbox.pkg/inc/tbox/platform/android/prefix.h | 34 ++++ .../tbox.pkg/inc/tbox/platform/arch/arm/atomic.h | 0 .../tbox.pkg/inc/tbox/platform/arch/arm/frame.h | 0 .../tbox.pkg/inc/tbox/platform/arch/arm/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/arch/atomic.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/arch/barrier.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/arch/frame.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/arch/prefix.h | 0 .../tbox.pkg/inc/tbox/platform/arch/x64/atomic.h | 0 .../tbox.pkg/inc/tbox/platform/arch/x64/barrier.h | 0 .../tbox.pkg/inc/tbox/platform/arch/x64/frame.h | 0 .../tbox.pkg/inc/tbox/platform/arch/x64/prefix.h | 0 .../tbox.pkg/inc/tbox/platform/arch/x86/atomic.h | 0 .../tbox.pkg/inc/tbox/platform/arch/x86/barrier.h | 0 .../tbox.pkg/inc/tbox/platform/arch/x86/frame.h | 0 .../tbox.pkg/inc/tbox/platform/arch/x86/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/atomic.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/atomic64.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/backtrace.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/barrier.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/cache_time.h | 0 .../inc/tbox/platform/compiler/gcc/atomic.h | 0 .../inc/tbox/platform/compiler/gcc/atomic64.h | 0 .../inc/tbox/platform/compiler/gcc/barrier.h | 0 .../inc/tbox/platform/compiler/gcc/prefix.h | 0 .../tbox.pkg/inc/tbox/platform/compiler/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/directory.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/dns.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/dynamic.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/environment.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/event.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/exception.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/file.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/hostname.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/ifaddrs.h | 0 .../tbox.pkg/inc/tbox/platform/libc/exception.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/libc/prefix.h | 0 .../inc/tbox/platform/linux/android/android.h | 52 ------ .../inc/tbox/platform/linux/android/prefix.h | 32 ---- core/pkg/tbox.pkg/inc/tbox/platform/linux/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/ltimer.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/mach/barrier.h | 0 .../tbox.pkg/inc/tbox/platform/mach/ios/prefix.h | 0 .../tbox.pkg/inc/tbox/platform/mach/mac/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/mach/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/memory.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/mutex.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/page.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/path.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/platform.h | 2 +- core/pkg/tbox.pkg/inc/tbox/platform/posix/prefix.h | 0 .../tbox.pkg/inc/tbox/platform/posix/sockaddr.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/print.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/process.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/processor.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/sched.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/semaphore.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/socket.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/spinlock.h | 0 .../tbox.pkg/inc/tbox/platform/systemv/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/thread.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/thread_pool.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/thread_store.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/time.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/timer.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/unix/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/unix/syscall.h | 0 .../tbox.pkg/inc/tbox/platform/windows/atomic.h | 0 .../tbox.pkg/inc/tbox/platform/windows/atomic64.h | 0 .../tbox.pkg/inc/tbox/platform/windows/barrier.h | 0 .../tbox.pkg/inc/tbox/platform/windows/exception.h | 0 .../inc/tbox/platform/windows/interface/dbghelp.h | 0 .../tbox/platform/windows/interface/interface.h | 0 .../inc/tbox/platform/windows/interface/iphlpapi.h | 0 .../inc/tbox/platform/windows/interface/kernel32.h | 0 .../inc/tbox/platform/windows/interface/mswsock.h | 0 .../inc/tbox/platform/windows/interface/prefix.h | 0 .../inc/tbox/platform/windows/interface/shell32.h | 0 .../inc/tbox/platform/windows/interface/user32.h | 0 .../inc/tbox/platform/windows/interface/ws2_32.h | 0 .../tbox.pkg/inc/tbox/platform/windows/ntstatus.h | 0 .../tbox.pkg/inc/tbox/platform/windows/prefix.h | 0 .../inc/tbox/platform/windows/socket_pool.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/abort.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/arch.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/asm.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/asm/arm/prefix.S | 1 + core/pkg/tbox.pkg/inc/tbox/prefix/asm/arm/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/asm/asm.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/asm/cache.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/asm/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/assembler.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/assert.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/check.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/compiler.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/config.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/cpu.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/endian.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/keyword.h | 15 +- core/pkg/tbox.pkg/inc/tbox/prefix/limits.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/malloc.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/packed.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/state.h | 37 ++--- core/pkg/tbox.pkg/inc/tbox/prefix/trace.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/type.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/utils.h | 0 core/pkg/tbox.pkg/inc/tbox/prefix/version.h | 0 core/pkg/tbox.pkg/inc/tbox/stream/async_stream.h | 0 core/pkg/tbox.pkg/inc/tbox/stream/async_transfer.h | 0 core/pkg/tbox.pkg/inc/tbox/stream/filter.h | 0 core/pkg/tbox.pkg/inc/tbox/stream/prefix.h | 1 + core/pkg/tbox.pkg/inc/tbox/stream/static_stream.h | 18 +++ core/pkg/tbox.pkg/inc/tbox/stream/stream.h | 0 core/pkg/tbox.pkg/inc/tbox/stream/transfer.h | 0 core/pkg/tbox.pkg/inc/tbox/stream/transfer_pool.h | 0 core/pkg/tbox.pkg/inc/tbox/string/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/string/static_string.h | 0 core/pkg/tbox.pkg/inc/tbox/string/string.h | 0 core/pkg/tbox.pkg/inc/tbox/tbox.h | 11 +- core/pkg/tbox.pkg/inc/tbox/utils/adler32.h | 57 +++++++ core/pkg/tbox.pkg/inc/tbox/utils/base32.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/base64.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/bits.h | 60 ++++++- core/pkg/tbox.pkg/inc/tbox/utils/crc.h | 6 +- core/pkg/tbox.pkg/inc/tbox/utils/dump.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_arm.h | 2 +- core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_gcc.h | 2 +- core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_sh4.h | 2 +- core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_x86.h | 2 +- core/pkg/tbox.pkg/inc/tbox/utils/impl/crc_arm.h | 2 +- core/pkg/tbox.pkg/inc/tbox/utils/impl/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/lock_profiler.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/md5.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/option.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/sha.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/singleton.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/trace.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/url.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/used.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/utils.h | 1 + core/pkg/tbox.pkg/inc/tbox/xml/node.h | 0 core/pkg/tbox.pkg/inc/tbox/xml/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/xml/reader.h | 0 core/pkg/tbox.pkg/inc/tbox/xml/writer.h | 0 core/pkg/tbox.pkg/inc/tbox/xml/xml.h | 0 core/pkg/tbox.pkg/inc/tbox/zip/gzip.h | 0 core/pkg/tbox.pkg/inc/tbox/zip/lzsw.h | 0 core/pkg/tbox.pkg/inc/tbox/zip/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/zip/rlc.h | 0 core/pkg/tbox.pkg/inc/tbox/zip/vlc.h | 0 core/pkg/tbox.pkg/inc/tbox/zip/vlc/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/zip/zip.h | 0 core/pkg/tbox.pkg/inc/tbox/zip/zlib.h | 0 core/pkg/tbox.pkg/inc/tbox/zip/zlibraw.h | 0 299 files changed, 913 insertions(+), 147 deletions(-) mode change 100644 => 100755 core/pkg/tbox.pkg/inc/mac/x64/tbox.config.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/distance.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/find.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/find_if.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/for.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/for_if.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/heap_sort.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/insert_sort.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/predicate.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/quick_sort.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/remove.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/remove_first.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/remove_first_if.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/remove_if.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/rfind.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/rfind_if.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/rfor.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/rfor_if.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/rwalk.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/sort.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/walk.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/asio/aice.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/asio/aico.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/asio/aicp.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/asio/aioe.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/asio/aioo.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/asio/aiop.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/asio/asio.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/asio/dns.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/asio/http.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/asio/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/asio/ssl.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/charset/charset.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/charset/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/config.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/bloom_filter.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/circle_queue.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/container.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/element.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/element/hash.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/element/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/hash_map.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/hash_set.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/heap.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/iterator.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/iterator/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/list.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/list_entry.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/priority_queue.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/queue.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/single_list.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/single_list_entry.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/stack.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/container/vector.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/database/database.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/database/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/database/sql.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/database/value.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/libc.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/misc/ctype.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/misc/limits.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/misc/misc.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/misc/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/misc/setjmp.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/misc/signal.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/misc/stdarg.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/misc/time/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/misc/time/time.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/misc/time/type.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/stdio/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/stdio/printf_object.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/stdio/stdio.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/stdlib/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/stdlib/stdlib.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/string/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libc/string/string.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libm/ceil.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libm/fabs.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libm/floor.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libm/inf.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libm/libm.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libm/maf.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libm/math.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libm/mif.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libm/nan.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libm/pi.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libm/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/libm/round.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/math/fixed.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/math/fixed16.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/math/fixed30.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/math/fixed6.h create mode 100755 core/pkg/tbox.pkg/inc/tbox/math/impl/fixed16_arm.h create mode 100755 core/pkg/tbox.pkg/inc/tbox/math/impl/fixed30_arm.h create mode 100755 core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h create mode 100755 core/pkg/tbox.pkg/inc/tbox/math/impl/random.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/math/int32.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/math/math.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/math/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/math/random.h create mode 100755 core/pkg/tbox.pkg/inc/tbox/memory/allocator.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/memory/buffer.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/memory/fixed_pool.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/memory/large_pool.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/memory/memory.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/memory/pool.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/memory/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/memory/queue_buffer.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/memory/small_pool.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/memory/static_buffer.h create mode 100755 core/pkg/tbox.pkg/inc/tbox/memory/static_pool.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/memory/string_pool.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/cookies.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/dns/cache.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/dns/dns.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/dns/looker.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/dns/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/dns/server.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/http.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/hwaddr.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/ipaddr.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/ipv4.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/ipv6.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/network.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/ssl.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/network/url.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/object/array.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/object/boolean.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/object/data.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/object/date.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/object/dictionary.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/object/null.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/object/number.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/object/object.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/object/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/object/string.h create mode 100755 core/pkg/tbox.pkg/inc/tbox/platform/android/android.h create mode 100755 core/pkg/tbox.pkg/inc/tbox/platform/android/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/atomic.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/frame.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/arm/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/atomic.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/barrier.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/frame.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/atomic.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/barrier.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/frame.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/x64/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/atomic.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/barrier.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/frame.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/arch/x86/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/atomic.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/atomic64.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/backtrace.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/barrier.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/cache_time.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/atomic.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/atomic64.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/barrier.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/compiler/gcc/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/compiler/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/directory.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/dns.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/dynamic.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/environment.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/event.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/exception.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/file.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/hostname.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/ifaddrs.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/libc/exception.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/libc/prefix.h delete mode 100644 core/pkg/tbox.pkg/inc/tbox/platform/linux/android/android.h delete mode 100644 core/pkg/tbox.pkg/inc/tbox/platform/linux/android/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/linux/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/ltimer.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/mach/barrier.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/mach/ios/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/mach/mac/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/mach/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/memory.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/mutex.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/page.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/path.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/platform.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/posix/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/posix/sockaddr.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/print.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/process.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/processor.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/sched.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/semaphore.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/socket.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/spinlock.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/systemv/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/thread.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/thread_pool.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/thread_store.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/time.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/timer.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/unix/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/unix/syscall.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic64.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/barrier.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/exception.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/dbghelp.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/interface.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/iphlpapi.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/kernel32.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/mswsock.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/shell32.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/user32.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/interface/ws2_32.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/ntstatus.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/windows/socket_pool.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/abort.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/arch.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/asm.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/asm/arm/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/asm/asm.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/asm/cache.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/asm/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/assembler.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/assert.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/check.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/compiler.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/config.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/cpu.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/endian.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/keyword.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/limits.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/malloc.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/packed.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/state.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/trace.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/type.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/utils.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/prefix/version.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/stream/async_stream.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/stream/async_transfer.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/stream/filter.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/stream/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/stream/static_stream.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/stream/stream.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/stream/transfer.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/stream/transfer_pool.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/string/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/string/static_string.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/string/string.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/tbox.h create mode 100755 core/pkg/tbox.pkg/inc/tbox/utils/adler32.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/base32.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/base64.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/bits.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/crc.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/dump.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_arm.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_gcc.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_sh4.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_x86.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/impl/crc_arm.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/impl/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/lock_profiler.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/md5.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/option.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/sha.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/singleton.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/trace.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/url.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/used.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/utils/utils.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/xml/node.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/xml/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/xml/reader.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/xml/writer.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/xml/xml.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/zip/gzip.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/zip/lzsw.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/zip/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/zip/rlc.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/zip/vlc.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/zip/vlc/prefix.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/zip/zip.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/zip/zlib.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/zip/zlibraw.h (limited to 'core/pkg') diff --git a/core/pkg/tbox.pkg/inc/mac/x64/tbox.config.h b/core/pkg/tbox.pkg/inc/mac/x64/tbox.config.h old mode 100644 new mode 100755 index f9ca5d77d..b91e4b526 --- 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/find.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/find.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/find_if.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/find_if.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/for.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/for.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/for_if.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/for_if.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/heap_sort.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/heap_sort.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/insert_sort.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/insert_sort.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/predicate.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/predicate.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/prefix.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/quick_sort.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/quick_sort.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/remove.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/remove.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_first.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_first.h old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_if.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/remove_if.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/rfind.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/rfind.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/rfind_if.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/rfind_if.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/rfor.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/rfor.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/rfor_if.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/rfor_if.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/rwalk.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/rwalk.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/sort.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/sort.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/walk.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/walk.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/aice.h b/core/pkg/tbox.pkg/inc/tbox/asio/aice.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/aico.h b/core/pkg/tbox.pkg/inc/tbox/asio/aico.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/aicp.h b/core/pkg/tbox.pkg/inc/tbox/asio/aicp.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/aioe.h b/core/pkg/tbox.pkg/inc/tbox/asio/aioe.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/aioo.h b/core/pkg/tbox.pkg/inc/tbox/asio/aioo.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/aiop.h b/core/pkg/tbox.pkg/inc/tbox/asio/aiop.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/asio.h b/core/pkg/tbox.pkg/inc/tbox/asio/asio.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/dns.h b/core/pkg/tbox.pkg/inc/tbox/asio/dns.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/http.h b/core/pkg/tbox.pkg/inc/tbox/asio/http.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/prefix.h b/core/pkg/tbox.pkg/inc/tbox/asio/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/asio/ssl.h b/core/pkg/tbox.pkg/inc/tbox/asio/ssl.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/charset/charset.h b/core/pkg/tbox.pkg/inc/tbox/charset/charset.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/charset/prefix.h b/core/pkg/tbox.pkg/inc/tbox/charset/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/config.h b/core/pkg/tbox.pkg/inc/tbox/config.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/bloom_filter.h b/core/pkg/tbox.pkg/inc/tbox/container/bloom_filter.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/circle_queue.h b/core/pkg/tbox.pkg/inc/tbox/container/circle_queue.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/container.h b/core/pkg/tbox.pkg/inc/tbox/container/container.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/element.h b/core/pkg/tbox.pkg/inc/tbox/container/element.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/element/hash.h b/core/pkg/tbox.pkg/inc/tbox/container/element/hash.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/element/prefix.h b/core/pkg/tbox.pkg/inc/tbox/container/element/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/hash_map.h b/core/pkg/tbox.pkg/inc/tbox/container/hash_map.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/hash_set.h b/core/pkg/tbox.pkg/inc/tbox/container/hash_set.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/heap.h b/core/pkg/tbox.pkg/inc/tbox/container/heap.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/iterator.h b/core/pkg/tbox.pkg/inc/tbox/container/iterator.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/iterator/prefix.h b/core/pkg/tbox.pkg/inc/tbox/container/iterator/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/list.h b/core/pkg/tbox.pkg/inc/tbox/container/list.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/list_entry.h b/core/pkg/tbox.pkg/inc/tbox/container/list_entry.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/prefix.h b/core/pkg/tbox.pkg/inc/tbox/container/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/priority_queue.h b/core/pkg/tbox.pkg/inc/tbox/container/priority_queue.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/queue.h b/core/pkg/tbox.pkg/inc/tbox/container/queue.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/single_list.h b/core/pkg/tbox.pkg/inc/tbox/container/single_list.h old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/stack.h b/core/pkg/tbox.pkg/inc/tbox/container/stack.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/container/vector.h b/core/pkg/tbox.pkg/inc/tbox/container/vector.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/database/database.h b/core/pkg/tbox.pkg/inc/tbox/database/database.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/database/prefix.h b/core/pkg/tbox.pkg/inc/tbox/database/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/database/sql.h b/core/pkg/tbox.pkg/inc/tbox/database/sql.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/database/value.h b/core/pkg/tbox.pkg/inc/tbox/database/value.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/libc.h b/core/pkg/tbox.pkg/inc/tbox/libc/libc.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/ctype.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/ctype.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/limits.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/limits.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/misc.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/misc.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/prefix.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/setjmp.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/setjmp.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/signal.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/signal.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/misc/stdarg.h b/core/pkg/tbox.pkg/inc/tbox/libc/misc/stdarg.h old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/prefix.h b/core/pkg/tbox.pkg/inc/tbox/libc/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/stdio/prefix.h b/core/pkg/tbox.pkg/inc/tbox/libc/stdio/prefix.h old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/stdio/stdio.h b/core/pkg/tbox.pkg/inc/tbox/libc/stdio/stdio.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/stdlib/prefix.h b/core/pkg/tbox.pkg/inc/tbox/libc/stdlib/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/stdlib/stdlib.h b/core/pkg/tbox.pkg/inc/tbox/libc/stdlib/stdlib.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/string/prefix.h b/core/pkg/tbox.pkg/inc/tbox/libc/string/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libc/string/string.h b/core/pkg/tbox.pkg/inc/tbox/libc/string/string.h old mode 100644 new mode 100755 index eb4e4cf5b..ead619b44 --- 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/fabs.h b/core/pkg/tbox.pkg/inc/tbox/libm/fabs.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/floor.h b/core/pkg/tbox.pkg/inc/tbox/libm/floor.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/inf.h b/core/pkg/tbox.pkg/inc/tbox/libm/inf.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/libm.h b/core/pkg/tbox.pkg/inc/tbox/libm/libm.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/maf.h b/core/pkg/tbox.pkg/inc/tbox/libm/maf.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/math.h b/core/pkg/tbox.pkg/inc/tbox/libm/math.h old mode 100644 new mode 100755 index ec85c209a..5f6b91737 --- 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/nan.h b/core/pkg/tbox.pkg/inc/tbox/libm/nan.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/pi.h b/core/pkg/tbox.pkg/inc/tbox/libm/pi.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/prefix.h b/core/pkg/tbox.pkg/inc/tbox/libm/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/libm/round.h b/core/pkg/tbox.pkg/inc/tbox/libm/round.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/math/fixed.h b/core/pkg/tbox.pkg/inc/tbox/math/fixed.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/math/fixed16.h b/core/pkg/tbox.pkg/inc/tbox/math/fixed16.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/math/fixed30.h b/core/pkg/tbox.pkg/inc/tbox/math/fixed30.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/math/fixed6.h b/core/pkg/tbox.pkg/inc/tbox/math/fixed6.h old mode 100644 new mode 100755 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 http://www.gnu.org/licenses/ + * + * 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 http://www.gnu.org/licenses/ + * + * 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/math/impl/prefix.h b/core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h new file mode 100755 index 000000000..55e9f3aff --- /dev/null +++ b/core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h @@ -0,0 +1,33 @@ +/*!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 http://www.gnu.org/licenses/ + * + * Copyright (C) 2009 - 2015, ruki All rights reserved. + * + * @author ruki + * @file prefix.h + * + */ +#ifndef TB_MATH_IMPL_PREFIX_H +#define TB_MATH_IMPL_PREFIX_H + +/* ////////////////////////////////////////////////////////////////////////////////////// + * includes + */ +#include "../prefix.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 http://www.gnu.org/licenses/ + * + * 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/math/math.h b/core/pkg/tbox.pkg/inc/tbox/math/math.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/math/prefix.h b/core/pkg/tbox.pkg/inc/tbox/math/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/math/random.h b/core/pkg/tbox.pkg/inc/tbox/math/random.h old mode 100644 new mode 100755 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 http://www.gnu.org/licenses/ + * + * 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/fixed_pool.h b/core/pkg/tbox.pkg/inc/tbox/memory/fixed_pool.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/large_pool.h b/core/pkg/tbox.pkg/inc/tbox/memory/large_pool.h old mode 100644 new mode 100755 index e95137b6c..5cb79d18d --- 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 old mode 100644 new mode 100755 index 4db46adb5..9dbc7fc47 --- 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__ * *
  *
- *  ----------------      ------------------------------------------------------- 
- * | 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
old mode 100644
new mode 100755
index 2a0c6de16..e66fcd27d
--- 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
old mode 100644
new mode 100755
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/queue_buffer.h b/core/pkg/tbox.pkg/inc/tbox/memory/queue_buffer.h
old mode 100644
new mode 100755
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/small_pool.h b/core/pkg/tbox.pkg/inc/tbox/memory/small_pool.h
old mode 100644
new mode 100755
diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/static_buffer.h b/core/pkg/tbox.pkg/inc/tbox/memory/static_buffer.h
old mode 100644
new mode 100755
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  http://www.gnu.org/licenses/
+ * 
+ * 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
+ *
+ * 
+ *
+ *  -----------------------------------------------------
+ * |                         data                        |
+ *  ----------------------------------------------------- 
+ *                             |           
+ *  ----------------------------------------------------- 
+ * |                      static pool                    |
+ *  ----------------------------------------------------- 
+ *
+ *  
+ * + */ +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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/cookies.h b/core/pkg/tbox.pkg/inc/tbox/network/cookies.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/dns/cache.h b/core/pkg/tbox.pkg/inc/tbox/network/dns/cache.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/dns/dns.h b/core/pkg/tbox.pkg/inc/tbox/network/dns/dns.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/dns/looker.h b/core/pkg/tbox.pkg/inc/tbox/network/dns/looker.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/dns/prefix.h b/core/pkg/tbox.pkg/inc/tbox/network/dns/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/dns/server.h b/core/pkg/tbox.pkg/inc/tbox/network/dns/server.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/http.h b/core/pkg/tbox.pkg/inc/tbox/network/http.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/hwaddr.h b/core/pkg/tbox.pkg/inc/tbox/network/hwaddr.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/ipaddr.h b/core/pkg/tbox.pkg/inc/tbox/network/ipaddr.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/ipv4.h b/core/pkg/tbox.pkg/inc/tbox/network/ipv4.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/ipv6.h b/core/pkg/tbox.pkg/inc/tbox/network/ipv6.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/network.h b/core/pkg/tbox.pkg/inc/tbox/network/network.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/prefix.h b/core/pkg/tbox.pkg/inc/tbox/network/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/ssl.h b/core/pkg/tbox.pkg/inc/tbox/network/ssl.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/network/url.h b/core/pkg/tbox.pkg/inc/tbox/network/url.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/object/array.h b/core/pkg/tbox.pkg/inc/tbox/object/array.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/object/boolean.h b/core/pkg/tbox.pkg/inc/tbox/object/boolean.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/object/data.h b/core/pkg/tbox.pkg/inc/tbox/object/data.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/object/date.h b/core/pkg/tbox.pkg/inc/tbox/object/date.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/object/dictionary.h b/core/pkg/tbox.pkg/inc/tbox/object/dictionary.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/object/null.h b/core/pkg/tbox.pkg/inc/tbox/object/null.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/object/number.h b/core/pkg/tbox.pkg/inc/tbox/object/number.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/object/object.h b/core/pkg/tbox.pkg/inc/tbox/object/object.h old mode 100644 new mode 100755 index 59320f46a..f3853df22 --- 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 old mode 100644 new mode 100755 index 8aa6e4df0..0179b06ce --- 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/android/android.h b/core/pkg/tbox.pkg/inc/tbox/platform/android/android.h new file mode 100755 index 000000000..3868f34e5 --- /dev/null +++ b/core/pkg/tbox.pkg/inc/tbox/platform/android/android.h @@ -0,0 +1,52 @@ +/*!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 http://www.gnu.org/licenses/ + * + * Copyright (C) 2009 - 2015, ruki All rights reserved. + * + * @author ruki + * @file android.h + * @ingroup platform + */ +#ifndef TB_PLATFORM_ANDROID_H +#define TB_PLATFORM_ANDROID_H + +/* ////////////////////////////////////////////////////////////////////////////////////// + * includes + */ +#include "prefix.h" + +/* ////////////////////////////////////////////////////////////////////////////////////// + * interfaces + */ + +/*! init the android platform + * + * @param jvm the java machine pointer + * + * @return tb_true or tb_false + */ +tb_bool_t tb_android_init(JavaVM* jvm); + +/// exit the android platform +tb_void_t tb_android_exit(tb_noarg_t); + +/*! the java machine pointer + * + * @return the java machine pointer + */ +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 http://www.gnu.org/licenses/ + * + * 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 + +#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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/atomic.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/atomic.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/barrier.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/barrier.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/frame.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/frame.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/arch/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/arch/prefix.h old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/atomic.h b/core/pkg/tbox.pkg/inc/tbox/platform/atomic.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/atomic64.h b/core/pkg/tbox.pkg/inc/tbox/platform/atomic64.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/backtrace.h b/core/pkg/tbox.pkg/inc/tbox/platform/backtrace.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/barrier.h b/core/pkg/tbox.pkg/inc/tbox/platform/barrier.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/cache_time.h b/core/pkg/tbox.pkg/inc/tbox/platform/cache_time.h old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/compiler/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/compiler/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/directory.h b/core/pkg/tbox.pkg/inc/tbox/platform/directory.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/dns.h b/core/pkg/tbox.pkg/inc/tbox/platform/dns.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/dynamic.h b/core/pkg/tbox.pkg/inc/tbox/platform/dynamic.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/environment.h b/core/pkg/tbox.pkg/inc/tbox/platform/environment.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/event.h b/core/pkg/tbox.pkg/inc/tbox/platform/event.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/exception.h b/core/pkg/tbox.pkg/inc/tbox/platform/exception.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/file.h b/core/pkg/tbox.pkg/inc/tbox/platform/file.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/hostname.h b/core/pkg/tbox.pkg/inc/tbox/platform/hostname.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/ifaddrs.h b/core/pkg/tbox.pkg/inc/tbox/platform/ifaddrs.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/libc/exception.h b/core/pkg/tbox.pkg/inc/tbox/platform/libc/exception.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/libc/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/libc/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/linux/android/android.h b/core/pkg/tbox.pkg/inc/tbox/platform/linux/android/android.h deleted file mode 100644 index 1d00defb3..000000000 --- a/core/pkg/tbox.pkg/inc/tbox/platform/linux/android/android.h +++ /dev/null @@ -1,52 +0,0 @@ -/*!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 http://www.gnu.org/licenses/ - * - * Copyright (C) 2009 - 2015, ruki All rights reserved. - * - * @author ruki - * @file android.h - * @ingroup platform - */ -#ifndef TB_PLATFORM_LINUX_ANDROID_H -#define TB_PLATFORM_LINUX_ANDROID_H - -/* ////////////////////////////////////////////////////////////////////////////////////// - * includes - */ -#include "prefix.h" - -/* ////////////////////////////////////////////////////////////////////////////////////// - * interfaces - */ - -/*! init the android platform - * - * @param jenv the jni environment pointer - * - * @return tb_true or tb_false - */ -tb_bool_t tb_android_init(JNIEnv* jenv); - -/// exit the android platform -tb_void_t tb_android_exit(tb_noarg_t); - -/*! the jni environment pointer - * - * @return the environment pointer - */ -JNIEnv* tb_android_jenv(tb_noarg_t); - -#endif diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/linux/android/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/linux/android/prefix.h deleted file mode 100644 index 1208719a8..000000000 --- a/core/pkg/tbox.pkg/inc/tbox/platform/linux/android/prefix.h +++ /dev/null @@ -1,32 +0,0 @@ -/*!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 http://www.gnu.org/licenses/ - * - * Copyright (C) 2009 - 2015, ruki All rights reserved. - * - * @author ruki - * @file prefix.h - * @ingroup platform - */ -#ifndef TB_PLATFORM_LINUX_ANDROID_PREFIX_H -#define TB_PLATFORM_LINUX_ANDROID_PREFIX_H - -/* ////////////////////////////////////////////////////////////////////////////////////// - * includes - */ -#include "../prefix.h" -#include - -#endif diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/linux/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/linux/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/ltimer.h b/core/pkg/tbox.pkg/inc/tbox/platform/ltimer.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/mach/barrier.h b/core/pkg/tbox.pkg/inc/tbox/platform/mach/barrier.h old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/mach/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/mach/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/memory.h b/core/pkg/tbox.pkg/inc/tbox/platform/memory.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/mutex.h b/core/pkg/tbox.pkg/inc/tbox/platform/mutex.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/page.h b/core/pkg/tbox.pkg/inc/tbox/platform/page.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/path.h b/core/pkg/tbox.pkg/inc/tbox/platform/path.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/platform.h b/core/pkg/tbox.pkg/inc/tbox/platform/platform.h old mode 100644 new mode 100755 index 3b759e2f7..7233c2272 --- 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/posix/sockaddr.h b/core/pkg/tbox.pkg/inc/tbox/platform/posix/sockaddr.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/print.h b/core/pkg/tbox.pkg/inc/tbox/platform/print.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/process.h b/core/pkg/tbox.pkg/inc/tbox/platform/process.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/processor.h b/core/pkg/tbox.pkg/inc/tbox/platform/processor.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/sched.h b/core/pkg/tbox.pkg/inc/tbox/platform/sched.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/semaphore.h b/core/pkg/tbox.pkg/inc/tbox/platform/semaphore.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/socket.h b/core/pkg/tbox.pkg/inc/tbox/platform/socket.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/spinlock.h b/core/pkg/tbox.pkg/inc/tbox/platform/spinlock.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/systemv/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/systemv/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/thread.h b/core/pkg/tbox.pkg/inc/tbox/platform/thread.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/thread_pool.h b/core/pkg/tbox.pkg/inc/tbox/platform/thread_pool.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/thread_store.h b/core/pkg/tbox.pkg/inc/tbox/platform/thread_store.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/time.h b/core/pkg/tbox.pkg/inc/tbox/platform/time.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/timer.h b/core/pkg/tbox.pkg/inc/tbox/platform/timer.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/unix/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/unix/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/unix/syscall.h b/core/pkg/tbox.pkg/inc/tbox/platform/unix/syscall.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic64.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic64.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/barrier.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/barrier.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/exception.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/exception.h old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/ntstatus.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/ntstatus.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/windows/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/windows/prefix.h old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix.h b/core/pkg/tbox.pkg/inc/tbox/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/abort.h b/core/pkg/tbox.pkg/inc/tbox/prefix/abort.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/arch.h b/core/pkg/tbox.pkg/inc/tbox/prefix/arch.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/asm.h b/core/pkg/tbox.pkg/inc/tbox/prefix/asm.h old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/asm/asm.h b/core/pkg/tbox.pkg/inc/tbox/prefix/asm/asm.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/asm/cache.h b/core/pkg/tbox.pkg/inc/tbox/prefix/asm/cache.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/asm/prefix.h b/core/pkg/tbox.pkg/inc/tbox/prefix/asm/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/assembler.h b/core/pkg/tbox.pkg/inc/tbox/prefix/assembler.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/assert.h b/core/pkg/tbox.pkg/inc/tbox/prefix/assert.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/check.h b/core/pkg/tbox.pkg/inc/tbox/prefix/check.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/compiler.h b/core/pkg/tbox.pkg/inc/tbox/prefix/compiler.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/config.h b/core/pkg/tbox.pkg/inc/tbox/prefix/config.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/cpu.h b/core/pkg/tbox.pkg/inc/tbox/prefix/cpu.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/endian.h b/core/pkg/tbox.pkg/inc/tbox/prefix/endian.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/keyword.h b/core/pkg/tbox.pkg/inc/tbox/prefix/keyword.h old mode 100644 new mode 100755 index 683ec43ff..df3236d90 --- 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/malloc.h b/core/pkg/tbox.pkg/inc/tbox/prefix/malloc.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/packed.h b/core/pkg/tbox.pkg/inc/tbox/prefix/packed.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/prefix.h b/core/pkg/tbox.pkg/inc/tbox/prefix/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/state.h b/core/pkg/tbox.pkg/inc/tbox/prefix/state.h old mode 100644 new mode 100755 index 658f43dac..d8e5dc454 --- 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/type.h b/core/pkg/tbox.pkg/inc/tbox/prefix/type.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/utils.h b/core/pkg/tbox.pkg/inc/tbox/prefix/utils.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/prefix/version.h b/core/pkg/tbox.pkg/inc/tbox/prefix/version.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/stream/async_stream.h b/core/pkg/tbox.pkg/inc/tbox/stream/async_stream.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/stream/async_transfer.h b/core/pkg/tbox.pkg/inc/tbox/stream/async_transfer.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/stream/filter.h b/core/pkg/tbox.pkg/inc/tbox/stream/filter.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/stream/prefix.h b/core/pkg/tbox.pkg/inc/tbox/stream/prefix.h old mode 100644 new mode 100755 index c2891bcbb..f2e4b50d7 --- 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 old mode 100644 new mode 100755 index 0a4952540..3cead8dc0 --- 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/stream/transfer.h b/core/pkg/tbox.pkg/inc/tbox/stream/transfer.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/stream/transfer_pool.h b/core/pkg/tbox.pkg/inc/tbox/stream/transfer_pool.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/string/prefix.h b/core/pkg/tbox.pkg/inc/tbox/string/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/string/static_string.h b/core/pkg/tbox.pkg/inc/tbox/string/static_string.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/string/string.h b/core/pkg/tbox.pkg/inc/tbox/string/string.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/tbox.h b/core/pkg/tbox.pkg/inc/tbox/tbox.h old mode 100644 new mode 100755 index 926b584b9..e5ce2c7ab --- 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 http://www.gnu.org/licenses/ + * + * 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/base64.h b/core/pkg/tbox.pkg/inc/tbox/utils/base64.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/bits.h b/core/pkg/tbox.pkg/inc/tbox/utils/bits.h old mode 100644 new mode 100755 index 5ba791c87..cdc05ad66 --- 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 old mode 100644 new mode 100755 index 7fab11e13..047ca5142 --- 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 index de8c1615e..988e2a311 --- 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 old mode 100644 new mode 100755 index 97bd3fbe8..70df7ae14 --- 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 old mode 100644 new mode 100755 index 58c99e1e4..d73418104 --- 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 old mode 100644 new mode 100755 index 587da75ce..2eef8b0fd --- 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 old mode 100644 new mode 100755 index 9908bfb5a..e3164bd20 --- 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/lock_profiler.h b/core/pkg/tbox.pkg/inc/tbox/utils/lock_profiler.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/md5.h b/core/pkg/tbox.pkg/inc/tbox/utils/md5.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/option.h b/core/pkg/tbox.pkg/inc/tbox/utils/option.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/prefix.h b/core/pkg/tbox.pkg/inc/tbox/utils/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/sha.h b/core/pkg/tbox.pkg/inc/tbox/utils/sha.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/singleton.h b/core/pkg/tbox.pkg/inc/tbox/utils/singleton.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/trace.h b/core/pkg/tbox.pkg/inc/tbox/utils/trace.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/url.h b/core/pkg/tbox.pkg/inc/tbox/utils/url.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/used.h b/core/pkg/tbox.pkg/inc/tbox/utils/used.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/utils.h b/core/pkg/tbox.pkg/inc/tbox/utils/utils.h old mode 100644 new mode 100755 index 8cc4b6d9c..8be786da1 --- 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/xml/prefix.h b/core/pkg/tbox.pkg/inc/tbox/xml/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/xml/reader.h b/core/pkg/tbox.pkg/inc/tbox/xml/reader.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/xml/writer.h b/core/pkg/tbox.pkg/inc/tbox/xml/writer.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/xml/xml.h b/core/pkg/tbox.pkg/inc/tbox/xml/xml.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/gzip.h b/core/pkg/tbox.pkg/inc/tbox/zip/gzip.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/lzsw.h b/core/pkg/tbox.pkg/inc/tbox/zip/lzsw.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/prefix.h b/core/pkg/tbox.pkg/inc/tbox/zip/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/rlc.h b/core/pkg/tbox.pkg/inc/tbox/zip/rlc.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/vlc.h b/core/pkg/tbox.pkg/inc/tbox/zip/vlc.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/vlc/prefix.h b/core/pkg/tbox.pkg/inc/tbox/zip/vlc/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/zip.h b/core/pkg/tbox.pkg/inc/tbox/zip/zip.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/zlib.h b/core/pkg/tbox.pkg/inc/tbox/zip/zlib.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/zip/zlibraw.h b/core/pkg/tbox.pkg/inc/tbox/zip/zlibraw.h old mode 100644 new mode 100755 -- cgit v1.3.1