From: Martin Mares Date: Thu, 5 Jun 2014 13:59:25 +0000 (+0200) Subject: Removed some remaining "uns" relics X-Git-Tag: v6.0~11^2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9bac1d47ad9ae97b97e893a3f940656b48050e01;p=libucw.git Removed some remaining "uns" relics --- diff --git a/ucw/doc/heap.txt b/ucw/doc/heap.txt index 605c696d..df4f7534 100644 --- a/ucw/doc/heap.txt +++ b/ucw/doc/heap.txt @@ -11,7 +11,7 @@ Binary heaps Example ------- - static uns n; + static uint n; static int heap[4]; // Create an empty heap diff --git a/ucw/mempool.h b/ucw/mempool.h index 59ef2296..f819a0f1 100644 --- a/ucw/mempool.h +++ b/ucw/mempool.h @@ -72,7 +72,7 @@ struct mempool { struct mempool_state state; void *unused, *last_big; size_t chunk_size, threshold; - uns idx; + uint idx; u64 total_size; }; diff --git a/ucw/str-hex.c b/ucw/str-hex.c index f8595edf..04290489 100644 --- a/ucw/str-hex.c +++ b/ucw/str-hex.c @@ -18,7 +18,7 @@ hex_make(uint x) } void -mem_to_hex(char *dest, const byte *src, size_t bytes, uns flags) +mem_to_hex(char *dest, const byte *src, size_t bytes, uint flags) { uint sep = flags & 0xff; @@ -48,7 +48,7 @@ hex_parse(uint c) } const char * -hex_to_mem(byte *dest, const char *src, size_t max_bytes, uns flags) +hex_to_mem(byte *dest, const char *src, size_t max_bytes, uint flags) { uint sep = flags & 0xff; while (max_bytes-- && Cxdigit(src[0]) && Cxdigit(src[1])) diff --git a/ucw/string.c b/ucw/string.c index 21556ec3..29cfa42b 100644 --- a/ucw/string.c +++ b/ucw/string.c @@ -40,7 +40,7 @@ str_format_flags(char *dest, const char *fmt, uint flags) } size_t -str_count_char(const char *str, uns chr) +str_count_char(const char *str, uint chr) { const byte *s = str; size_t i = 0; diff --git a/ucw/string.h b/ucw/string.h index b49370ed..9c527ba9 100644 --- a/ucw/string.h +++ b/ucw/string.h @@ -40,7 +40,7 @@ size_t strnlen(const char *str, size_t n); // NOAPI char *str_format_flags(char *dest, const char *fmt, uint flags); /** Counts occurrences of @chr in @str. **/ -size_t str_count_char(const char *str, uns chr); +size_t str_count_char(const char *str, uint chr); /* str-esc.c */ @@ -94,14 +94,14 @@ int str_match_pattern_nocase(const char *patt, const char *str); * not be separated), possibly OR-ed with `MEM_TO_HEX_UPCASE` when upper-case * characters should be used. **/ -void mem_to_hex(char *dest, const byte *src, size_t bytes, uns flags); +void mem_to_hex(char *dest, const byte *src, size_t bytes, uint flags); /** * An inverse function to @mem_to_hex(). Takes a hexdump of at most @max_bytes * bytes and stores the bytes to a buffer starting at @dest. Returns a pointer * at the first character after the dump. **/ -const char *hex_to_mem(byte *dest, const char *src, size_t max_bytes, uns flags); +const char *hex_to_mem(byte *dest, const char *src, size_t max_bytes, uint flags); // Bottom 8 bits of flags are an optional separator of bytes, the rest is: #define MEM_TO_HEX_UPCASE 0x100 diff --git a/ucw/strtonum.h b/ucw/strtonum.h index fc99e237..d33c35fc 100644 --- a/ucw/strtonum.h +++ b/ucw/strtonum.h @@ -57,7 +57,7 @@ STN_SIGNED_CONVERTOR(int, int, uint) STN_DECLARE_CONVERTOR(uintmax_t, uintmax); STN_SIGNED_CONVERTOR(intmax_t, intmax, uintmax) -// FIXME: For backwards compatibility, will be removed soon +// FIXME: For backward compatibility, will be removed soon STN_DECLARE_CONVERTOR(uns, uns); #endif