diff options
author | Alan Modra <amodra@gmail.com> | 2017-10-11 14:48:45 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-10-11 15:04:59 +1030 |
commit | d003af558092dc521f93d16628b9ccbf434370e3 (patch) | |
tree | 28cddf0bb4ecb0fd046923465229d9b660c3ac7d /ld/ldlex.l | |
parent | e8b8ffd3c0676f69d1edd3859d4eebf10d1d62d7 (diff) | |
download | gdb-d003af558092dc521f93d16628b9ccbf434370e3.zip gdb-d003af558092dc521f93d16628b9ccbf434370e3.tar.gz gdb-d003af558092dc521f93d16628b9ccbf434370e3.tar.bz2 |
ld internationalization fixes
* emultempl/aarch64elf.em: Wrap einfo strings in _(). Formatting.
* emultempl/aix.em: Likewise.
* emultempl/armcoff.em: Likewise.
* emultempl/armelf.em: Likewise.
* emultempl/avrelf.em: Likewise.
* emultempl/beos.em: Likewise.
* emultempl/cr16elf.em: Likewise.
* emultempl/elf-generic.em: Likewise.
* emultempl/elf32.em: Likewise.
* emultempl/genelf.em: Likewise.
* emultempl/hppaelf.em: Likewise.
* emultempl/linux.em: Likewise.
* emultempl/lnk960.em: Likewise.
* emultempl/m68hc1xelf.em: Likewise.
* emultempl/m68kcoff.em: Likewise.
* emultempl/m68kelf.em: Likewise.
* emultempl/metagelf.em: Likewise.
* emultempl/mipself.em: Likewise.
* emultempl/mmix-elfnmmo.em: Likewise.
* emultempl/mmo.em: Likewise.
* emultempl/msp430.em: Likewise.
* emultempl/nds32elf.em: Likewise.
* emultempl/nios2elf.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/pep.em: Likewise.
* emultempl/ppc32elf.em: Likewise.
* emultempl/ppc64elf.em: Likewise.
* emultempl/riscvelf.em: Likewise.
* emultempl/s390.em: Likewise.
* emultempl/scoreelf.em: Likewise.
* emultempl/spuelf.em: Likewise.
* emultempl/sunos.em: Likewise.
* emultempl/tic6xdsbt.em: Likewise.
* emultempl/v850elf.em: Likewise.
* emultempl/vms.em: Likewise.
* emultempl/vxworks.em: Likewise.
* ldcref.c: Likewise.
* ldlang.c: Likewise.
* ldlex.l: Likewise.
* ldmain.c: Likewise.
* pe-dll.c: Likewise.
* plugin.c: Likewise.
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r-- | ld/ldlex.l | 52 |
1 files changed, 26 insertions, 26 deletions
@@ -495,7 +495,7 @@ lex_push_file (FILE *file, const char *name, unsigned int sysrooted) { if (include_stack_ptr >= MAX_INCLUDE_DEPTH) { - einfo ("%F:includes nested too deeply\n"); + einfo (_("%F:includes nested too deeply\n")); } file_name_stack[include_stack_ptr] = name; lineno_stack[include_stack_ptr] = lineno; @@ -560,7 +560,7 @@ lex_redirect (const char *string, const char *fake_filename, unsigned int count) yy_init = 0; if (include_stack_ptr >= MAX_INCLUDE_DEPTH) { - einfo("%F: macros nested too deeply\n"); + einfo (_("%F: macros nested too deeply\n")); } file_name_stack[include_stack_ptr] = fake_filename; lineno_stack[include_stack_ptr] = lineno; @@ -662,7 +662,7 @@ yy_input (char *buf, int max_size) { result = fread (buf, 1, max_size, yyin); if (result < max_size && ferror (yyin)) - einfo ("%F%P: read in flex scanner failed\n"); + einfo (_("%F%P: read in flex scanner failed\n")); } } return result; @@ -676,33 +676,33 @@ comment (void) int c; while (1) - { - c = input(); - while (c != '*' && c != EOF) { - if (c == '\n') - lineno++; c = input(); - } + while (c != '*' && c != EOF) + { + if (c == '\n') + lineno++; + c = input(); + } - if (c == '*') - { - c = input(); - while (c == '*') - c = input(); - if (c == '/') - break; /* found the end */ - } + if (c == '*') + { + c = input(); + while (c == '*') + c = input(); + if (c == '/') + break; /* found the end */ + } - if (c == '\n') - lineno++; + if (c == '\n') + lineno++; - if (c == EOF) - { - einfo( "%F%P: EOF in comment\n"); - break; + if (c == EOF) + { + einfo (_("%F%P: EOF in comment\n")); + break; + } } - } } /* Warn the user about a garbage character WHAT in the input @@ -720,7 +720,7 @@ lex_warn_invalid (char *where, char *what) if (ldfile_assumed_script) { bfd_set_error (bfd_error_file_not_recognized); - einfo ("%F%s: file not recognized: %E\n", ldlex_filename ()); + einfo (_("%F%s: file not recognized: %E\n"), ldlex_filename ()); } if (! ISPRINT (*what)) @@ -729,5 +729,5 @@ lex_warn_invalid (char *where, char *what) what = buf; } - einfo ("%P:%S: ignoring invalid character `%s'%s\n", NULL, what, where); + einfo (_("%P:%S: ignoring invalid character `%s'%s\n"), NULL, what, where); } |