From f0d8b816af00186c108f6cdc538ec18d8b4dddba Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 7 Sep 2018 10:43:21 +0300 Subject: Remove \n from calls to lintwarn, warning, and fatal. --- gawkapi.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gawkapi.h') diff --git a/gawkapi.h b/gawkapi.h index bee9e9d0..478c43da 100644 --- a/gawkapi.h +++ b/gawkapi.h @@ -926,19 +926,19 @@ typedef struct gawk_api { #define emalloc(pointer, type, size, message) \ do { \ if ((pointer = (type) gawk_malloc(size)) == 0) \ - fatal(ext_id, "%s: malloc of %d bytes failed\n", message, size); \ + fatal(ext_id, "%s: malloc of %d bytes failed", message, size); \ } while(0) #define ezalloc(pointer, type, size, message) \ do { \ if ((pointer = (type) gawk_calloc(1, size)) == 0) \ - fatal(ext_id, "%s: calloc of %d bytes failed\n", message, size); \ + fatal(ext_id, "%s: calloc of %d bytes failed", message, size); \ } while(0) #define erealloc(pointer, type, size, message) \ do { \ if ((pointer = (type) gawk_realloc(pointer, size)) == 0) \ - fatal(ext_id, "%s: realloc of %d bytes failed\n", message, size); \ + fatal(ext_id, "%s: realloc of %d bytes failed", message, size); \ } while(0) /* Constructor functions */ @@ -1124,7 +1124,7 @@ int dl_load(const gawk_api_t *const api_p, awk_ext_id_t id) \ if (func_table[i].name == NULL) \ break; \ if (! add_ext_func(name_space, & func_table[i])) { \ - warning(ext_id, #extension ": could not add %s\n", \ + warning(ext_id, #extension ": could not add %s", \ func_table[i].name); \ errors++; \ } \ @@ -1132,7 +1132,7 @@ int dl_load(const gawk_api_t *const api_p, awk_ext_id_t id) \ \ if (init_func != NULL) { \ if (! init_func()) { \ - warning(ext_id, #extension ": initialization function failed\n"); \ + warning(ext_id, #extension ": initialization function failed"); \ errors++; \ } \ } \ -- cgit v1.2.3