From 8f8f8425df4e1ce4b71099a669dd4ccc3d4a0b0f Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 21 Dec 2015 09:37:49 +0800 Subject: update tbox for linux --- core/pkg/tbox.pkg/inc/linux/x64/tbox.config.h | 3 +- core/pkg/tbox.pkg/inc/linux/x86/tbox.config.h | 3 +- core/pkg/tbox.pkg/inc/tbox/algorithm/algorithm.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/binary_find.h | 0 .../tbox.pkg/inc/tbox/algorithm/binary_find_if.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/bubble_sort.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/count.h | 0 core/pkg/tbox.pkg/inc/tbox/algorithm/count_if.h | 0 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 | 2 +- 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 | 76 +++++------ 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 | 34 ++--- 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 | 5 + core/pkg/tbox.pkg/inc/tbox/libc/string/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/libc/string/string.h | 0 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 | 0 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 | 20 +-- core/pkg/tbox.pkg/inc/tbox/math/fixed30.h | 0 core/pkg/tbox.pkg/inc/tbox/math/fixed6.h | 6 +- core/pkg/tbox.pkg/inc/tbox/math/impl/fixed16_arm.h | 0 core/pkg/tbox.pkg/inc/tbox/math/impl/fixed30_arm.h | 0 core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/math/impl/random.h | 0 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 | 0 core/pkg/tbox.pkg/inc/tbox/memory/buffer.h | 0 .../tbox.pkg/inc/tbox/memory/default_allocator.h | 0 core/pkg/tbox.pkg/inc/tbox/memory/fixed_pool.h | 0 .../pkg/tbox.pkg/inc/tbox/memory/large_allocator.h | 0 core/pkg/tbox.pkg/inc/tbox/memory/memory.h | 0 .../tbox.pkg/inc/tbox/memory/native_allocator.h | 0 core/pkg/tbox.pkg/inc/tbox/memory/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/memory/queue_buffer.h | 0 .../pkg/tbox.pkg/inc/tbox/memory/small_allocator.h | 0 .../tbox.pkg/inc/tbox/memory/static_allocator.h | 0 core/pkg/tbox.pkg/inc/tbox/memory/static_buffer.h | 0 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 | 2 +- core/pkg/tbox.pkg/inc/tbox/object/date.h | 0 core/pkg/tbox.pkg/inc/tbox/object/dictionary.h | 2 +- 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 | 0 core/pkg/tbox.pkg/inc/tbox/object/prefix.h | 0 core/pkg/tbox.pkg/inc/tbox/object/string.h | 0 .../tbox.pkg/inc/tbox/platform/android/android.h | 0 .../tbox.pkg/inc/tbox/platform/android/prefix.h | 0 .../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 | 4 +- .../tbox.pkg/inc/tbox/platform/libc/exception.h | 0 core/pkg/tbox.pkg/inc/tbox/platform/libc/prefix.h | 0 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 | 0 core/pkg/tbox.pkg/inc/tbox/platform/posix/prefix.h | 0 .../tbox.pkg/inc/tbox/platform/posix/sockaddr.h | 4 +- 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 | 14 +- .../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 | 2 - 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 | 2 +- .../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 | 0 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.S | 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 | 152 +++++---------------- 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 | 0 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 | 0 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 | 0 core/pkg/tbox.pkg/inc/tbox/stream/static_stream.h | 0 core/pkg/tbox.pkg/inc/tbox/stream/stream.h | 141 +++++++++++++++++-- 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 | 0 core/pkg/tbox.pkg/inc/tbox/utils/adler32.h | 0 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 | 0 core/pkg/tbox.pkg/inc/tbox/utils/crc.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/dump.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_arm.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_gcc.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_sh4.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/impl/bits_x86.h | 0 core/pkg/tbox.pkg/inc/tbox/utils/impl/crc_arm.h | 0 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 | 0 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 | 12 +- 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/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 core/src/xmake/os/find.c | 4 +- 303 files changed, 264 insertions(+), 224 deletions(-) mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/algorithm.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/binary_find.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/binary_find_if.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/bubble_sort.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/count.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/algorithm/count_if.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 mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/math/impl/fixed16_arm.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/math/impl/fixed30_arm.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h mode change 100644 => 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 mode change 100644 => 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/default_allocator.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_allocator.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/native_allocator.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_allocator.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/memory/static_allocator.h mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/memory/static_buffer.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 mode change 100644 => 100755 core/pkg/tbox.pkg/inc/tbox/platform/android/android.h mode change 100644 => 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 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.S 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.S 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 mode change 100644 => 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/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 diff --git a/core/pkg/tbox.pkg/inc/linux/x64/tbox.config.h b/core/pkg/tbox.pkg/inc/linux/x64/tbox.config.h index 694c78de1..4ea1cce33 100755 --- a/core/pkg/tbox.pkg/inc/linux/x64/tbox.config.h +++ b/core/pkg/tbox.pkg/inc/linux/x64/tbox.config.h @@ -6,13 +6,14 @@ #define TB_CONFIG_VERSION_MAJOR 1 #define TB_CONFIG_VERSION_MINOR 5 #define TB_CONFIG_VERSION_ALTER 1 -#define TB_CONFIG_VERSION_BUILD 201512162038 +#define TB_CONFIG_VERSION_BUILD 201512210934 // defines #define TB_CONFIG_OS_LINUX #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_THREAD diff --git a/core/pkg/tbox.pkg/inc/linux/x86/tbox.config.h b/core/pkg/tbox.pkg/inc/linux/x86/tbox.config.h index 1b29bae51..2b1007c54 100755 --- a/core/pkg/tbox.pkg/inc/linux/x86/tbox.config.h +++ b/core/pkg/tbox.pkg/inc/linux/x86/tbox.config.h @@ -6,13 +6,14 @@ #define TB_CONFIG_VERSION_MAJOR 1 #define TB_CONFIG_VERSION_MINOR 5 #define TB_CONFIG_VERSION_ALTER 1 -#define TB_CONFIG_VERSION_BUILD 201512162126 +#define TB_CONFIG_VERSION_BUILD 201512210936 // defines #define TB_CONFIG_OS_LINUX #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_THREAD diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/algorithm.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/algorithm.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/binary_find.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/binary_find.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/binary_find_if.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/binary_find_if.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/bubble_sort.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/bubble_sort.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/count.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/count.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/algorithm/count_if.h b/core/pkg/tbox.pkg/inc/tbox/algorithm/count_if.h old mode 100644 new mode 100755 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 index 976369f6f..8ac423017 --- a/core/pkg/tbox.pkg/inc/tbox/container/hash_map.h +++ b/core/pkg/tbox.pkg/inc/tbox/container/hash_map.h @@ -153,7 +153,7 @@ tb_pointer_t tb_hash_map_get(tb_hash_map_ref_t hash_map, tb_cpointer_ * { * // get data * tb_xxxx_ref_t data = (tb_xxxx_ref_t)tb_iterator_item(hash_map, itor); - * tb_assert_abort(data); + * tb_assert(data); * * // remove it * tb_iterator_remove(hash_map, itor); 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 index 810736b64..4a006a16d --- a/core/pkg/tbox.pkg/inc/tbox/container/list_entry.h +++ b/core/pkg/tbox.pkg/inc/tbox/container/list_entry.h @@ -56,7 +56,7 @@ static tb_void_t tb_xxxx_entry_copy(tb_pointer_t litem, tb_pointer_t ritem) { // check - tb_assert_return(litem && ritem); + tb_assert(litem && ritem); // copy it ((tb_xxxx_entry_t*)litem)->data = ((tb_xxxx_entry_t*)ritem)->data; @@ -155,7 +155,7 @@ tb_void_t tb_list_entry_exit(tb_list_entry_hea static __tb_inline__ tb_void_t tb_list_entry_clear(tb_list_entry_head_ref_t list) { // check - tb_assert_abort(list); + tb_assert(list); // clear it list->next = (tb_list_entry_ref_t)list; @@ -172,7 +172,7 @@ static __tb_inline__ tb_void_t tb_list_entry_clear(tb_list_entry_he static __tb_inline__ tb_size_t tb_list_entry_size(tb_list_entry_head_ref_t list) { // check - tb_assert_abort(list); + tb_assert(list); // done return list->size; @@ -188,7 +188,7 @@ static __tb_inline__ tb_size_t tb_list_entry_size(tb_list_entry_hea static __tb_inline__ tb_list_entry_ref_t tb_list_entry_next(tb_list_entry_head_ref_t list, tb_list_entry_ref_t entry) { // check - tb_assert_abort(entry); + tb_assert(entry); // done return entry->next; @@ -204,7 +204,7 @@ static __tb_inline__ tb_list_entry_ref_t tb_list_entry_next(tb_list_entry_hea static __tb_inline__ tb_list_entry_ref_t tb_list_entry_prev(tb_list_entry_head_ref_t list, tb_list_entry_ref_t entry) { // check - tb_assert_abort(entry); + tb_assert(entry); // done return entry->prev; @@ -219,7 +219,7 @@ static __tb_inline__ tb_list_entry_ref_t tb_list_entry_prev(tb_list_entry_hea static __tb_inline__ tb_list_entry_ref_t tb_list_entry_head(tb_list_entry_head_ref_t list) { // check - tb_assert_abort(list); + tb_assert(list); // done return list->next; @@ -234,7 +234,7 @@ static __tb_inline__ tb_list_entry_ref_t tb_list_entry_head(tb_list_entry_hea static __tb_inline__ tb_list_entry_ref_t tb_list_entry_last(tb_list_entry_head_ref_t list) { // check - tb_assert_abort(list); + tb_assert(list); // done return list->prev; @@ -261,7 +261,7 @@ static __tb_inline__ tb_list_entry_ref_t tb_list_entry_tail(tb_list_entry_hea static __tb_inline__ tb_bool_t tb_list_entry_is_null(tb_list_entry_head_ref_t list) { // check - tb_assert_abort(list); + tb_assert(list); // done return !list->size; @@ -277,7 +277,7 @@ static __tb_inline__ tb_bool_t tb_list_entry_is_null(tb_list_entry_ static __tb_inline__ tb_bool_t tb_list_entry_is_head(tb_list_entry_head_ref_t list, tb_list_entry_ref_t entry) { // check - tb_assert_abort(list); + tb_assert(list); // done return list->next == entry; @@ -293,7 +293,7 @@ static __tb_inline__ tb_bool_t tb_list_entry_is_head(tb_list_entry_ static __tb_inline__ tb_bool_t tb_list_entry_is_last(tb_list_entry_head_ref_t list, tb_list_entry_ref_t entry) { // check - tb_assert_abort(list); + tb_assert(list); // done return list->prev == entry; @@ -308,7 +308,7 @@ static __tb_inline__ tb_bool_t tb_list_entry_is_last(tb_list_entry_ static __tb_inline__ tb_bool_t tb_list_entry_is_valid(tb_list_entry_head_ref_t list) { // check - tb_assert_abort(list); + tb_assert(list); // done return (list->next && list->next->prev == (tb_list_entry_ref_t)list) && (list->prev && list->prev->next == (tb_list_entry_ref_t)list); @@ -324,12 +324,12 @@ static __tb_inline__ tb_bool_t tb_list_entry_is_valid(tb_list_entry static __tb_inline__ tb_void_t tb_list_entry_splice(tb_list_entry_head_ref_t list, tb_list_entry_ref_t prev, tb_list_entry_ref_t next, tb_list_entry_head_ref_t spliced_list) { // check - tb_assert_abort(list && prev && next); - tb_assert_abort(spliced_list && spliced_list->next && spliced_list->prev); + tb_assert(list && prev && next); + tb_assert(spliced_list && spliced_list->next && spliced_list->prev); // valid? - tb_assert_abort(tb_list_entry_is_valid(list)); - tb_assert_abort(tb_list_entry_is_valid(spliced_list)); + tb_assert(tb_list_entry_is_valid(list)); + tb_assert(tb_list_entry_is_valid(spliced_list)); // empty? tb_check_return(!tb_list_entry_is_null(spliced_list)); @@ -355,7 +355,7 @@ static __tb_inline__ tb_void_t tb_list_entry_splice(tb_list_entry_h static __tb_inline__ tb_void_t tb_list_entry_splice_head(tb_list_entry_head_ref_t list, tb_list_entry_head_ref_t spliced_list) { // check - tb_assert_abort(list); + tb_assert(list); // done tb_list_entry_splice(list, (tb_list_entry_ref_t)list, list->next, spliced_list); @@ -369,7 +369,7 @@ static __tb_inline__ tb_void_t tb_list_entry_splice_head(tb_list_en static __tb_inline__ tb_void_t tb_list_entry_splice_tail(tb_list_entry_head_ref_t list, tb_list_entry_head_ref_t spliced_list) { // check - tb_assert_abort(list); + tb_assert(list); // done tb_list_entry_splice(list, list->prev, (tb_list_entry_ref_t)list, spliced_list); @@ -384,11 +384,11 @@ static __tb_inline__ tb_void_t tb_list_entry_splice_tail(tb_list_en static __tb_inline__ tb_void_t tb_list_entry_insert_next(tb_list_entry_head_ref_t list, tb_list_entry_ref_t node, tb_list_entry_ref_t entry) { // check - tb_assert_abort(list && node && node->next && entry); - tb_assert_abort(node != entry); + tb_assert(list && node && node->next && entry); + tb_assert(node != entry); // valid? - tb_assert_abort(tb_list_entry_is_valid(list)); + tb_assert(tb_list_entry_is_valid(list)); // insert entry node->next->prev = entry; @@ -409,7 +409,7 @@ static __tb_inline__ tb_void_t tb_list_entry_insert_next(tb_list_en static __tb_inline__ tb_void_t tb_list_entry_insert_prev(tb_list_entry_head_ref_t list, tb_list_entry_ref_t node, tb_list_entry_ref_t entry) { // check - tb_assert_abort(list && node); + tb_assert(list && node); // insert it tb_list_entry_insert_next(list, node->prev, entry); @@ -433,7 +433,7 @@ static __tb_inline__ tb_void_t tb_list_entry_insert_head(tb_list_en static __tb_inline__ tb_void_t tb_list_entry_insert_tail(tb_list_entry_head_ref_t list, tb_list_entry_ref_t entry) { // check - tb_assert_abort(list && entry); + tb_assert(list && entry); // insert it tb_list_entry_insert_next(list, list->prev, entry); @@ -448,11 +448,11 @@ static __tb_inline__ tb_void_t tb_list_entry_insert_tail(tb_list_en static __tb_inline__ tb_void_t tb_list_entry_replace(tb_list_entry_head_ref_t list, tb_list_entry_ref_t node, tb_list_entry_ref_t entry) { // check - tb_assert_abort(node && node->next && node->prev && entry); - tb_assert_abort(node != entry); + tb_assert(node && node->next && node->prev && entry); + tb_assert(node != entry); // valid? - tb_assert_abort(tb_list_entry_is_valid(list)); + tb_assert(tb_list_entry_is_valid(list)); // replace it entry->next = node->next; @@ -470,7 +470,7 @@ static __tb_inline__ tb_void_t tb_list_entry_replace(tb_list_entry_ static __tb_inline__ tb_void_t tb_list_entry_replace_next(tb_list_entry_head_ref_t list, tb_list_entry_ref_t node, tb_list_entry_ref_t entry) { // check - tb_assert_abort(node); + tb_assert(node); // replace it tb_list_entry_replace(list, node->next, entry); @@ -485,7 +485,7 @@ static __tb_inline__ tb_void_t tb_list_entry_replace_next(tb_list_e static __tb_inline__ tb_void_t tb_list_entry_replace_prev(tb_list_entry_head_ref_t list, tb_list_entry_ref_t node, tb_list_entry_ref_t entry) { // check - tb_assert_abort(node); + tb_assert(node); // replace it tb_list_entry_replace(list, node->prev, entry); @@ -499,7 +499,7 @@ static __tb_inline__ tb_void_t tb_list_entry_replace_prev(tb_list_e static __tb_inline__ tb_void_t tb_list_entry_replace_head(tb_list_entry_head_ref_t list, tb_list_entry_ref_t entry) { // check - tb_assert_abort(list); + tb_assert(list); // replace it tb_list_entry_replace(list, list->next, entry); @@ -513,7 +513,7 @@ static __tb_inline__ tb_void_t tb_list_entry_replace_head(tb_list_e static __tb_inline__ tb_void_t tb_list_entry_replace_last(tb_list_entry_head_ref_t list, tb_list_entry_ref_t entry) { // check - tb_assert_abort(list); + tb_assert(list); // replace it tb_list_entry_replace(list, list->prev, entry); @@ -528,10 +528,10 @@ static __tb_inline__ tb_void_t tb_list_entry_replace_last(tb_list_e static __tb_inline__ tb_void_t tb_list_entry_remove_safe(tb_list_entry_head_ref_t list, tb_list_entry_ref_t prev, tb_list_entry_ref_t next) { // check - tb_assert_abort(list && list->size && prev && next); + tb_assert(list && list->size && prev && next); // valid? - tb_assert_abort(tb_list_entry_is_valid(list)); + tb_assert(tb_list_entry_is_valid(list)); // remove entries prev->next = next; @@ -549,7 +549,7 @@ static __tb_inline__ tb_void_t tb_list_entry_remove_safe(tb_list_en static __tb_inline__ tb_void_t tb_list_entry_remove(tb_list_entry_head_ref_t list, tb_list_entry_ref_t entry) { // check - tb_assert_abort(entry); + tb_assert(entry); // remove it tb_list_entry_remove_safe(list, entry->prev, entry->next); @@ -563,7 +563,7 @@ static __tb_inline__ tb_void_t tb_list_entry_remove(tb_list_entry_h static __tb_inline__ tb_void_t tb_list_entry_remove_next(tb_list_entry_head_ref_t list, tb_list_entry_ref_t prev) { // check - tb_assert_abort(prev && prev->next); + tb_assert(prev && prev->next); // remove it tb_list_entry_remove_safe(list, prev, prev->next->next); @@ -577,7 +577,7 @@ static __tb_inline__ tb_void_t tb_list_entry_remove_next(tb_list_en static __tb_inline__ tb_void_t tb_list_entry_remove_prev(tb_list_entry_head_ref_t list, tb_list_entry_ref_t next) { // check - tb_assert_abort(next && next->prev); + tb_assert(next && next->prev); // remove it tb_list_entry_remove_safe(list, next->prev->prev, next); @@ -590,7 +590,7 @@ static __tb_inline__ tb_void_t tb_list_entry_remove_prev(tb_list_en static __tb_inline__ tb_void_t tb_list_entry_remove_head(tb_list_entry_head_ref_t list) { // check - tb_assert_abort(list && list->next); + tb_assert(list && list->next); // remove it tb_list_entry_remove_safe(list, (tb_list_entry_ref_t)list, list->next->next); @@ -603,7 +603,7 @@ static __tb_inline__ tb_void_t tb_list_entry_remove_head(tb_list_en static __tb_inline__ tb_void_t tb_list_entry_remove_last(tb_list_entry_head_ref_t list) { // check - tb_assert_abort(list && list->prev); + tb_assert(list && list->prev); // remove it tb_list_entry_remove_safe(list, list->prev->prev, (tb_list_entry_ref_t)list); @@ -634,7 +634,7 @@ static __tb_inline__ tb_void_t tb_list_entry_moveto_next(tb_list_en static __tb_inline__ tb_void_t tb_list_entry_moveto_prev(tb_list_entry_head_ref_t list, tb_list_entry_ref_t node, tb_list_entry_ref_t entry) { // check - tb_assert_abort(node); + tb_assert(node); // move it tb_list_entry_moveto_next(list, node->prev, entry); @@ -659,7 +659,7 @@ static __tb_inline__ tb_void_t tb_list_entry_moveto_head(tb_list_en static __tb_inline__ tb_void_t tb_list_entry_moveto_tail(tb_list_entry_head_ref_t list, tb_list_entry_ref_t entry) { // check - tb_assert_abort(list); + tb_assert(list); // move it tb_list_entry_moveto_next(list, list->prev, entry); 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 index a5e0923a3..c45be57b1 --- a/core/pkg/tbox.pkg/inc/tbox/container/single_list_entry.h +++ b/core/pkg/tbox.pkg/inc/tbox/container/single_list_entry.h @@ -56,7 +56,7 @@ static tb_void_t tb_xxxx_entry_copy(tb_pointer_t litem, tb_pointer_t ritem) { // check - tb_assert_return(litem && ritem); + tb_assert(litem && ritem); // copy it ((tb_xxxx_entry_t*)litem)->data = ((tb_xxxx_entry_t*)ritem)->data; @@ -150,7 +150,7 @@ tb_void_t tb_single_list_entry_exit(tb_sin static __tb_inline__ tb_void_t tb_single_list_entry_clear(tb_single_list_entry_head_ref_t list) { // check - tb_assert_abort(list); + tb_assert(list); // clear it list->next = tb_null; @@ -167,7 +167,7 @@ static __tb_inline__ tb_void_t tb_single_list_entry_clear(tb_si static __tb_inline__ tb_size_t tb_single_list_entry_size(tb_single_list_entry_head_ref_t list) { // check - tb_assert_abort(list); + tb_assert(list); // done return list->size; @@ -183,7 +183,7 @@ static __tb_inline__ tb_size_t tb_single_list_entry_size(tb_sin static __tb_inline__ tb_single_list_entry_ref_t tb_single_list_entry_next(tb_single_list_entry_head_ref_t list, tb_single_list_entry_ref_t entry) { // check - tb_assert_abort(entry); + tb_assert(entry); // done return entry->next; @@ -198,7 +198,7 @@ static __tb_inline__ tb_single_list_entry_ref_t tb_single_list_entry_next(tb_sin static __tb_inline__ tb_single_list_entry_ref_t tb_single_list_entry_head(tb_single_list_entry_head_ref_t list) { // check - tb_assert_abort(list); + tb_assert(list); // done return list->next; @@ -213,7 +213,7 @@ static __tb_inline__ tb_single_list_entry_ref_t tb_single_list_entry_head(tb_sin static __tb_inline__ tb_single_list_entry_ref_t tb_single_list_entry_last(tb_single_list_entry_head_ref_t list) { // check - tb_assert_abort(list); + tb_assert(list); // done return list->last; @@ -239,7 +239,7 @@ static __tb_inline__ tb_single_list_entry_ref_t tb_single_list_entry_tail(tb_sin static __tb_inline__ tb_bool_t tb_single_list_entry_is_null(tb_single_list_entry_head_ref_t list) { // check - tb_assert_abort(list); + tb_assert(list); // done return !list->size; @@ -254,7 +254,7 @@ static __tb_inline__ tb_bool_t tb_single_list_entry_is_null(tb_ static __tb_inline__ tb_bool_t tb_single_list_entry_is_head(tb_single_list_entry_head_ref_t list, tb_single_list_entry_ref_t entry) { // check - tb_assert_abort(list); + tb_assert(list); // done return list->next == entry; @@ -270,7 +270,7 @@ static __tb_inline__ tb_bool_t tb_single_list_entry_is_head(tb_ static __tb_inline__ tb_bool_t tb_single_list_entry_is_last(tb_single_list_entry_head_ref_t list, tb_single_list_entry_ref_t entry) { // check - tb_assert_abort(list); + tb_assert(list); // done return list->last == entry; @@ -285,8 +285,8 @@ static __tb_inline__ tb_bool_t tb_single_list_entry_is_last(tb_ static __tb_inline__ tb_void_t tb_single_list_entry_insert_next(tb_single_list_entry_head_ref_t list, tb_single_list_entry_ref_t node, tb_single_list_entry_ref_t entry) { // check - tb_assert_abort(list && node && entry); - tb_assert_abort(node != entry); + tb_assert(list && node && entry); + tb_assert(node != entry); // update last if (node == list->last || !list->next) list->last = entry; @@ -318,7 +318,7 @@ static __tb_inline__ tb_void_t tb_single_list_entry_insert_head static __tb_inline__ tb_void_t tb_single_list_entry_insert_tail(tb_single_list_entry_head_ref_t list, tb_single_list_entry_ref_t entry) { // check - tb_assert_abort(list && entry); + tb_assert(list && entry); // insert it if (list->last) tb_single_list_entry_insert_next(list, list->last, entry); @@ -334,8 +334,8 @@ static __tb_inline__ tb_void_t tb_single_list_entry_insert_tail static __tb_inline__ tb_void_t tb_single_list_entry_replace_next(tb_single_list_entry_head_ref_t list, tb_single_list_entry_ref_t node, tb_single_list_entry_ref_t entry) { // check - tb_assert_abort(node && node->next); - tb_assert_abort(node != entry); + tb_assert(node && node->next); + tb_assert(node != entry); // update last if (node->next == list->last) list->last = entry; @@ -365,7 +365,7 @@ static __tb_inline__ tb_void_t tb_single_list_entry_replace_hea static __tb_inline__ tb_void_t tb_single_list_entry_remove_safe(tb_single_list_entry_head_ref_t list, tb_single_list_entry_ref_t prev, tb_single_list_entry_ref_t next) { // check - tb_assert_abort(list && list->size && prev); + tb_assert(list && list->size && prev); // update last if (prev->next == list->last) list->last = next; @@ -385,7 +385,7 @@ static __tb_inline__ tb_void_t tb_single_list_entry_remove_safe static __tb_inline__ tb_void_t tb_single_list_entry_remove_next(tb_single_list_entry_head_ref_t list, tb_single_list_entry_ref_t prev) { // check - tb_assert_abort(prev && prev->next); + tb_assert(prev && prev->next); // remove it tb_single_list_entry_remove_safe(list, prev, prev->next->next); @@ -398,7 +398,7 @@ static __tb_inline__ tb_void_t tb_single_list_entry_remove_next static __tb_inline__ tb_void_t tb_single_list_entry_remove_head(tb_single_list_entry_head_ref_t list) { // check - tb_assert_abort(list->next); + tb_assert(list->next); // remove it tb_single_list_entry_remove_safe(list, (tb_single_list_entry_ref_t)list, list->next->next); 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 index e22467e29..bef6c0651 --- a/core/pkg/tbox.pkg/inc/tbox/libc/stdlib/stdlib.h +++ b/core/pkg/tbox.pkg/inc/tbox/libc/stdlib/stdlib.h @@ -82,6 +82,11 @@ __tb_extern_c_enter__ # define tb_strtof(s, e) tb_s10tof(s) # define tb_strtod(s, e) tb_s10tod(s) #endif +#if TB_CPU_BIT64 +# define tb_atol(s) (tb_long_t)tb_s10toi64(s) +#else +# define tb_atol(s) (tb_long_t)tb_s10toi32(s) +#endif // atow #define tb_atow(s1, s2, n) tb_mbstowcs(s1, s2, n) 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 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 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 index abe99aadc..7894a26b9 --- a/core/pkg/tbox.pkg/inc/tbox/math/fixed16.h +++ b/core/pkg/tbox.pkg/inc/tbox/math/fixed16.h @@ -334,7 +334,7 @@ tb_fixed16_t tb_fixed16_exp_int32(tb_fixed16_t x); static __tb_inline__ tb_fixed16_t tb_long_to_fixed16_check(tb_long_t x) { // check overflow - tb_assert_abort(x == (tb_int16_t)x); + tb_assert(x == (tb_int16_t)x); // ok return (x << 16); @@ -342,7 +342,7 @@ static __tb_inline__ tb_fixed16_t tb_long_to_fixed16_check(tb_long_t x) static __tb_inline__ tb_long_t tb_fixed16_to_long_check(tb_fixed16_t x) { // check overflow - tb_assert_abort(x >= TB_FIXED16_MIN && x <= TB_FIXED16_MAX); + tb_assert(x >= TB_FIXED16_MIN && x <= TB_FIXED16_MAX); // ok return (x >> 16); @@ -353,7 +353,7 @@ static __tb_inline__ tb_fixed16_t tb_fixed16_mul_check(tb_fixed16_t x, tb_fixed1 tb_hong_t v = (((tb_hong_t)x * y) >> 16); // check overflow - tb_assert_abort(v == (tb_int32_t)v); + tb_assert(v == (tb_int32_t)v); // ok return (tb_fixed16_t)v; @@ -361,13 +361,13 @@ static __tb_inline__ tb_fixed16_t tb_fixed16_mul_check(tb_fixed16_t x, tb_fixed1 static __tb_inline__ tb_fixed16_t tb_fixed16_div_check(tb_fixed16_t x, tb_fixed16_t y) { // check - tb_assert_abort(y); + tb_assert(y); // done tb_hong_t v = ((((tb_hong_t)x) << 16) / y); // check overflow - tb_assert_abort(v == (tb_int32_t)v); + tb_assert(v == (tb_int32_t)v); // ok return (tb_fixed16_t)v; @@ -378,7 +378,7 @@ static __tb_inline__ tb_fixed16_t tb_fixed16_sqre_check(tb_fixed16_t x) tb_hong_t v = (((tb_hong_t)x * x) >> 16); // check overflow - tb_assert_abort(v == (tb_int32_t)v); + tb_assert(v == (tb_int32_t)v); // ok return (tb_fixed16_t)v; @@ -389,7 +389,7 @@ static __tb_inline__ tb_fixed16_t tb_fixed16_imul_check(tb_fixed16_t x, tb_long_ tb_hong_t v = ((tb_hong_t)x * y); // check overflow - tb_assert_abort(v == (tb_int32_t)v); + tb_assert(v == (tb_int32_t)v); // ok return (tb_fixed16_t)v; @@ -397,7 +397,7 @@ static __tb_inline__ tb_fixed16_t tb_fixed16_imul_check(tb_fixed16_t x, tb_long_ static __tb_inline__ tb_fixed16_t tb_fixed16_idiv_check(tb_fixed16_t x, tb_long_t y) { // check - tb_assert_abort(y); + tb_assert(y); // ok return x / y; @@ -408,7 +408,7 @@ static __tb_inline__ tb_fixed16_t tb_fixed16_imuldiv_check(tb_fixed16_t x, tb_lo tb_hong_t v = ((tb_hong_t)x * y) / z; // check overflow - tb_assert_abort(v == (tb_int32_t)v); + tb_assert(v == (tb_int32_t)v); // ok return (tb_fixed16_t)v; @@ -419,7 +419,7 @@ static __tb_inline__ tb_fixed16_t tb_fixed16_imulsub_check(tb_fixed16_t x, tb_lo tb_hong_t v = ((tb_hong_t)x * y) - z; // check overflow - tb_assert_abort(v == (tb_int32_t)v); + tb_assert(v == (tb_int32_t)v); // ok return (tb_fixed16_t)v; 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 index 0703e2b0d..453e4b6d0 --- a/core/pkg/tbox.pkg/inc/tbox/math/fixed6.h +++ b/core/pkg/tbox.pkg/inc/tbox/math/fixed6.h @@ -151,7 +151,7 @@ static __tb_inline__ tb_fixed6_t tb_long_to_fixed6_check(tb_long_t x) static __tb_inline__ tb_long_t tb_fixed6_to_int_check(tb_fixed6_t x) { // check overflow - tb_assert_abort(x >= TB_FIXED6_MIN && x <= TB_FIXED6_MAX); + tb_assert(x >= TB_FIXED6_MIN && x <= TB_FIXED6_MAX); // ok return (x >> 6); @@ -163,7 +163,7 @@ static __tb_inline__ tb_fixed6_t tb_fixed6_mul_inline(tb_fixed6_t x, tb_fixed6_t tb_hong_t v = (((tb_hong_t)x * y) >> 6); // check overflow - tb_assert_abort(v == (tb_int32_t)v); + tb_assert(v == (tb_int32_t)v); // ok return (tb_fixed16_t)v; @@ -171,7 +171,7 @@ static __tb_inline__ tb_fixed6_t tb_fixed6_mul_inline(tb_fixed6_t x, tb_fixed6_t static __tb_inline__ tb_fixed16_t tb_fixed6_div_inline(tb_fixed6_t x, tb_fixed6_t y) { // check - tb_assert_abort(y); + tb_assert(y); // no overflow? compute it fastly if (x == (tb_int16_t)x) return (x << 16) / y; 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 old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h b/core/pkg/tbox.pkg/inc/tbox/math/impl/prefix.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/math/impl/random.h b/core/pkg/tbox.pkg/inc/tbox/math/impl/random.h old mode 100644 new mode 100755 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 old mode 100644 new mode 100755 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/default_allocator.h b/core/pkg/tbox.pkg/inc/tbox/memory/default_allocator.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_allocator.h b/core/pkg/tbox.pkg/inc/tbox/memory/large_allocator.h old mode 100644 new mode 100755 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 diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/native_allocator.h b/core/pkg/tbox.pkg/inc/tbox/memory/native_allocator.h old mode 100644 new mode 100755 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_allocator.h b/core/pkg/tbox.pkg/inc/tbox/memory/small_allocator.h old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/memory/static_allocator.h b/core/pkg/tbox.pkg/inc/tbox/memory/static_allocator.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/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 index 893f1568b..6449e8307 --- a/core/pkg/tbox.pkg/inc/tbox/object/data.h +++ b/core/pkg/tbox.pkg/inc/tbox/object/data.h @@ -96,7 +96,7 @@ tb_size_t tb_object_data_size(tb_object_ref_t data); * * @return the data buffer */ -tb_buffer_ref_t tb_object_data_buffer(tb_object_ref_t data); +tb_buffer_ref_t tb_object_data_buffer(tb_object_ref_t data); /*! writ data to url * 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 index fac229aa9..46d5a0d0e --- a/core/pkg/tbox.pkg/inc/tbox/object/dictionary.h +++ b/core/pkg/tbox.pkg/inc/tbox/object/dictionary.h @@ -96,7 +96,7 @@ tb_void_t tb_object_dictionary_incr(tb_object_ref_t dictionary, tb * if (item) * { * tb_char_t const* key = item->key; - * tb_object_ref_t val = item->val; + * tb_object_ref_t val = item->val; * * // ... * } 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 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 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 old mode 100644 new mode 100755 diff --git a/core/pkg/tbox.pkg/inc/tbox/platform/android/prefix.h b/core/pkg/tbox.pkg/inc/tbox/platform/android/prefix.h old mode 100644 new mode 100755 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 index b24acf3b8..ceb76ee61 --- a/core/pkg/tbox.pkg/inc/tbox/platform/ifaddrs.h +++ b/core/pkg/tbox.pkg/inc/tbox/platform/ifaddrs.h @@ -127,7 +127,7 @@ tb_ifaddrs_interface_ref_t tb_ifaddrs_interface(tb_ifaddrs_ref_t ifaddrs, tb_ch /*! the hardware address from the given interface name * * @param ifaddrs the ifaddrs - * @param name the interface name, get the first ether address if ne null + * @param name the interface name, get the first ether address if be null * @param reload force to reload the ifaddrs list, will cache list if be false * @param hwaddr the hardware address * @@ -138,7 +138,7 @@ tb_bool_t tb_ifaddrs_hwaddr(tb_ifaddrs_ref_t ifaddrs, tb_char_ /*! the hardware address from the given interface name * * @param ifaddrs the ifaddrs - * @param name the interface name, get the first ether address if ne null + * @param name the interface name, get the first ether address if be null * @param reload force to reload the ifaddrs list, will cache list if be false * @param family the address family * @param ipaddr the ip address 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/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 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 index 1b18bfaf8..3d3529c01 --- a/core/pkg/tbox.pkg/inc/tbox/platform/posix/sockaddr.h +++ b/core/pkg/tbox.pkg/inc/tbox/platform/posix/sockaddr.h @@ -114,7 +114,7 @@ static __tb_inline__ tb_size_t tb_sockaddr_save(tb_ipaddr_ref_t ipaddr, struct } break; default: - tb_assert_abort(0); + tb_assert(0); break; } @@ -187,7 +187,7 @@ static __tb_inline__ tb_size_t tb_sockaddr_load(struct sockaddr_storage* saddr, } break; default: - tb_assert_abort(0); + tb_assert(0); break; } 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 index 583943c26..cd4f91376 --- a/core/pkg/tbox.pkg/inc/tbox/platform/spinlock.h +++ b/core/pkg/tbox.pkg/inc/tbox/platform/spinlock.h @@ -52,7 +52,7 @@ static __tb_inline_force__ tb_bool_t tb_spinlock_init(tb_spinlock_ref_t lock) { // check - tb_assert_return_val(lock, tb_false); + tb_assert(lock); // init *lock = 0; @@ -68,7 +68,7 @@ static __tb_inline_force__ tb_bool_t tb_spinlock_init(tb_spinlock_ref_t lock) static __tb_inline_force__ tb_void_t tb_spinlock_exit(tb_spinlock_ref_t lock) { // check - tb_assert_return(lock); + tb_assert(lock); // exit *lock = 0; @@ -81,7 +81,7 @@ static __tb_inline_force__ tb_void_t tb_spinlock_exit(tb_spinlock_ref_t lock) static __tb_inline_force__ tb_void_t tb_spinlock_enter(tb_spinlock_ref_t lock) { // check - tb_assert_return(lock); + tb_assert(lock); // init tryn tb_size_t tryn = 5; @@ -129,7 +129,7 @@ static __tb_inline_force__ tb_void_t tb_spinlock_enter(tb_spinlock_ref_t lock) static __tb_inline_force__ tb_void_t tb_spinlock_enter_without_profiler(tb_spinlock_ref_t lock) { // check - tb_assert_return(lock); + tb_assert(lock); // init tryn tb_size_t tryn = 5; @@ -159,7 +159,7 @@ static __tb_inline_force__ tb_void_t tb_spinlock_enter_without_profiler(tb_spinl static __tb_inline_force__ tb_bool_t tb_spinlock_enter_try(tb_spinlock_ref_t lock) { // check - tb_assert_return_val(lock, tb_false); + tb_assert(lock); #ifndef TB_LOCK_PROFILER_ENABLE // try locking it @@ -185,7 +185,7 @@ static __tb_inline_force__ tb_bool_t tb_spinlock_enter_try(tb_spinlock_ref_t loc static __tb_inline_force__ tb_bool_t tb_spinlock_enter_try_without_profiler(tb_spinlock_ref_t lock) { // check - tb_assert_return_val(lock, tb_false); + tb_assert(lock); // try locking it return !tb_atomic_fetch_and_pset((tb_atomic_t*)lock, 0, 1); @@ -198,7 +198,7 @@ static __tb_inline_force__ tb_bool_t tb_spinlock_enter_try_without_profiler(tb_s static __tb_inline_force__ tb_void_t tb_spinlock_leave(tb_spinlock_ref_t lock) { // check - tb_assert_return(lock); + tb_assert(lock); // leave *((tb_atomic_t*)lock) = 0; 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 index 9e18ecd57..5ed487e1f --- a/core/pkg/tbox.pkg/inc/tbox/platform/timer.h +++ b/core/pkg/tbox.pkg/inc/tbox/platform/timer.h @@ -57,8 +57,6 @@ typedef struct{}* tb_timer_task_ref_t; /*! init timer * - * lower tick and limit range, but faster - * * @param maxn the timer maxn * @param ctime using ctime? * 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 index 6d11e832a..87f4f161c --- a/core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic.h +++ b/core/pkg/tbox.pkg/inc/tbox/platform/windows/atomic.h @@ -61,7 +61,7 @@ static __tb_inline__ tb_long_t tb_atomic_fetch_and_pset_windows(tb_atomic_t* a, { // check tb_assert_static(sizeof(tb_atomic_t) == sizeof(LONGLONG)); - tb_assert_abort(tb_kernel32()->InterlockedCompareExchange64); + tb_assert(tb_kernel32()->InterlockedCompareExchange64); // done return (tb_long_t)tb_kernel32()->InterlockedCompareExchange64((LONGLONG __tb_volatile__*)a, v, p); 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 old mode 100644 new mode 100755 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.S b/core/pkg/tbox.pkg/inc/tbox/prefix/asm/prefix.S 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 index cf42f6770..15bfeccda --- a/core/pkg/tbox.pkg/inc/tbox/prefix/assert.h +++ b/core/pkg/tbox.pkg/inc/tbox/prefix/assert.h @@ -53,41 +53,23 @@ __tb_extern_c_enter__ // assert #ifdef __tb_debug__ # if defined(TB_COMPILER_IS_GCC) -# define tb_assertf(x, fmt, arg...) do { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, ##arg); tb_assert_backtrace_dump(); } } while(0) -# define tb_assertf_abort(x, fmt, arg...) do { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, ##arg); tb_assert_backtrace_dump(); tb_abort(); } } while(0) -# define tb_assertf_return(x, fmt, arg...) do { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, ##arg); tb_assert_backtrace_dump(); return ; } } while(0) -# define tb_assertf_return_val(x, v, fmt, arg...) do { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, ##arg); tb_assert_backtrace_dump(); return (v); } } while(0) -# define tb_assertf_goto(x, b, fmt, arg...) do { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, ##arg); tb_assert_backtrace_dump(); goto b; } } while(0) -# define tb_assertf_break(x, fmt, arg...) { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, ##arg); tb_assert_backtrace_dump(); break ; } } -# define tb_assertf_continue(x, fmt, arg...) { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, ##arg); tb_assert_backtrace_dump(); continue ; } } -# define tb_assertf_and_check_abort(x, fmt, arg...) tb_assertf_abort(x, fmt, ##arg) -# define tb_assertf_and_check_return(x, fmt, arg...) tb_assertf_return(x, fmt, ##arg) -# define tb_assertf_and_check_return_val(x, v, fmt, arg...) tb_assertf_return_val(x, v, fmt, ##arg) -# define tb_assertf_and_check_goto(x, b, fmt, arg...) tb_assertf_goto(x, b, fmt, ##arg) -# define tb_assertf_and_check_break(x, fmt, arg...) tb_assertf_break(x, fmt, ##arg) -# define tb_assertf_and_check_continue(x, fmt, arg...) tb_assertf_continue(x, fmt, ##arg) +# define tb_assertf(x, fmt, arg...) do { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, ##arg); tb_assert_backtrace_dump(); tb_abort(); } } while(0) +# define tb_assertf_and_check_abort(x, fmt, arg...) tb_assertf(x, fmt, ##arg) +# define tb_assertf_and_check_return(x, fmt, arg...) tb_assertf(x, fmt, ##arg) +# define tb_assertf_and_check_return_val(x, v, fmt, arg...) tb_assertf(x, fmt, ##arg) +# define tb_assertf_and_check_goto(x, b, fmt, arg...) tb_assertf(x, fmt, ##arg) +# define tb_assertf_and_check_break(x, fmt, arg...) tb_assertf(x, fmt, ##arg) +# define tb_assertf_and_check_continue(x, fmt, arg...) tb_assertf(x, fmt, ##arg) # elif defined(TB_COMPILER_IS_MSVC) && TB_COMPILER_VERSION_BE(13, 0) -# define tb_assertf(x, fmt, ...) do { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, __VA_ARGS__); tb_assert_backtrace_dump(); } } while(0) -# define tb_assertf_abort(x, fmt, ...) do { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, __VA_ARGS__); tb_assert_backtrace_dump(); tb_abort(); } } while(0) -# define tb_assertf_return(x, fmt, ...) do { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, __VA_ARGS__); tb_assert_backtrace_dump(); return ; } } while(0) -# define tb_assertf_return_val(x, v, fmt, ...) do { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, __VA_ARGS__); tb_assert_backtrace_dump(); return (v); } } while(0) -# define tb_assertf_goto(x, b, fmt, ...) do { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, __VA_ARGS__); tb_assert_backtrace_dump(); goto b; } } while(0) -# define tb_assertf_break(x, fmt, ...) { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, __VA_ARGS__); tb_assert_backtrace_dump(); break ; } } -# define tb_assertf_continue(x, fmt, ...) { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, __VA_ARGS__); tb_assert_backtrace_dump(); continue ; } } -# define tb_assertf_and_check_abort(x, fmt, ...) tb_assertf_abort(x, fmt, __VA_ARGS__) -# define tb_assertf_and_check_return(x, fmt, ...) tb_assertf_return(x, fmt, __VA_ARGS__) -# define tb_assertf_and_check_return_val(x, v, fmt, ...) tb_assertf_return_val(x, v, fmt, __VA_ARGS__) -# define tb_assertf_and_check_goto(x, b, fmt, ...) tb_assertf_goto(x, b, fmt, __VA_ARGS__) -# define tb_assertf_and_check_break(x, fmt, ...) tb_assertf_break(x, fmt, __VA_ARGS__) -# define tb_assertf_and_check_continue(x, fmt, ...) tb_assertf_continue(x, fmt, __VA_ARGS__) +# define tb_assertf(x, fmt, ...) do { if (!(x)) {tb_trace_a("expr[%s]: " fmt, #x, __VA_ARGS__); tb_assert_backtrace_dump(); tb_abort(); } } while(0) +# define tb_assertf_and_check_abort(x, fmt, ...) tb_assertf(x, fmt, __VA_ARGS__) +# define tb_assertf_and_check_return(x, fmt, ...) tb_assertf(x, fmt, __VA_ARGS__) +# define tb_assertf_and_check_return_val(x, v, fmt, ...) tb_assertf(x, fmt, __VA_ARGS__) +# define tb_assertf_and_check_goto(x, b, fmt, ...) tb_assertf(x, fmt, __VA_ARGS__) +# define tb_assertf_and_check_break(x, fmt, ...) tb_assertf(x, fmt, __VA_ARGS__) +# define tb_assertf_and_check_continue(x, fmt, ...) tb_assertf(x, fmt, __VA_ARGS__) # else # define tb_assertf -# define tb_assertf_abort -# define tb_assertf_return -# define tb_assertf_return_val -# define tb_assertf_goto -# define tb_assertf_break -# define tb_assertf_continue # define tb_assertf_and_check_abort tb_abort(); # define tb_assertf_and_check_return tb_abort(); # define tb_assertf_and_check_return_val tb_abort(); @@ -97,13 +79,7 @@ __tb_extern_c_enter__ # endif #else # if defined(TB_COMPILER_IS_GCC) -# define tb_assertf(x, fmt, arg...) -# define tb_assertf_abort(x, fmt, arg...) -# define tb_assertf_return(x, fmt, arg...) -# define tb_assertf_return_val(x, v, fmt, arg...) -# define tb_assertf_goto(x, b, fmt, arg...) -# define tb_assertf_break(x, fmt, arg...) -# define tb_assertf_continue(x, fmt, arg...) +# define tb_assertf(x, fmt, arg...) # define tb_assertf_and_check_abort(x, fmt, arg...) tb_check_abort(x) # define tb_assertf_and_check_return(x, fmt, arg...) tb_check_return(x) # define tb_assertf_and_check_return_val(x, v, fmt, arg...) tb_check_return_val(x, v) @@ -111,13 +87,7 @@ __tb_extern_c_enter__ # define tb_assertf_and_check_break(x, fmt, arg...) tb_check_break(x) # define tb_assertf_and_check_continue(x, fmt, arg...) tb_check_continue(x) # elif defined(TB_COMPILER_IS_MSVC) && TB_COMPILER_VERSION_BE(13, 0) -# define tb_assertf(x, fmt, ...) -# define tb_assertf_abort(x, fmt, ...) -# define tb_assertf_return(x, fmt, ...) -# define tb_assertf_return_val(x, v, fmt, ...) -# define tb_assertf_goto(x, b, fmt, ...) -# define tb_assertf_break(x, fmt, ...) -# define tb_assertf_continue(x, fmt, ...) +# define tb_assertf(x, fmt, ...) # define tb_assertf_and_check_abort(x, fmt, ...) tb_check_abort(x) # define tb_assertf_and_check_return(x, fmt, ...) tb_check_return(x) # define tb_assertf_and_check_return_val(x, v, fmt, ...) tb_check_return_val(x, v) @@ -125,14 +95,7 @@ __tb_extern_c_enter__ # define tb_assertf_and_check_break(x, fmt, ...) tb_check_break(x) # define tb_assertf_and_check_continue(x, fmt, ...) tb_check_continue(x) # else -# error -# define tb_assertf -# define tb_assertf_abort -# define tb_assertf_return -# define tb_assertf_return_val -# define tb_assertf_goto -# define tb_assertf_break -# define tb_assertf_continue +# define tb_assertf tb_abort(); # define tb_assertf_and_check_abort tb_abort(); # define tb_assertf_and_check_return tb_abort(); # define tb_assertf_and_check_return_val tb_abort(); @@ -144,38 +107,15 @@ __tb_extern_c_enter__ #ifdef __tb_debug__ # define tb_assert(x) tb_assert_impl(!!(x), #x __tb_debug_vals__) -# define tb_assert_abort(x) tb_assert_abort_impl(!!(x), #x __tb_debug_vals__) -# define tb_assert_return(x) do { if (!(x)) {tb_trace_a("expr[%s]", #x); tb_assert_backtrace_dump(); return ; } } while(0) -# define tb_assert_return_val(x, v) do { if (!(x)) {tb_trace_a("expr[%s]", #x); tb_assert_backtrace_dump(); return (v); } } while(0) -# define tb_assert_goto(x, b) do { if (!(x)) {tb_trace_a("expr[%s]", #x); tb_assert_backtrace_dump(); goto b; } } while(0) -# define tb_assert_break(x) { if (!(x)) {tb_trace_a("expr[%s]", #x); tb_assert_backtrace_dump(); break ; } } -# define tb_assert_continue(x) { if (!(x)) {tb_trace_a("expr[%s]", #x); tb_assert_backtrace_dump(); continue ; } } -# define tb_assert_break_state(x, s, v) { if (!(x)) { (s) = (v); tb_trace_a("expr[%s]", #x); tb_assert_backtrace_dump(); break ; } } - -# define tb_assert_and_check_abort(x) tb_assert_abort(x) -# define tb_assert_and_check_return(x) tb_assert_return(x) -# define tb_assert_and_check_return_val(x, v) tb_assert_return_val(x, v) -# define tb_assert_and_check_goto(x, b) tb_assert_goto(x, b) -# define tb_assert_and_check_break(x) tb_assert_break(x) -# define tb_assert_and_check_continue(x) tb_assert_continue(x) -# define tb_assert_and_check_break_state(x, s, v) tb_assert_break_state(x, s, v) - -# define tb_assert_abort_and_check_return(x) tb_assert_abort(x) -# define tb_assert_abort_and_check_return_val(x, v) tb_assert_abort(x) -# define tb_assert_abort_and_check_goto(x, b) tb_assert_abort(x) -# define tb_assert_abort_and_check_break(x) tb_assert_abort(x) -# define tb_assert_abort_and_check_continue(x) tb_assert_abort(x) -# define tb_assert_abort_and_check_break_state(x, s, v) tb_assert_abort(x) +# define tb_assert_and_check_abort(x) tb_assert(x) +# define tb_assert_and_check_return(x) tb_assert(x) +# define tb_assert_and_check_return_val(x, v) tb_assert(x) +# define tb_assert_and_check_goto(x, b) tb_assert(x) +# define tb_assert_and_check_break(x) tb_assert(x) +# define tb_assert_and_check_continue(x) tb_assert(x) +# define tb_assert_and_check_break_state(x, s, v) tb_assert(x) #else # define tb_assert(x) tb_assert_empty_impl() -# define tb_assert_abort(x) tb_assert_empty_impl() -# define tb_assert_return(x) -# define tb_assert_return_val(x, v) -# define tb_assert_goto(x, b) -# define tb_assert_break(x) -# define tb_assert_continue(x) -# define tb_assert_break_state(x, s, v) - # define tb_assert_and_check_abort(x) tb_check_abort(x) # define tb_assert_and_check_return(x) tb_check_return(x) # define tb_assert_and_check_return_val(x, v) tb_check_return_val(x, v) @@ -183,15 +123,16 @@ __tb_extern_c_enter__ # define tb_assert_and_check_break(x) tb_check_break(x) # define tb_assert_and_check_continue(x) tb_check_continue(x) # define tb_assert_and_check_break_state(x, s, v) tb_check_break_state(x, s, v) - -# define tb_assert_abort_and_check_return(x) tb_check_return(x) -# define tb_assert_abort_and_check_return_val(x, v) tb_check_return_val(x, v) -# define tb_assert_abort_and_check_goto(x, b) tb_check_goto(x, b) -# define tb_assert_abort_and_check_break(x) tb_check_break(x) -# define tb_assert_abort_and_check_continue(x) tb_check_continue(x) -# define tb_assert_abort_and_check_break_state(x, s, v) tb_check_break_state(x, s, v) #endif +/*! the static assert + * + * @code + * + * tb_assert_static(sizeof(tb_uint32_t) == 4); + * + * @endcode + */ #define tb_assert_static(x) do { typedef int __tb_static_assert__[(x)? 1 : -1]; __tb_volatile__ __tb_static_assert__ __a; tb_used(__a); } while(0) /* ////////////////////////////////////////////////////////////////////////////////////// @@ -234,35 +175,6 @@ static __tb_inline__ tb_bool_t tb_assert_impl(tb_bool_t x, tb_char_t const* exp // dump backtrace tb_assert_backtrace_dump(); - } - - // ok? - return x; -} - -/* the assert and abort implementation - * - * @code - * tb_size_t v = (tb_assert_abort(x), value); - * tb_assert_abort(v); - * @endcode - * - * @param x the boolean value of the expression - * @param expr the expression string - * - * @return the boolean value of the expression - */ -static __tb_inline__ tb_bool_t tb_assert_abort_impl(tb_bool_t x, tb_char_t const* expr __tb_debug_decl__) -{ - // failed? - if (!x) - { - // trace - tb_trace_i("[assert]: expr[%s] at %s(): %d, %s", expr __tb_debug_args__); - tb_trace_sync(); - - // dump backtrace - tb_assert_backtrace_dump(); // abort it tb_abort(); 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 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 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 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 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 index 1cf448447..d41d4f7af --- a/core/pkg/tbox.pkg/inc/tbox/stream/stream.h +++ b/core/pkg/tbox.pkg/inc/tbox/stream/stream.h @@ -308,17 +308,33 @@ tb_stream_ref_t tb_stream_init_filter(tb_noarg_t); tb_void_t tb_stream_exit(tb_stream_ref_t stream); /*! init stream from url + * + * @code + * + // init stream + tb_stream_ref_t stream = tb_stream_init_from_url("http://www.xxx.com/file"); + if (stream) + { + // open stream + if (tb_stream_open(stream)) + { + // ... + } + + // exit stream + tb_stream_exit(stream); + } + * + * @endcode * * @param url the url - *
- * data://base64
- * file://path or unix path: e.g. /root/xxxx/file
- * sock://host:port?tcp=
- * sock://host:port?udp=
- * socks://host:port
- * http://host:port/path?arg0=&arg1=...
- * https://host:port/path?arg0=&arg1=...
- * 
+ * - data://base64 + * - file://path or unix path: e.g. /root/xxxx/file + * - sock://host:port?tcp= + * - sock://host:port?udp= + * - socks://host:port + * - http://host:port/path?arg0=&arg1=... + * - https://host:port/path?arg0=&arg1=... * * @return the stream */ @@ -563,6 +579,33 @@ tb_bool_t tb_stream_open(tb_stream_ref_t stream); tb_bool_t tb_stream_clos(tb_stream_ref_t stream); /*! read data, non-blocking + * + * @code + + tb_long_t read = 0; + tb_byte_t data[TB_STREAM_BLOCK_MAXN]; + while (!tb_stream_beof(stream)) + { + // read data + tb_long_t real = tb_stream_read(stream, data, sizeof(data)); + + // ok? + if (real > 0) read += real; + // no data? continue it + else if (!real) + { + // wait + real = tb_stream_wait(stream, TB_STREAM_WAIT_READ, tb_stream_timeout(stream)); + tb_check_break(real > 0); + + // has read? + tb_assert_and_check_break(real & TB_STREAM_WAIT_READ); + } + // failed or end? + else break; + } + + * @endcode * * @param stream the stream * @param data the data @@ -583,6 +626,30 @@ tb_long_t tb_stream_read(tb_stream_ref_t stream, tb_byte_t* data, tb_long_t tb_stream_writ(tb_stream_ref_t stream, tb_byte_t const* data, tb_size_t size); /*! block read + * + * @code + * + // get stream size + // + // @note + // size may be < -1 for the http(chunked)/filter/.. stream + // we need call tb_stream_read for reading data if size < 0 + // + tb_hong_t size = tb_stream_size(stream); + tb_assert(size > 0); + + // make data + tb_byte_t* data = tb_malloc((tb_size_t)size); + if (data) + { + // read data + tb_bool_t ok = tb_stream_bread(stream, data, size); + + // exit data + tb_free(data) + } + * + * @endcode * * @param stream the stream * @param data the data @@ -612,6 +679,17 @@ tb_bool_t tb_stream_bwrit(tb_stream_ref_t stream, tb_byte_t const* tb_bool_t tb_stream_sync(tb_stream_ref_t stream, tb_bool_t bclosing); /*! need stream + * + * @code + + // need 16-bytes data + tb_byte_t* data = tb_null; + if (tb_stream_need(stream, &data, 16)) + { + // .. + } + + * @endcode * * @param stream the stream * @param data the data @@ -649,6 +727,19 @@ tb_bool_t tb_stream_skip(tb_stream_ref_t stream, tb_hize_t size); tb_long_t tb_stream_printf(tb_stream_ref_t stream, tb_char_t const* fmt, ...); /*! block read line + * + * @code + * + // read line + tb_long_t size = 0; + tb_char_t line[8192]; + while ((size = tb_stream_bread_line(stream, line, sizeof(line))) >= 0) + { + // trace + tb_trace_i("line: %s", line); + } + * + * @endcode * * @param stream the stream * @param data the data @@ -668,6 +759,38 @@ tb_long_t tb_stream_bread_line(tb_stream_ref_t stream, tb_char_t* */ tb_long_t tb_stream_bwrit_line(tb_stream_ref_t stream, tb_char_t* data, tb_size_t size); +/*! block read all data + * + * @code + * + // read all data + tb_size_t size = 0; + tb_byte_t* data = tb_stream_bread_all(stream, tb_false, &size); + if (data) + { + // exit data + tb_free(data); + } + + // read all cstr and append '\0' + tb_size_t size = 0; + tb_char_t* cstr = (tb_char_t*)tb_stream_bread_all(stream, tb_true, &size); + if (cstr) + { + // exit cstr + tb_free(cstr); + } + + * @endcode + * + * @param stream the stream + * @param is_cstr will append '\0' if be c-string + * @param psize the size pointer, optional + * + * @return the data + */ +tb_byte_t* tb_stream_bread_all(tb_stream_ref_t stream, tb_bool_t is_cstr, tb_size_t* psize); + /*! block read uint8 integer * * @param stream the stream 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 diff --git a/core/pkg/tbox.pkg/inc/tbox/utils/adler32.h b/core/pkg/tbox.pkg/inc/tbox/utils/adler32.h old mode 100644 new mode 100755 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 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 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 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 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 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 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 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 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 index df67e03b3..1f6dd84f2 --- a/core/pkg/tbox.pkg/inc/tbox/xml/reader.h +++ b/core/pkg/tbox.pkg/inc/tbox/xml/reader.h @@ -126,9 +126,9 @@ tb_void_t tb_xml_reader_clos(tb_xml_reader_ref_t reader); break; case TB_XML_READER_EVENT_ELEMENT_EMPTY: { - tb_char_t const* name = tb_xml_reader_element(reader); - tb_xml_node_ref_t attr = tb_xml_reader_attributes(reader); - tb_size_t t = tb_xml_reader_level(reader); + tb_char_t const* name = tb_xml_reader_element(reader); + tb_xml_node_ref_t attr = tb_xml_reader_attributes(reader); + tb_size_t t = tb_xml_reader_level(reader); while (t--) tb_printf("\t"); if (!attr) tb_printf("<%s/>\n", name); else @@ -142,9 +142,9 @@ tb_void_t tb_xml_reader_clos(tb_xml_reader_ref_t reader); break; case TB_XML_READER_EVENT_ELEMENT_BEG: { - tb_char_t const* name = tb_xml_reader_element(reader); - tb_xml_node_ref_t attr = tb_xml_reader_attributes(reader); - tb_size_t t = tb_xml_reader_level(reader) - 1; + tb_char_t const* name = tb_xml_reader_element(reader); + tb_xml_node_ref_t attr = tb_xml_reader_attributes(reader); + tb_size_t t = tb_xml_reader_level(reader) - 1; while (t--) tb_printf("\t"); if (!attr) tb_printf("<%s>\n", name); else 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/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/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 diff --git a/core/src/xmake/os/find.c b/core/src/xmake/os/find.c index 725c08e5f..e5007d1ec 100755 --- a/core/src/xmake/os/find.c +++ b/core/src/xmake/os/find.c @@ -87,8 +87,8 @@ static tb_bool_t xm_os_find_walk(tb_char_t const* path, tb_file_info_t const* in tb_assert_and_check_return_val(rootdir && rootlen, tb_false); // check - tb_assert_abort(!tb_strcmp(path, rootdir)); - tb_assert_abort(rootlen + 1 <= tb_strlen(path)); + tb_assert(!tb_strcmp(path, rootdir)); + tb_assert(rootlen + 1 <= tb_strlen(path)); // skip the rootdir path += rootlen + 1; -- cgit v1.3.1