mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-22 13:51:30 +00:00
Remove restrict keywords
This commit is contained in:
parent
4014e938d6
commit
4d12a2036c
@ -928,7 +928,7 @@ club:
|
||||
va_end (ap3);
|
||||
}
|
||||
|
||||
R_API int r_cons_printf(const char *restrict format, ...) {
|
||||
R_API int r_cons_printf(const char *format, ...) {
|
||||
va_list ap;
|
||||
if (!format || !*format) {
|
||||
return -1;
|
||||
|
@ -711,7 +711,7 @@ R_API void r_cons_set_interactive(bool b);
|
||||
R_API void r_cons_set_last_interactive(void);
|
||||
|
||||
/* output */
|
||||
R_API int r_cons_printf(const char *restrict format, ...);
|
||||
R_API int r_cons_printf(const char *format, ...);
|
||||
R_API void r_cons_printf_list(const char *format, va_list ap);
|
||||
R_API void r_cons_strcat(const char *str);
|
||||
#define r_cons_print(x) r_cons_strcat (x)
|
||||
|
@ -209,7 +209,7 @@ extern "C" {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
typedef int (*PrintfCallback)(const char *restrict str, ...);
|
||||
typedef int (*PrintfCallback)(const char *str, ...);
|
||||
|
||||
// TODO NOT USED. DEPREACATE
|
||||
#if R_RTDEBUG
|
||||
|
@ -9,10 +9,10 @@
|
||||
|
||||
#define IS_ALPHA(C) (((C) >= 'a' && (C) <= 'z') || ((C) >= 'A' && (C) <= 'Z'))
|
||||
|
||||
static int nullprinter(const char *restrict a, ...) {
|
||||
static int nullprinter(const char *a, ...) {
|
||||
return 0;
|
||||
}
|
||||
static int libc_printf(const char * restrict format, ...) {
|
||||
static int libc_printf(const char *format, ...) {
|
||||
va_list ap;
|
||||
va_start (ap, format);
|
||||
vprintf (format, ap);
|
||||
|
Loading…
x
Reference in New Issue
Block a user