git grep -l 'u\(8\|16\|32\|64\)_t' | \ xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g" git grep -l 's\(8\|16\|32\|64\)_t' | \ xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g" Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
26 lines
649 B
C
26 lines
649 B
C
/*
|
|
* Copyright (c) 2016 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#ifndef __SHELL_UTILS_H
|
|
#define __SHELL_UTILS_H
|
|
|
|
#include <shell/shell.h>
|
|
|
|
#define IPV4_STR_LEN_MAX 15
|
|
#define IPV4_STR_LEN_MIN 7
|
|
|
|
extern const uint32_t TIME_US[];
|
|
extern const char *TIME_US_UNIT[];
|
|
extern const uint32_t KBPS[];
|
|
extern const char *KBPS_UNIT[];
|
|
extern const uint32_t K[];
|
|
extern const char *K_UNIT[];
|
|
|
|
extern void print_number(const struct shell *shell, uint32_t value,
|
|
const uint32_t *divisor, const char **units);
|
|
extern long parse_number(const char *string, const uint32_t *divisor,
|
|
const char **units);
|
|
#endif /* __SHELL_UTILS_H */
|