Remove restrict keywords

This commit is contained in:
Maijin 2018-09-15 18:39:56 +02:00
parent 4014e938d6
commit 4d12a2036c
4 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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

View File

@ -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);