diff options
author | Aleksandr <ivansduck@gmail.com> | 2022-02-10 16:47:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:52 +0300 |
commit | ea6c5b7f172becca389cacaff7d5f45f6adccbe6 (patch) | |
tree | d16cef493ac1e092b4a03ab9437ec06ffe3d188f /contrib/tools/yasm | |
parent | 37de222addabbef336dcaaea5f7c7645a629fc6d (diff) | |
download | ydb-ea6c5b7f172becca389cacaff7d5f45f6adccbe6.tar.gz |
Restoring authorship annotation for Aleksandr <ivansduck@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/yasm')
-rw-r--r-- | contrib/tools/yasm/libyasm/errwarn.c | 16 | ||||
-rw-r--r-- | contrib/tools/yasm/libyasm/errwarn.h | 6 | ||||
-rw-r--r-- | contrib/tools/yasm/modules/preprocs/gas/gas-preproc.c | 2 | ||||
-rw-r--r-- | contrib/tools/yasm/modules/preprocs/nasm/nasm-preproc.c | 2 | ||||
-rw-r--r-- | contrib/tools/yasm/modules/preprocs/raw/raw-preproc.c | 2 |
5 files changed, 14 insertions, 14 deletions
diff --git a/contrib/tools/yasm/libyasm/errwarn.c b/contrib/tools/yasm/libyasm/errwarn.c index f759cf8f71..c69360ab9a 100644 --- a/contrib/tools/yasm/libyasm/errwarn.c +++ b/contrib/tools/yasm/libyasm/errwarn.c @@ -27,7 +27,7 @@ #include "util.h" #include <ctype.h> -#include <errno.h> +#include <errno.h> #include <stdarg.h> #include "coretype.h" @@ -528,10 +528,10 @@ yasm__fatal(const char *message, ...) /*@notreached@*/ va_end(va); } - -void -yasm__fatal_missing_input_file(const char *message, const char *filename) -{ - fprintf(stderr, "%s: %s %s (%s)\n", yasm_gettext_hook(N_("FATAL")), yasm_gettext_hook(message), strerror(errno), yasm_gettext_hook(filename)); - exit(EXIT_FAILURE); -} + +void +yasm__fatal_missing_input_file(const char *message, const char *filename) +{ + fprintf(stderr, "%s: %s %s (%s)\n", yasm_gettext_hook(N_("FATAL")), yasm_gettext_hook(message), strerror(errno), yasm_gettext_hook(filename)); + exit(EXIT_FAILURE); +} diff --git a/contrib/tools/yasm/libyasm/errwarn.h b/contrib/tools/yasm/libyasm/errwarn.h index f8e4f10ec3..b877d04e66 100644 --- a/contrib/tools/yasm/libyasm/errwarn.h +++ b/contrib/tools/yasm/libyasm/errwarn.h @@ -114,9 +114,9 @@ extern /*@exits@*/ void (*yasm_fatal) (const char *message, va_list va); YASM_LIB_DECL /*@exits@*/ void yasm__fatal(const char *message, ...); -YASM_LIB_DECL -/*@exits@*/ void yasm__fatal_missing_input_file(const char *message, const char *filename); - +YASM_LIB_DECL +/*@exits@*/ void yasm__fatal_missing_input_file(const char *message, const char *filename); + /** Unconditionally clear the error indicator, freeing any associated data. * Has no effect if the error indicator is not set. */ diff --git a/contrib/tools/yasm/modules/preprocs/gas/gas-preproc.c b/contrib/tools/yasm/modules/preprocs/gas/gas-preproc.c index 60c9e4f0cd..bdc4ff79bd 100644 --- a/contrib/tools/yasm/modules/preprocs/gas/gas-preproc.c +++ b/contrib/tools/yasm/modules/preprocs/gas/gas-preproc.c @@ -1235,7 +1235,7 @@ gas_preproc_create(const char *in_filename, yasm_symtab *symtab, if (strcmp(in_filename, "-") != 0) { f = fopen(in_filename, "r"); if (!f) { - yasm__fatal_missing_input_file(N_("Could not open input file"), in_filename); + yasm__fatal_missing_input_file(N_("Could not open input file"), in_filename); } } else { f = stdin; diff --git a/contrib/tools/yasm/modules/preprocs/nasm/nasm-preproc.c b/contrib/tools/yasm/modules/preprocs/nasm/nasm-preproc.c index 566dd8004b..0f57838720 100644 --- a/contrib/tools/yasm/modules/preprocs/nasm/nasm-preproc.c +++ b/contrib/tools/yasm/modules/preprocs/nasm/nasm-preproc.c @@ -142,7 +142,7 @@ nasm_preproc_create(const char *in_filename, yasm_symtab *symtab, if (strcmp(in_filename, "-") != 0) { f = fopen(in_filename, "r"); if (!f) - yasm__fatal_missing_input_file( N_("Could not open input file"), in_filename ); + yasm__fatal_missing_input_file( N_("Could not open input file"), in_filename ); } else f = stdin; diff --git a/contrib/tools/yasm/modules/preprocs/raw/raw-preproc.c b/contrib/tools/yasm/modules/preprocs/raw/raw-preproc.c index 9745b242fe..7c2cda084b 100644 --- a/contrib/tools/yasm/modules/preprocs/raw/raw-preproc.c +++ b/contrib/tools/yasm/modules/preprocs/raw/raw-preproc.c @@ -51,7 +51,7 @@ raw_preproc_create(const char *in_filename, yasm_symtab *symtab, if (strcmp(in_filename, "-") != 0) { f = fopen(in_filename, "r"); if (!f) - yasm__fatal_missing_input_file( N_("Could not open input file"), in_filename ); + yasm__fatal_missing_input_file( N_("Could not open input file"), in_filename ); } else f = stdin; |