From 4ca99815b84c77fda0e803ddc26195dcc5ff1585 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Mon, 29 Aug 2011 14:13:29 +1000 Subject: [PATCH 01/18] Be a little more diligent when it comes to wchar_t vs. wint_t The %lc format is actually of type wint_t, according to printf(3), not wchar_t, even though these are of the same underlying type on most (all?) platforms. --- src/game.c | 2 +- src/intf.c | 11 ++++++----- src/intf.h | 2 +- src/move.c | 6 ++++-- src/utils.c | 2 +- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/game.c b/src/game.c index 3ee99bf..1521fa1 100644 --- a/src/game.c +++ b/src/game.c @@ -290,7 +290,7 @@ static int ask_number_players (void) done = true; } else if (wcschr(keycode_contgame, key) != NULL) { left(curwin, getcury(curwin), getcurx(curwin), A_BOLD, - 0, 0, 1, "%lc", *keycode_contgame); + 0, 0, 1, "%lc", (wint_t) *keycode_contgame); wrefresh(curwin); ret = 0; diff --git a/src/intf.c b/src/intf.c index 9aa2fdf..e8eb0af 100644 --- a/src/intf.c +++ b/src/intf.c @@ -156,7 +156,7 @@ typedef struct txwin { enum argument_type { TYPE_NONE, // No type yet assigned TYPE_CHAR, // char - TYPE_WCHAR, // wchar_t + TYPE_WCHAR, // wint_t TYPE_INT, // int TYPE_LONGINT, // long int TYPE_DOUBLE, // double @@ -168,7 +168,7 @@ struct argument { enum argument_type a_type; union a { char a_char; - wchar_t a_wchar; + wint_t a_wchar; int a_int; long int a_longint; double a_double; @@ -1092,9 +1092,10 @@ int mkchstr_parse (const wchar_t *restrict format, break; case TYPE_WCHAR: - format_arg->a.a_wchar = (wchar_t) (sizeof(wchar_t) < sizeof(int) ? - va_arg(args, int) : - va_arg(args, wchar_t)); + format_arg->a.a_wchar = + (wint_t) (sizeof(wint_t) < sizeof(int) ? + va_arg(args, int) : + va_arg(args, wint_t)); break; case TYPE_INT: diff --git a/src/intf.h b/src/intf.h index 322ded0..db73c8a 100644 --- a/src/intf.h +++ b/src/intf.h @@ -365,7 +365,7 @@ extern int txdlgbox (int maxlines, int ncols, int begin_y, int begin_x, %% - Insert the ASCII percent sign (ASCII code U+0025) %c - Insert the next parameter as a character (type char) - %lc - Insert the next parameter as a wide char (type wchar_t) + %lc - Insert the next parameter as a wide char (type wint_t) %s - Insert the next parameter as a string (type char *) %ls - Insert the next parameter as a wide string (type wchar_t *) %d - Insert the next parameter as an integer (type int) diff --git a/src/move.c b/src/move.c index 5e5271a..03c819e 100644 --- a/src/move.c +++ b/src/move.c @@ -243,7 +243,8 @@ selection_t get_move (void) right(curwin, 1, getmaxx(curwin) / 2, attr_normal, attr_keycode, attr_choice, 1, _("Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: "), - PRINTABLE_GAME_MOVE(0), PRINTABLE_GAME_MOVE(NUMBER_MOVES - 1)); + (wint_t) PRINTABLE_GAME_MOVE(0), + (wint_t) PRINTABLE_GAME_MOVE(NUMBER_MOVES - 1)); curs_set(CURS_ON); wrefresh(curwin); @@ -274,7 +275,8 @@ selection_t get_move (void) /* TRANSLATORS: "Move" refers to the choice of moves made by the current player (out of a selection of 20 moves). */ - _("Move ^{%lc^}"), PRINTABLE_GAME_MOVE(i)); + _("Move ^{%lc^}"), + (wint_t) PRINTABLE_GAME_MOVE(i)); break; } diff --git a/src/utils.c b/src/utils.c index 39abf31..0d6cc6f 100644 --- a/src/utils.c +++ b/src/utils.c @@ -613,7 +613,7 @@ size_t xwcrtomb (char *restrict dest, wchar_t wc, mbstate_t *restrict mbstate) dest[n] = EILSEQ_REPL; dest[n++] = '\0'; } else { - errno_exit(_("xwcrtomb: `%lc'"), wc); + errno_exit(_("xwcrtomb: `%lc'"), (wint_t) wc); } } From 6b36465f7d0a1a71c775503113ebb9fcfef012f8 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Mon, 29 Aug 2011 14:14:44 +1000 Subject: [PATCH 02/18] Update source line numbers in the translation PO files --- po/en_AU.po | 72 ++++++++++++++++++++++++++--------------------------- po/en_CA.po | 72 ++++++++++++++++++++++++++--------------------------- po/en_GB.po | 72 ++++++++++++++++++++++++++--------------------------- po/en_US.po | 72 ++++++++++++++++++++++++++--------------------------- 4 files changed, 144 insertions(+), 144 deletions(-) diff --git a/po/en_AU.po b/po/en_AU.po index 678b878..38a05e6 100644 --- a/po/en_AU.po +++ b/po/en_AU.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.2\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-29 10:48+1000\n" +"POT-Creation-Date: 2011-08-29 14:13+1000\n" "PO-Revision-Date: 2011-08-28 17:03+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Australian)\n" @@ -302,7 +302,7 @@ msgctxt "input|ContinueGame" msgid "Cc" msgstr "Cc" -#: src/game.c:341 src/move.c:380 +#: src/game.c:341 src/move.c:382 msgid "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " msgstr "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " @@ -371,7 +371,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:847 +#: src/game.c:606 src/move.c:849 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -536,51 +536,51 @@ msgstr "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " #. TRANSLATORS: "Move" refers to the choice of #. moves made by the current player (out of a #. selection of 20 moves). -#: src/move.c:277 +#: src/move.c:278 #, c-format msgid "Move ^{%lc^}" msgstr "Move ^{%lc^}" -#: src/move.c:297 +#: src/move.c:299 msgid "^{<2>^} (Declare bankruptcy)" msgstr "^{<2>^} (Declare bankruptcy)" -#: src/move.c:306 +#: src/move.c:308 msgid "^{<3>^} (Save and end the game)" msgstr "^{<3>^} (Save and end the game)" -#: src/move.c:327 +#: src/move.c:329 msgid "^{^} (Quit the game)" msgstr "^{^} (Quit the game)" -#: src/move.c:342 +#: src/move.c:344 msgid "Are you sure? [^{Y^}/^{N^}] " msgstr "Are you sure? [^{Y^}/^{N^}] " -#: src/move.c:359 src/move.c:437 +#: src/move.c:361 src/move.c:439 #, c-format msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:667 src/move.c:674 src/move.c:1018 src/move.c:1052 +#: src/move.c:669 src/move.c:676 src/move.c:1020 src/move.c:1054 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#: src/move.c:668 +#: src/move.c:670 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#: src/move.c:675 +#: src/move.c:677 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:743 +#: src/move.c:745 msgid " New Company " msgstr " New Company " -#: src/move.c:744 +#: src/move.c:746 #, c-format msgid "" "A new company has been formed!\n" @@ -589,7 +589,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:803 +#: src/move.c:805 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -598,7 +598,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:809 +#: src/move.c:811 msgid " Company Merger " msgstr " Company Merger " @@ -609,14 +609,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:829 +#: src/move.c:831 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has #. absorbed another due to a merger. -#: src/move.c:840 +#: src/move.c:842 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -626,7 +626,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:854 +#: src/move.c:856 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -635,7 +635,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:859 +#: src/move.c:861 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -644,7 +644,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:866 +#: src/move.c:868 msgctxt "subtitle" msgid "New" msgstr "New" @@ -652,12 +652,12 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:872 +#: src/move.c:874 msgctxt "subtitle" msgid "Old" msgstr "Old" -#: src/move.c:1019 +#: src/move.c:1021 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -668,7 +668,7 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#: src/move.c:1041 +#: src/move.c:1043 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -687,7 +687,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1069 +#: src/move.c:1071 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -696,16 +696,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1077 +#: src/move.c:1079 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1170 src/exch.c:320 +#: src/move.c:1172 src/exch.c:320 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1172 +#: src/move.c:1174 #, c-format msgid "" "Your debt has amounted to %N!\n" @@ -1409,7 +1409,7 @@ msgstr "Page %d of %d" #. TRANSLATORS: The reason the user is not asked "Press any #. key to continue" is historical: many, many people used to #. ask "where is the key?" :-) -#: src/help.c:473 src/intf.c:3024 +#: src/help.c:473 src/intf.c:3025 msgid "[ Press to continue ] " msgstr "[ Press to continue ] " @@ -1442,16 +1442,16 @@ msgstr "terminal size is too small (%d x %d required)" msgid "Star Traders" msgstr "Star Traders" -#: src/intf.c:1264 +#: src/intf.c:1265 msgid "mkchstr_conv: NUL" msgstr "mkchstr_conv: NUL" -#: src/intf.c:1567 +#: src/intf.c:1568 #, c-format msgid "mkchstr: `%s'" msgstr "mkchstr: ‘%s’" -#: src/intf.c:2024 src/intf.c:2069 +#: src/intf.c:2025 src/intf.c:2070 #, c-format msgid "gettxline: illegal character in string: `%ls'" msgstr "gettxline: illegal character in string: ‘%ls’" @@ -1460,12 +1460,12 @@ msgstr "gettxline: illegal character in string: ‘%ls’" #. "input|No" contain the keycodes used to determine whether a #. user is answering "Yes" or "No" in response to some question. #. Both upper and lower-case versions should be present. -#: src/intf.c:2941 +#: src/intf.c:2942 msgctxt "input|Yes" msgid "Yy" msgstr "Yy" -#: src/intf.c:2943 +#: src/intf.c:2944 msgctxt "input|No" msgid "Nn" msgstr "Nn" @@ -1473,12 +1473,12 @@ msgstr "Nn" #. TRANSLATORS: The strings "Yes" and "No" are printed as a #. response to user input in answer to questions like "Are you #. sure? [Y/N] " -#: src/intf.c:2994 +#: src/intf.c:2995 msgctxt "answer" msgid "Yes" msgstr "Yes" -#: src/intf.c:2996 +#: src/intf.c:2997 msgctxt "answer" msgid "No" msgstr "No" diff --git a/po/en_CA.po b/po/en_CA.po index 8487d55..dd009cf 100644 --- a/po/en_CA.po +++ b/po/en_CA.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.2\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-29 10:48+1000\n" +"POT-Creation-Date: 2011-08-29 14:13+1000\n" "PO-Revision-Date: 2011-08-28 17:01+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Canadian)\n" @@ -302,7 +302,7 @@ msgctxt "input|ContinueGame" msgid "Cc" msgstr "Cc" -#: src/game.c:341 src/move.c:380 +#: src/game.c:341 src/move.c:382 msgid "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " msgstr "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " @@ -371,7 +371,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:847 +#: src/game.c:606 src/move.c:849 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -536,51 +536,51 @@ msgstr "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " #. TRANSLATORS: "Move" refers to the choice of #. moves made by the current player (out of a #. selection of 20 moves). -#: src/move.c:277 +#: src/move.c:278 #, c-format msgid "Move ^{%lc^}" msgstr "Move ^{%lc^}" -#: src/move.c:297 +#: src/move.c:299 msgid "^{<2>^} (Declare bankruptcy)" msgstr "^{<2>^} (Declare bankruptcy)" -#: src/move.c:306 +#: src/move.c:308 msgid "^{<3>^} (Save and end the game)" msgstr "^{<3>^} (Save and end the game)" -#: src/move.c:327 +#: src/move.c:329 msgid "^{^} (Quit the game)" msgstr "^{^} (Quit the game)" -#: src/move.c:342 +#: src/move.c:344 msgid "Are you sure? [^{Y^}/^{N^}] " msgstr "Are you sure? [^{Y^}/^{N^}] " -#: src/move.c:359 src/move.c:437 +#: src/move.c:361 src/move.c:439 #, c-format msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:667 src/move.c:674 src/move.c:1018 src/move.c:1052 +#: src/move.c:669 src/move.c:676 src/move.c:1020 src/move.c:1054 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#: src/move.c:668 +#: src/move.c:670 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#: src/move.c:675 +#: src/move.c:677 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:743 +#: src/move.c:745 msgid " New Company " msgstr " New Company " -#: src/move.c:744 +#: src/move.c:746 #, c-format msgid "" "A new company has been formed!\n" @@ -589,7 +589,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:803 +#: src/move.c:805 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -598,7 +598,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:809 +#: src/move.c:811 msgid " Company Merger " msgstr " Company Merger " @@ -609,14 +609,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:829 +#: src/move.c:831 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has #. absorbed another due to a merger. -#: src/move.c:840 +#: src/move.c:842 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -626,7 +626,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:854 +#: src/move.c:856 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -635,7 +635,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:859 +#: src/move.c:861 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -644,7 +644,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:866 +#: src/move.c:868 msgctxt "subtitle" msgid "New" msgstr "New" @@ -652,12 +652,12 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:872 +#: src/move.c:874 msgctxt "subtitle" msgid "Old" msgstr "Old" -#: src/move.c:1019 +#: src/move.c:1021 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -668,7 +668,7 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#: src/move.c:1041 +#: src/move.c:1043 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -687,7 +687,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1069 +#: src/move.c:1071 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -696,16 +696,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1077 +#: src/move.c:1079 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1170 src/exch.c:320 +#: src/move.c:1172 src/exch.c:320 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1172 +#: src/move.c:1174 #, c-format msgid "" "Your debt has amounted to %N!\n" @@ -1409,7 +1409,7 @@ msgstr "Page %d of %d" #. TRANSLATORS: The reason the user is not asked "Press any #. key to continue" is historical: many, many people used to #. ask "where is the key?" :-) -#: src/help.c:473 src/intf.c:3024 +#: src/help.c:473 src/intf.c:3025 msgid "[ Press to continue ] " msgstr "[ Press to continue ] " @@ -1442,16 +1442,16 @@ msgstr "terminal size is too small (%d x %d required)" msgid "Star Traders" msgstr "Star Traders" -#: src/intf.c:1264 +#: src/intf.c:1265 msgid "mkchstr_conv: NUL" msgstr "mkchstr_conv: NUL" -#: src/intf.c:1567 +#: src/intf.c:1568 #, c-format msgid "mkchstr: `%s'" msgstr "mkchstr: ‘%s’" -#: src/intf.c:2024 src/intf.c:2069 +#: src/intf.c:2025 src/intf.c:2070 #, c-format msgid "gettxline: illegal character in string: `%ls'" msgstr "gettxline: illegal character in string: ‘%ls’" @@ -1460,12 +1460,12 @@ msgstr "gettxline: illegal character in string: ‘%ls’" #. "input|No" contain the keycodes used to determine whether a #. user is answering "Yes" or "No" in response to some question. #. Both upper and lower-case versions should be present. -#: src/intf.c:2941 +#: src/intf.c:2942 msgctxt "input|Yes" msgid "Yy" msgstr "Yy" -#: src/intf.c:2943 +#: src/intf.c:2944 msgctxt "input|No" msgid "Nn" msgstr "Nn" @@ -1473,12 +1473,12 @@ msgstr "Nn" #. TRANSLATORS: The strings "Yes" and "No" are printed as a #. response to user input in answer to questions like "Are you #. sure? [Y/N] " -#: src/intf.c:2994 +#: src/intf.c:2995 msgctxt "answer" msgid "Yes" msgstr "Yes" -#: src/intf.c:2996 +#: src/intf.c:2997 msgctxt "answer" msgid "No" msgstr "No" diff --git a/po/en_GB.po b/po/en_GB.po index 083868b..41d0304 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.2\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-29 10:48+1000\n" +"POT-Creation-Date: 2011-08-29 14:13+1000\n" "PO-Revision-Date: 2011-08-28 17:03+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (British)\n" @@ -302,7 +302,7 @@ msgctxt "input|ContinueGame" msgid "Cc" msgstr "Cc" -#: src/game.c:341 src/move.c:380 +#: src/game.c:341 src/move.c:382 msgid "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " msgstr "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " @@ -371,7 +371,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:847 +#: src/game.c:606 src/move.c:849 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -536,51 +536,51 @@ msgstr "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " #. TRANSLATORS: "Move" refers to the choice of #. moves made by the current player (out of a #. selection of 20 moves). -#: src/move.c:277 +#: src/move.c:278 #, c-format msgid "Move ^{%lc^}" msgstr "Move ^{%lc^}" -#: src/move.c:297 +#: src/move.c:299 msgid "^{<2>^} (Declare bankruptcy)" msgstr "^{<2>^} (Declare bankruptcy)" -#: src/move.c:306 +#: src/move.c:308 msgid "^{<3>^} (Save and end the game)" msgstr "^{<3>^} (Save and end the game)" -#: src/move.c:327 +#: src/move.c:329 msgid "^{^} (Quit the game)" msgstr "^{^} (Quit the game)" -#: src/move.c:342 +#: src/move.c:344 msgid "Are you sure? [^{Y^}/^{N^}] " msgstr "Are you sure? [^{Y^}/^{N^}] " -#: src/move.c:359 src/move.c:437 +#: src/move.c:361 src/move.c:439 #, c-format msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:667 src/move.c:674 src/move.c:1018 src/move.c:1052 +#: src/move.c:669 src/move.c:676 src/move.c:1020 src/move.c:1054 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#: src/move.c:668 +#: src/move.c:670 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#: src/move.c:675 +#: src/move.c:677 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:743 +#: src/move.c:745 msgid " New Company " msgstr " New Company " -#: src/move.c:744 +#: src/move.c:746 #, c-format msgid "" "A new company has been formed!\n" @@ -589,7 +589,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:803 +#: src/move.c:805 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -598,7 +598,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:809 +#: src/move.c:811 msgid " Company Merger " msgstr " Company Merger " @@ -609,14 +609,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:829 +#: src/move.c:831 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has #. absorbed another due to a merger. -#: src/move.c:840 +#: src/move.c:842 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -626,7 +626,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:854 +#: src/move.c:856 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -635,7 +635,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:859 +#: src/move.c:861 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -644,7 +644,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:866 +#: src/move.c:868 msgctxt "subtitle" msgid "New" msgstr "New" @@ -652,12 +652,12 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:872 +#: src/move.c:874 msgctxt "subtitle" msgid "Old" msgstr "Old" -#: src/move.c:1019 +#: src/move.c:1021 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -668,7 +668,7 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#: src/move.c:1041 +#: src/move.c:1043 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -687,7 +687,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1069 +#: src/move.c:1071 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -696,16 +696,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1077 +#: src/move.c:1079 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1170 src/exch.c:320 +#: src/move.c:1172 src/exch.c:320 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1172 +#: src/move.c:1174 #, c-format msgid "" "Your debt has amounted to %N!\n" @@ -1409,7 +1409,7 @@ msgstr "Page %d of %d" #. TRANSLATORS: The reason the user is not asked "Press any #. key to continue" is historical: many, many people used to #. ask "where is the key?" :-) -#: src/help.c:473 src/intf.c:3024 +#: src/help.c:473 src/intf.c:3025 msgid "[ Press to continue ] " msgstr "[ Press to continue ] " @@ -1442,16 +1442,16 @@ msgstr "terminal size is too small (%d x %d required)" msgid "Star Traders" msgstr "Star Traders" -#: src/intf.c:1264 +#: src/intf.c:1265 msgid "mkchstr_conv: NUL" msgstr "mkchstr_conv: NUL" -#: src/intf.c:1567 +#: src/intf.c:1568 #, c-format msgid "mkchstr: `%s'" msgstr "mkchstr: ‘%s’" -#: src/intf.c:2024 src/intf.c:2069 +#: src/intf.c:2025 src/intf.c:2070 #, c-format msgid "gettxline: illegal character in string: `%ls'" msgstr "gettxline: illegal character in string: ‘%ls’" @@ -1460,12 +1460,12 @@ msgstr "gettxline: illegal character in string: ‘%ls’" #. "input|No" contain the keycodes used to determine whether a #. user is answering "Yes" or "No" in response to some question. #. Both upper and lower-case versions should be present. -#: src/intf.c:2941 +#: src/intf.c:2942 msgctxt "input|Yes" msgid "Yy" msgstr "Yy" -#: src/intf.c:2943 +#: src/intf.c:2944 msgctxt "input|No" msgid "Nn" msgstr "Nn" @@ -1473,12 +1473,12 @@ msgstr "Nn" #. TRANSLATORS: The strings "Yes" and "No" are printed as a #. response to user input in answer to questions like "Are you #. sure? [Y/N] " -#: src/intf.c:2994 +#: src/intf.c:2995 msgctxt "answer" msgid "Yes" msgstr "Yes" -#: src/intf.c:2996 +#: src/intf.c:2997 msgctxt "answer" msgid "No" msgstr "No" diff --git a/po/en_US.po b/po/en_US.po index f9e65f1..2015c39 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.2\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-29 10:48+1000\n" +"POT-Creation-Date: 2011-08-29 14:13+1000\n" "PO-Revision-Date: 2011-08-28 16:50+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English\n" @@ -302,7 +302,7 @@ msgctxt "input|ContinueGame" msgid "Cc" msgstr "Cc" -#: src/game.c:341 src/move.c:380 +#: src/game.c:341 src/move.c:382 msgid "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " msgstr "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " @@ -371,7 +371,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:847 +#: src/game.c:606 src/move.c:849 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -536,51 +536,51 @@ msgstr "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " #. TRANSLATORS: "Move" refers to the choice of #. moves made by the current player (out of a #. selection of 20 moves). -#: src/move.c:277 +#: src/move.c:278 #, c-format msgid "Move ^{%lc^}" msgstr "Move ^{%lc^}" -#: src/move.c:297 +#: src/move.c:299 msgid "^{<2>^} (Declare bankruptcy)" msgstr "^{<2>^} (Declare bankruptcy)" -#: src/move.c:306 +#: src/move.c:308 msgid "^{<3>^} (Save and end the game)" msgstr "^{<3>^} (Save and end the game)" -#: src/move.c:327 +#: src/move.c:329 msgid "^{^} (Quit the game)" msgstr "^{^} (Quit the game)" -#: src/move.c:342 +#: src/move.c:344 msgid "Are you sure? [^{Y^}/^{N^}] " msgstr "Are you sure? [^{Y^}/^{N^}] " -#: src/move.c:359 src/move.c:437 +#: src/move.c:361 src/move.c:439 #, c-format msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:667 src/move.c:674 src/move.c:1018 src/move.c:1052 +#: src/move.c:669 src/move.c:676 src/move.c:1020 src/move.c:1054 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#: src/move.c:668 +#: src/move.c:670 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#: src/move.c:675 +#: src/move.c:677 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:743 +#: src/move.c:745 msgid " New Company " msgstr " New Company " -#: src/move.c:744 +#: src/move.c:746 #, c-format msgid "" "A new company has been formed!\n" @@ -589,7 +589,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:803 +#: src/move.c:805 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -598,7 +598,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:809 +#: src/move.c:811 msgid " Company Merger " msgstr " Company Merger " @@ -609,14 +609,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:829 +#: src/move.c:831 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has #. absorbed another due to a merger. -#: src/move.c:840 +#: src/move.c:842 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -626,7 +626,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:854 +#: src/move.c:856 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -635,7 +635,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:859 +#: src/move.c:861 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -644,7 +644,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:866 +#: src/move.c:868 msgctxt "subtitle" msgid "New" msgstr "New" @@ -652,12 +652,12 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:872 +#: src/move.c:874 msgctxt "subtitle" msgid "Old" msgstr "Old" -#: src/move.c:1019 +#: src/move.c:1021 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -668,7 +668,7 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#: src/move.c:1041 +#: src/move.c:1043 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -687,7 +687,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1069 +#: src/move.c:1071 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -696,16 +696,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1077 +#: src/move.c:1079 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1170 src/exch.c:320 +#: src/move.c:1172 src/exch.c:320 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1172 +#: src/move.c:1174 #, c-format msgid "" "Your debt has amounted to %N!\n" @@ -1409,7 +1409,7 @@ msgstr "Page %d of %d" #. TRANSLATORS: The reason the user is not asked "Press any #. key to continue" is historical: many, many people used to #. ask "where is the key?" :-) -#: src/help.c:473 src/intf.c:3024 +#: src/help.c:473 src/intf.c:3025 msgid "[ Press to continue ] " msgstr "[ Press to continue ] " @@ -1442,16 +1442,16 @@ msgstr "terminal size is too small (%d x %d required)" msgid "Star Traders" msgstr "Star Traders" -#: src/intf.c:1264 +#: src/intf.c:1265 msgid "mkchstr_conv: NUL" msgstr "mkchstr_conv: NUL" -#: src/intf.c:1567 +#: src/intf.c:1568 #, c-format msgid "mkchstr: `%s'" msgstr "mkchstr: ‘%s’" -#: src/intf.c:2024 src/intf.c:2069 +#: src/intf.c:2025 src/intf.c:2070 #, c-format msgid "gettxline: illegal character in string: `%ls'" msgstr "gettxline: illegal character in string: ‘%ls’" @@ -1460,12 +1460,12 @@ msgstr "gettxline: illegal character in string: ‘%ls’" #. "input|No" contain the keycodes used to determine whether a #. user is answering "Yes" or "No" in response to some question. #. Both upper and lower-case versions should be present. -#: src/intf.c:2941 +#: src/intf.c:2942 msgctxt "input|Yes" msgid "Yy" msgstr "Yy" -#: src/intf.c:2943 +#: src/intf.c:2944 msgctxt "input|No" msgid "Nn" msgstr "Nn" @@ -1473,12 +1473,12 @@ msgstr "Nn" #. TRANSLATORS: The strings "Yes" and "No" are printed as a #. response to user input in answer to questions like "Are you #. sure? [Y/N] " -#: src/intf.c:2994 +#: src/intf.c:2995 msgctxt "answer" msgid "Yes" msgstr "Yes" -#: src/intf.c:2996 +#: src/intf.c:2997 msgctxt "answer" msgid "No" msgstr "No" From 917ed49975c0250d408d94e5653f18a2d154ec95 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Tue, 30 Aug 2011 08:13:28 +1000 Subject: [PATCH 03/18] Start preparing for version 7.3: bug fixes and a Russian translation --- INSTALL | 8 ++++---- NEWS | 6 ++++++ configure.ac | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/INSTALL b/INSTALL index 5308e8e..c48a8ff 100644 --- a/INSTALL +++ b/INSTALL @@ -102,12 +102,12 @@ You can also run configure in a separate build-only directory tree. This feature requires GNU Make and allows you to keep the source code tree from being modified by the compilation process. To use this option, create a separate build directory, then run configure. For example, if you placed -the Star Traders source code tree in $HOME/src/trader-7.2, you could run +the Star Traders source code tree in $HOME/src/trader-7.3, you could run something like: - mkdir $HOME/build/trader-build-7.2 - cd $HOME/build/trader-build-7.2 - $HOME/src/trader-7.2/configure + mkdir $HOME/build/trader-build-7.3 + cd $HOME/build/trader-build-7.3 + $HOME/src/trader-7.3/configure Once again, the Autoconf manual describes these options (and many others): diff --git a/NEWS b/NEWS index e5868ab..81b6552 100644 --- a/NEWS +++ b/NEWS @@ -15,6 +15,12 @@ consult the Subversion repository for "trader" on The ZAP Group web server at http://www.zap.org.au/services/svn/. +Version 7.3 (not yet released) +------------------------------ + +@@@ Minor bug fixes. Russian translation. + + Version 7.2 (29th August, 2011) ------------------------------- diff --git a/configure.ac b/configure.ac index c65dafc..68961b2 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,7 @@ dnl You should have received a copy of the GNU General Public License dnl along with this program. If not, see http://www.gnu.org/licenses/. -AC_INIT([Star Traders], [7.2], [J.Zaitseff@zap.org.au], [trader], [http://www.zap.org.au/software/trader/]) +AC_INIT([Star Traders], [7.3], [J.Zaitseff@zap.org.au], [trader], [http://www.zap.org.au/software/trader/]) AC_DEFINE([PACKAGE_AUTHOR], ["John Zaitseff"], [Package author]) AC_PREREQ([2.67]) From 7fba9f88447a4f5440acec99b2bc22f8eab1c9ab Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Tue, 30 Aug 2011 08:28:05 +1000 Subject: [PATCH 04/18] Update the version number in the PO files for Star Traders 7.3 --- po/en_AU.po | 4 ++-- po/en_CA.po | 4 ++-- po/en_GB.po | 4 ++-- po/en_US.po | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/po/en_AU.po b/po/en_AU.po index 38a05e6..e93fc24 100644 --- a/po/en_AU.po +++ b/po/en_AU.po @@ -12,10 +12,10 @@ # msgid "" msgstr "" -"Project-Id-Version: trader 7.2\n" +"Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" "POT-Creation-Date: 2011-08-29 14:13+1000\n" -"PO-Revision-Date: 2011-08-28 17:03+1000\n" +"PO-Revision-Date: 2011-08-30 08:26+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Australian)\n" "Language: en_AU\n" diff --git a/po/en_CA.po b/po/en_CA.po index dd009cf..69c737f 100644 --- a/po/en_CA.po +++ b/po/en_CA.po @@ -12,10 +12,10 @@ # msgid "" msgstr "" -"Project-Id-Version: trader 7.2\n" +"Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" "POT-Creation-Date: 2011-08-29 14:13+1000\n" -"PO-Revision-Date: 2011-08-28 17:01+1000\n" +"PO-Revision-Date: 2011-08-30 08:26+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Canadian)\n" "Language: en_CA\n" diff --git a/po/en_GB.po b/po/en_GB.po index 41d0304..90a671b 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -12,10 +12,10 @@ # msgid "" msgstr "" -"Project-Id-Version: trader 7.2\n" +"Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" "POT-Creation-Date: 2011-08-29 14:13+1000\n" -"PO-Revision-Date: 2011-08-28 17:03+1000\n" +"PO-Revision-Date: 2011-08-30 08:26+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (British)\n" "Language: en_GB\n" diff --git a/po/en_US.po b/po/en_US.po index 2015c39..d40ce75 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -12,10 +12,10 @@ # msgid "" msgstr "" -"Project-Id-Version: trader 7.2\n" +"Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" "POT-Creation-Date: 2011-08-29 14:13+1000\n" -"PO-Revision-Date: 2011-08-28 16:50+1000\n" +"PO-Revision-Date: 2011-08-30 08:27+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English\n" "Language: en_US\n" From 74aa3e84dfceb030221c66de9b6ecb572ba7cdd9 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Tue, 30 Aug 2011 09:15:15 +1000 Subject: [PATCH 05/18] Fix a couple of display bugs Firstly, Ncurses addchstr() and family do not work, it seems, with multibyte strings, so use addch() instead. Secondly, PRINTABLE_MAP_VAL returns a wchar_t wide character, not a byte-sized char. --- src/exch.c | 5 ++--- src/move.c | 8 ++++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/exch.c b/src/exch.c index 3d4d43b..da88c29 100644 --- a/src/exch.c +++ b/src/exch.c @@ -152,9 +152,8 @@ void exchange_stock (void) for (line = 6, i = 0; i < MAX_COMPANIES; i++) { if (company[i].on_map) { - mvwaddch(curwin, line, 2, PRINTABLE_MAP_VAL(COMPANY_TO_MAP(i)) - | attr_choice); - + left(curwin, line, 2, attr_choice, 0, 0, 1, "%lc", + (wint_t) PRINTABLE_MAP_VAL(COMPANY_TO_MAP(i))); left(curwin, line, 4, attr_normal, 0, 0, 1, "%ls", company[i].name); diff --git a/src/move.c b/src/move.c index 03c819e..40f4dd8 100644 --- a/src/move.c +++ b/src/move.c @@ -219,8 +219,12 @@ selection_t get_move (void) // Display current move choices on the galaxy map for (int i = 0; i < NUMBER_MOVES; i++) { - mvwaddchstr(curwin, game_move[i].y + 3, game_move[i].x * 2 + 2, - CHTYPE_GAME_MOVE(i)); + chtype *movestr = CHTYPE_GAME_MOVE(i); + + wmove(curwin, game_move[i].y + 3, game_move[i].x * 2 + 2); + while (*movestr != 0) { + waddch(curwin, *movestr++); + } } wrefresh(curwin); From 0a518102ec465032b9fb73d34308f07208e56b48 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Tue, 30 Aug 2011 09:16:45 +1000 Subject: [PATCH 06/18] Update corresponding source line numbers --- po/en_AU.po | 160 ++++++++++++++++++++++++++-------------------------- po/en_CA.po | 160 ++++++++++++++++++++++++++-------------------------- po/en_GB.po | 160 ++++++++++++++++++++++++++-------------------------- po/en_US.po | 160 ++++++++++++++++++++++++++-------------------------- 4 files changed, 320 insertions(+), 320 deletions(-) diff --git a/po/en_AU.po b/po/en_AU.po index e93fc24..379cffd 100644 --- a/po/en_AU.po +++ b/po/en_AU.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-29 14:13+1000\n" +"POT-Creation-Date: 2011-08-30 09:08+1000\n" "PO-Revision-Date: 2011-08-30 08:26+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Australian)\n" @@ -302,7 +302,7 @@ msgctxt "input|ContinueGame" msgid "Cc" msgstr "Cc" -#: src/game.c:341 src/move.c:382 +#: src/game.c:341 src/move.c:386 msgid "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " msgstr "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " @@ -371,7 +371,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:849 +#: src/game.c:606 src/move.c:853 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -497,38 +497,38 @@ msgctxt "label" msgid "Total value: " msgstr "Total value: " -#: src/game.c:800 src/exch.c:323 +#: src/game.c:800 src/exch.c:322 msgctxt "label" msgid "Current cash: " msgstr "Current cash: " -#: src/game.c:807 src/exch.c:331 +#: src/game.c:807 src/exch.c:330 msgctxt "label" msgid "Current debt: " msgstr "Current debt: " -#: src/game.c:813 src/exch.c:336 +#: src/game.c:813 src/exch.c:335 msgctxt "label" msgid "Interest rate: " msgstr "Interest rate: " -#: src/move.c:235 src/exch.c:183 +#: src/move.c:239 src/exch.c:182 msgid "^{<1>^} Display stock portfolio" msgstr "^{<1>^} Display stock portfolio" -#: src/move.c:237 +#: src/move.c:241 msgid "^{<2>^} Declare bankruptcy" msgstr "^{<2>^} Declare bankruptcy" -#: src/move.c:239 +#: src/move.c:243 msgid "^{<3>^} Save and end the game" msgstr "^{<3>^} Save and end the game" -#: src/move.c:241 +#: src/move.c:245 msgid "^{^} Quit the game" msgstr "^{^} Quit the game" -#: src/move.c:245 +#: src/move.c:249 #, c-format msgid "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " msgstr "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " @@ -536,51 +536,51 @@ msgstr "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " #. TRANSLATORS: "Move" refers to the choice of #. moves made by the current player (out of a #. selection of 20 moves). -#: src/move.c:278 +#: src/move.c:282 #, c-format msgid "Move ^{%lc^}" msgstr "Move ^{%lc^}" -#: src/move.c:299 +#: src/move.c:303 msgid "^{<2>^} (Declare bankruptcy)" msgstr "^{<2>^} (Declare bankruptcy)" -#: src/move.c:308 +#: src/move.c:312 msgid "^{<3>^} (Save and end the game)" msgstr "^{<3>^} (Save and end the game)" -#: src/move.c:329 +#: src/move.c:333 msgid "^{^} (Quit the game)" msgstr "^{^} (Quit the game)" -#: src/move.c:344 +#: src/move.c:348 msgid "Are you sure? [^{Y^}/^{N^}] " msgstr "Are you sure? [^{Y^}/^{N^}] " -#: src/move.c:361 src/move.c:439 +#: src/move.c:365 src/move.c:443 #, c-format msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:669 src/move.c:676 src/move.c:1020 src/move.c:1054 +#: src/move.c:673 src/move.c:680 src/move.c:1024 src/move.c:1058 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#: src/move.c:670 +#: src/move.c:674 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#: src/move.c:677 +#: src/move.c:681 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:745 +#: src/move.c:749 msgid " New Company " msgstr " New Company " -#: src/move.c:746 +#: src/move.c:750 #, c-format msgid "" "A new company has been formed!\n" @@ -589,7 +589,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:805 +#: src/move.c:809 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -598,7 +598,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:811 +#: src/move.c:815 msgid " Company Merger " msgstr " Company Merger " @@ -609,14 +609,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:831 +#: src/move.c:835 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has #. absorbed another due to a merger. -#: src/move.c:842 +#: src/move.c:846 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -626,7 +626,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:856 +#: src/move.c:860 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -635,7 +635,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:861 +#: src/move.c:865 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -644,7 +644,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:868 +#: src/move.c:872 msgctxt "subtitle" msgid "New" msgstr "New" @@ -652,12 +652,12 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:874 +#: src/move.c:878 msgctxt "subtitle" msgid "Old" msgstr "Old" -#: src/move.c:1021 +#: src/move.c:1025 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -668,7 +668,7 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#: src/move.c:1043 +#: src/move.c:1047 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -687,7 +687,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1071 +#: src/move.c:1075 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -696,16 +696,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1079 +#: src/move.c:1083 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1172 src/exch.c:320 +#: src/move.c:1176 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1174 +#: src/move.c:1178 #, c-format msgid "" "Your debt has amounted to %N!\n" @@ -746,19 +746,19 @@ msgstr "" "Shares\n" "issued" -#: src/exch.c:185 +#: src/exch.c:184 msgid "^{<2>^} Display galaxy map" msgstr "^{<2>^} Display galaxy map" -#: src/exch.c:187 +#: src/exch.c:186 msgid "^{<3>^} Visit the Trading Bank" msgstr "^{<3>^} Visit the Trading Bank" -#: src/exch.c:189 +#: src/exch.c:188 msgid "^{<4>^} Exit the Stock Exchange" msgstr "^{<4>^} Exit the Stock Exchange" -#: src/exch.c:192 +#: src/exch.c:191 msgid "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " msgstr "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " @@ -771,7 +771,7 @@ msgstr "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " #. #. Note that some of these labels are used for both the Player #. Status window and the Trading Bank window. -#: src/exch.c:350 +#: src/exch.c:349 msgctxt "label" msgid "Credit limit: " msgstr "Credit limit: " @@ -780,56 +780,56 @@ msgstr "Credit limit: " #. from the Bank" menu options must all be the same length #. (ie, padded with trailing spaces as required). The maximum #. length is 72 characters. -#: src/exch.c:365 +#: src/exch.c:364 msgid "^{<1>^} Borrow money " msgstr "^{<1>^} Borrow money " -#: src/exch.c:367 +#: src/exch.c:366 msgid "^{<2>^} Repay debt " msgstr "^{<2>^} Repay debt " -#: src/exch.c:369 +#: src/exch.c:368 msgid "^{<3>^} Exit from the Bank" msgstr "^{<3>^} Exit from the Bank" -#: src/exch.c:372 +#: src/exch.c:371 msgid "Enter selection [^{1^}-^{3^}]: " msgstr "Enter selection [^{1^}-^{3^}]: " -#: src/exch.c:425 +#: src/exch.c:424 msgid " Insufficient Credit Limit " msgstr " Insufficient Credit Limit " -#: src/exch.c:426 +#: src/exch.c:425 msgid "The Bank will not lend you any more money." msgstr "The Bank will not lend you any more money." -#: src/exch.c:446 +#: src/exch.c:445 msgid "How much do you wish to borrow? " msgstr "How much do you wish to borrow? " -#: src/exch.c:478 +#: src/exch.c:477 msgid " No Debt " msgstr " No Debt " -#: src/exch.c:479 +#: src/exch.c:478 msgid "You have no debt to repay." msgstr "You have no debt to repay." -#: src/exch.c:483 +#: src/exch.c:482 msgid " No Cash " msgstr " No Cash " -#: src/exch.c:484 +#: src/exch.c:483 msgid "You have no cash with which to repay the debt!" msgstr "You have no cash with which to repay the debt!" -#: src/exch.c:504 +#: src/exch.c:503 msgid "How much do you wish to repay? " msgstr "How much do you wish to repay? " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:580 +#: src/exch.c:579 #, c-format msgid " Stock Transaction in %ls " msgstr " Stock Transaction in %ls " @@ -842,27 +842,27 @@ msgstr " Stock Transaction in %ls " #. and must have at least one trailing space for the output #. routines to work correctly. The maximum length of each #. label is 22 characters. -#: src/exch.c:591 +#: src/exch.c:590 msgctxt "label|Stock A" msgid "Shares issued: " msgstr "Shares issued: " #. TRANSLATORS: "Shares left" is the number of shares that are #. left to be purchased in the current company. -#: src/exch.c:599 +#: src/exch.c:598 msgctxt "label|Stock A" msgid "Shares left: " msgstr "Shares left: " #. TRANSLATORS: "Price per share" is the cost of each share in #. the current company. -#: src/exch.c:606 +#: src/exch.c:605 msgctxt "label|Stock A" msgid "Price per share: " msgstr "Price per share: " #. TRANSLATORS: "Return" is the share return as a percentage. -#: src/exch.c:612 +#: src/exch.c:611 msgctxt "label|Stock A" msgid "Return: " msgstr "Return: " @@ -875,56 +875,56 @@ msgstr "Return: " #. least one trailing space for the display routines to work #. correctly. The maximum length of each label is 18 #. characters. -#: src/exch.c:625 +#: src/exch.c:624 msgctxt "label|Stock B" msgid "Current holdings: " msgstr "Current holdings: " #. TRANSLATORS: "Percentage owned" is the current player's #. percentage ownership in this particular company. -#: src/exch.c:632 +#: src/exch.c:631 msgctxt "label|Stock B" msgid "Percentage owned: " msgstr "Percentage owned: " -#: src/exch.c:637 +#: src/exch.c:636 msgctxt "label|Stock B" msgid "Current cash: " msgstr "Current cash: " -#: src/exch.c:648 +#: src/exch.c:647 msgid "^{<1>^} Buy stock from company" msgstr "^{<1>^} Buy stock from company" -#: src/exch.c:650 +#: src/exch.c:649 msgid "^{<2>^} Sell stock back to company" msgstr "^{<2>^} Sell stock back to company" -#: src/exch.c:652 +#: src/exch.c:651 msgid "^{<3>^} Bid company to issue more shares" msgstr "^{<3>^} Bid company to issue more shares" -#: src/exch.c:654 +#: src/exch.c:653 msgid "^{<4>^} Exit to the Stock Exchange" msgstr "^{<4>^} Exit to the Stock Exchange" -#: src/exch.c:657 +#: src/exch.c:656 msgid "Enter selection [^{1^}-^{4^}]: " msgstr "Enter selection [^{1^}-^{4^}]: " -#: src/exch.c:713 +#: src/exch.c:712 msgid " No Shares Available " msgstr " No Shares Available " -#: src/exch.c:714 +#: src/exch.c:713 msgid "No more shares are available for purchase." msgstr "No more shares are available for purchase." -#: src/exch.c:718 +#: src/exch.c:717 msgid " Insufficient Cash " msgstr " Insufficient Cash " -#: src/exch.c:719 +#: src/exch.c:718 msgid "" "You do not have enough cash\n" "to purchase additional shares." @@ -932,42 +932,42 @@ msgstr "" "You do not have enough cash\n" "to purchase additional shares." -#: src/exch.c:730 +#: src/exch.c:729 #, c-format msgid "You can purchase ^{one^} share." msgid_plural "You can purchase up to ^{%'ld^} shares." msgstr[0] "You can purchase ^{one^} share." msgstr[1] "You can purchase up to ^{%'ld^} shares." -#: src/exch.c:736 +#: src/exch.c:735 msgid "How many shares do you wish to purchase? " msgstr "How many shares do you wish to purchase? " -#: src/exch.c:757 +#: src/exch.c:756 msgid " No Shares " msgstr " No Shares " -#: src/exch.c:758 +#: src/exch.c:757 msgid "You do not have any shares to sell." msgstr "You do not have any shares to sell." -#: src/exch.c:765 +#: src/exch.c:764 #, c-format msgid "You can sell ^{one^} share." msgid_plural "You can sell up to ^{%'ld^} shares." msgstr[0] "You can sell ^{one^} share." msgstr[1] "You can sell up to ^{%'ld^} shares." -#: src/exch.c:771 +#: src/exch.c:770 msgid "How many shares do you wish to sell? " msgstr "How many shares do you wish to sell? " -#: src/exch.c:799 +#: src/exch.c:798 msgid " No Shares Issued " msgstr " No Shares Issued " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:801 +#: src/exch.c:800 #, c-format msgid "" "%ls has refused\n" @@ -976,12 +976,12 @@ msgstr "" "%ls has refused\n" "to issue more shares." -#: src/exch.c:806 +#: src/exch.c:805 msgid " Shares Issued " msgstr " Shares Issued " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:808 +#: src/exch.c:807 #, c-format msgid "" "%ls has issued\n" diff --git a/po/en_CA.po b/po/en_CA.po index 69c737f..a14c344 100644 --- a/po/en_CA.po +++ b/po/en_CA.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-29 14:13+1000\n" +"POT-Creation-Date: 2011-08-30 09:08+1000\n" "PO-Revision-Date: 2011-08-30 08:26+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Canadian)\n" @@ -302,7 +302,7 @@ msgctxt "input|ContinueGame" msgid "Cc" msgstr "Cc" -#: src/game.c:341 src/move.c:382 +#: src/game.c:341 src/move.c:386 msgid "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " msgstr "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " @@ -371,7 +371,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:849 +#: src/game.c:606 src/move.c:853 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -497,38 +497,38 @@ msgctxt "label" msgid "Total value: " msgstr "Total value: " -#: src/game.c:800 src/exch.c:323 +#: src/game.c:800 src/exch.c:322 msgctxt "label" msgid "Current cash: " msgstr "Current cash: " -#: src/game.c:807 src/exch.c:331 +#: src/game.c:807 src/exch.c:330 msgctxt "label" msgid "Current debt: " msgstr "Current debt: " -#: src/game.c:813 src/exch.c:336 +#: src/game.c:813 src/exch.c:335 msgctxt "label" msgid "Interest rate: " msgstr "Interest rate: " -#: src/move.c:235 src/exch.c:183 +#: src/move.c:239 src/exch.c:182 msgid "^{<1>^} Display stock portfolio" msgstr "^{<1>^} Display stock portfolio" -#: src/move.c:237 +#: src/move.c:241 msgid "^{<2>^} Declare bankruptcy" msgstr "^{<2>^} Declare bankruptcy" -#: src/move.c:239 +#: src/move.c:243 msgid "^{<3>^} Save and end the game" msgstr "^{<3>^} Save and end the game" -#: src/move.c:241 +#: src/move.c:245 msgid "^{^} Quit the game" msgstr "^{^} Quit the game" -#: src/move.c:245 +#: src/move.c:249 #, c-format msgid "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " msgstr "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " @@ -536,51 +536,51 @@ msgstr "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " #. TRANSLATORS: "Move" refers to the choice of #. moves made by the current player (out of a #. selection of 20 moves). -#: src/move.c:278 +#: src/move.c:282 #, c-format msgid "Move ^{%lc^}" msgstr "Move ^{%lc^}" -#: src/move.c:299 +#: src/move.c:303 msgid "^{<2>^} (Declare bankruptcy)" msgstr "^{<2>^} (Declare bankruptcy)" -#: src/move.c:308 +#: src/move.c:312 msgid "^{<3>^} (Save and end the game)" msgstr "^{<3>^} (Save and end the game)" -#: src/move.c:329 +#: src/move.c:333 msgid "^{^} (Quit the game)" msgstr "^{^} (Quit the game)" -#: src/move.c:344 +#: src/move.c:348 msgid "Are you sure? [^{Y^}/^{N^}] " msgstr "Are you sure? [^{Y^}/^{N^}] " -#: src/move.c:361 src/move.c:439 +#: src/move.c:365 src/move.c:443 #, c-format msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:669 src/move.c:676 src/move.c:1020 src/move.c:1054 +#: src/move.c:673 src/move.c:680 src/move.c:1024 src/move.c:1058 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#: src/move.c:670 +#: src/move.c:674 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#: src/move.c:677 +#: src/move.c:681 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:745 +#: src/move.c:749 msgid " New Company " msgstr " New Company " -#: src/move.c:746 +#: src/move.c:750 #, c-format msgid "" "A new company has been formed!\n" @@ -589,7 +589,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:805 +#: src/move.c:809 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -598,7 +598,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:811 +#: src/move.c:815 msgid " Company Merger " msgstr " Company Merger " @@ -609,14 +609,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:831 +#: src/move.c:835 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has #. absorbed another due to a merger. -#: src/move.c:842 +#: src/move.c:846 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -626,7 +626,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:856 +#: src/move.c:860 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -635,7 +635,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:861 +#: src/move.c:865 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -644,7 +644,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:868 +#: src/move.c:872 msgctxt "subtitle" msgid "New" msgstr "New" @@ -652,12 +652,12 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:874 +#: src/move.c:878 msgctxt "subtitle" msgid "Old" msgstr "Old" -#: src/move.c:1021 +#: src/move.c:1025 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -668,7 +668,7 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#: src/move.c:1043 +#: src/move.c:1047 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -687,7 +687,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1071 +#: src/move.c:1075 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -696,16 +696,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1079 +#: src/move.c:1083 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1172 src/exch.c:320 +#: src/move.c:1176 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1174 +#: src/move.c:1178 #, c-format msgid "" "Your debt has amounted to %N!\n" @@ -746,19 +746,19 @@ msgstr "" "Shares\n" "issued" -#: src/exch.c:185 +#: src/exch.c:184 msgid "^{<2>^} Display galaxy map" msgstr "^{<2>^} Display galaxy map" -#: src/exch.c:187 +#: src/exch.c:186 msgid "^{<3>^} Visit the Trading Bank" msgstr "^{<3>^} Visit the Trading Bank" -#: src/exch.c:189 +#: src/exch.c:188 msgid "^{<4>^} Exit the Stock Exchange" msgstr "^{<4>^} Exit the Stock Exchange" -#: src/exch.c:192 +#: src/exch.c:191 msgid "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " msgstr "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " @@ -771,7 +771,7 @@ msgstr "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " #. #. Note that some of these labels are used for both the Player #. Status window and the Trading Bank window. -#: src/exch.c:350 +#: src/exch.c:349 msgctxt "label" msgid "Credit limit: " msgstr "Credit limit: " @@ -780,56 +780,56 @@ msgstr "Credit limit: " #. from the Bank" menu options must all be the same length #. (ie, padded with trailing spaces as required). The maximum #. length is 72 characters. -#: src/exch.c:365 +#: src/exch.c:364 msgid "^{<1>^} Borrow money " msgstr "^{<1>^} Borrow money " -#: src/exch.c:367 +#: src/exch.c:366 msgid "^{<2>^} Repay debt " msgstr "^{<2>^} Repay debt " -#: src/exch.c:369 +#: src/exch.c:368 msgid "^{<3>^} Exit from the Bank" msgstr "^{<3>^} Exit from the Bank" -#: src/exch.c:372 +#: src/exch.c:371 msgid "Enter selection [^{1^}-^{3^}]: " msgstr "Enter selection [^{1^}-^{3^}]: " -#: src/exch.c:425 +#: src/exch.c:424 msgid " Insufficient Credit Limit " msgstr " Insufficient Credit Limit " -#: src/exch.c:426 +#: src/exch.c:425 msgid "The Bank will not lend you any more money." msgstr "The Bank will not lend you any more money." -#: src/exch.c:446 +#: src/exch.c:445 msgid "How much do you wish to borrow? " msgstr "How much do you wish to borrow? " -#: src/exch.c:478 +#: src/exch.c:477 msgid " No Debt " msgstr " No Debt " -#: src/exch.c:479 +#: src/exch.c:478 msgid "You have no debt to repay." msgstr "You have no debt to repay." -#: src/exch.c:483 +#: src/exch.c:482 msgid " No Cash " msgstr " No Cash " -#: src/exch.c:484 +#: src/exch.c:483 msgid "You have no cash with which to repay the debt!" msgstr "You have no cash with which to repay the debt!" -#: src/exch.c:504 +#: src/exch.c:503 msgid "How much do you wish to repay? " msgstr "How much do you wish to repay? " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:580 +#: src/exch.c:579 #, c-format msgid " Stock Transaction in %ls " msgstr " Stock Transaction in %ls " @@ -842,27 +842,27 @@ msgstr " Stock Transaction in %ls " #. and must have at least one trailing space for the output #. routines to work correctly. The maximum length of each #. label is 22 characters. -#: src/exch.c:591 +#: src/exch.c:590 msgctxt "label|Stock A" msgid "Shares issued: " msgstr "Shares issued: " #. TRANSLATORS: "Shares left" is the number of shares that are #. left to be purchased in the current company. -#: src/exch.c:599 +#: src/exch.c:598 msgctxt "label|Stock A" msgid "Shares left: " msgstr "Shares left: " #. TRANSLATORS: "Price per share" is the cost of each share in #. the current company. -#: src/exch.c:606 +#: src/exch.c:605 msgctxt "label|Stock A" msgid "Price per share: " msgstr "Price per share: " #. TRANSLATORS: "Return" is the share return as a percentage. -#: src/exch.c:612 +#: src/exch.c:611 msgctxt "label|Stock A" msgid "Return: " msgstr "Return: " @@ -875,56 +875,56 @@ msgstr "Return: " #. least one trailing space for the display routines to work #. correctly. The maximum length of each label is 18 #. characters. -#: src/exch.c:625 +#: src/exch.c:624 msgctxt "label|Stock B" msgid "Current holdings: " msgstr "Current holdings: " #. TRANSLATORS: "Percentage owned" is the current player's #. percentage ownership in this particular company. -#: src/exch.c:632 +#: src/exch.c:631 msgctxt "label|Stock B" msgid "Percentage owned: " msgstr "Percentage owned: " -#: src/exch.c:637 +#: src/exch.c:636 msgctxt "label|Stock B" msgid "Current cash: " msgstr "Current cash: " -#: src/exch.c:648 +#: src/exch.c:647 msgid "^{<1>^} Buy stock from company" msgstr "^{<1>^} Buy stock from company" -#: src/exch.c:650 +#: src/exch.c:649 msgid "^{<2>^} Sell stock back to company" msgstr "^{<2>^} Sell stock back to company" -#: src/exch.c:652 +#: src/exch.c:651 msgid "^{<3>^} Bid company to issue more shares" msgstr "^{<3>^} Bid company to issue more shares" -#: src/exch.c:654 +#: src/exch.c:653 msgid "^{<4>^} Exit to the Stock Exchange" msgstr "^{<4>^} Exit to the Stock Exchange" -#: src/exch.c:657 +#: src/exch.c:656 msgid "Enter selection [^{1^}-^{4^}]: " msgstr "Enter selection [^{1^}-^{4^}]: " -#: src/exch.c:713 +#: src/exch.c:712 msgid " No Shares Available " msgstr " No Shares Available " -#: src/exch.c:714 +#: src/exch.c:713 msgid "No more shares are available for purchase." msgstr "No more shares are available for purchase." -#: src/exch.c:718 +#: src/exch.c:717 msgid " Insufficient Cash " msgstr " Insufficient Cash " -#: src/exch.c:719 +#: src/exch.c:718 msgid "" "You do not have enough cash\n" "to purchase additional shares." @@ -932,42 +932,42 @@ msgstr "" "You do not have enough cash\n" "to purchase additional shares." -#: src/exch.c:730 +#: src/exch.c:729 #, c-format msgid "You can purchase ^{one^} share." msgid_plural "You can purchase up to ^{%'ld^} shares." msgstr[0] "You can purchase ^{one^} share." msgstr[1] "You can purchase up to ^{%'ld^} shares." -#: src/exch.c:736 +#: src/exch.c:735 msgid "How many shares do you wish to purchase? " msgstr "How many shares do you wish to purchase? " -#: src/exch.c:757 +#: src/exch.c:756 msgid " No Shares " msgstr " No Shares " -#: src/exch.c:758 +#: src/exch.c:757 msgid "You do not have any shares to sell." msgstr "You do not have any shares to sell." -#: src/exch.c:765 +#: src/exch.c:764 #, c-format msgid "You can sell ^{one^} share." msgid_plural "You can sell up to ^{%'ld^} shares." msgstr[0] "You can sell ^{one^} share." msgstr[1] "You can sell up to ^{%'ld^} shares." -#: src/exch.c:771 +#: src/exch.c:770 msgid "How many shares do you wish to sell? " msgstr "How many shares do you wish to sell? " -#: src/exch.c:799 +#: src/exch.c:798 msgid " No Shares Issued " msgstr " No Shares Issued " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:801 +#: src/exch.c:800 #, c-format msgid "" "%ls has refused\n" @@ -976,12 +976,12 @@ msgstr "" "%ls has refused\n" "to issue more shares." -#: src/exch.c:806 +#: src/exch.c:805 msgid " Shares Issued " msgstr " Shares Issued " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:808 +#: src/exch.c:807 #, c-format msgid "" "%ls has issued\n" diff --git a/po/en_GB.po b/po/en_GB.po index 90a671b..4d2403e 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-29 14:13+1000\n" +"POT-Creation-Date: 2011-08-30 09:08+1000\n" "PO-Revision-Date: 2011-08-30 08:26+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (British)\n" @@ -302,7 +302,7 @@ msgctxt "input|ContinueGame" msgid "Cc" msgstr "Cc" -#: src/game.c:341 src/move.c:382 +#: src/game.c:341 src/move.c:386 msgid "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " msgstr "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " @@ -371,7 +371,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:849 +#: src/game.c:606 src/move.c:853 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -497,38 +497,38 @@ msgctxt "label" msgid "Total value: " msgstr "Total value: " -#: src/game.c:800 src/exch.c:323 +#: src/game.c:800 src/exch.c:322 msgctxt "label" msgid "Current cash: " msgstr "Current cash: " -#: src/game.c:807 src/exch.c:331 +#: src/game.c:807 src/exch.c:330 msgctxt "label" msgid "Current debt: " msgstr "Current debt: " -#: src/game.c:813 src/exch.c:336 +#: src/game.c:813 src/exch.c:335 msgctxt "label" msgid "Interest rate: " msgstr "Interest rate: " -#: src/move.c:235 src/exch.c:183 +#: src/move.c:239 src/exch.c:182 msgid "^{<1>^} Display stock portfolio" msgstr "^{<1>^} Display stock portfolio" -#: src/move.c:237 +#: src/move.c:241 msgid "^{<2>^} Declare bankruptcy" msgstr "^{<2>^} Declare bankruptcy" -#: src/move.c:239 +#: src/move.c:243 msgid "^{<3>^} Save and end the game" msgstr "^{<3>^} Save and end the game" -#: src/move.c:241 +#: src/move.c:245 msgid "^{^} Quit the game" msgstr "^{^} Quit the game" -#: src/move.c:245 +#: src/move.c:249 #, c-format msgid "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " msgstr "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " @@ -536,51 +536,51 @@ msgstr "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " #. TRANSLATORS: "Move" refers to the choice of #. moves made by the current player (out of a #. selection of 20 moves). -#: src/move.c:278 +#: src/move.c:282 #, c-format msgid "Move ^{%lc^}" msgstr "Move ^{%lc^}" -#: src/move.c:299 +#: src/move.c:303 msgid "^{<2>^} (Declare bankruptcy)" msgstr "^{<2>^} (Declare bankruptcy)" -#: src/move.c:308 +#: src/move.c:312 msgid "^{<3>^} (Save and end the game)" msgstr "^{<3>^} (Save and end the game)" -#: src/move.c:329 +#: src/move.c:333 msgid "^{^} (Quit the game)" msgstr "^{^} (Quit the game)" -#: src/move.c:344 +#: src/move.c:348 msgid "Are you sure? [^{Y^}/^{N^}] " msgstr "Are you sure? [^{Y^}/^{N^}] " -#: src/move.c:361 src/move.c:439 +#: src/move.c:365 src/move.c:443 #, c-format msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:669 src/move.c:676 src/move.c:1020 src/move.c:1054 +#: src/move.c:673 src/move.c:680 src/move.c:1024 src/move.c:1058 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#: src/move.c:670 +#: src/move.c:674 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#: src/move.c:677 +#: src/move.c:681 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:745 +#: src/move.c:749 msgid " New Company " msgstr " New Company " -#: src/move.c:746 +#: src/move.c:750 #, c-format msgid "" "A new company has been formed!\n" @@ -589,7 +589,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:805 +#: src/move.c:809 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -598,7 +598,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:811 +#: src/move.c:815 msgid " Company Merger " msgstr " Company Merger " @@ -609,14 +609,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:831 +#: src/move.c:835 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has #. absorbed another due to a merger. -#: src/move.c:842 +#: src/move.c:846 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -626,7 +626,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:856 +#: src/move.c:860 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -635,7 +635,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:861 +#: src/move.c:865 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -644,7 +644,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:868 +#: src/move.c:872 msgctxt "subtitle" msgid "New" msgstr "New" @@ -652,12 +652,12 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:874 +#: src/move.c:878 msgctxt "subtitle" msgid "Old" msgstr "Old" -#: src/move.c:1021 +#: src/move.c:1025 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -668,7 +668,7 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#: src/move.c:1043 +#: src/move.c:1047 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -687,7 +687,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1071 +#: src/move.c:1075 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -696,16 +696,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1079 +#: src/move.c:1083 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1172 src/exch.c:320 +#: src/move.c:1176 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1174 +#: src/move.c:1178 #, c-format msgid "" "Your debt has amounted to %N!\n" @@ -746,19 +746,19 @@ msgstr "" "Shares\n" "issued" -#: src/exch.c:185 +#: src/exch.c:184 msgid "^{<2>^} Display galaxy map" msgstr "^{<2>^} Display galaxy map" -#: src/exch.c:187 +#: src/exch.c:186 msgid "^{<3>^} Visit the Trading Bank" msgstr "^{<3>^} Visit the Trading Bank" -#: src/exch.c:189 +#: src/exch.c:188 msgid "^{<4>^} Exit the Stock Exchange" msgstr "^{<4>^} Exit the Stock Exchange" -#: src/exch.c:192 +#: src/exch.c:191 msgid "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " msgstr "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " @@ -771,7 +771,7 @@ msgstr "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " #. #. Note that some of these labels are used for both the Player #. Status window and the Trading Bank window. -#: src/exch.c:350 +#: src/exch.c:349 msgctxt "label" msgid "Credit limit: " msgstr "Credit limit: " @@ -780,56 +780,56 @@ msgstr "Credit limit: " #. from the Bank" menu options must all be the same length #. (ie, padded with trailing spaces as required). The maximum #. length is 72 characters. -#: src/exch.c:365 +#: src/exch.c:364 msgid "^{<1>^} Borrow money " msgstr "^{<1>^} Borrow money " -#: src/exch.c:367 +#: src/exch.c:366 msgid "^{<2>^} Repay debt " msgstr "^{<2>^} Repay debt " -#: src/exch.c:369 +#: src/exch.c:368 msgid "^{<3>^} Exit from the Bank" msgstr "^{<3>^} Exit from the Bank" -#: src/exch.c:372 +#: src/exch.c:371 msgid "Enter selection [^{1^}-^{3^}]: " msgstr "Enter selection [^{1^}-^{3^}]: " -#: src/exch.c:425 +#: src/exch.c:424 msgid " Insufficient Credit Limit " msgstr " Insufficient Credit Limit " -#: src/exch.c:426 +#: src/exch.c:425 msgid "The Bank will not lend you any more money." msgstr "The Bank will not lend you any more money." -#: src/exch.c:446 +#: src/exch.c:445 msgid "How much do you wish to borrow? " msgstr "How much do you wish to borrow? " -#: src/exch.c:478 +#: src/exch.c:477 msgid " No Debt " msgstr " No Debt " -#: src/exch.c:479 +#: src/exch.c:478 msgid "You have no debt to repay." msgstr "You have no debt to repay." -#: src/exch.c:483 +#: src/exch.c:482 msgid " No Cash " msgstr " No Cash " -#: src/exch.c:484 +#: src/exch.c:483 msgid "You have no cash with which to repay the debt!" msgstr "You have no cash with which to repay the debt!" -#: src/exch.c:504 +#: src/exch.c:503 msgid "How much do you wish to repay? " msgstr "How much do you wish to repay? " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:580 +#: src/exch.c:579 #, c-format msgid " Stock Transaction in %ls " msgstr " Stock Transaction in %ls " @@ -842,27 +842,27 @@ msgstr " Stock Transaction in %ls " #. and must have at least one trailing space for the output #. routines to work correctly. The maximum length of each #. label is 22 characters. -#: src/exch.c:591 +#: src/exch.c:590 msgctxt "label|Stock A" msgid "Shares issued: " msgstr "Shares issued: " #. TRANSLATORS: "Shares left" is the number of shares that are #. left to be purchased in the current company. -#: src/exch.c:599 +#: src/exch.c:598 msgctxt "label|Stock A" msgid "Shares left: " msgstr "Shares left: " #. TRANSLATORS: "Price per share" is the cost of each share in #. the current company. -#: src/exch.c:606 +#: src/exch.c:605 msgctxt "label|Stock A" msgid "Price per share: " msgstr "Price per share: " #. TRANSLATORS: "Return" is the share return as a percentage. -#: src/exch.c:612 +#: src/exch.c:611 msgctxt "label|Stock A" msgid "Return: " msgstr "Return: " @@ -875,56 +875,56 @@ msgstr "Return: " #. least one trailing space for the display routines to work #. correctly. The maximum length of each label is 18 #. characters. -#: src/exch.c:625 +#: src/exch.c:624 msgctxt "label|Stock B" msgid "Current holdings: " msgstr "Current holdings: " #. TRANSLATORS: "Percentage owned" is the current player's #. percentage ownership in this particular company. -#: src/exch.c:632 +#: src/exch.c:631 msgctxt "label|Stock B" msgid "Percentage owned: " msgstr "Percentage owned: " -#: src/exch.c:637 +#: src/exch.c:636 msgctxt "label|Stock B" msgid "Current cash: " msgstr "Current cash: " -#: src/exch.c:648 +#: src/exch.c:647 msgid "^{<1>^} Buy stock from company" msgstr "^{<1>^} Buy stock from company" -#: src/exch.c:650 +#: src/exch.c:649 msgid "^{<2>^} Sell stock back to company" msgstr "^{<2>^} Sell stock back to company" -#: src/exch.c:652 +#: src/exch.c:651 msgid "^{<3>^} Bid company to issue more shares" msgstr "^{<3>^} Bid company to issue more shares" -#: src/exch.c:654 +#: src/exch.c:653 msgid "^{<4>^} Exit to the Stock Exchange" msgstr "^{<4>^} Exit to the Stock Exchange" -#: src/exch.c:657 +#: src/exch.c:656 msgid "Enter selection [^{1^}-^{4^}]: " msgstr "Enter selection [^{1^}-^{4^}]: " -#: src/exch.c:713 +#: src/exch.c:712 msgid " No Shares Available " msgstr " No Shares Available " -#: src/exch.c:714 +#: src/exch.c:713 msgid "No more shares are available for purchase." msgstr "No more shares are available for purchase." -#: src/exch.c:718 +#: src/exch.c:717 msgid " Insufficient Cash " msgstr " Insufficient Cash " -#: src/exch.c:719 +#: src/exch.c:718 msgid "" "You do not have enough cash\n" "to purchase additional shares." @@ -932,42 +932,42 @@ msgstr "" "You do not have enough cash\n" "to purchase additional shares." -#: src/exch.c:730 +#: src/exch.c:729 #, c-format msgid "You can purchase ^{one^} share." msgid_plural "You can purchase up to ^{%'ld^} shares." msgstr[0] "You can purchase ^{one^} share." msgstr[1] "You can purchase up to ^{%'ld^} shares." -#: src/exch.c:736 +#: src/exch.c:735 msgid "How many shares do you wish to purchase? " msgstr "How many shares do you wish to purchase? " -#: src/exch.c:757 +#: src/exch.c:756 msgid " No Shares " msgstr " No Shares " -#: src/exch.c:758 +#: src/exch.c:757 msgid "You do not have any shares to sell." msgstr "You do not have any shares to sell." -#: src/exch.c:765 +#: src/exch.c:764 #, c-format msgid "You can sell ^{one^} share." msgid_plural "You can sell up to ^{%'ld^} shares." msgstr[0] "You can sell ^{one^} share." msgstr[1] "You can sell up to ^{%'ld^} shares." -#: src/exch.c:771 +#: src/exch.c:770 msgid "How many shares do you wish to sell? " msgstr "How many shares do you wish to sell? " -#: src/exch.c:799 +#: src/exch.c:798 msgid " No Shares Issued " msgstr " No Shares Issued " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:801 +#: src/exch.c:800 #, c-format msgid "" "%ls has refused\n" @@ -976,12 +976,12 @@ msgstr "" "%ls has refused\n" "to issue more shares." -#: src/exch.c:806 +#: src/exch.c:805 msgid " Shares Issued " msgstr " Shares Issued " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:808 +#: src/exch.c:807 #, c-format msgid "" "%ls has issued\n" diff --git a/po/en_US.po b/po/en_US.po index d40ce75..5ca50be 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-29 14:13+1000\n" +"POT-Creation-Date: 2011-08-30 09:08+1000\n" "PO-Revision-Date: 2011-08-30 08:27+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English\n" @@ -302,7 +302,7 @@ msgctxt "input|ContinueGame" msgid "Cc" msgstr "Cc" -#: src/game.c:341 src/move.c:382 +#: src/game.c:341 src/move.c:386 msgid "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " msgstr "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " @@ -371,7 +371,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:849 +#: src/game.c:606 src/move.c:853 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -497,38 +497,38 @@ msgctxt "label" msgid "Total value: " msgstr "Total value: " -#: src/game.c:800 src/exch.c:323 +#: src/game.c:800 src/exch.c:322 msgctxt "label" msgid "Current cash: " msgstr "Current cash: " -#: src/game.c:807 src/exch.c:331 +#: src/game.c:807 src/exch.c:330 msgctxt "label" msgid "Current debt: " msgstr "Current debt: " -#: src/game.c:813 src/exch.c:336 +#: src/game.c:813 src/exch.c:335 msgctxt "label" msgid "Interest rate: " msgstr "Interest rate: " -#: src/move.c:235 src/exch.c:183 +#: src/move.c:239 src/exch.c:182 msgid "^{<1>^} Display stock portfolio" msgstr "^{<1>^} Display stock portfolio" -#: src/move.c:237 +#: src/move.c:241 msgid "^{<2>^} Declare bankruptcy" msgstr "^{<2>^} Declare bankruptcy" -#: src/move.c:239 +#: src/move.c:243 msgid "^{<3>^} Save and end the game" msgstr "^{<3>^} Save and end the game" -#: src/move.c:241 +#: src/move.c:245 msgid "^{^} Quit the game" msgstr "^{^} Quit the game" -#: src/move.c:245 +#: src/move.c:249 #, c-format msgid "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " msgstr "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " @@ -536,51 +536,51 @@ msgstr "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " #. TRANSLATORS: "Move" refers to the choice of #. moves made by the current player (out of a #. selection of 20 moves). -#: src/move.c:278 +#: src/move.c:282 #, c-format msgid "Move ^{%lc^}" msgstr "Move ^{%lc^}" -#: src/move.c:299 +#: src/move.c:303 msgid "^{<2>^} (Declare bankruptcy)" msgstr "^{<2>^} (Declare bankruptcy)" -#: src/move.c:308 +#: src/move.c:312 msgid "^{<3>^} (Save and end the game)" msgstr "^{<3>^} (Save and end the game)" -#: src/move.c:329 +#: src/move.c:333 msgid "^{^} (Quit the game)" msgstr "^{^} (Quit the game)" -#: src/move.c:344 +#: src/move.c:348 msgid "Are you sure? [^{Y^}/^{N^}] " msgstr "Are you sure? [^{Y^}/^{N^}] " -#: src/move.c:361 src/move.c:439 +#: src/move.c:365 src/move.c:443 #, c-format msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:669 src/move.c:676 src/move.c:1020 src/move.c:1054 +#: src/move.c:673 src/move.c:680 src/move.c:1024 src/move.c:1058 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#: src/move.c:670 +#: src/move.c:674 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#: src/move.c:677 +#: src/move.c:681 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:745 +#: src/move.c:749 msgid " New Company " msgstr " New Company " -#: src/move.c:746 +#: src/move.c:750 #, c-format msgid "" "A new company has been formed!\n" @@ -589,7 +589,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:805 +#: src/move.c:809 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -598,7 +598,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:811 +#: src/move.c:815 msgid " Company Merger " msgstr " Company Merger " @@ -609,14 +609,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:831 +#: src/move.c:835 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has #. absorbed another due to a merger. -#: src/move.c:842 +#: src/move.c:846 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -626,7 +626,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:856 +#: src/move.c:860 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -635,7 +635,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:861 +#: src/move.c:865 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -644,7 +644,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:868 +#: src/move.c:872 msgctxt "subtitle" msgid "New" msgstr "New" @@ -652,12 +652,12 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:874 +#: src/move.c:878 msgctxt "subtitle" msgid "Old" msgstr "Old" -#: src/move.c:1021 +#: src/move.c:1025 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -668,7 +668,7 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#: src/move.c:1043 +#: src/move.c:1047 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -687,7 +687,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1071 +#: src/move.c:1075 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -696,16 +696,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1079 +#: src/move.c:1083 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1172 src/exch.c:320 +#: src/move.c:1176 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1174 +#: src/move.c:1178 #, c-format msgid "" "Your debt has amounted to %N!\n" @@ -746,19 +746,19 @@ msgstr "" "Shares\n" "issued" -#: src/exch.c:185 +#: src/exch.c:184 msgid "^{<2>^} Display galaxy map" msgstr "^{<2>^} Display galaxy map" -#: src/exch.c:187 +#: src/exch.c:186 msgid "^{<3>^} Visit the Trading Bank" msgstr "^{<3>^} Visit the Trading Bank" -#: src/exch.c:189 +#: src/exch.c:188 msgid "^{<4>^} Exit the Stock Exchange" msgstr "^{<4>^} Exit the Stock Exchange" -#: src/exch.c:192 +#: src/exch.c:191 msgid "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " msgstr "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " @@ -771,7 +771,7 @@ msgstr "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " #. #. Note that some of these labels are used for both the Player #. Status window and the Trading Bank window. -#: src/exch.c:350 +#: src/exch.c:349 msgctxt "label" msgid "Credit limit: " msgstr "Credit limit: " @@ -780,56 +780,56 @@ msgstr "Credit limit: " #. from the Bank" menu options must all be the same length #. (ie, padded with trailing spaces as required). The maximum #. length is 72 characters. -#: src/exch.c:365 +#: src/exch.c:364 msgid "^{<1>^} Borrow money " msgstr "^{<1>^} Borrow money " -#: src/exch.c:367 +#: src/exch.c:366 msgid "^{<2>^} Repay debt " msgstr "^{<2>^} Repay debt " -#: src/exch.c:369 +#: src/exch.c:368 msgid "^{<3>^} Exit from the Bank" msgstr "^{<3>^} Exit from the Bank" -#: src/exch.c:372 +#: src/exch.c:371 msgid "Enter selection [^{1^}-^{3^}]: " msgstr "Enter selection [^{1^}-^{3^}]: " -#: src/exch.c:425 +#: src/exch.c:424 msgid " Insufficient Credit Limit " msgstr " Insufficient Credit Limit " -#: src/exch.c:426 +#: src/exch.c:425 msgid "The Bank will not lend you any more money." msgstr "The Bank will not lend you any more money." -#: src/exch.c:446 +#: src/exch.c:445 msgid "How much do you wish to borrow? " msgstr "How much do you wish to borrow? " -#: src/exch.c:478 +#: src/exch.c:477 msgid " No Debt " msgstr " No Debt " -#: src/exch.c:479 +#: src/exch.c:478 msgid "You have no debt to repay." msgstr "You have no debt to repay." -#: src/exch.c:483 +#: src/exch.c:482 msgid " No Cash " msgstr " No Cash " -#: src/exch.c:484 +#: src/exch.c:483 msgid "You have no cash with which to repay the debt!" msgstr "You have no cash with which to repay the debt!" -#: src/exch.c:504 +#: src/exch.c:503 msgid "How much do you wish to repay? " msgstr "How much do you wish to repay? " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:580 +#: src/exch.c:579 #, c-format msgid " Stock Transaction in %ls " msgstr " Stock Transaction in %ls " @@ -842,27 +842,27 @@ msgstr " Stock Transaction in %ls " #. and must have at least one trailing space for the output #. routines to work correctly. The maximum length of each #. label is 22 characters. -#: src/exch.c:591 +#: src/exch.c:590 msgctxt "label|Stock A" msgid "Shares issued: " msgstr "Shares issued: " #. TRANSLATORS: "Shares left" is the number of shares that are #. left to be purchased in the current company. -#: src/exch.c:599 +#: src/exch.c:598 msgctxt "label|Stock A" msgid "Shares left: " msgstr "Shares left: " #. TRANSLATORS: "Price per share" is the cost of each share in #. the current company. -#: src/exch.c:606 +#: src/exch.c:605 msgctxt "label|Stock A" msgid "Price per share: " msgstr "Price per share: " #. TRANSLATORS: "Return" is the share return as a percentage. -#: src/exch.c:612 +#: src/exch.c:611 msgctxt "label|Stock A" msgid "Return: " msgstr "Return: " @@ -875,56 +875,56 @@ msgstr "Return: " #. least one trailing space for the display routines to work #. correctly. The maximum length of each label is 18 #. characters. -#: src/exch.c:625 +#: src/exch.c:624 msgctxt "label|Stock B" msgid "Current holdings: " msgstr "Current holdings: " #. TRANSLATORS: "Percentage owned" is the current player's #. percentage ownership in this particular company. -#: src/exch.c:632 +#: src/exch.c:631 msgctxt "label|Stock B" msgid "Percentage owned: " msgstr "Percentage owned: " -#: src/exch.c:637 +#: src/exch.c:636 msgctxt "label|Stock B" msgid "Current cash: " msgstr "Current cash: " -#: src/exch.c:648 +#: src/exch.c:647 msgid "^{<1>^} Buy stock from company" msgstr "^{<1>^} Buy stock from company" -#: src/exch.c:650 +#: src/exch.c:649 msgid "^{<2>^} Sell stock back to company" msgstr "^{<2>^} Sell stock back to company" -#: src/exch.c:652 +#: src/exch.c:651 msgid "^{<3>^} Bid company to issue more shares" msgstr "^{<3>^} Bid company to issue more shares" -#: src/exch.c:654 +#: src/exch.c:653 msgid "^{<4>^} Exit to the Stock Exchange" msgstr "^{<4>^} Exit to the Stock Exchange" -#: src/exch.c:657 +#: src/exch.c:656 msgid "Enter selection [^{1^}-^{4^}]: " msgstr "Enter selection [^{1^}-^{4^}]: " -#: src/exch.c:713 +#: src/exch.c:712 msgid " No Shares Available " msgstr " No Shares Available " -#: src/exch.c:714 +#: src/exch.c:713 msgid "No more shares are available for purchase." msgstr "No more shares are available for purchase." -#: src/exch.c:718 +#: src/exch.c:717 msgid " Insufficient Cash " msgstr " Insufficient Cash " -#: src/exch.c:719 +#: src/exch.c:718 msgid "" "You do not have enough cash\n" "to purchase additional shares." @@ -932,42 +932,42 @@ msgstr "" "You do not have enough cash\n" "to purchase additional shares." -#: src/exch.c:730 +#: src/exch.c:729 #, c-format msgid "You can purchase ^{one^} share." msgid_plural "You can purchase up to ^{%'ld^} shares." msgstr[0] "You can purchase ^{one^} share." msgstr[1] "You can purchase up to ^{%'ld^} shares." -#: src/exch.c:736 +#: src/exch.c:735 msgid "How many shares do you wish to purchase? " msgstr "How many shares do you wish to purchase? " -#: src/exch.c:757 +#: src/exch.c:756 msgid " No Shares " msgstr " No Shares " -#: src/exch.c:758 +#: src/exch.c:757 msgid "You do not have any shares to sell." msgstr "You do not have any shares to sell." -#: src/exch.c:765 +#: src/exch.c:764 #, c-format msgid "You can sell ^{one^} share." msgid_plural "You can sell up to ^{%'ld^} shares." msgstr[0] "You can sell ^{one^} share." msgstr[1] "You can sell up to ^{%'ld^} shares." -#: src/exch.c:771 +#: src/exch.c:770 msgid "How many shares do you wish to sell? " msgstr "How many shares do you wish to sell? " -#: src/exch.c:799 +#: src/exch.c:798 msgid " No Shares Issued " msgstr " No Shares Issued " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:801 +#: src/exch.c:800 #, c-format msgid "" "%ls has refused\n" @@ -976,12 +976,12 @@ msgstr "" "%ls has refused\n" "to issue more shares." -#: src/exch.c:806 +#: src/exch.c:805 msgid " Shares Issued " msgstr " Shares Issued " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:808 +#: src/exch.c:807 #, c-format msgid "" "%ls has issued\n" From 8bbee054ad9c037c118fc64e84386ef2d5373a19 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Tue, 30 Aug 2011 12:45:45 +1000 Subject: [PATCH 07/18] Change the handling of default value keycodes to be configurable --- po/en_AU.po | 26 ++++++++++++++++++-------- po/en_CA.po | 26 ++++++++++++++++++-------- po/en_GB.po | 26 ++++++++++++++++++-------- po/en_US.po | 26 ++++++++++++++++++-------- src/intf.c | 14 ++++++++++++-- src/intf.h | 4 ---- 6 files changed, 84 insertions(+), 38 deletions(-) diff --git a/po/en_AU.po b/po/en_AU.po index 379cffd..af72255 100644 --- a/po/en_AU.po +++ b/po/en_AU.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-30 09:08+1000\n" -"PO-Revision-Date: 2011-08-30 08:26+1000\n" +"POT-Creation-Date: 2011-08-30 12:38+1000\n" +"PO-Revision-Date: 2011-08-30 12:42+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Australian)\n" "Language: en_AU\n" @@ -1409,7 +1409,7 @@ msgstr "Page %d of %d" #. TRANSLATORS: The reason the user is not asked "Press any #. key to continue" is historical: many, many people used to #. ask "where is the key?" :-) -#: src/help.c:473 src/intf.c:3025 +#: src/help.c:473 src/intf.c:3035 msgid "[ Press to continue ] " msgstr "[ Press to continue ] " @@ -1451,7 +1451,17 @@ msgstr "mkchstr_conv: NUL" msgid "mkchstr: `%s'" msgstr "mkchstr: ‘%s’" -#: src/intf.c:2025 src/intf.c:2070 +#. TRANSLATORS: This string specifies the keycodes used to insert the +#. default value into the input string, if entered as the very first +#. character. Ideally, it should contain an easily-accessible +#. keycode that would NOT be used in ordinary input. Digits, ".", +#. ",", "+" and "-" are definitely NOT acceptable. +#: src/intf.c:2020 +msgctxt "input|DefaultValue" +msgid "=;" +msgstr "=;" + +#: src/intf.c:2034 src/intf.c:2079 #, c-format msgid "gettxline: illegal character in string: `%ls'" msgstr "gettxline: illegal character in string: ‘%ls’" @@ -1460,12 +1470,12 @@ msgstr "gettxline: illegal character in string: ‘%ls’" #. "input|No" contain the keycodes used to determine whether a #. user is answering "Yes" or "No" in response to some question. #. Both upper and lower-case versions should be present. -#: src/intf.c:2942 +#: src/intf.c:2952 msgctxt "input|Yes" msgid "Yy" msgstr "Yy" -#: src/intf.c:2944 +#: src/intf.c:2954 msgctxt "input|No" msgid "Nn" msgstr "Nn" @@ -1473,12 +1483,12 @@ msgstr "Nn" #. TRANSLATORS: The strings "Yes" and "No" are printed as a #. response to user input in answer to questions like "Are you #. sure? [Y/N] " -#: src/intf.c:2995 +#: src/intf.c:3005 msgctxt "answer" msgid "Yes" msgstr "Yes" -#: src/intf.c:2997 +#: src/intf.c:3007 msgctxt "answer" msgid "No" msgstr "No" diff --git a/po/en_CA.po b/po/en_CA.po index a14c344..a70d8d8 100644 --- a/po/en_CA.po +++ b/po/en_CA.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-30 09:08+1000\n" -"PO-Revision-Date: 2011-08-30 08:26+1000\n" +"POT-Creation-Date: 2011-08-30 12:38+1000\n" +"PO-Revision-Date: 2011-08-30 12:43+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Canadian)\n" "Language: en_CA\n" @@ -1409,7 +1409,7 @@ msgstr "Page %d of %d" #. TRANSLATORS: The reason the user is not asked "Press any #. key to continue" is historical: many, many people used to #. ask "where is the key?" :-) -#: src/help.c:473 src/intf.c:3025 +#: src/help.c:473 src/intf.c:3035 msgid "[ Press to continue ] " msgstr "[ Press to continue ] " @@ -1451,7 +1451,17 @@ msgstr "mkchstr_conv: NUL" msgid "mkchstr: `%s'" msgstr "mkchstr: ‘%s’" -#: src/intf.c:2025 src/intf.c:2070 +#. TRANSLATORS: This string specifies the keycodes used to insert the +#. default value into the input string, if entered as the very first +#. character. Ideally, it should contain an easily-accessible +#. keycode that would NOT be used in ordinary input. Digits, ".", +#. ",", "+" and "-" are definitely NOT acceptable. +#: src/intf.c:2020 +msgctxt "input|DefaultValue" +msgid "=;" +msgstr "=;" + +#: src/intf.c:2034 src/intf.c:2079 #, c-format msgid "gettxline: illegal character in string: `%ls'" msgstr "gettxline: illegal character in string: ‘%ls’" @@ -1460,12 +1470,12 @@ msgstr "gettxline: illegal character in string: ‘%ls’" #. "input|No" contain the keycodes used to determine whether a #. user is answering "Yes" or "No" in response to some question. #. Both upper and lower-case versions should be present. -#: src/intf.c:2942 +#: src/intf.c:2952 msgctxt "input|Yes" msgid "Yy" msgstr "Yy" -#: src/intf.c:2944 +#: src/intf.c:2954 msgctxt "input|No" msgid "Nn" msgstr "Nn" @@ -1473,12 +1483,12 @@ msgstr "Nn" #. TRANSLATORS: The strings "Yes" and "No" are printed as a #. response to user input in answer to questions like "Are you #. sure? [Y/N] " -#: src/intf.c:2995 +#: src/intf.c:3005 msgctxt "answer" msgid "Yes" msgstr "Yes" -#: src/intf.c:2997 +#: src/intf.c:3007 msgctxt "answer" msgid "No" msgstr "No" diff --git a/po/en_GB.po b/po/en_GB.po index 4d2403e..688b242 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-30 09:08+1000\n" -"PO-Revision-Date: 2011-08-30 08:26+1000\n" +"POT-Creation-Date: 2011-08-30 12:38+1000\n" +"PO-Revision-Date: 2011-08-30 12:43+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (British)\n" "Language: en_GB\n" @@ -1409,7 +1409,7 @@ msgstr "Page %d of %d" #. TRANSLATORS: The reason the user is not asked "Press any #. key to continue" is historical: many, many people used to #. ask "where is the key?" :-) -#: src/help.c:473 src/intf.c:3025 +#: src/help.c:473 src/intf.c:3035 msgid "[ Press to continue ] " msgstr "[ Press to continue ] " @@ -1451,7 +1451,17 @@ msgstr "mkchstr_conv: NUL" msgid "mkchstr: `%s'" msgstr "mkchstr: ‘%s’" -#: src/intf.c:2025 src/intf.c:2070 +#. TRANSLATORS: This string specifies the keycodes used to insert the +#. default value into the input string, if entered as the very first +#. character. Ideally, it should contain an easily-accessible +#. keycode that would NOT be used in ordinary input. Digits, ".", +#. ",", "+" and "-" are definitely NOT acceptable. +#: src/intf.c:2020 +msgctxt "input|DefaultValue" +msgid "=;" +msgstr "=;" + +#: src/intf.c:2034 src/intf.c:2079 #, c-format msgid "gettxline: illegal character in string: `%ls'" msgstr "gettxline: illegal character in string: ‘%ls’" @@ -1460,12 +1470,12 @@ msgstr "gettxline: illegal character in string: ‘%ls’" #. "input|No" contain the keycodes used to determine whether a #. user is answering "Yes" or "No" in response to some question. #. Both upper and lower-case versions should be present. -#: src/intf.c:2942 +#: src/intf.c:2952 msgctxt "input|Yes" msgid "Yy" msgstr "Yy" -#: src/intf.c:2944 +#: src/intf.c:2954 msgctxt "input|No" msgid "Nn" msgstr "Nn" @@ -1473,12 +1483,12 @@ msgstr "Nn" #. TRANSLATORS: The strings "Yes" and "No" are printed as a #. response to user input in answer to questions like "Are you #. sure? [Y/N] " -#: src/intf.c:2995 +#: src/intf.c:3005 msgctxt "answer" msgid "Yes" msgstr "Yes" -#: src/intf.c:2997 +#: src/intf.c:3007 msgctxt "answer" msgid "No" msgstr "No" diff --git a/po/en_US.po b/po/en_US.po index 5ca50be..f9bceb9 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-30 09:08+1000\n" -"PO-Revision-Date: 2011-08-30 08:27+1000\n" +"POT-Creation-Date: 2011-08-30 12:38+1000\n" +"PO-Revision-Date: 2011-08-30 12:43+1000\n" "Last-Translator: John Zaitseff \n" "Language-Team: English\n" "Language: en_US\n" @@ -1409,7 +1409,7 @@ msgstr "Page %d of %d" #. TRANSLATORS: The reason the user is not asked "Press any #. key to continue" is historical: many, many people used to #. ask "where is the key?" :-) -#: src/help.c:473 src/intf.c:3025 +#: src/help.c:473 src/intf.c:3035 msgid "[ Press to continue ] " msgstr "[ Press to continue ] " @@ -1451,7 +1451,17 @@ msgstr "mkchstr_conv: NUL" msgid "mkchstr: `%s'" msgstr "mkchstr: ‘%s’" -#: src/intf.c:2025 src/intf.c:2070 +#. TRANSLATORS: This string specifies the keycodes used to insert the +#. default value into the input string, if entered as the very first +#. character. Ideally, it should contain an easily-accessible +#. keycode that would NOT be used in ordinary input. Digits, ".", +#. ",", "+" and "-" are definitely NOT acceptable. +#: src/intf.c:2020 +msgctxt "input|DefaultValue" +msgid "=;" +msgstr "=;" + +#: src/intf.c:2034 src/intf.c:2079 #, c-format msgid "gettxline: illegal character in string: `%ls'" msgstr "gettxline: illegal character in string: ‘%ls’" @@ -1460,12 +1470,12 @@ msgstr "gettxline: illegal character in string: ‘%ls’" #. "input|No" contain the keycodes used to determine whether a #. user is answering "Yes" or "No" in response to some question. #. Both upper and lower-case versions should be present. -#: src/intf.c:2942 +#: src/intf.c:2952 msgctxt "input|Yes" msgid "Yy" msgstr "Yy" -#: src/intf.c:2944 +#: src/intf.c:2954 msgctxt "input|No" msgid "Nn" msgstr "Nn" @@ -1473,12 +1483,12 @@ msgstr "Nn" #. TRANSLATORS: The strings "Yes" and "No" are printed as a #. response to user input in answer to questions like "Are you #. sure? [Y/N] " -#: src/intf.c:2995 +#: src/intf.c:3005 msgctxt "answer" msgid "Yes" msgstr "Yes" -#: src/intf.c:2997 +#: src/intf.c:3007 msgctxt "answer" msgid "No" msgstr "No" diff --git a/src/intf.c b/src/intf.c index e8eb0af..d1730ae 100644 --- a/src/intf.c +++ b/src/intf.c @@ -1993,6 +1993,7 @@ int gettxline (WINDOW *win, wchar_t *restrict buf, int bufsize, const wchar_t *allowed, bool stripspc, int y, int x, int width, chtype attr) { + wchar_t *keycode_defval; bool done, redraw, mod; int len, pos, st; int clen, cpos; @@ -2010,6 +2011,14 @@ int gettxline (WINDOW *win, wchar_t *restrict buf, int bufsize, chbuf = xmalloc(BUFSIZE * sizeof(chtype)); + keycode_defval = xmalloc(BUFSIZE * sizeof(wchar_t)); + /* TRANSLATORS: This string specifies the keycodes used to insert the + default value into the input string, if entered as the very first + character. Ideally, it should contain an easily-accessible + keycode that would NOT be used in ordinary input. Digits, ".", + ",", "+" and "-" are definitely NOT acceptable. */ + xmbstowcs(keycode_defval, pgettext("input|DefaultValue", "=;"), BUFSIZE); + keypad(win, true); meta(win, true); wtimeout(win, -1); @@ -2055,8 +2064,8 @@ int gettxline (WINDOW *win, wchar_t *restrict buf, int bufsize, if (rcode == OK) { // Ordinary wide character - if ((key == CHAR_DEFVAL1 || key == CHAR_DEFVAL2) - && defaultval != NULL && len == 0) { + if (defaultval != NULL && len == 0 + && wcschr(keycode_defval, key) != NULL) { // Initialise buffer with the default value wcsncpy(buf, defaultval, bufsize - 1); @@ -2705,6 +2714,7 @@ int gettxline (WINDOW *win, wchar_t *restrict buf, int bufsize, } free(chbuf); + free(keycode_defval); return ret; } diff --git a/src/intf.h b/src/intf.h index db73c8a..a7d5b01 100644 --- a/src/intf.h +++ b/src/intf.h @@ -101,10 +101,6 @@ typedef enum curs_type { #define KEY_CTRL(x) ((x) - 0100) // ASCII control character -// Keycodes for inserting the default value in input routines -#define CHAR_DEFVAL1 L'=' -#define CHAR_DEFVAL2 L';' - // Control-arrow key combinations, as returned by Ncurses #ifndef KEY_CDOWN # define KEY_CDOWN 01007 // CTRL + Down Arrow From 8c950278b893ed3f3245bd943e1d170ad48aa7e6 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Thu, 15 Mar 2012 02:13:30 +1100 Subject: [PATCH 08/18] Update to the latest upstream version of ax_with_curses.m4 --- m4/ax_with_curses.m4 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/m4/ax_with_curses.m4 b/m4/ax_with_curses.m4 index 5399b85..33a37ac 100644 --- a/m4/ax_with_curses.m4 +++ b/m4/ax_with_curses.m4 @@ -127,15 +127,15 @@ # To use the HAVE_xxx_H preprocessor symbols, insert the following into # your system.h (or equivalent) header file: # -# #if defined(HAVE_NCURSESW_CURSES_H) +# #if defined HAVE_NCURSESW_CURSES_H # # include -# #elif defined(HAVE_NCURSESW_H) +# #elif defined HAVE_NCURSESW_H # # include -# #elif defined(HAVE_NCURSES_CURSES_H) +# #elif defined HAVE_NCURSES_CURSES_H # # include -# #elif defined(HAVE_NCURSES_H) +# #elif defined HAVE_NCURSES_H # # include -# #elif defined(HAVE_CURSES_H) +# #elif defined HAVE_CURSES_H # # include # #else # # error "SysV or X/Open-compatible Curses header file required" @@ -153,7 +153,7 @@ # # Copyright (c) 2009 Mark Pulford # Copyright (c) 2009 Damian Pietras -# Copyright (c) 2011 Reuben Thomas +# Copyright (c) 2012 Reuben Thomas # Copyright (c) 2011 John Zaitseff # # This program is free software: you can redistribute it and/or modify it @@ -182,7 +182,7 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 11 +#serial 13 AU_ALIAS([MP_WITH_CURSES], [AX_WITH_CURSES]) AC_DEFUN([AX_WITH_CURSES], [ @@ -394,7 +394,7 @@ AC_DEFUN([AX_WITH_CURSES], [ # Test for plain Curses (or if CURSES_LIB was set by user) AS_IF([test "x$with_plaincurses" != xno && test "x$ax_cv_curses_which" = xno], [ - AS_IF([test "x$CURSES_LIB" = x], [ + AS_IF([test "x$CURSES_LIB" != x], [ LIBS="$ax_saved_LIBS $CURSES_LIB" ], [ LIBS="$ax_saved_LIBS -lcurses" From 4ddb8af23d766d90e5b196476c304b5b8dc263e6 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Thu, 15 Mar 2012 02:14:24 +1100 Subject: [PATCH 09/18] Update to the latest version of the GNU Portability Library --- m4/.gitignore | 2 ++ m4/gnulib-cache.m4 | 22 +++++++++++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/m4/.gitignore b/m4/.gitignore index a26f228..233b231 100644 --- a/m4/.gitignore +++ b/m4/.gitignore @@ -52,6 +52,7 @@ po.m4 printf-posix.m4 progtest.m4 size_max.m4 +ssize_t.m4 stdbool.m4 stddef_h.m4 stdint.m4 @@ -60,6 +61,7 @@ stdio_h.m4 stdlib_h.m4 string_h.m4 strstr.m4 +sys_socket_h.m4 sys_stat_h.m4 sys_time_h.m4 threadlib.m4 diff --git a/m4/gnulib-cache.m4 b/m4/gnulib-cache.m4 index 00ce11e..958524c 100644 --- a/m4/gnulib-cache.m4 +++ b/m4/gnulib-cache.m4 @@ -1,9 +1,21 @@ -# Copyright (C) 2002-2011 Free Software Foundation, Inc. +# Copyright (C) 2002-2012 Free Software Foundation, Inc. # -# This file is free software, distributed under the terms of the GNU -# General Public License. As a special exception to the GNU General -# Public License, this file may be distributed as part of a program -# that contains a configuration script generated by Autoconf, under +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see . +# +# As a special exception to the GNU General Public License, +# this file may be distributed as part of a program that +# contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. From bc3e1a06a1b145d211c768f0906a437f98501200 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Thu, 15 Mar 2012 02:36:23 +1100 Subject: [PATCH 10/18] Update the copyright year to 2012 --- COPYING | 2 +- INSTALL | 2 +- Makefile.am | 2 +- NEWS | 2 +- README | 4 ++-- build-aux/README | 2 +- configure.ac | 2 +- doc/Makefile.am | 2 +- doc/README | 2 +- doc/trader.6 | 6 +++--- lib/README | 2 +- m4/Makefile.am | 2 +- m4/README | 2 +- po/LINGUAS | 2 +- po/Makevars | 2 +- po/POTFILES.in | 2 +- po/README | 2 +- po/en_AU.po | 4 ++-- po/en_CA.po | 4 ++-- po/en_GB.po | 4 ++-- po/en_US.po | 4 ++-- src/Makefile.am | 2 +- src/README | 2 +- src/exch.c | 2 +- src/exch.h | 2 +- src/fileio.c | 2 +- src/fileio.h | 2 +- src/game.c | 2 +- src/game.h | 2 +- src/globals.c | 2 +- src/globals.h | 2 +- src/help.c | 2 +- src/help.h | 2 +- src/intf.c | 2 +- src/intf.h | 2 +- src/move.c | 2 +- src/move.h | 2 +- src/system.h | 2 +- src/trader.c | 4 ++-- src/trader.h | 2 +- src/utils.c | 2 +- src/utils.h | 2 +- 42 files changed, 50 insertions(+), 50 deletions(-) diff --git a/COPYING b/COPYING index 151a054..03b7501 100644 --- a/COPYING +++ b/COPYING @@ -1,7 +1,7 @@ ************************************************************************** * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************** diff --git a/INSTALL b/INSTALL index c48a8ff..de24e66 100644 --- a/INSTALL +++ b/INSTALL @@ -1,7 +1,7 @@ ************************************************************************** * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************** diff --git a/Makefile.am b/Makefile.am index 7413364..27e2f4c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,7 @@ ######################################################################### # # # Star Traders: A Game of Interstellar Trading # -# Copyright (C) 1990-2011, John Zaitseff # +# Copyright (C) 1990-2012, John Zaitseff # # # ######################################################################### diff --git a/NEWS b/NEWS index 81b6552..97f477f 100644 --- a/NEWS +++ b/NEWS @@ -1,7 +1,7 @@ ************************************************************************** * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************** diff --git a/README b/README index af40616..b84079d 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ ************************************************************************** * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************** @@ -66,7 +66,7 @@ welcomed! Please send these to: Copyright ========= -Copyright (C) 1990-2011, John Zaitseff. +Copyright (C) 1990-2012, John Zaitseff. Star Traders is free software that is distributed under the terms of the GNU General Public License. You can redistribute it and/or modify it diff --git a/build-aux/README b/build-aux/README index 70cf99f..ee5b8ee 100644 --- a/build-aux/README +++ b/build-aux/README @@ -1,7 +1,7 @@ ************************************************************************** * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************** diff --git a/configure.ac b/configure.ac index 68961b2..768bfea 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ dnl ********************************************************************* dnl * * dnl * Star Traders: A Game of Interstellar Trading * -dnl * Copyright (C) 1990-2011, John Zaitseff * +dnl * Copyright (C) 1990-2012, John Zaitseff * dnl * * dnl ********************************************************************* dnl diff --git a/doc/Makefile.am b/doc/Makefile.am index 64e23e9..f55e60c 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,7 +1,7 @@ ######################################################################### # # # Star Traders: A Game of Interstellar Trading # -# Copyright (C) 1990-2011, John Zaitseff # +# Copyright (C) 1990-2012, John Zaitseff # # # ######################################################################### diff --git a/doc/README b/doc/README index b6ea180..7e6788b 100644 --- a/doc/README +++ b/doc/README @@ -1,7 +1,7 @@ ************************************************************************** * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************** diff --git a/doc/trader.6 b/doc/trader.6 index 5a1a63c..bd2500c 100644 --- a/doc/trader.6 +++ b/doc/trader.6 @@ -1,7 +1,7 @@ .\" ********************************************************************* .\" * * .\" * Star Traders: A Game of Interstellar Trading * -.\" * Copyright (C) 1990-2011, John Zaitseff * +.\" * Copyright (C) 1990-2012, John Zaitseff * .\" * * .\" ********************************************************************* .\" @@ -41,7 +41,7 @@ .if \n[.g] .mso www.tmac .\" .\" ********************************************************************* -.TH TRADER 6 "29th August, 2011" "Unix-like systems" +.TH TRADER 6 "15th March, 2012" "Unix-like systems" .SH NAME trader \- a game of interstellar trading .\" ********************************************************************* @@ -200,7 +200,7 @@ Australia .PP .\" ********************************************************************* .SH COPYRIGHT -Copyright \(co 1990\-2011, John Zaitseff. +Copyright \(co 1990\-2012, John Zaitseff. .PP \fBStar Traders\fR is free software that is distributed under the terms of the GNU General Public License. You can redistribute it and/or modify diff --git a/lib/README b/lib/README index f158155..2126ec9 100644 --- a/lib/README +++ b/lib/README @@ -1,7 +1,7 @@ ************************************************************************** * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************** diff --git a/m4/Makefile.am b/m4/Makefile.am index 82492df..4d6fd22 100644 --- a/m4/Makefile.am +++ b/m4/Makefile.am @@ -1,7 +1,7 @@ ######################################################################### # # # Star Traders: A Game of Interstellar Trading # -# Copyright (C) 1990-2011, John Zaitseff # +# Copyright (C) 1990-2012, John Zaitseff # # # ######################################################################### diff --git a/m4/README b/m4/README index aedfad5..6be4a53 100644 --- a/m4/README +++ b/m4/README @@ -1,7 +1,7 @@ ************************************************************************** * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************** diff --git a/po/LINGUAS b/po/LINGUAS index 6a642e9..ba1a332 100644 --- a/po/LINGUAS +++ b/po/LINGUAS @@ -1,7 +1,7 @@ ######################################################################### # # # Star Traders: A Game of Interstellar Trading # -# Copyright (C) 1990-2011, John Zaitseff # +# Copyright (C) 1990-2012, John Zaitseff # # # ######################################################################### diff --git a/po/Makevars b/po/Makevars index 28f3b22..fa0c4cc 100644 --- a/po/Makevars +++ b/po/Makevars @@ -1,7 +1,7 @@ ######################################################################### # # # Star Traders: A Game of Interstellar Trading # -# Copyright (C) 1990-2011, John Zaitseff # +# Copyright (C) 1990-2012, John Zaitseff # # # ######################################################################### diff --git a/po/POTFILES.in b/po/POTFILES.in index e227a2c..abaf6cc 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,7 +1,7 @@ ######################################################################### # # # Star Traders: A Game of Interstellar Trading # -# Copyright (C) 1990-2011, John Zaitseff # +# Copyright (C) 1990-2012, John Zaitseff # # # ######################################################################### diff --git a/po/README b/po/README index 7930c42..b0ea9dd 100644 --- a/po/README +++ b/po/README @@ -1,7 +1,7 @@ ************************************************************************** * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************** diff --git a/po/en_AU.po b/po/en_AU.po index af72255..af3db7e 100644 --- a/po/en_AU.po +++ b/po/en_AU.po @@ -1,14 +1,14 @@ # ************************************************************************* # * * # * English (Australian) Translations for Star Traders * -# * Copyright (C) 1990-2011, John Zaitseff * +# * Copyright (C) 1990-2012, John Zaitseff * # * * # ************************************************************************* # # This file is distributed under the same licence as Star Traders. # # Contributors: -# John Zaitseff , 2011. +# John Zaitseff , 2011-12. # msgid "" msgstr "" diff --git a/po/en_CA.po b/po/en_CA.po index a70d8d8..511ef7e 100644 --- a/po/en_CA.po +++ b/po/en_CA.po @@ -1,14 +1,14 @@ # ************************************************************************* # * * # * English (Canadian) Translations for Star Traders * -# * Copyright (C) 1990-2011, John Zaitseff * +# * Copyright (C) 1990-2012, John Zaitseff * # * * # ************************************************************************* # # This file is distributed under the same licence as Star Traders. # # Contributors: -# John Zaitseff , 2011. +# John Zaitseff , 2011-12. # msgid "" msgstr "" diff --git a/po/en_GB.po b/po/en_GB.po index 688b242..35e0cc7 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -1,14 +1,14 @@ # ************************************************************************* # * * # * English (British) Translations for Star Traders * -# * Copyright (C) 1990-2011, John Zaitseff * +# * Copyright (C) 1990-2012, John Zaitseff * # * * # ************************************************************************* # # This file is distributed under the same licence as Star Traders. # # Contributors: -# John Zaitseff , 2011. +# John Zaitseff , 2011-12. # msgid "" msgstr "" diff --git a/po/en_US.po b/po/en_US.po index f9bceb9..ba0f791 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -1,14 +1,14 @@ # ************************************************************************* # * * # * English (US) Translations for Star Traders * -# * Copyright (C) 1990-2011, John Zaitseff * +# * Copyright (C) 1990-2012, John Zaitseff * # * * # ************************************************************************* # # This file is distributed under the same licence as Star Traders. # # Contributors: -# John Zaitseff , 2011. +# John Zaitseff , 2011-12. # msgid "" msgstr "" diff --git a/src/Makefile.am b/src/Makefile.am index 57feebf..898b148 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@ ######################################################################### # # # Star Traders: A Game of Interstellar Trading # -# Copyright (C) 1990-2011, John Zaitseff # +# Copyright (C) 1990-2012, John Zaitseff # # # ######################################################################### diff --git a/src/README b/src/README index a52e7cc..e0657d3 100644 --- a/src/README +++ b/src/README @@ -1,7 +1,7 @@ ************************************************************************** * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************** diff --git a/src/exch.c b/src/exch.c index da88c29..5e9a59b 100644 --- a/src/exch.c +++ b/src/exch.c @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/exch.h b/src/exch.h index 6dc75c9..e5fd09c 100644 --- a/src/exch.h +++ b/src/exch.h @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/fileio.c b/src/fileio.c index 9b75432..4d0d810 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/fileio.h b/src/fileio.h index 4afa483..5c503ab 100644 --- a/src/fileio.h +++ b/src/fileio.h @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/game.c b/src/game.c index 1521fa1..79fa56a 100644 --- a/src/game.c +++ b/src/game.c @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/game.h b/src/game.h index 74aa84e..4cf7f45 100644 --- a/src/game.h +++ b/src/game.h @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/globals.c b/src/globals.c index bc251a5..2cdc4db 100644 --- a/src/globals.c +++ b/src/globals.c @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/globals.h b/src/globals.h index 9d0c626..40decff 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/help.c b/src/help.c index e803441..0c258ec 100644 --- a/src/help.c +++ b/src/help.c @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/help.h b/src/help.h index ddb5998..0a54e40 100644 --- a/src/help.h +++ b/src/help.h @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/intf.c b/src/intf.c index d1730ae..f482281 100644 --- a/src/intf.c +++ b/src/intf.c @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/intf.h b/src/intf.h index a7d5b01..2983b3a 100644 --- a/src/intf.h +++ b/src/intf.h @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/move.c b/src/move.c index 40f4dd8..85b159e 100644 --- a/src/move.c +++ b/src/move.c @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/move.h b/src/move.h index a94277f..7d23f23 100644 --- a/src/move.h +++ b/src/move.h @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/system.h b/src/system.h index e86c2f4..8b72b7b 100644 --- a/src/system.h +++ b/src/system.h @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/trader.c b/src/trader.c index 96b85a8..b9ab1be 100644 --- a/src/trader.c +++ b/src/trader.c @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ @@ -293,7 +293,7 @@ This program is free software that is distributed under the terms of the\n\ GNU General Public License, version 3 or later. You are welcome to\n\ modify and/or distribute it under certain conditions. This program has\n\ NO WARRANTY, to the extent permitted by law; see the License for details.\n\ -"), program_name, PACKAGE_VERSION, "1990-2011"); +"), program_name, PACKAGE_VERSION, "1990-2012"); exit(EXIT_SUCCESS); } diff --git a/src/trader.h b/src/trader.h index 0ae2f4c..324dae2 100644 --- a/src/trader.h +++ b/src/trader.h @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/utils.c b/src/utils.c index 0d6cc6f..3354ddd 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ diff --git a/src/utils.h b/src/utils.h index 1174edf..9c4aded 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,7 +1,7 @@ /************************************************************************ * * * Star Traders: A Game of Interstellar Trading * -* Copyright (C) 1990-2011, John Zaitseff * +* Copyright (C) 1990-2012, John Zaitseff * * * ************************************************************************/ From 2b7cff4e4df0bcf7faaa6690081ad30f34b59f61 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Thu, 15 Mar 2012 08:20:52 +1100 Subject: [PATCH 11/18] Update the date fields in the English PO files --- po/en_AU.po | 4 ++-- po/en_CA.po | 4 ++-- po/en_GB.po | 4 ++-- po/en_US.po | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/po/en_AU.po b/po/en_AU.po index af3db7e..f19dfa9 100644 --- a/po/en_AU.po +++ b/po/en_AU.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-30 12:38+1000\n" -"PO-Revision-Date: 2011-08-30 12:42+1000\n" +"POT-Creation-Date: 2012-03-15 08:15+1100\n" +"PO-Revision-Date: 2012-03-15 08:18+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Australian)\n" "Language: en_AU\n" diff --git a/po/en_CA.po b/po/en_CA.po index 511ef7e..f867456 100644 --- a/po/en_CA.po +++ b/po/en_CA.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-30 12:38+1000\n" -"PO-Revision-Date: 2011-08-30 12:43+1000\n" +"POT-Creation-Date: 2012-03-15 08:15+1100\n" +"PO-Revision-Date: 2012-03-15 08:18+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Canadian)\n" "Language: en_CA\n" diff --git a/po/en_GB.po b/po/en_GB.po index 35e0cc7..99cd06c 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-30 12:38+1000\n" -"PO-Revision-Date: 2011-08-30 12:43+1000\n" +"POT-Creation-Date: 2012-03-15 08:15+1100\n" +"PO-Revision-Date: 2012-03-15 08:19+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (British)\n" "Language: en_GB\n" diff --git a/po/en_US.po b/po/en_US.po index ba0f791..3789ab6 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-30 12:38+1000\n" -"PO-Revision-Date: 2011-08-30 12:43+1000\n" +"POT-Creation-Date: 2012-03-15 08:15+1100\n" +"PO-Revision-Date: 2012-03-15 08:19+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English\n" "Language: en_US\n" From b44e032953c64ee021ef04324647e4a41dcbdc80 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Thu, 15 Mar 2012 09:09:12 +1100 Subject: [PATCH 12/18] Add translation comments explaining a number of strings In particular, bankruptcy affects both players and companies, and the strings may need to be translated differently. Also update PO files appropriately. --- po/en_AU.po | 56 ++++++++++++++++++++++++++++++++--------------------- po/en_CA.po | 56 ++++++++++++++++++++++++++++++++--------------------- po/en_GB.po | 56 ++++++++++++++++++++++++++++++++--------------------- po/en_US.po | 56 ++++++++++++++++++++++++++++++++--------------------- src/move.c | 12 ++++++++++++ 5 files changed, 148 insertions(+), 88 deletions(-) diff --git a/po/en_AU.po b/po/en_AU.po index f19dfa9..f06971d 100644 --- a/po/en_AU.po +++ b/po/en_AU.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2012-03-15 08:15+1100\n" -"PO-Revision-Date: 2012-03-15 08:18+1100\n" +"POT-Creation-Date: 2012-03-15 09:02+1100\n" +"PO-Revision-Date: 2012-03-15 09:05+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Australian)\n" "Language: en_AU\n" @@ -371,7 +371,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:853 +#: src/game.c:606 src/move.c:857 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -562,25 +562,29 @@ msgstr "Are you sure? [^{Y^}/^{N^}] " msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:673 src/move.c:680 src/move.c:1024 src/move.c:1058 +#: src/move.c:673 src/move.c:682 src/move.c:1028 src/move.c:1070 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#: src/move.c:674 +#. TRANSLATORS: %ls is the name of the player being made +#. bankrupt. +#: src/move.c:676 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#: src/move.c:681 +#. TRANSLATORS: %ls is the name of the player that has +#. declared themselves bankrupt. +#: src/move.c:685 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:749 +#: src/move.c:753 msgid " New Company " msgstr " New Company " -#: src/move.c:750 +#: src/move.c:754 #, c-format msgid "" "A new company has been formed!\n" @@ -589,7 +593,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:809 +#: src/move.c:813 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -598,7 +602,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:815 +#: src/move.c:819 msgid " Company Merger " msgstr " Company Merger " @@ -609,14 +613,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:835 +#: src/move.c:839 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has #. absorbed another due to a merger. -#: src/move.c:846 +#: src/move.c:850 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -626,7 +630,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:860 +#: src/move.c:864 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -635,7 +639,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:865 +#: src/move.c:869 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -644,7 +648,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:872 +#: src/move.c:876 msgctxt "subtitle" msgid "New" msgstr "New" @@ -652,12 +656,14 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:878 +#: src/move.c:882 msgctxt "subtitle" msgid "Old" msgstr "Old" -#: src/move.c:1025 +#. TRANSLATORS: %ls is the name of the company +#. that has been made bankrupt. +#: src/move.c:1031 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -668,7 +674,13 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#: src/move.c:1047 +#. TRANSLATORS: %ls is the name of the +#. company that has been made +#. bankrupt. %.2f is a number between +#. 0.00 and 100.00 representing the +#. percentage of company value payed by +#. the bank to players. +#: src/move.c:1059 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -687,7 +699,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1075 +#: src/move.c:1087 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -696,16 +708,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1083 +#: src/move.c:1095 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1176 src/exch.c:319 +#: src/move.c:1188 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1178 +#: src/move.c:1190 #, c-format msgid "" "Your debt has amounted to %N!\n" diff --git a/po/en_CA.po b/po/en_CA.po index f867456..854c3f0 100644 --- a/po/en_CA.po +++ b/po/en_CA.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2012-03-15 08:15+1100\n" -"PO-Revision-Date: 2012-03-15 08:18+1100\n" +"POT-Creation-Date: 2012-03-15 09:02+1100\n" +"PO-Revision-Date: 2012-03-15 09:06+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Canadian)\n" "Language: en_CA\n" @@ -371,7 +371,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:853 +#: src/game.c:606 src/move.c:857 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -562,25 +562,29 @@ msgstr "Are you sure? [^{Y^}/^{N^}] " msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:673 src/move.c:680 src/move.c:1024 src/move.c:1058 +#: src/move.c:673 src/move.c:682 src/move.c:1028 src/move.c:1070 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#: src/move.c:674 +#. TRANSLATORS: %ls is the name of the player being made +#. bankrupt. +#: src/move.c:676 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#: src/move.c:681 +#. TRANSLATORS: %ls is the name of the player that has +#. declared themselves bankrupt. +#: src/move.c:685 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:749 +#: src/move.c:753 msgid " New Company " msgstr " New Company " -#: src/move.c:750 +#: src/move.c:754 #, c-format msgid "" "A new company has been formed!\n" @@ -589,7 +593,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:809 +#: src/move.c:813 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -598,7 +602,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:815 +#: src/move.c:819 msgid " Company Merger " msgstr " Company Merger " @@ -609,14 +613,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:835 +#: src/move.c:839 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has #. absorbed another due to a merger. -#: src/move.c:846 +#: src/move.c:850 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -626,7 +630,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:860 +#: src/move.c:864 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -635,7 +639,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:865 +#: src/move.c:869 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -644,7 +648,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:872 +#: src/move.c:876 msgctxt "subtitle" msgid "New" msgstr "New" @@ -652,12 +656,14 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:878 +#: src/move.c:882 msgctxt "subtitle" msgid "Old" msgstr "Old" -#: src/move.c:1025 +#. TRANSLATORS: %ls is the name of the company +#. that has been made bankrupt. +#: src/move.c:1031 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -668,7 +674,13 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#: src/move.c:1047 +#. TRANSLATORS: %ls is the name of the +#. company that has been made +#. bankrupt. %.2f is a number between +#. 0.00 and 100.00 representing the +#. percentage of company value payed by +#. the bank to players. +#: src/move.c:1059 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -687,7 +699,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1075 +#: src/move.c:1087 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -696,16 +708,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1083 +#: src/move.c:1095 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1176 src/exch.c:319 +#: src/move.c:1188 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1178 +#: src/move.c:1190 #, c-format msgid "" "Your debt has amounted to %N!\n" diff --git a/po/en_GB.po b/po/en_GB.po index 99cd06c..4bc73c7 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2012-03-15 08:15+1100\n" -"PO-Revision-Date: 2012-03-15 08:19+1100\n" +"POT-Creation-Date: 2012-03-15 09:02+1100\n" +"PO-Revision-Date: 2012-03-15 09:06+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (British)\n" "Language: en_GB\n" @@ -371,7 +371,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:853 +#: src/game.c:606 src/move.c:857 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -562,25 +562,29 @@ msgstr "Are you sure? [^{Y^}/^{N^}] " msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:673 src/move.c:680 src/move.c:1024 src/move.c:1058 +#: src/move.c:673 src/move.c:682 src/move.c:1028 src/move.c:1070 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#: src/move.c:674 +#. TRANSLATORS: %ls is the name of the player being made +#. bankrupt. +#: src/move.c:676 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#: src/move.c:681 +#. TRANSLATORS: %ls is the name of the player that has +#. declared themselves bankrupt. +#: src/move.c:685 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:749 +#: src/move.c:753 msgid " New Company " msgstr " New Company " -#: src/move.c:750 +#: src/move.c:754 #, c-format msgid "" "A new company has been formed!\n" @@ -589,7 +593,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:809 +#: src/move.c:813 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -598,7 +602,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:815 +#: src/move.c:819 msgid " Company Merger " msgstr " Company Merger " @@ -609,14 +613,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:835 +#: src/move.c:839 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has #. absorbed another due to a merger. -#: src/move.c:846 +#: src/move.c:850 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -626,7 +630,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:860 +#: src/move.c:864 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -635,7 +639,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:865 +#: src/move.c:869 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -644,7 +648,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:872 +#: src/move.c:876 msgctxt "subtitle" msgid "New" msgstr "New" @@ -652,12 +656,14 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:878 +#: src/move.c:882 msgctxt "subtitle" msgid "Old" msgstr "Old" -#: src/move.c:1025 +#. TRANSLATORS: %ls is the name of the company +#. that has been made bankrupt. +#: src/move.c:1031 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -668,7 +674,13 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#: src/move.c:1047 +#. TRANSLATORS: %ls is the name of the +#. company that has been made +#. bankrupt. %.2f is a number between +#. 0.00 and 100.00 representing the +#. percentage of company value payed by +#. the bank to players. +#: src/move.c:1059 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -687,7 +699,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1075 +#: src/move.c:1087 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -696,16 +708,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1083 +#: src/move.c:1095 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1176 src/exch.c:319 +#: src/move.c:1188 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1178 +#: src/move.c:1190 #, c-format msgid "" "Your debt has amounted to %N!\n" diff --git a/po/en_US.po b/po/en_US.po index 3789ab6..9eece72 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2012-03-15 08:15+1100\n" -"PO-Revision-Date: 2012-03-15 08:19+1100\n" +"POT-Creation-Date: 2012-03-15 09:02+1100\n" +"PO-Revision-Date: 2012-03-15 09:06+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English\n" "Language: en_US\n" @@ -371,7 +371,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:853 +#: src/game.c:606 src/move.c:857 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -562,25 +562,29 @@ msgstr "Are you sure? [^{Y^}/^{N^}] " msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:673 src/move.c:680 src/move.c:1024 src/move.c:1058 +#: src/move.c:673 src/move.c:682 src/move.c:1028 src/move.c:1070 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#: src/move.c:674 +#. TRANSLATORS: %ls is the name of the player being made +#. bankrupt. +#: src/move.c:676 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#: src/move.c:681 +#. TRANSLATORS: %ls is the name of the player that has +#. declared themselves bankrupt. +#: src/move.c:685 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:749 +#: src/move.c:753 msgid " New Company " msgstr " New Company " -#: src/move.c:750 +#: src/move.c:754 #, c-format msgid "" "A new company has been formed!\n" @@ -589,7 +593,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:809 +#: src/move.c:813 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -598,7 +602,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:815 +#: src/move.c:819 msgid " Company Merger " msgstr " Company Merger " @@ -609,14 +613,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:835 +#: src/move.c:839 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has #. absorbed another due to a merger. -#: src/move.c:846 +#: src/move.c:850 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -626,7 +630,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:860 +#: src/move.c:864 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -635,7 +639,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:865 +#: src/move.c:869 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -644,7 +648,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:872 +#: src/move.c:876 msgctxt "subtitle" msgid "New" msgstr "New" @@ -652,12 +656,14 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:878 +#: src/move.c:882 msgctxt "subtitle" msgid "Old" msgstr "Old" -#: src/move.c:1025 +#. TRANSLATORS: %ls is the name of the company +#. that has been made bankrupt. +#: src/move.c:1031 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -668,7 +674,13 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#: src/move.c:1047 +#. TRANSLATORS: %ls is the name of the +#. company that has been made +#. bankrupt. %.2f is a number between +#. 0.00 and 100.00 representing the +#. percentage of company value payed by +#. the bank to players. +#: src/move.c:1059 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -687,7 +699,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1075 +#: src/move.c:1087 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -696,16 +708,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1083 +#: src/move.c:1095 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1176 src/exch.c:319 +#: src/move.c:1188 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1178 +#: src/move.c:1190 #, c-format msgid "" "Your debt has amounted to %N!\n" diff --git a/src/move.c b/src/move.c index 85b159e..8e98d16 100644 --- a/src/move.c +++ b/src/move.c @@ -671,6 +671,8 @@ void bankrupt_player (bool forced) txdlgbox(MAX_DLG_LINES, 50, 7, WCENTER, attr_error_window, attr_error_title, attr_error_highlight, 0, 0, attr_error_waitforkey, _(" Bankruptcy Court "), + /* TRANSLATORS: %ls is the name of the player being made + bankrupt. */ _("%ls has been declared bankrupt " "by the Interstellar Trading Bank."), player[current_player].name); @@ -678,6 +680,8 @@ void bankrupt_player (bool forced) txdlgbox(MAX_DLG_LINES, 50, 7, WCENTER, attr_error_window, attr_error_title, attr_error_highlight, 0, 0, attr_error_waitforkey, _(" Bankruptcy Court "), + /* TRANSLATORS: %ls is the name of the player that has + declared themselves bankrupt. */ _("%ls has declared bankruptcy."), player[current_player].name); } @@ -1022,6 +1026,8 @@ void adjust_values (void) attr_error_title, attr_error_highlight, attr_error_normal, 0, attr_error_waitforkey, _(" Bankruptcy Court "), + /* TRANSLATORS: %ls is the name of the company + that has been made bankrupt. */ _("%ls has been declared bankrupt " "by the Interstellar Trading Bank.\n\n" "^{All assets have been taken " @@ -1044,6 +1050,12 @@ void adjust_values (void) lines = mkchstr(chbuf, BUFSIZE, attr_error_highlight, attr_error_normal, 0, 6, 60 - 4, widthbuf, 6, + /* TRANSLATORS: %ls is the name of the + company that has been made + bankrupt. %.2f is a number between + 0.00 and 100.00 representing the + percentage of company value payed by + the bank to players. */ _("%ls has been declared bankrupt by the " "Interstellar Trading Bank.\n\n" "^{The Bank has agreed to pay stock holders ^}" From 58c8f4fbf054c70ad673b216271a8ca4169dc2ed Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Thu, 15 Mar 2012 14:39:01 +1100 Subject: [PATCH 13/18] Add a preliminary translation into Russian --- po/LINGUAS | 1 + po/ru.po | 1505 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 1506 insertions(+) create mode 100644 po/ru.po diff --git a/po/LINGUAS b/po/LINGUAS index ba1a332..e8eac51 100644 --- a/po/LINGUAS +++ b/po/LINGUAS @@ -31,3 +31,4 @@ en_AU en_CA en_GB en_US +ru diff --git a/po/ru.po b/po/ru.po new file mode 100644 index 0000000..342dd19 --- /dev/null +++ b/po/ru.po @@ -0,0 +1,1505 @@ +# ************************************************************************* +# * * +# * Russian Translations for Star Traders * +# * Русский перевод для игры «Звёздные торговцы» * +# * Copyright (C) 1990-2012, John Zaitseff * +# * * +# ************************************************************************* +# +# This file is distributed under the same licence as Star Traders. +# +# Contributors: +# John Zaitseff , 2011-12. +# +msgid "" +msgstr "" +"Project-Id-Version: trader 7.3\n" +"Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" +"POT-Creation-Date: 2012-03-15 09:02+1100\n" +"PO-Revision-Date: 2012-03-15 14:13+1100\n" +"Last-Translator: John Zaitseff \n" +"Language-Team: Russian\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#: src/trader.c:235 +#, c-format +msgid "%s: invalid value for --max-turn: `%s'\n" +msgstr "%s: неверное значение аргумента для --maxturn: «%s»\n" + +#: src/trader.c:251 +#, c-format +msgid "%s: invalid operand `%s'\n" +msgstr "%s: неверный аргумент «%s»\n" + +#: src/trader.c:260 +#, c-format +msgid "%s: invalid game number `%s'\n" +msgstr "%s: неверный номер игры «%s»\n" + +#: src/trader.c:269 +#, c-format +msgid "%s: extra operand `%s'\n" +msgstr "%s: лишний аргумент «%s»\n" + +#. TRANSLATORS: "John Zaitseff" [IPA d͡ʒɒn ˈzaɪ̯t͡səf] is the proper +#. name of the author. The IPA pronunciation in this comment is in +#. UTF-8 encoding. +#: src/trader.c:284 +#, c-format +msgid "" +"Star Traders (%s) %s\n" +"Copyright (C) %s, John Zaitseff.\n" +"\n" +"Star Traders is a simple game of interstellar trading, where the object\n" +"of the game is to create companies, buy and sell shares, borrow and repay\n" +"money, in order to become the wealthiest player (the winner).\n" +"\n" +"This program is free software that is distributed under the terms of the\n" +"GNU General Public License, version 3 or later. You are welcome to\n" +"modify and/or distribute it under certain conditions. This program has\n" +"NO WARRANTY, to the extent permitted by law; see the License for details.\n" +msgstr "" +"Звёздные торговцы / Star Traders (%s) %s\n" +"Copyright (C) %s, John Zaitseff.\n" +"\n" +"«Звёздные торговцы» — это простая игра межзвёздной торговли, где целю игры\n" +"является создание компаний, покупка и продажа акций, заимствования денег и\n" +"погашение кредита, чтобы стать самым богатым игроком-победителем.\n" +"\n" +"Это свободное программное обеспечение. Вы можете продавать и распространять\n" +"его в пределах лицензии GNU General Public License версии 3 или новее. Нет\n" +"НИКАКИХ ГАРАНТИЙ до степени, разрешённой законом. Для более подробной\n" +"информации, обратитесь к веб-странице .\n" + +#: src/trader.c:308 +#, c-format +msgid "%s: Try `%s --help' for more information.\n" +msgstr "%s: Попробуйте «%s --help» для получения более подробного описания.\n" + +#: src/trader.c:311 +#, c-format +msgid "Usage: %s [OPTION ...] [GAME]\n" +msgstr "Использование: %s [КЛЮЧ ...] [ИГРА]\n" + +#: src/trader.c:312 +#, c-format +msgid "" +"Play Star Traders, a simple game of interstellar trading.\n" +"\n" +msgstr "" +"Играть в «Звёздные торговцы», простая игра межзвёздной торговли.\n" +"\n" + +#: src/trader.c:315 +#, c-format +msgid "" +"Options:\n" +" -V, --version output version information and exit\n" +" -h, --help display this help and exit\n" +" --no-color don't use color for displaying text\n" +" --max-turn=NUM set the number of turns to NUM\n" +"\n" +msgstr "" +"Ключи:\n" +" -V, --version показать информацию о версии и выйти\n" +" -h, --help показать эту справку и выйти\n" +" --no-color не пользоваться цветами во время игры\n" +" --max-turn=НОМЕР установить НОМЕР как максимальный ход игры\n" +"\n" + +#: src/trader.c:322 +#, c-format +msgid "" +"If GAME is specified as a number between 1 and 9, load and continue\n" +"playing that game. If GAME is not specified, start a new game.\n" +"\n" +msgstr "" +"Если аргумент ИГРА указано как число от 1 до 9, загрузить и продолжать\n" +"соответствующую сохранённую игру. По умолчанию, начать новую игру.\n" +"\n" + +#. TRANSLATORS: The first %s is the proper name of the package +#. author, John Zaitseff [IPA d͡ʒɒn ˈzaɪ̯t͡səf]; the second %s is +#. the e-mail address for reporting bugs. Please add ANOTHER +#. line with the (translated) text "Report translation bugs to +#.
\n", with ADDRESS replaced with either an e-mail +#. address or web URL for reporting bugs in your translation. +#: src/trader.c:334 +#, c-format +msgid "Report bugs to %s <%s>.\n" +msgstr "" +"Об ошибках сообщайте по адресу %s <%s>.\n" +"Об ошибках в русском переводе сообщайте по тому же адресу.\n" + +#. TRANSLATORS: %s is the e-mail address for reporting bugs. As +#. with the previous string, please add ANOTHER line with the +#. (translated) text "Report translation bugs to
\n", +#. with ADDRESS replaced with either an e-mail address or web URL +#. for reporting bugs in your translation. +#: src/trader.c:341 +#, c-format +msgid "Report bugs to <%s>.\n" +msgstr "" +"Об ошибках сообщайте по адресу <%s>.\n" +"Об ошибках в русском переводе сообщайте по тому же адресу.\n" + +#. TRANSLATORS: The first %s is for packagers and may be +#. something like "Debian". +#: src/trader.c:346 +#, c-format +msgid "Report %s bugs to <%s>.\n" +msgstr "Об ошибках в %s сообщайте по адресу <%s>.\n" + +#: src/trader.c:349 +#, c-format +msgid "Star Traders home page: <%s>.\n" +msgstr "Домашняя страница «Звёздные торговцы»: <%s>.\n" + +#. TRANSLATORS: The eight company names do NOT have to be literal +#. translations of the English names. In fact, if possible, the +#. names should start with successive letters of your alphabet (in +#. English, for example, "A" to "H"). No company name should be more +#. than 24 characters (column positions, to be precise) long. +#: src/globals.c:46 +msgid "Altair Starways" +msgstr "Альтаирские торговцы" + +#: src/globals.c:47 +msgid "Betelgeuse, Ltd" +msgstr "ОАО «Бетельгейзе»" + +#: src/globals.c:48 +msgid "Capella Freight Co" +msgstr "Возчики вегавские" + +#: src/globals.c:49 +msgid "Denebola Shippers" +msgstr "Грузоотправители Гидры" + +#: src/globals.c:50 +msgid "Eridani Expediters" +msgstr "Диспетчеры Денеболы" + +#: src/globals.c:51 +msgid "Fornax Express" +msgstr "Единодушные трейдеры" + +#: src/globals.c:52 +msgid "Gemeni Inc" +msgstr "Живой брокер Капеллы" + +#: src/globals.c:53 +msgid "Hercules and Co" +msgstr "Звёздные линии Земли" + +#. TRANSLATORS: This string specifies the keycodes (keyboard input +#. codes) used to enter the Stock Transaction window for each +#. company. There must be exactly eight characters, one for each +#. company in order, before the ASCII vertical line "|"; these must +#. be EITHER all in upper-case or all in lower-case. If at all +#. possible, these should be successive letters in your alphabet (in +#. English, "A" to "H"). Do NOT use digits or control characters. +#. Do not change or translate anything after the vertical line. +#: src/globals.c:67 +msgid "ABCDEFGH|input|Companies" +msgstr "АБВГДЕЖЗ|input|Companies" + +#. TRANSLATORS: This string specifies the keycodes used to select a +#. game move. There must be exactly 20 characters, one for each +#. move, before the ASCII vertical line "|"; these must be EITHER all +#. in upper-case or all in lower-case. If at all possible, these +#. should be successive letters in your alphabet. Do NOT use digits +#. or control characters. Do not change or translate anything after +#. the vertical line. +#: src/globals.c:79 +msgid "ABCDEFGHIJKLMNOPQRST|input|GameMoves" +msgstr "АБВГДЕЖЗИЙКЛМНОПРСТУ|input|GameMoves" + +#. TRANSLATORS: This string is used to display the galaxy map to +#. screen. There must be exactly 11 characters before the ASCII +#. vertical line. The first ("." in English) is used for empty +#. space, the second ("+") for outposts, the third ("*") for stars, +#. the remaining for the eight companies. Do not change or translate +#. anything after the vertical line. +#: src/globals.c:90 +msgid ".+*ABCDEFGH|output|MapVals" +msgstr ".+*АБВГДЕЖЗ|output|MapVals" + +#. TRANSLATORS: This string is used to display the game moves +#. (choices). There must be exactly 20 characters (NUMBER_MOVES) +#. before the ASCII vertical line. The first character corresponds +#. to the first character in the "input|GameMoves" string, and so on. +#. Do not change or translate anything after the vertical line. +#: src/globals.c:100 +msgid "abcdefghijklmnopqrst|output|GameMoves" +msgstr "абвгдежзийклмнопрсту|output|GameMoves" + +#. TRANSLATORS: The ordinal strings "1st" to "8th" are used in the +#. Game Winner dialog box at the end of the game. If ordinals depend +#. on the gender of the player, it may be simpler to list cardinal +#. numbers instead (eg, "No. 1"). Up to five characters are allowed +#. (see ORDINAL_COLS in src/intf.h). +#: src/globals.c:111 +msgid "1st" +msgstr "1ый" + +#: src/globals.c:112 +msgid "2nd" +msgstr "2ой" + +#: src/globals.c:113 +msgid "3rd" +msgstr "3ий" + +#: src/globals.c:114 +msgid "4th" +msgstr "4ый" + +#: src/globals.c:115 +msgid "5th" +msgstr "5ый" + +#: src/globals.c:116 +msgid "6th" +msgstr "6ой" + +#: src/globals.c:117 +msgid "7th" +msgstr "7ой" + +#: src/globals.c:118 +msgid "8th" +msgstr "8ой" + +#: src/game.c:117 src/game.c:152 +#, c-format +msgid "Loading game %d... " +msgstr "Загружается игра №%d... " + +#: src/game.c:226 +msgid " First Player " +msgstr " Первый игрок " + +#: src/game.c:227 +#, c-format +msgid "The first player to go is ^{%ls^}." +msgstr "Первый игрок избран: ^{%ls^}." + +#. TRANSLATORS: The keycode should be modified to +#. match that (or those) specified with msgctxt +#. "input|ContinueGame". +#: src/game.c:259 +#, c-format +msgid "Enter number of players [^{1^}-^{%d^}] or ^{^} to continue a game: " +msgstr "Введите число игроков [^{1^}-^{%d^}], или ^{<П>^} для продолжения старой игры: " + +#. TRANSLATORS: This string specifies the keycodes used to continue a +#. game; these must NOT contain any numeric digit from 1 to 9. The +#. first character (keyboard input code) is used to print the user's +#. response if one of those keys is pressed. Both upper and +#. lower-case versions should be present. +#: src/game.c:276 +msgctxt "input|ContinueGame" +msgid "Cc" +msgstr "Пп" + +#: src/game.c:341 src/move.c:386 +msgid "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " +msgstr "Введите номер игры [^{1^}-^{9^}], или ^{^}, чтобы отменить: " + +#: src/game.c:406 +msgid "Please enter your name: " +msgstr "Ваше имя: " + +#: src/game.c:425 +msgid "Do you need any instructions? [^{Y^}/^{N^}] " +msgstr "Показать ли Вам справку о том, как играть? [^{Д^}/^{Н^}] " + +#: src/game.c:443 +msgid " Enter Player Names " +msgstr " Имена игроков " + +#: src/game.c:451 +#, c-format, range: 1..8 +msgid "Player %d: " +msgstr "Игрок №%d: " + +#: src/game.c:529 +msgid "Does any player need instructions? [^{Y^}/^{N^}] " +msgstr "Показать ли справку о том, как играть? [^{Д^}/^{Н^}] " + +#: src/game.c:563 +msgid " Game Over " +msgstr " Конец игры " + +#: src/game.c:564 +#, c-format +msgid "The game is over after one turn." +msgid_plural "The game is over after %d turns." +msgstr[0] "Игра закончена после %d-го хода." +msgstr[1] "Игра закончена после %d-го хода." +msgstr[2] "Игра закончена после %d-го хода." + +#: src/game.c:575 +msgid " Total Value " +msgstr " Общая стоимость " + +#: src/game.c:577 +#, c-format +msgid "Your total value was ^{%N^}." +msgstr "Ваша общая стоимость выразилась в сумме ^{%N^}." + +#: src/game.c:588 +#, c-format +msgid "" +"The winner is ^{%ls^}\n" +"who is ^[*** BANKRUPT ***^]" +msgstr "" +"Победитель игры — ^{%ls^},\n" +"который является ^[*** БАНКРОТОМ ***^]" + +#: src/game.c:591 +#, c-format +msgid "" +"The winner is ^{%ls^}\n" +"with a value of ^{%N^}." +msgstr "" +"Победитель игры — ^{%ls^}!\n" +"Общая стоимость этого игрока выразилась в сумме ^{%N^}." + +#: src/game.c:597 +msgid " Game Winner " +msgstr " Победитель игры " + +#. TRANSLATORS: "Player" is used as a column title in a +#. table containing all player names. +#: src/game.c:606 src/move.c:857 +msgctxt "subtitle" +msgid "Player" +msgstr "Игрок" + +#. TRANSLATORS: "Total Value" refers to the total worth +#. (shares, cash and debt) of any given player. %ls is the +#. currency symbol of the current locale. +#: src/game.c:611 +#, c-format +msgctxt "subtitle" +msgid "Total Value (%ls)" +msgstr "Общая стоимость (%ls)" + +#: src/game.c:645 src/game.c:695 src/exch.c:100 +#, c-format +msgid "Player: ^{%ls^}" +msgstr "Игрок: ^{%ls^}" + +#: src/game.c:648 +#, c-format +msgid " Turn: ^{%d^} " +msgstr " Ход: ^{%d^}-й " + +#: src/game.c:649 +msgid " ^[*** Last Turn ***^] " +msgstr " ^[*** Последний ход ***^] " + +#: src/game.c:693 +msgid " Stock Portfolio " +msgstr " Портфель акций " + +#. TRANSLATORS: The current player is bankrupt (has no +#. shares or cash, ie, whose total value is zero) +#: src/game.c:702 +msgid "^[* * * B A N K R U P T * * *^]" +msgstr "^[* * * О Б А Н К Р О Т И В Ш И Й С Я * * *^]" + +#: src/game.c:717 src/exch.c:112 +msgid "No companies on the map" +msgstr "Нет акционерных обществ на карте" + +#. TRANSLATORS: "Company" is a two-line column label in +#. a table containing a list of companies. +#: src/game.c:725 src/exch.c:120 +msgctxt "subtitle" +msgid "" +"\n" +"Company" +msgstr "" +"\n" +"Фирма" + +#. TRANSLATORS: "Ownership" is a two-line column label +#. in a table containing the current player's +#. percentage ownership in any given company. The +#. maximum column width is 10 characters (see +#. OWNERSHIP_COLS in src/intf.h). +#: src/game.c:732 +#, c-format +msgctxt "subtitle" +msgid "" +"Ownership\n" +"(%%)" +msgstr "" +"Владение\n" +"(%%)" + +#. TRANSLATORS: "Holdings" is a two-line column label +#. in a table containing the number of shares the +#. current player owns in any given company. The +#. maximum column width is 10 characters (see +#. STOCK_OWNED_COLS in src/intf.h). +#: src/game.c:739 +msgctxt "subtitle" +msgid "" +"Holdings\n" +"(shares)" +msgstr "" +"Владение\n" +"(акции)" + +#. TRANSLATORS: "Return" is a two-line column label in +#. a table containing the share return as a percentage +#. in any given company. The maximum column width is +#. 10 characters (see SHARE_RETURN_COLS in src/intf.h). +#: src/game.c:746 src/exch.c:141 +#, c-format +msgctxt "subtitle" +msgid "" +"Return\n" +"(%%)" +msgstr "" +"Возврат\n" +"(%%)" + +#. TRANSLATORS: "Price per share" is a two-line column +#. label in a table containing the price per share in +#. any given company. %ls is the currency symbol in +#. the current locale. The maximum column width is 12 +#. characters INCLUDING the currency symbol (see +#. SHARE_PRICE_COLS in src/intf.h). +#: src/game.c:755 src/exch.c:150 +#, c-format +msgctxt "subtitle" +msgid "" +"Price per\n" +"share (%ls)" +msgstr "" +"Цена\n" +"акции (%ls)" + +#. TRANSLATORS: The "Total value", "Current cash", +#. "Current debt" and "Interest rate" labels MUST all be +#. the same length (ie, right-padded with spaces as +#. needed) and must have at least one trailing space so +#. that the display routines work correctly. The maximum +#. length of each label is 36 characters. +#. +#. Note that some of these labels are used for both the +#. Player Status window and the Trading Bank window. +#: src/game.c:796 +msgctxt "label" +msgid "Total value: " +msgstr "Общая стоимость: " + +#: src/game.c:800 src/exch.c:322 +msgctxt "label" +msgid "Current cash: " +msgstr "Текущие наличные: " + +#: src/game.c:807 src/exch.c:330 +msgctxt "label" +msgid "Current debt: " +msgstr "Текущая задолженность: " + +#: src/game.c:813 src/exch.c:335 +msgctxt "label" +msgid "Interest rate: " +msgstr "Процентная ставка: " + +#: src/move.c:239 src/exch.c:182 +msgid "^{<1>^} Display stock portfolio" +msgstr "^{<1>^} Показать портфель акций" + +#: src/move.c:241 +msgid "^{<2>^} Declare bankruptcy" +msgstr "^{<2>^} Объявить банкротство" + +#: src/move.c:243 +msgid "^{<3>^} Save and end the game" +msgstr "^{<3>^} Сохранить и закончить игру" + +#: src/move.c:245 +msgid "^{^} Quit the game" +msgstr "^{^} Выйти из игры" + +#: src/move.c:249 +#, c-format +msgid "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " +msgstr "Введите выбор [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " + +#. TRANSLATORS: "Move" refers to the choice of +#. moves made by the current player (out of a +#. selection of 20 moves). +#: src/move.c:282 +#, c-format +msgid "Move ^{%lc^}" +msgstr "Заход ^{%lc^}" + +#: src/move.c:303 +msgid "^{<2>^} (Declare bankruptcy)" +msgstr "^{<2>^} (Объявить банкротство)" + +#: src/move.c:312 +msgid "^{<3>^} (Save and end the game)" +msgstr "^{<3>^} (Сохранить и закончить игру)" + +#: src/move.c:333 +msgid "^{^} (Quit the game)" +msgstr "^{^} (Выйти из игры)" + +#: src/move.c:348 +msgid "Are you sure? [^{Y^}/^{N^}] " +msgstr "Вы уверены? [^{Д^}/^{Н^}] " + +#: src/move.c:365 src/move.c:443 +#, c-format +msgid "Saving game %d... " +msgstr "Сохраняется игра №%d... " + +#: src/move.c:673 src/move.c:682 src/move.c:1028 src/move.c:1070 +msgid " Bankruptcy Court " +msgstr " Арбитражный суд " + +#. TRANSLATORS: %ls is the name of the player being made +#. bankrupt. +#: src/move.c:676 +#, c-format +msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." +msgstr "Межзвёздный торговой банк объявляет, что игрок %ls обанкротился." + +#. TRANSLATORS: %ls is the name of the player that has +#. declared themselves bankrupt. +#: src/move.c:685 +#, c-format +msgid "%ls has declared bankruptcy." +msgstr "%ls объявляет своё банкротство." + +#: src/move.c:753 +msgid " New Company " +msgstr " Новая фирма " + +#: src/move.c:754 +#, c-format +msgid "" +"A new company has been formed!\n" +"Its name is ^{%ls^}." +msgstr "" +"Сформировано новое торговое предприятие!\n" +"Оно называется ^{%ls^}." + +#: src/move.c:813 +#, c-format +msgid "" +"^{%ls^} has just merged into ^{%ls^}.\n" +"Please note the following transactions:\n" +msgstr "Фирма ^{%ls^} только-что была поглощена фирмой ^{%ls^}. Обратите внимание на следующие транзакции:\n" + +#: src/move.c:819 +msgid " Company Merger " +msgstr " Слияние компаний " + +#. TRANSLATORS: "Old stock" refers to the company that has +#. just ceased existence due to a merger. +#. +#. Note that the "Old stock" and "New stock" labels MUST be +#. the same length and must contain a trailing space for the +#. display routines to work correctly. The maximum length of +#. each label is 36 characters. +#: src/move.c:839 +msgctxt "label" +msgid "Old stock: " +msgstr "Старые акции: " + +#. TRANSLATORS: "New stock" refers to the company that has +#. absorbed another due to a merger. +#: src/move.c:850 +msgctxt "label" +msgid "New Stock: " +msgstr "Новые акции: " + +#. TRANSLATORS: "Bonus" refers to the bonus cash amount paid to +#. each player after two companies merge. %ls is the currency +#. symbol in the current locale. The maximum column width is +#. 12 characters INCLUDING the currency symbol (see +#. MERGE_BONUS_COLS in src/intf.h). +#: src/move.c:864 +#, c-format +msgctxt "subtitle" +msgid "Bonus (%ls)" +msgstr "Бонус (%ls)" + +#. TRANSLATORS: "Total" refers to the total number of shares in +#. the new company after a merger. The maximum column width is +#. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). +#: src/move.c:869 +msgctxt "subtitle" +msgid "Total" +msgstr "Итог" + +#. TRANSLATORS: "New" refers to how many (new) shares each +#. player receives in the surviving company after a merger. +#. The maximum column width is 8 characters (see +#. MERGE_NEW_STOCK_COLS in src/intf.h). +#: src/move.c:876 +msgctxt "subtitle" +msgid "New" +msgstr "Новые" + +#. TRANSLATORS: "Old" refers to how many shares each player had +#. in the company ceasing existence. The maximum column width +#. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). +#: src/move.c:882 +msgctxt "subtitle" +msgid "Old" +msgstr "Старые" + +#. TRANSLATORS: %ls is the name of the company +#. that has been made bankrupt. +#: src/move.c:1031 +#, c-format +msgid "" +"%ls has been declared bankrupt by the Interstellar Trading Bank.\n" +"\n" +"^{All assets have been taken to repay outstanding loans.^}" +msgstr "" +"Межзвёздный торговый банк объявляет, что фирма %ls обанкротилась.\n" +"\n" +"^{Все активы схвачены банком, чтобы погасить долги фирма.^}" + +#. TRANSLATORS: %ls is the name of the +#. company that has been made +#. bankrupt. %.2f is a number between +#. 0.00 and 100.00 representing the +#. percentage of company value payed by +#. the bank to players. +#: src/move.c:1059 +#, c-format +msgid "" +"%ls has been declared bankrupt by the Interstellar Trading Bank.\n" +"\n" +"^{The Bank has agreed to pay stock holders ^}%.2f%%^{ of the share value on each share owned.^}" +msgstr "" +"Межзвёздный торговый банк объявляет, что фирма %ls обанкротилась.\n" +"\n" +"^{Банк согласился выплатить акционерам^}\n" +"%.2f%%^{ от стоимости акций.^}" + +#. TRANSLATORS: The label "Amount paid per share" +#. refers to payment made by the Interstellar +#. Trading Bank to each player upon company +#. bankruptcy. This label MUST be the same +#. length as "Old share value" and MUST have at +#. least one trailing space for the display +#. routines to work correctly. The maximum +#. length is 28 characters. +#: src/move.c:1087 +msgctxt "label" +msgid "Amount paid per share: " +msgstr "Выплаченная сумма за акцию: " + +#. TRANSLATORS: "Old share value" refers to the +#. share price of a company before it was forced +#. into bankruptcy by the Bank. This label must be +#. the same width as "Amount paid per share". +#: src/move.c:1095 +msgctxt "label" +msgid "Old share value: " +msgstr "Старая цена акции: " + +#: src/move.c:1188 src/exch.c:319 +msgid " Interstellar Trading Bank " +msgstr " Межзвёздный торговый банк " + +#: src/move.c:1190 +#, c-format +msgid "" +"Your debt has amounted to %N!\n" +"^{The Bank has impounded ^}%N^{ from your cash.^}" +msgstr "" +"Ваш долг выражается в сумме %N!\n" +"\n" +"^{Межзвёздный торговый банк конфисковал^}\n" +"%N^{ с Ваших наличных.^}" + +#: src/exch.c:98 +msgid " Interstellar Stock Exchange " +msgstr " Межзвёздная фондовая биржа " + +#. TRANSLATORS: "Shares left" is a two-line column +#. label in a table containing the number of shares +#. left to be purchased in any given company. The +#. maximum column width is 10 characters (see +#. STOCK_LEFT_COLS in src/intf.h). +#: src/exch.c:127 +msgctxt "subtitle" +msgid "" +"Shares\n" +"left" +msgstr "" +"Оставшиеся\n" +"акции" + +#. TRANSLATORS: "Shares issued" is a two-line column +#. label in a table containing the number of shares +#. already sold (ie, bought by all players) in any +#. given company. The maximum column width is 10 +#. characters (see STOCK_ISSUED_COLS in src/intf.h). +#: src/exch.c:134 +msgctxt "subtitle" +msgid "" +"Shares\n" +"issued" +msgstr "" +"Выпущенные\n" +"акции" + +#: src/exch.c:184 +msgid "^{<2>^} Display galaxy map" +msgstr "^{<2>^} Показать карту галактики" + +#: src/exch.c:186 +msgid "^{<3>^} Visit the Trading Bank" +msgstr "^{<3>^} Посетить торговый банк" + +#: src/exch.c:188 +msgid "^{<4>^} Exit the Stock Exchange" +msgstr "^{<4>^} Выйти из фондовой биржи" + +#: src/exch.c:191 +msgid "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " +msgstr "Введите выбор [^[Код фирмы^]/^{1^}-^{4^}]: " + +#. TRANSLATORS: The "Total value", "Current cash", "Current +#. debt", "Interest rate" and "Credit limit" labels MUST all be +#. the same length (ie, right-padded with spaces as needed) and +#. must have at least one trailing space so that the display +#. routines work correctly. The maximum length of each label +#. is 36 characters. +#. +#. Note that some of these labels are used for both the Player +#. Status window and the Trading Bank window. +#: src/exch.c:349 +msgctxt "label" +msgid "Credit limit: " +msgstr "Предел кредита: " + +#. TRANSLATORS: The "Borrow money", "Repay debt" and "Exit +#. from the Bank" menu options must all be the same length +#. (ie, padded with trailing spaces as required). The maximum +#. length is 72 characters. +#: src/exch.c:364 +msgid "^{<1>^} Borrow money " +msgstr "^{<1>^} Занимать деньги" + +#: src/exch.c:366 +msgid "^{<2>^} Repay debt " +msgstr "^{<2>^} Погашать долг " + +#: src/exch.c:368 +msgid "^{<3>^} Exit from the Bank" +msgstr "^{<3>^} Выйти из банка " + +#: src/exch.c:371 +msgid "Enter selection [^{1^}-^{3^}]: " +msgstr "Введите выбор [^{1^}-^{3^}]: " + +#: src/exch.c:424 +msgid " Insufficient Credit Limit " +msgstr " Недостаточный предел кредита " + +#: src/exch.c:425 +msgid "The Bank will not lend you any more money." +msgstr "Банк не готов предоставлять Вам больше денег." + +#: src/exch.c:445 +msgid "How much do you wish to borrow? " +msgstr "Сколько Вы хотите взять в кредит? " + +#: src/exch.c:477 +msgid " No Debt " +msgstr " Нет долга " + +#: src/exch.c:478 +msgid "You have no debt to repay." +msgstr "У Вас нет долга погасить." + +#: src/exch.c:482 +msgid " No Cash " +msgstr " Нет наличных " + +#: src/exch.c:483 +msgid "You have no cash with which to repay the debt!" +msgstr "У Вас нет наличных, чем бы погашать долг!" + +#: src/exch.c:503 +msgid "How much do you wish to repay? " +msgstr "Сколько Вы хотите вернуть? " + +#. TRANSLATORS: %ls represents the company name. +#: src/exch.c:579 +#, c-format +msgid " Stock Transaction in %ls " +msgstr " Биржевая операция в фирме %ls " + +#. TRANSLATORS: "Shares issued" represents the number of +#. shares already sold by the company to all players. +#. +#. Note that the labels "Shares issued", "Shares left", +#. "Price per share" and "Return" must all be the same length +#. and must have at least one trailing space for the output +#. routines to work correctly. The maximum length of each +#. label is 22 characters. +#: src/exch.c:590 +msgctxt "label|Stock A" +msgid "Shares issued: " +msgstr "Выпущенные акции: " + +#. TRANSLATORS: "Shares left" is the number of shares that are +#. left to be purchased in the current company. +#: src/exch.c:598 +msgctxt "label|Stock A" +msgid "Shares left: " +msgstr "Оставшиеся акции: " + +#. TRANSLATORS: "Price per share" is the cost of each share in +#. the current company. +#: src/exch.c:605 +msgctxt "label|Stock A" +msgid "Price per share: " +msgstr "Цена акции: " + +#. TRANSLATORS: "Return" is the share return as a percentage. +#: src/exch.c:611 +msgctxt "label|Stock A" +msgid "Return: " +msgstr "Возврат: " + +#. TRANSLATORS: "Current holdings" is the number of shares the +#. current player owns in this particular company. +#. +#. Note that the labels "Current holdings", "Percentage owned" +#. and "Current cash" MUST all be the same length and contain at +#. least one trailing space for the display routines to work +#. correctly. The maximum length of each label is 18 +#. characters. +#: src/exch.c:624 +msgctxt "label|Stock B" +msgid "Current holdings: " +msgstr "Владение (акции): " + +#. TRANSLATORS: "Percentage owned" is the current player's +#. percentage ownership in this particular company. +#: src/exch.c:631 +msgctxt "label|Stock B" +msgid "Percentage owned: " +msgstr "Владение: " + +#: src/exch.c:636 +msgctxt "label|Stock B" +msgid "Current cash: " +msgstr "Текущие наличные: " + +#: src/exch.c:647 +msgid "^{<1>^} Buy stock from company" +msgstr "^{<1>^} Покупать акции от фирмы" + +#: src/exch.c:649 +msgid "^{<2>^} Sell stock back to company" +msgstr "^{<2>^} Продавать акции обратно фирме" + +#: src/exch.c:651 +msgid "^{<3>^} Bid company to issue more shares" +msgstr "^{<3>^} Предлагать фирме выпустить акции" + +#: src/exch.c:653 +msgid "^{<4>^} Exit to the Stock Exchange" +msgstr "^{<4>^} Выйти на фондовую биржу" + +#: src/exch.c:656 +msgid "Enter selection [^{1^}-^{4^}]: " +msgstr "Введите выбор [^{1^}-^{4^}]: " + +#: src/exch.c:712 +msgid " No Shares Available " +msgstr " Акции не доступны " + +#: src/exch.c:713 +msgid "No more shares are available for purchase." +msgstr "Нет осталось больше акций для покупки." + +#: src/exch.c:717 +msgid " Insufficient Cash " +msgstr " Недостаточно наличных " + +#: src/exch.c:718 +msgid "" +"You do not have enough cash\n" +"to purchase additional shares." +msgstr "" +"У Вас нет достаточно денег, чтобы\n" +"приобрести дополнительные акции." + +#: src/exch.c:729 +#, c-format +msgid "You can purchase ^{one^} share." +msgid_plural "You can purchase up to ^{%'ld^} shares." +msgstr[0] "Вы можете приобрести до ^{%'ld-ой^} акции." +msgstr[1] "Вы можете приобрести до ^{%'ld-х^} акций." +msgstr[2] "Вы можете приобрести до ^{%'ld^} акций." + +#: src/exch.c:735 +msgid "How many shares do you wish to purchase? " +msgstr "Сколько акций Вы хотите приобрести? " + +#: src/exch.c:756 +msgid " No Shares " +msgstr " Нет акций " + +#: src/exch.c:757 +msgid "You do not have any shares to sell." +msgstr "У Вас нет ни одной акции для продажи." + +#: src/exch.c:764 +#, c-format +msgid "You can sell ^{one^} share." +msgid_plural "You can sell up to ^{%'ld^} shares." +msgstr[0] "Вы можете продать до ^{%'ld-ой^} акции." +msgstr[1] "Вы можете продать до ^{%'ld-х^} акций." +msgstr[2] "Вы можете продать до ^{%'ld^} акций." + +#: src/exch.c:770 +msgid "How many shares do you wish to sell? " +msgstr "Сколько акций Вы хотите продать? " + +#: src/exch.c:798 +msgid " No Shares Issued " +msgstr " Акции не выпущенны " + +#. TRANSLATORS: %ls represents the company name. +#: src/exch.c:800 +#, c-format +msgid "" +"%ls has refused\n" +"to issue more shares." +msgstr "Фирма %ls отказалась выпустить больше акций." + +#: src/exch.c:805 +msgid " Shares Issued " +msgstr " Акции выпущенны " + +#. TRANSLATORS: %ls represents the company name. +#: src/exch.c:807 +#, c-format +msgid "" +"%ls has issued\n" +"^{one^} more share." +msgid_plural "" +"%ls has issued\n" +"^{%'ld^} more shares." +msgstr[0] "" +"Фирма %ls выпустила\n" +"ещё ^{%'ld-у^} акцию." +msgstr[1] "" +"Фирма %ls выпустила\n" +"ещё ^{%'ld^} акции." +msgstr[2] "" +"Фирма %ls выпустила\n" +"ещё ^{%'ld^} акций." + +#: src/fileio.c:55 src/fileio.c:92 src/fileio.c:131 src/fileio.c:381 +#, c-format +msgid "%s: missing field on line %d" +msgstr "%s: отсутствующее поле в строке %d" + +#: src/fileio.c:60 +#, c-format +msgid "%s: illegal field on line %d: `%s'" +msgstr "%s: неверное поле в строке %d: «%s»" + +#: src/fileio.c:64 +#, c-format +msgid "%s: illegal value on line %d: `%s'" +msgstr "%s: неверное значение в строке %d: «%s»" + +#: src/fileio.c:96 src/fileio.c:135 src/fileio.c:393 +#, c-format +msgid "%s: illegal value on line %d" +msgstr "%s: неверное значение в строке %d" + +#: src/fileio.c:103 +#, c-format +msgid "%s: illegal characters on line %d" +msgstr "%s: неверные символы в строке %d" + +#: src/fileio.c:184 +#, c-format +msgid "%s: could not convert string" +msgstr "%s: не возможно преобразовать строку" + +#: src/fileio.c:255 +msgid " Game Not Found " +msgstr " Игра не найдена " + +#: src/fileio.c:256 +#, c-format +msgid "Game %d has not been saved to disk." +msgstr "Игра №%d не была сохранена." + +#: src/fileio.c:263 +msgid " Game Not Loaded " +msgstr " Игра не загружена " + +#: src/fileio.c:264 +#, c-format +msgid "" +"Game %d could not be loaded from disk.\n" +"\n" +"^{File %s: %s^}" +msgstr "" +"Не удалось загрузить сохранённую игру №%d.\n" +"\n" +"^{Файл %s: %s^}" + +#: src/fileio.c:316 +#, c-format +msgid "%s: missing header in game file" +msgstr "%s: отсутствует заголовок в игровом файле" + +#: src/fileio.c:319 +#, c-format +msgid "%s: not a valid game file" +msgstr "%s: неверный формат игрового файла" + +#: src/fileio.c:322 src/fileio.c:329 +#, c-format +msgid "%s: missing subheader in game file" +msgstr "%s: отсутствует подзаголовок в игровом файле" + +#: src/fileio.c:325 +#, c-format +msgid "%s: saved under a different version of Star Traders" +msgstr "%s: файл сохранён в другой версии игры «Звёздные торговцы»" + +#: src/fileio.c:332 +#, c-format +msgid "%s: saved under an incompatible character encoding" +msgstr "%s: файл использовает несовместимую кодировку" + +#: src/fileio.c:340 +#, c-format +msgid "%s: illegal or missing field on line %d" +msgstr "%s: либо неверное поле, либо отсутствующее поле, в строке %d" + +#: src/fileio.c:384 +#, c-format +msgid "%s: illegal field on line %d" +msgstr "%s: неверное поле в строке %d" + +#: src/fileio.c:466 src/fileio.c:487 +msgid " Game Not Saved " +msgstr " Игра не сохранена " + +#: src/fileio.c:467 +#, c-format +msgid "" +"Game %d could not be saved to disk.\n" +"\n" +"^{Directory %s: %s^}" +msgstr "" +"Не возможно сохранить игру №%d.\n" +"\n" +"^{Папка %s: %s^}" + +#: src/fileio.c:488 +#, c-format +msgid "" +"Game %d could not be saved to disk.\n" +"\n" +"^{File %s: %s^}" +msgstr "" +"Не возможно сохранить игру №%d.\n" +"\n" +"^{Файл %s: %s^}" + +#. TRANSLATORS: The help text for Star Traders is marked up using a +#. custom mark-up format NOT used anywhere else in the source code. +#. +#. Each string is a single page of text that is displayed in an area 76 +#. columns wide by 16 lines high. Each line is delimited by "\n". NO +#. word-wrapping is performed: you must place the "\n" characters in the +#. appropriate place. Ideally, each line within the string should be +#. also (manually) space-justified or centred. TAB characters and other +#. control codes must NOT be used. If a string starts with "@" as the +#. very first character, that string is ignored (as are all strings +#. following): this allows a variable number of help text pages (from +#. one to ten). Multibyte strings are handled correctly (even those +#. requiring shift sequences!). +#. +#. The ASCII circumflex accent character "^" switches to a different +#. character rendition (also called attributes), depending on the +#. character following the "^": +#. +#. ^^ - Print the circumflex accent (ASCII code U+005E) +#. ^N - Switch to using the normal character rendition +#. ^B - Switch to using the bold character rendition +#. ^H - Switch to using the highlight character rendition +#. ^K - Switch to using the keycode character rendition (such as used for "") +#. ^e - Switch to using the character rendition used for empty space +#. ^o - Switch to using the character rendition used for outposts +#. ^s - Switch to using the character rendition used for stars +#. ^c - Switch to using the character rendition used for companies +#. ^k - Switch to using the character rendition used for keyboard choices on the galaxy map +#. +#. The help text parsing routines also understand the following "value +#. escapes" introduced by the ASCII tilde character "~"; these act like +#. "%" conversion specifiers in printf(): +#. +#. ~~ - Print the tilde character (ASCII code U+007E) [*] +#. ~x - Print the width of the galaxy map (MAX_X) [**] +#. ~y - Print the height of the galaxy map (MAX_Y) [**] +#. ~m - Print the number of moves available (NUMBER_MOVES) [**] +#. ~c - Print the maximum number of companies that can be formed (MAX_COMPANIES) [*] +#. ~t - Prints the default number of turns in the game (DEFAULT_MAX_TURN) [**] +#. ~1 to ~9 - Print the keycode for the N-th choice of move [***] +#. ~M - Print the keycode for the last choice of move [***] +#. ~A to ~H - Print the character used to represent the company on the galaxy map [***] +#. ~. - Print the character used to represent empty space on the map [***] +#. ~+ - Print the character used to represent outposts on the map [***] +#. ~* - Print the character used to represent stars on the map [***] +#. +#. [*] Takes one character space (column space) in the output +#. [**] Takes two column spaces in the output +#. [***] Takes one or two column spaces in the output, depending on the +#. appropriate strings in the current PO file. +#. +#. Note that all keycodes and map representation characters use locale- +#. specific characters; double-width characters ARE supported. Note +#. also that the tilde value escapes do NOT change the current character +#. rendition: a circumflex accent escape is needed for that. For +#. example, to display the first choice of move as it would be shown on +#. the galaxy map, use something like "^k~1^N" (a six-character sequence +#. that would translate to just one character (or maybe two) in the +#. output text). +#. +#: src/help.c:103 +msgid "" +"^BStar Traders^N is a simple game of interstellar trading. The object of the\n" +"game is to amass the greatest amount of wealth possible. This is done by\n" +"creating interstellar shipping lanes, expanding them and buying shares in\n" +"the companies controlling them. Shares appreciate in value as company\n" +"operations expand. In addition, the return on each share (as a percentage)\n" +"also changes. Players may also borrow from the Interstellar Trading Bank to\n" +"finance additional purchases on the Stock Exchange.\n" +"\n" +"The map of the galaxy is represented by a ^B~x^N x ^B~y^N grid. A typical section\n" +"of it may be:\n" +"\n" +" ^e ~. ~. ^s~*^e ~. ~. ~. ^s~*^e ^s~*^e ~. ^N\n" +" ^e ~. ~. ~. ~. ~. ~. ~. ~. ~. ^N ^e ~. ^N represents ^Bempty space^N,\n" +" ^e ~. ^s~*^e ~. ~. ~. ~. ~. ~. ~. ^N ^s ~* ^N represents a ^Bstar^N.\n" +" ^e ~. ~. ~. ~. ~. ~. ~. ^s~*^e ~. ^N\n" +" ^e ~. ~. ~. ~. ^s~*^e ~. ~. ~. ~. ^N\n" +msgstr "" + +#: src/help.c:122 +msgid "" +"The computer selects ^B~m^N moves (labeled ^k~1^N to ^k~M^N) at random, and places these\n" +"on the map. To select any of the highlighted positions, press that letter.\n" +"For example, some of the moves on the map may be:\n" +"\n" +"\n" +" ^e ^k~1^e ~. ^s~*^e ~. ~. ~. ^s~*^e ^s~*^e ~. ^N\n" +" ^e ~. ~. ~. ^k~3^e ~. ~. ~. ~. ~. ^N\n" +" ^e ~. ^s~*^e ~. ~. ~. ~. ^k~5^e ~. ~. ^N Moves ^k~1^N to ^k~5^N shown.\n" +" ^e ~. ^k~2^e ~. ~. ^k~4^e ~. ~. ^s~*^e ~. ^N\n" +" ^e ~. ~. ~. ~. ^s~*^e ~. ~. ~. ~. ^N\n" +"\n" +"\n" +"Selecting a position that is ^Bnot^N next to a star (such as moves ^k~1^N, ^k~3^N or ^k~5^N)\n" +"will set up an ^Boutpost^N, not belonging to any company. Thus, if move ^k~3^N is\n" +"selected on the above map, a ^o ~+ ^N would be placed at that position.\n" +msgstr "" + +#: src/help.c:140 +msgid "" +"If, on the other hand, a position next to a star (or another outpost) is\n" +"selected, a ^Bcompany^N would be formed and its letter would appear on the map.\n" +"As a reward for creating the company, you are granted the first five shares.\n" +"Up to ^B~c^N companies can be created in this way.\n" +"\n" +"If a position next to an existing company is selected, the company would\n" +"expand its operations by one square. This increases the cost of its shares\n" +"and hence your return. Thus, if the map was as shown below, selecting ^k~6^N\n" +"or ^k~8^N increases Company ^B~B^N's shipping lane:\n" +"\n" +" ^e ^k~1^e ~. ^s~*^e ~. ~. ~. ^s~*^e ^s~*^e ~. ^N\n" +" ^e ~. ~. ~. ^o~+^e ~. ~. ^k~6^e ~. ~. ^N\n" +" ^e ~. ^s~*^e ~. ~. ~. ~. ^c~B^e ^c~B^e ^c~B^e ^N Move ^k~6^N or ^k~8^N increases Company ^B~B^N.\n" +" ^e ~. ^k~2^e ~. ~. ^k~4^e ~. ~. ^s~*^e ^c~B^e ^N\n" +" ^e ~. ~. ~. ~. ^s~*^e ~. ~. ~. ^k~8^e ^N\n" +msgstr "" + +#: src/help.c:158 +msgid "" +"Selecting positions next to stars increases the value of your stock by about\n" +"five times as much as an extension not next to a star. Thus move ^k~6^N should\n" +"be preferred to move ^k~8^N.\n" +"\n" +" ^e ^c~C^e ~. ^s~*^e ~. ~. ~. ^s~*^e ^s~*^e ~. ^N\n" +" ^e ^k~1^e ^o~+^e ~. ^o~+^e ~. ~. ^k~6^e ~. ~. ^N\n" +" ^e ~. ^s~*^e ~. ~. ~. ~. ^c~B^e ^c~B^e ^c~B^e ^N Move ^k~6^N is preferred to ^k~8^N.\n" +" ^e ~. ^k~2^e ~. ~. ^k~4^e ~. ~. ^s~*^e ^c~B^e ^N\n" +" ^e ~. ~. ~. ~. ^s~*^e ~. ~. ~. ^k~8^e ^N\n" +"\n" +"You may also expand any company by selecting positions next to outposts.\n" +"Such outposts will be swallowed up by that company. Thus, move ^k~1^N will\n" +"extend Company ^B~C^N by ^Btwo^N squares. As a bonus, outposts next to stars are\n" +"more valuable: the company's share price will increase by a greater amount\n" +"than it would for outposts not next to stars.\n" +msgstr "" + +#: src/help.c:176 +msgid "" +"If two companies are separated on the map by only one square, then they can\n" +"be ^Bmerged^N into one company by selecting that position (if available). For\n" +"example, on the map below, companies ^B~A^N and ^B~B^N can be merged by selecting ^k~5^N.\n" +"When this occurs, the company with the greater assets value takes over the\n" +"other one. Here, Company ^B~B^N might take over Company ^B~A^N. Company ^B~A^N ceases to\n" +"exist, although it may reappear as an entirely new company at a later stage.\n" +"\n" +" ^e ^k~1^e ~. ^s~*^e ~. ~. ~. ^s~*^e ^s~*^e ~. ^N\n" +" ^e ~. ~. ~. ^c~A^e ^c~A^e ^k~5^e ^c~B^e ~. ~. ^N\n" +" ^e ~. ^s~*^e ~. ~. ^c~A^e ~. ^c~B^e ^c~B^e ^c~B^e ^N Move ^k~5^N merges companies ^B~A^N and ^B~B^N.\n" +" ^e ~. ^k~2^e ~. ~. ~. ~. ~. ^s~*^e ^c~B^e ^N\n" +" ^e ~. ~. ~. ~. ^s~*^e ~. ^o~+^e ~. ~. ^N\n" +"\n" +"When companies merge, players are granted shares in the dominant company\n" +"proportional to the amount owned in the old company. As well, a cash bonus\n" +"is also paid, proportional to the percentage of the old company owned.\n" +msgstr "" + +#: src/help.c:195 +msgid "" +"Once you select your move, you enter the ^BInterstellar Stock Exchange^N. Here\n" +"you may purchase shares, sell them, borrow from the Trading Bank or repay\n" +"some of your debt (if applicable). Note that each company issues a limited\n" +"number of shares -- you cannot go on buying for ever! You may, however, bid\n" +"for more shares to be issued. You have a better chance of succeeding if you\n" +"own a larger proportion of the company.\n" +"\n" +"The game usually ends after ^B~t^N turns. However, you may end the game sooner\n" +"by pressing ^K^N when asked to select a move. As well, individual\n" +"players can declare themselves bankrupt at any time. If your debt is large\n" +"enough, the Bank may do this for you! If you do not complete your game in\n" +"the time you have available, you may save the game and continue it later.\n" +"\n" +"\n" +"The ^Bwinner of the game^N is the person with the greatest net worth (total\n" +"value of cash, stock and debt). ^HGood luck^N and may the best person win!\n" +msgstr "" + +#: src/help.c:215 +msgid "@ Help text, page 7" +msgstr "" + +#: src/help.c:216 +msgid "@ Help text, page 8" +msgstr "" + +#: src/help.c:217 +msgid "@ Help text, page 9" +msgstr "" + +#: src/help.c:218 +msgid "@ Help text, page 10" +msgstr "" + +#: src/help.c:270 +msgid " How to Play " +msgstr " Как играть в «Звёздные торговцы» " + +#: src/help.c:272 +#, c-format +msgid "Page %d of %d" +msgstr "Страница №%d из %d-и" + +#. TRANSLATORS: The reason the user is not asked "Press any +#. key to continue" is historical: many, many people used to +#. ask "where is the key?" :-) +#: src/help.c:473 src/intf.c:3035 +msgid "[ Press to continue ] " +msgstr "[ Нажмите <ПРОБЕЛ> для продолжения ] " + +#. TRANSLATORS: The specific use of and +#. is not essential: you can use , +#. , , or instead of +#. , and almost any other key instead of +#. (other than , , , , +#. or <\>). +#: src/help.c:480 +msgid "[ Press to continue or for the previous page ] " +msgstr "[ Нажмите <ПРОБЕЛ> для продолжения; <←> — вернуться на пред. страницу ] " + +#: src/intf.c:110 +#, c-format +msgid "%s: string has incorrect format: `%s'" +msgstr "%s: строка имеет неверный формат: «%s»" + +#: src/intf.c:126 +#, c-format +msgid "%s: character has illegal width: `%lc'" +msgstr "%s: символ имеет неверную ширину: «%lc»" + +#: src/intf.c:434 +#, c-format +msgid "terminal size is too small (%d x %d required)" +msgstr "размеры терминала слишком малы (нужны %d x %d)" + +#: src/intf.c:610 +msgid "Star Traders" +msgstr "Звёздные торговцы" + +#: src/intf.c:1265 +msgid "mkchstr_conv: NUL" +msgstr "mkchstr_conv: NUL" + +#: src/intf.c:1568 +#, c-format +msgid "mkchstr: `%s'" +msgstr "mkchstr: «%s»" + +#. TRANSLATORS: This string specifies the keycodes used to insert the +#. default value into the input string, if entered as the very first +#. character. Ideally, it should contain an easily-accessible +#. keycode that would NOT be used in ordinary input. Digits, ".", +#. ",", "+" and "-" are definitely NOT acceptable. +#: src/intf.c:2020 +msgctxt "input|DefaultValue" +msgid "=;" +msgstr "=?*\\/" + +#: src/intf.c:2034 src/intf.c:2079 +#, c-format +msgid "gettxline: illegal character in string: `%ls'" +msgstr "gettxline: неверный символ в строке: «%ls»" + +#. TRANSLATORS: The strings with msgctxt "input|Yes" and +#. "input|No" contain the keycodes used to determine whether a +#. user is answering "Yes" or "No" in response to some question. +#. Both upper and lower-case versions should be present. +#: src/intf.c:2952 +msgctxt "input|Yes" +msgid "Yy" +msgstr "Дд1+" + +#: src/intf.c:2954 +msgctxt "input|No" +msgid "Nn" +msgstr "Нн0-" + +#. TRANSLATORS: The strings "Yes" and "No" are printed as a +#. response to user input in answer to questions like "Are you +#. sure? [Y/N] " +#: src/intf.c:3005 +msgctxt "answer" +msgid "Yes" +msgstr "Да" + +#: src/intf.c:3007 +msgctxt "answer" +msgid "No" +msgstr "Нет" + +#: src/utils.c:199 src/utils.c:220 +#, c-format +msgid "%s: " +msgstr "%s: " + +#: src/utils.c:225 +msgid ": " +msgstr ": " + +#: src/utils.c:238 +msgid "out of memory" +msgstr "недостаточно памяти" + +#: src/utils.c:571 +#, c-format +msgid "xmbstowcs: `%s'" +msgstr "xmbstowcs: «%s»" + +#: src/utils.c:611 +msgid "xwcrtomb: NUL" +msgstr "xwcrtomb: NUL" + +#: src/utils.c:616 +#, c-format +msgid "xwcrtomb: `%lc'" +msgstr "xwcrtomb: «%lc»" + +#: lib/getopt.c:547 lib/getopt.c:576 +#, c-format +msgid "%s: option '%s' is ambiguous; possibilities:" +msgstr "%s: неоднозначный ключ «--%s»; возможности:" + +#: lib/getopt.c:624 lib/getopt.c:628 +#, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: ключ «--%s» должен использоваться без аргумента\n" + +#: lib/getopt.c:637 lib/getopt.c:642 +#, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: ключ «%c%s» должен использоваться без аргумента\n" + +#: lib/getopt.c:685 lib/getopt.c:704 +#, c-format +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: ключ «--%s» должен использоваться с аргументом\n" + +#: lib/getopt.c:742 lib/getopt.c:745 +#, c-format +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: неизвестный ключ «--%s»\n" + +#: lib/getopt.c:753 lib/getopt.c:756 +#, c-format +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: неизвестный ключ «%c%s»\n" + +#: lib/getopt.c:805 lib/getopt.c:808 +#, c-format +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: неверный ключ «%c»\n" + +#: lib/getopt.c:861 lib/getopt.c:878 lib/getopt.c:1088 lib/getopt.c:1106 +#, c-format +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: ключ «%c» должен использоваться с аргументом\n" + +#: lib/getopt.c:934 lib/getopt.c:950 +#, c-format +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: неоднозначный ключ «-W %s»\n" + +#: lib/getopt.c:974 lib/getopt.c:992 +#, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: ключ «-W %s» должен использоваться без аргумента\n" + +#: lib/getopt.c:1013 lib/getopt.c:1031 +#, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: ключ «-W %s» должен использоваться с аргументом\n" From 6f45f213245e6043c1e97663ce4ffda39b0766ed Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Fri, 16 Mar 2012 10:05:00 +1100 Subject: [PATCH 14/18] Translate the help text into Russian, as well as make some corrections --- po/ru.po | 117 +++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 106 insertions(+), 11 deletions(-) diff --git a/po/ru.po b/po/ru.po index 342dd19..666a5ab 100644 --- a/po/ru.po +++ b/po/ru.po @@ -16,7 +16,7 @@ msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" "POT-Creation-Date: 2012-03-15 09:02+1100\n" -"PO-Revision-Date: 2012-03-15 14:13+1100\n" +"PO-Revision-Date: 2012-03-16 10:01+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: Russian\n" "Language: ru\n" @@ -399,7 +399,7 @@ msgstr "Игрок: ^{%ls^}" #: src/game.c:648 #, c-format msgid " Turn: ^{%d^} " -msgstr " Ход: ^{%d^}-й " +msgstr " Ход: ^{%d-й^} " #: src/game.c:649 msgid " ^[*** Last Turn ***^] " @@ -577,7 +577,7 @@ msgstr " Арбитражный суд " #: src/move.c:676 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." -msgstr "Межзвёздный торговой банк объявляет, что игрок %ls обанкротился." +msgstr "Межзвёздный торговый банк объявляет, что игрок %ls обанкротился." #. TRANSLATORS: %ls is the name of the player that has #. declared themselves bankrupt. @@ -851,7 +851,7 @@ msgstr "Сколько Вы хотите вернуть? " #: src/exch.c:579 #, c-format msgid " Stock Transaction in %ls " -msgstr " Биржевая операция в фирме %ls " +msgstr " Биржевые операции в фирме %ls " #. TRANSLATORS: "Shares issued" represents the number of #. shares already sold by the company to all players. @@ -937,7 +937,7 @@ msgstr " Акции не доступны " #: src/exch.c:713 msgid "No more shares are available for purchase." -msgstr "Нет осталось больше акций для покупки." +msgstr "Не осталось больше акций для покупки." #: src/exch.c:717 msgid " Insufficient Cash " @@ -948,7 +948,7 @@ msgid "" "You do not have enough cash\n" "to purchase additional shares." msgstr "" -"У Вас нет достаточно денег, чтобы\n" +"У Вас недостаточно наличных денег, чтобы\n" "приобрести дополнительные акции." #: src/exch.c:729 @@ -1212,6 +1212,22 @@ msgid "" " ^e ~. ~. ~. ~. ~. ~. ~. ^s~*^e ~. ^N\n" " ^e ~. ~. ~. ~. ^s~*^e ~. ~. ~. ~. ^N\n" msgstr "" +"^B«Звёздные торговцы»^N ― это простая игра межзвёздной торговли. Цель игры\n" +"состоится в том, чтобы стать самым богатым игроком - победителем. Это\n" +"делается путём создания межзвёздных судоходных маршрутов, расширения этих\n" +"маршрутов, и покупки и продажи акций соответствующих акционерных обществ.\n" +"Кроме того, возврат на каждую акцию (в процентах) изменяется. Игроки также\n" +"могут занять денги у Межзвёздного торгового банка, чтобы финансировать\n" +"дополнительные покупки на фондовой бирже.\n" +"\n" +"Карта галактики представлена сеткой размером ^B~x^N на ^B~y^N. Типичная часть карты\n" +"может быть:\n" +"\n" +" ^e ~. ~. ^s~*^e ~. ~. ~. ^s~*^e ^s~*^e ~. ^N\n" +" ^e ~. ~. ~. ~. ~. ~. ~. ~. ~. ^N ^e ~. ^N обозначает ^Bпустое пространство^N,\n" +" ^e ~. ^s~*^e ~. ~. ~. ~. ~. ~. ~. ^N ^s ~* ^N обозначает ^Bзвезду^N.\n" +" ^e ~. ~. ~. ~. ~. ~. ~. ^s~*^e ~. ^N\n" +" ^e ~. ~. ~. ~. ^s~*^e ~. ~. ~. ~. ^N\n" #: src/help.c:122 msgid "" @@ -1231,6 +1247,22 @@ msgid "" "will set up an ^Boutpost^N, not belonging to any company. Thus, if move ^k~3^N is\n" "selected on the above map, a ^o ~+ ^N would be placed at that position.\n" msgstr "" +"Компьютер выбирает ^B~m^N заходов наугад (обозначенные от ^k~1^N до ^k~M^N) и помещает их\n" +"на карте. Для выбора любого из выделенных позиций, нажмите на соответствую-\n" +"щую букву. Например, некоторые из заходов на карте могут быть:\n" +"\n" +"\n" +" ^e ^k~1^e ~. ^s~*^e ~. ~. ~. ^s~*^e ^s~*^e ~. ^N\n" +" ^e ~. ~. ~. ^k~3^e ~. ~. ~. ~. ~. ^N\n" +" ^e ~. ^s~*^e ~. ~. ~. ~. ^k~5^e ~. ~. ^N Показаны заходы от ^k~1^N до ^k~5^N.\n" +" ^e ~. ^k~2^e ~. ~. ^k~4^e ~. ~. ^s~*^e ~. ^N\n" +" ^e ~. ~. ~. ~. ^s~*^e ~. ~. ~. ~. ^N\n" +"\n" +"\n" +"Избрание позиции, что ^Bне рядом^N со звездой (как, например, заходы ^k~1^N, ^k~3^N или ^k~5^N)\n" +"создаст ^Bфорпост^N не принадлежащий к какой-либо компании. Таким образом,\n" +"избрание захода ^k~3^N на выше-указанной карте создаст форпост, обозначено симво-\n" +"лом ^o ~+ ^N.\n" #: src/help.c:140 msgid "" @@ -1250,6 +1282,22 @@ msgid "" " ^e ~. ^k~2^e ~. ~. ^k~4^e ~. ~. ^s~*^e ^c~B^e ^N\n" " ^e ~. ~. ~. ~. ^s~*^e ~. ~. ~. ^k~8^e ^N\n" msgstr "" +"Если избрать позицию рядом со звездой (или рядом с форпостом), будет сформи-\n" +"ровано новое торговое предприятие, и код этой новой фирмы явится на карте\n" +"галактики. В качестве награды за создание компании, Вы получите первые пять\n" +"акций. До ^B~c-и^N компаний могут быть созданы таким образом.\n" +"\n" +"Если, наоборот, избрать позицию рядом с уже-существующей компанией, эта же\n" +"фирма расширит свою деятельность на одну клетку. Это увеличивает стоимость\n" +"её акций и, следовательно, Вашего возвращения. Таким образом, избрание\n" +"захода ^k~6^N или ^k~8^N на ниже-указанной карте расширяет судоходные маршруты компа-\n" +"нии ^B~B^N:\n" +"\n" +" ^e ^k~1^e ~. ^s~*^e ~. ~. ~. ^s~*^e ^s~*^e ~. ^N\n" +" ^e ~. ~. ~. ^o~+^e ~. ~. ^k~6^e ~. ~. ^N\n" +" ^e ~. ^s~*^e ~. ~. ~. ~. ^c~B^e ^c~B^e ^c~B^e ^N Заход ^k~6^N или ^k~8^N расширяет фирму ^B~B^N.\n" +" ^e ~. ^k~2^e ~. ~. ^k~4^e ~. ~. ^s~*^e ^c~B^e ^N\n" +" ^e ~. ~. ~. ~. ^s~*^e ~. ~. ~. ^k~8^e ^N\n" #: src/help.c:158 msgid "" @@ -1269,6 +1317,21 @@ msgid "" "more valuable: the company's share price will increase by a greater amount\n" "than it would for outposts not next to stars.\n" msgstr "" +"Избрание позиции рядом со звездой увеличивает стоимость Ваших акций примерно\n" +"в пять раз больше, чем расширение фирмы клеткой не рядом со звездой. Таким\n" +"образом, заходу ^k~6^N следует отдать предпочтение, чем заходу ^k~8^N.\n" +"\n" +" ^e ^c~C^e ~. ^s~*^e ~. ~. ~. ^s~*^e ^s~*^e ~. ^N\n" +" ^e ^k~1^e ^o~+^e ~. ^o~+^e ~. ~. ^k~6^e ~. ~. ^N\n" +" ^e ~. ^s~*^e ~. ~. ~. ~. ^c~B^e ^c~B^e ^c~B^e ^N Заход ^k~6^N предпочтительней захода ^k~8^N.\n" +" ^e ~. ^k~2^e ~. ~. ^k~4^e ~. ~. ^s~*^e ^c~B^e ^N\n" +" ^e ~. ~. ~. ~. ^s~*^e ~. ~. ~. ^k~8^e ^N\n" +"\n" +"Вы также можете расширить любую компанию, избрав позицию рядом с форпостом.\n" +"Такие форпосты будут поглощены этой фирмой. Таким образом, заход ^k~1^N расширит\n" +"судоходные маршруты компании ^B~C^N на ^Bдве^N клетки. Притом, поглощение форпостов\n" +"около звёзд имеет большую ценность: цена акций фирмы поднимется гораздо\n" +"больше, чем поглощение форпостов не рядом звёзд.\n" #: src/help.c:176 msgid "" @@ -1289,6 +1352,22 @@ msgid "" "proportional to the amount owned in the old company. As well, a cash bonus\n" "is also paid, proportional to the percentage of the old company owned.\n" msgstr "" +"Если две фирмы разделяются на карте только одной клеткой, то избрания этой\n" +"клетки (если есть такая возможность) ^Bобъединяет^N эти фирмы в одну компанию.\n" +"Например, избрание захода ^k~5^N на ниже-указанной карте объединит компании ^B~A^N и\n" +"^B~B^N. В таком случае, фирма с большей общей стоимостью поглощает вторую.\n" +"Здесь, например, компания ^B~B^N может быть поглотит компанию ^B~A^N. Фирма ^B~A^N прекра-\n" +"щает своё существование, хотя она может появиться позднее как совершенно\n" +"новое акционерное общество в будущей части игры.\n" +"\n" +" ^e ^k~1^e ~. ^s~*^e ~. ~. ~. ^s~*^e ^s~*^e ~. ^N\n" +" ^e ~. ~. ~. ^c~A^e ^c~A^e ^k~5^e ^c~B^e ~. ~. ^N Заход ^k~5^N сливает компании ^B~A^N и ^B~B^N.\n" +" ^e ~. ^s~*^e ~. ~. ^c~A^e ~. ^c~B^e ^c~B^e ^c~B^e ^N\n" +" ^e ~. ^k~2^e ~. ~. ~. ~. ~. ^s~*^e ^c~B^e ^N\n" +"\n" +"При слиянии компаний, игрокам выдаются акции в доминирующей фирме пропорцио-\n" +"нально владением акций в поглощённом предприятии. Кроме того, выплачивается\n" +"бонус, пропорционально владению старой компании.\n" #: src/help.c:195 msgid "" @@ -1309,22 +1388,38 @@ msgid "" "The ^Bwinner of the game^N is the person with the greatest net worth (total\n" "value of cash, stock and debt). ^HGood luck^N and may the best person win!\n" msgstr "" +"После выбора захода, Вы входите в ^BМежзвёздную фондовую биржу^N. Здесь можете\n" +"приобретать акции, продавать их, занимать деньги у торгового банка или пога-\n" +"шать часть своего долга (если применимо). Обратите внимание, что каждая\n" +"компания выпускает ограниченное количество акций ― нельзя просто бесконечно\n" +"покупать! Однако же, можно предлагать фирме выпустить новых акций. Чем\n" +"больше Ваше владение в компании, тем больше шансов успеха на выдачу акций.\n" +"\n" +"Игра обычно заканчивается после ^B~t^N ходов. Однако, можно закончить игру\n" +"раньше, нажав ^K^N вместо избрание захода. Кроме того, отдельные игро-\n" +"ки могут объявить себя банкротом в любой момент. Если Ваш долг достаточно\n" +"велик, банк может сделать это за Вас! Если не хватает времени закончить\n" +"игру, можете сохранить её и продолжить позже.\n" +"\n" +"^BПобедителем игры^N является игрок с самой большой общей стоимостью, то есть,\n" +"общая сумма наличных денег, акций и долга. ^HУдачи Вам^N ― да победит лучший\n" +"игрок!\n" #: src/help.c:215 msgid "@ Help text, page 7" -msgstr "" +msgstr "@" #: src/help.c:216 msgid "@ Help text, page 8" -msgstr "" +msgstr "@" #: src/help.c:217 msgid "@ Help text, page 9" -msgstr "" +msgstr "@" #: src/help.c:218 msgid "@ Help text, page 10" -msgstr "" +msgstr "@" #: src/help.c:270 msgid " How to Play " @@ -1365,7 +1460,7 @@ msgstr "%s: символ имеет неверную ширину: «%lc»" #: src/intf.c:434 #, c-format msgid "terminal size is too small (%d x %d required)" -msgstr "размеры терминала слишком малы (нужны %d x %d)" +msgstr "размеры терминала слишком малы (нужны %d на %d)" #: src/intf.c:610 msgid "Star Traders" From adde1ed5d1aac6b309791e39b9871d3f4b551e38 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Fri, 16 Mar 2012 10:13:53 +1100 Subject: [PATCH 15/18] Simplify a number of translator's comments --- po/en_AU.po | 86 ++++++++++++++++++++++++--------------------------- po/en_CA.po | 86 ++++++++++++++++++++++++--------------------------- po/en_GB.po | 86 ++++++++++++++++++++++++--------------------------- po/en_US.po | 86 ++++++++++++++++++++++++--------------------------- po/ru.po | 86 ++++++++++++++++++++++++--------------------------- src/globals.c | 6 ++-- src/move.c | 18 +++-------- 7 files changed, 209 insertions(+), 245 deletions(-) diff --git a/po/en_AU.po b/po/en_AU.po index f06971d..e82aa8d 100644 --- a/po/en_AU.po +++ b/po/en_AU.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2012-03-15 09:02+1100\n" -"PO-Revision-Date: 2012-03-15 09:05+1100\n" +"POT-Creation-Date: 2012-03-16 10:10+1100\n" +"PO-Revision-Date: 2012-03-16 10:11+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Australian)\n" "Language: en_AU\n" @@ -219,8 +219,9 @@ msgstr "ABCDEFGHIJKLMNOPQRST|input|GameMoves" #. vertical line. The first ("." in English) is used for empty #. space, the second ("+") for outposts, the third ("*") for stars, #. the remaining for the eight companies. Do not change or translate -#. anything after the vertical line. -#: src/globals.c:90 +#. anything after the vertical line. Double-width characters ARE +#. handled correctly. +#: src/globals.c:91 msgid ".+*ABCDEFGH|output|MapVals" msgstr ".+*ABCDEFGH|output|MapVals" @@ -229,7 +230,8 @@ msgstr ".+*ABCDEFGH|output|MapVals" #. before the ASCII vertical line. The first character corresponds #. to the first character in the "input|GameMoves" string, and so on. #. Do not change or translate anything after the vertical line. -#: src/globals.c:100 +#. Double-width characters ARE handled correctly. +#: src/globals.c:102 msgid "abcdefghijklmnopqrst|output|GameMoves" msgstr "abcdefghijklmnopqrst|output|GameMoves" @@ -238,35 +240,35 @@ msgstr "abcdefghijklmnopqrst|output|GameMoves" #. on the gender of the player, it may be simpler to list cardinal #. numbers instead (eg, "No. 1"). Up to five characters are allowed #. (see ORDINAL_COLS in src/intf.h). -#: src/globals.c:111 +#: src/globals.c:113 msgid "1st" msgstr "1st" -#: src/globals.c:112 +#: src/globals.c:114 msgid "2nd" msgstr "2nd" -#: src/globals.c:113 +#: src/globals.c:115 msgid "3rd" msgstr "3rd" -#: src/globals.c:114 +#: src/globals.c:116 msgid "4th" msgstr "4th" -#: src/globals.c:115 +#: src/globals.c:117 msgid "5th" msgstr "5th" -#: src/globals.c:116 +#: src/globals.c:118 msgid "6th" msgstr "6th" -#: src/globals.c:117 +#: src/globals.c:119 msgid "7th" msgstr "7th" -#: src/globals.c:118 +#: src/globals.c:120 msgid "8th" msgstr "8th" @@ -371,7 +373,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:857 +#: src/game.c:606 src/move.c:855 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -562,29 +564,27 @@ msgstr "Are you sure? [^{Y^}/^{N^}] " msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:673 src/move.c:682 src/move.c:1028 src/move.c:1070 +#: src/move.c:673 src/move.c:681 src/move.c:1026 src/move.c:1062 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#. TRANSLATORS: %ls is the name of the player being made -#. bankrupt. -#: src/move.c:676 +#. TRANSLATORS: %ls is the player's name. +#: src/move.c:675 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#. TRANSLATORS: %ls is the name of the player that has -#. declared themselves bankrupt. -#: src/move.c:685 +#. TRANSLATORS: %ls is the player's name. +#: src/move.c:683 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:753 +#: src/move.c:751 msgid " New Company " msgstr " New Company " -#: src/move.c:754 +#: src/move.c:752 #, c-format msgid "" "A new company has been formed!\n" @@ -593,7 +593,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:813 +#: src/move.c:811 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -602,7 +602,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:819 +#: src/move.c:817 msgid " Company Merger " msgstr " Company Merger " @@ -613,14 +613,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:839 +#: src/move.c:837 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has -#. absorbed another due to a merger. -#: src/move.c:850 +#. absorbed the other due to a merger. +#: src/move.c:848 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -630,7 +630,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:864 +#: src/move.c:862 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -639,7 +639,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:869 +#: src/move.c:867 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -648,7 +648,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:876 +#: src/move.c:874 msgctxt "subtitle" msgid "New" msgstr "New" @@ -656,14 +656,13 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:882 +#: src/move.c:880 msgctxt "subtitle" msgid "Old" msgstr "Old" -#. TRANSLATORS: %ls is the name of the company -#. that has been made bankrupt. -#: src/move.c:1031 +#. TRANSLATORS: %ls represents the company name. +#: src/move.c:1028 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -674,13 +673,8 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#. TRANSLATORS: %ls is the name of the -#. company that has been made -#. bankrupt. %.2f is a number between -#. 0.00 and 100.00 representing the -#. percentage of company value payed by -#. the bank to players. -#: src/move.c:1059 +#. TRANSLATORS: %ls represents the company name. +#: src/move.c:1051 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -699,7 +693,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1087 +#: src/move.c:1079 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -708,16 +702,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1095 +#: src/move.c:1087 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1188 src/exch.c:319 +#: src/move.c:1180 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1190 +#: src/move.c:1182 #, c-format msgid "" "Your debt has amounted to %N!\n" diff --git a/po/en_CA.po b/po/en_CA.po index 854c3f0..496778f 100644 --- a/po/en_CA.po +++ b/po/en_CA.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2012-03-15 09:02+1100\n" -"PO-Revision-Date: 2012-03-15 09:06+1100\n" +"POT-Creation-Date: 2012-03-16 10:10+1100\n" +"PO-Revision-Date: 2012-03-16 10:12+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Canadian)\n" "Language: en_CA\n" @@ -219,8 +219,9 @@ msgstr "ABCDEFGHIJKLMNOPQRST|input|GameMoves" #. vertical line. The first ("." in English) is used for empty #. space, the second ("+") for outposts, the third ("*") for stars, #. the remaining for the eight companies. Do not change or translate -#. anything after the vertical line. -#: src/globals.c:90 +#. anything after the vertical line. Double-width characters ARE +#. handled correctly. +#: src/globals.c:91 msgid ".+*ABCDEFGH|output|MapVals" msgstr ".+*ABCDEFGH|output|MapVals" @@ -229,7 +230,8 @@ msgstr ".+*ABCDEFGH|output|MapVals" #. before the ASCII vertical line. The first character corresponds #. to the first character in the "input|GameMoves" string, and so on. #. Do not change or translate anything after the vertical line. -#: src/globals.c:100 +#. Double-width characters ARE handled correctly. +#: src/globals.c:102 msgid "abcdefghijklmnopqrst|output|GameMoves" msgstr "abcdefghijklmnopqrst|output|GameMoves" @@ -238,35 +240,35 @@ msgstr "abcdefghijklmnopqrst|output|GameMoves" #. on the gender of the player, it may be simpler to list cardinal #. numbers instead (eg, "No. 1"). Up to five characters are allowed #. (see ORDINAL_COLS in src/intf.h). -#: src/globals.c:111 +#: src/globals.c:113 msgid "1st" msgstr "1st" -#: src/globals.c:112 +#: src/globals.c:114 msgid "2nd" msgstr "2nd" -#: src/globals.c:113 +#: src/globals.c:115 msgid "3rd" msgstr "3rd" -#: src/globals.c:114 +#: src/globals.c:116 msgid "4th" msgstr "4th" -#: src/globals.c:115 +#: src/globals.c:117 msgid "5th" msgstr "5th" -#: src/globals.c:116 +#: src/globals.c:118 msgid "6th" msgstr "6th" -#: src/globals.c:117 +#: src/globals.c:119 msgid "7th" msgstr "7th" -#: src/globals.c:118 +#: src/globals.c:120 msgid "8th" msgstr "8th" @@ -371,7 +373,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:857 +#: src/game.c:606 src/move.c:855 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -562,29 +564,27 @@ msgstr "Are you sure? [^{Y^}/^{N^}] " msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:673 src/move.c:682 src/move.c:1028 src/move.c:1070 +#: src/move.c:673 src/move.c:681 src/move.c:1026 src/move.c:1062 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#. TRANSLATORS: %ls is the name of the player being made -#. bankrupt. -#: src/move.c:676 +#. TRANSLATORS: %ls is the player's name. +#: src/move.c:675 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#. TRANSLATORS: %ls is the name of the player that has -#. declared themselves bankrupt. -#: src/move.c:685 +#. TRANSLATORS: %ls is the player's name. +#: src/move.c:683 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:753 +#: src/move.c:751 msgid " New Company " msgstr " New Company " -#: src/move.c:754 +#: src/move.c:752 #, c-format msgid "" "A new company has been formed!\n" @@ -593,7 +593,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:813 +#: src/move.c:811 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -602,7 +602,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:819 +#: src/move.c:817 msgid " Company Merger " msgstr " Company Merger " @@ -613,14 +613,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:839 +#: src/move.c:837 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has -#. absorbed another due to a merger. -#: src/move.c:850 +#. absorbed the other due to a merger. +#: src/move.c:848 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -630,7 +630,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:864 +#: src/move.c:862 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -639,7 +639,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:869 +#: src/move.c:867 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -648,7 +648,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:876 +#: src/move.c:874 msgctxt "subtitle" msgid "New" msgstr "New" @@ -656,14 +656,13 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:882 +#: src/move.c:880 msgctxt "subtitle" msgid "Old" msgstr "Old" -#. TRANSLATORS: %ls is the name of the company -#. that has been made bankrupt. -#: src/move.c:1031 +#. TRANSLATORS: %ls represents the company name. +#: src/move.c:1028 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -674,13 +673,8 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#. TRANSLATORS: %ls is the name of the -#. company that has been made -#. bankrupt. %.2f is a number between -#. 0.00 and 100.00 representing the -#. percentage of company value payed by -#. the bank to players. -#: src/move.c:1059 +#. TRANSLATORS: %ls represents the company name. +#: src/move.c:1051 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -699,7 +693,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1087 +#: src/move.c:1079 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -708,16 +702,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1095 +#: src/move.c:1087 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1188 src/exch.c:319 +#: src/move.c:1180 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1190 +#: src/move.c:1182 #, c-format msgid "" "Your debt has amounted to %N!\n" diff --git a/po/en_GB.po b/po/en_GB.po index 4bc73c7..73cbf89 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2012-03-15 09:02+1100\n" -"PO-Revision-Date: 2012-03-15 09:06+1100\n" +"POT-Creation-Date: 2012-03-16 10:10+1100\n" +"PO-Revision-Date: 2012-03-16 10:12+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (British)\n" "Language: en_GB\n" @@ -219,8 +219,9 @@ msgstr "ABCDEFGHIJKLMNOPQRST|input|GameMoves" #. vertical line. The first ("." in English) is used for empty #. space, the second ("+") for outposts, the third ("*") for stars, #. the remaining for the eight companies. Do not change or translate -#. anything after the vertical line. -#: src/globals.c:90 +#. anything after the vertical line. Double-width characters ARE +#. handled correctly. +#: src/globals.c:91 msgid ".+*ABCDEFGH|output|MapVals" msgstr ".+*ABCDEFGH|output|MapVals" @@ -229,7 +230,8 @@ msgstr ".+*ABCDEFGH|output|MapVals" #. before the ASCII vertical line. The first character corresponds #. to the first character in the "input|GameMoves" string, and so on. #. Do not change or translate anything after the vertical line. -#: src/globals.c:100 +#. Double-width characters ARE handled correctly. +#: src/globals.c:102 msgid "abcdefghijklmnopqrst|output|GameMoves" msgstr "abcdefghijklmnopqrst|output|GameMoves" @@ -238,35 +240,35 @@ msgstr "abcdefghijklmnopqrst|output|GameMoves" #. on the gender of the player, it may be simpler to list cardinal #. numbers instead (eg, "No. 1"). Up to five characters are allowed #. (see ORDINAL_COLS in src/intf.h). -#: src/globals.c:111 +#: src/globals.c:113 msgid "1st" msgstr "1st" -#: src/globals.c:112 +#: src/globals.c:114 msgid "2nd" msgstr "2nd" -#: src/globals.c:113 +#: src/globals.c:115 msgid "3rd" msgstr "3rd" -#: src/globals.c:114 +#: src/globals.c:116 msgid "4th" msgstr "4th" -#: src/globals.c:115 +#: src/globals.c:117 msgid "5th" msgstr "5th" -#: src/globals.c:116 +#: src/globals.c:118 msgid "6th" msgstr "6th" -#: src/globals.c:117 +#: src/globals.c:119 msgid "7th" msgstr "7th" -#: src/globals.c:118 +#: src/globals.c:120 msgid "8th" msgstr "8th" @@ -371,7 +373,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:857 +#: src/game.c:606 src/move.c:855 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -562,29 +564,27 @@ msgstr "Are you sure? [^{Y^}/^{N^}] " msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:673 src/move.c:682 src/move.c:1028 src/move.c:1070 +#: src/move.c:673 src/move.c:681 src/move.c:1026 src/move.c:1062 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#. TRANSLATORS: %ls is the name of the player being made -#. bankrupt. -#: src/move.c:676 +#. TRANSLATORS: %ls is the player's name. +#: src/move.c:675 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#. TRANSLATORS: %ls is the name of the player that has -#. declared themselves bankrupt. -#: src/move.c:685 +#. TRANSLATORS: %ls is the player's name. +#: src/move.c:683 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:753 +#: src/move.c:751 msgid " New Company " msgstr " New Company " -#: src/move.c:754 +#: src/move.c:752 #, c-format msgid "" "A new company has been formed!\n" @@ -593,7 +593,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:813 +#: src/move.c:811 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -602,7 +602,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:819 +#: src/move.c:817 msgid " Company Merger " msgstr " Company Merger " @@ -613,14 +613,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:839 +#: src/move.c:837 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has -#. absorbed another due to a merger. -#: src/move.c:850 +#. absorbed the other due to a merger. +#: src/move.c:848 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -630,7 +630,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:864 +#: src/move.c:862 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -639,7 +639,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:869 +#: src/move.c:867 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -648,7 +648,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:876 +#: src/move.c:874 msgctxt "subtitle" msgid "New" msgstr "New" @@ -656,14 +656,13 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:882 +#: src/move.c:880 msgctxt "subtitle" msgid "Old" msgstr "Old" -#. TRANSLATORS: %ls is the name of the company -#. that has been made bankrupt. -#: src/move.c:1031 +#. TRANSLATORS: %ls represents the company name. +#: src/move.c:1028 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -674,13 +673,8 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#. TRANSLATORS: %ls is the name of the -#. company that has been made -#. bankrupt. %.2f is a number between -#. 0.00 and 100.00 representing the -#. percentage of company value payed by -#. the bank to players. -#: src/move.c:1059 +#. TRANSLATORS: %ls represents the company name. +#: src/move.c:1051 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -699,7 +693,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1087 +#: src/move.c:1079 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -708,16 +702,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1095 +#: src/move.c:1087 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1188 src/exch.c:319 +#: src/move.c:1180 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1190 +#: src/move.c:1182 #, c-format msgid "" "Your debt has amounted to %N!\n" diff --git a/po/en_US.po b/po/en_US.po index 9eece72..638b7a5 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -14,8 +14,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2012-03-15 09:02+1100\n" -"PO-Revision-Date: 2012-03-15 09:06+1100\n" +"POT-Creation-Date: 2012-03-16 10:10+1100\n" +"PO-Revision-Date: 2012-03-16 10:12+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English\n" "Language: en_US\n" @@ -219,8 +219,9 @@ msgstr "ABCDEFGHIJKLMNOPQRST|input|GameMoves" #. vertical line. The first ("." in English) is used for empty #. space, the second ("+") for outposts, the third ("*") for stars, #. the remaining for the eight companies. Do not change or translate -#. anything after the vertical line. -#: src/globals.c:90 +#. anything after the vertical line. Double-width characters ARE +#. handled correctly. +#: src/globals.c:91 msgid ".+*ABCDEFGH|output|MapVals" msgstr ".+*ABCDEFGH|output|MapVals" @@ -229,7 +230,8 @@ msgstr ".+*ABCDEFGH|output|MapVals" #. before the ASCII vertical line. The first character corresponds #. to the first character in the "input|GameMoves" string, and so on. #. Do not change or translate anything after the vertical line. -#: src/globals.c:100 +#. Double-width characters ARE handled correctly. +#: src/globals.c:102 msgid "abcdefghijklmnopqrst|output|GameMoves" msgstr "abcdefghijklmnopqrst|output|GameMoves" @@ -238,35 +240,35 @@ msgstr "abcdefghijklmnopqrst|output|GameMoves" #. on the gender of the player, it may be simpler to list cardinal #. numbers instead (eg, "No. 1"). Up to five characters are allowed #. (see ORDINAL_COLS in src/intf.h). -#: src/globals.c:111 +#: src/globals.c:113 msgid "1st" msgstr "1st" -#: src/globals.c:112 +#: src/globals.c:114 msgid "2nd" msgstr "2nd" -#: src/globals.c:113 +#: src/globals.c:115 msgid "3rd" msgstr "3rd" -#: src/globals.c:114 +#: src/globals.c:116 msgid "4th" msgstr "4th" -#: src/globals.c:115 +#: src/globals.c:117 msgid "5th" msgstr "5th" -#: src/globals.c:116 +#: src/globals.c:118 msgid "6th" msgstr "6th" -#: src/globals.c:117 +#: src/globals.c:119 msgid "7th" msgstr "7th" -#: src/globals.c:118 +#: src/globals.c:120 msgid "8th" msgstr "8th" @@ -371,7 +373,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:857 +#: src/game.c:606 src/move.c:855 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -562,29 +564,27 @@ msgstr "Are you sure? [^{Y^}/^{N^}] " msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:673 src/move.c:682 src/move.c:1028 src/move.c:1070 +#: src/move.c:673 src/move.c:681 src/move.c:1026 src/move.c:1062 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#. TRANSLATORS: %ls is the name of the player being made -#. bankrupt. -#: src/move.c:676 +#. TRANSLATORS: %ls is the player's name. +#: src/move.c:675 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#. TRANSLATORS: %ls is the name of the player that has -#. declared themselves bankrupt. -#: src/move.c:685 +#. TRANSLATORS: %ls is the player's name. +#: src/move.c:683 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:753 +#: src/move.c:751 msgid " New Company " msgstr " New Company " -#: src/move.c:754 +#: src/move.c:752 #, c-format msgid "" "A new company has been formed!\n" @@ -593,7 +593,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:813 +#: src/move.c:811 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -602,7 +602,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:819 +#: src/move.c:817 msgid " Company Merger " msgstr " Company Merger " @@ -613,14 +613,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:839 +#: src/move.c:837 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has -#. absorbed another due to a merger. -#: src/move.c:850 +#. absorbed the other due to a merger. +#: src/move.c:848 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -630,7 +630,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:864 +#: src/move.c:862 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -639,7 +639,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:869 +#: src/move.c:867 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -648,7 +648,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:876 +#: src/move.c:874 msgctxt "subtitle" msgid "New" msgstr "New" @@ -656,14 +656,13 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:882 +#: src/move.c:880 msgctxt "subtitle" msgid "Old" msgstr "Old" -#. TRANSLATORS: %ls is the name of the company -#. that has been made bankrupt. -#: src/move.c:1031 +#. TRANSLATORS: %ls represents the company name. +#: src/move.c:1028 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -674,13 +673,8 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#. TRANSLATORS: %ls is the name of the -#. company that has been made -#. bankrupt. %.2f is a number between -#. 0.00 and 100.00 representing the -#. percentage of company value payed by -#. the bank to players. -#: src/move.c:1059 +#. TRANSLATORS: %ls represents the company name. +#: src/move.c:1051 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -699,7 +693,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1087 +#: src/move.c:1079 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -708,16 +702,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1095 +#: src/move.c:1087 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1188 src/exch.c:319 +#: src/move.c:1180 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1190 +#: src/move.c:1182 #, c-format msgid "" "Your debt has amounted to %N!\n" diff --git a/po/ru.po b/po/ru.po index 666a5ab..0b688d5 100644 --- a/po/ru.po +++ b/po/ru.po @@ -15,8 +15,8 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2012-03-15 09:02+1100\n" -"PO-Revision-Date: 2012-03-16 10:01+1100\n" +"POT-Creation-Date: 2012-03-16 10:10+1100\n" +"PO-Revision-Date: 2012-03-16 10:12+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: Russian\n" "Language: ru\n" @@ -224,8 +224,9 @@ msgstr "АБВГДЕЖЗИЙКЛМНОПРСТУ|input|GameMoves" #. vertical line. The first ("." in English) is used for empty #. space, the second ("+") for outposts, the third ("*") for stars, #. the remaining for the eight companies. Do not change or translate -#. anything after the vertical line. -#: src/globals.c:90 +#. anything after the vertical line. Double-width characters ARE +#. handled correctly. +#: src/globals.c:91 msgid ".+*ABCDEFGH|output|MapVals" msgstr ".+*АБВГДЕЖЗ|output|MapVals" @@ -234,7 +235,8 @@ msgstr ".+*АБВГДЕЖЗ|output|MapVals" #. before the ASCII vertical line. The first character corresponds #. to the first character in the "input|GameMoves" string, and so on. #. Do not change or translate anything after the vertical line. -#: src/globals.c:100 +#. Double-width characters ARE handled correctly. +#: src/globals.c:102 msgid "abcdefghijklmnopqrst|output|GameMoves" msgstr "абвгдежзийклмнопрсту|output|GameMoves" @@ -243,35 +245,35 @@ msgstr "абвгдежзийклмнопрсту|output|GameMoves" #. on the gender of the player, it may be simpler to list cardinal #. numbers instead (eg, "No. 1"). Up to five characters are allowed #. (see ORDINAL_COLS in src/intf.h). -#: src/globals.c:111 +#: src/globals.c:113 msgid "1st" msgstr "1ый" -#: src/globals.c:112 +#: src/globals.c:114 msgid "2nd" msgstr "2ой" -#: src/globals.c:113 +#: src/globals.c:115 msgid "3rd" msgstr "3ий" -#: src/globals.c:114 +#: src/globals.c:116 msgid "4th" msgstr "4ый" -#: src/globals.c:115 +#: src/globals.c:117 msgid "5th" msgstr "5ый" -#: src/globals.c:116 +#: src/globals.c:118 msgid "6th" msgstr "6ой" -#: src/globals.c:117 +#: src/globals.c:119 msgid "7th" msgstr "7ой" -#: src/globals.c:118 +#: src/globals.c:120 msgid "8th" msgstr "8ой" @@ -377,7 +379,7 @@ msgstr " Победитель игры " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:857 +#: src/game.c:606 src/move.c:855 msgctxt "subtitle" msgid "Player" msgstr "Игрок" @@ -568,29 +570,27 @@ msgstr "Вы уверены? [^{Д^}/^{Н^}] " msgid "Saving game %d... " msgstr "Сохраняется игра №%d... " -#: src/move.c:673 src/move.c:682 src/move.c:1028 src/move.c:1070 +#: src/move.c:673 src/move.c:681 src/move.c:1026 src/move.c:1062 msgid " Bankruptcy Court " msgstr " Арбитражный суд " -#. TRANSLATORS: %ls is the name of the player being made -#. bankrupt. -#: src/move.c:676 +#. TRANSLATORS: %ls is the player's name. +#: src/move.c:675 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "Межзвёздный торговый банк объявляет, что игрок %ls обанкротился." -#. TRANSLATORS: %ls is the name of the player that has -#. declared themselves bankrupt. -#: src/move.c:685 +#. TRANSLATORS: %ls is the player's name. +#: src/move.c:683 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls объявляет своё банкротство." -#: src/move.c:753 +#: src/move.c:751 msgid " New Company " msgstr " Новая фирма " -#: src/move.c:754 +#: src/move.c:752 #, c-format msgid "" "A new company has been formed!\n" @@ -599,14 +599,14 @@ msgstr "" "Сформировано новое торговое предприятие!\n" "Оно называется ^{%ls^}." -#: src/move.c:813 +#: src/move.c:811 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" msgstr "Фирма ^{%ls^} только-что была поглощена фирмой ^{%ls^}. Обратите внимание на следующие транзакции:\n" -#: src/move.c:819 +#: src/move.c:817 msgid " Company Merger " msgstr " Слияние компаний " @@ -617,14 +617,14 @@ msgstr " Слияние компаний " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:839 +#: src/move.c:837 msgctxt "label" msgid "Old stock: " msgstr "Старые акции: " #. TRANSLATORS: "New stock" refers to the company that has -#. absorbed another due to a merger. -#: src/move.c:850 +#. absorbed the other due to a merger. +#: src/move.c:848 msgctxt "label" msgid "New Stock: " msgstr "Новые акции: " @@ -634,7 +634,7 @@ msgstr "Новые акции: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:864 +#: src/move.c:862 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -643,7 +643,7 @@ msgstr "Бонус (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:869 +#: src/move.c:867 msgctxt "subtitle" msgid "Total" msgstr "Итог" @@ -652,7 +652,7 @@ msgstr "Итог" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:876 +#: src/move.c:874 msgctxt "subtitle" msgid "New" msgstr "Новые" @@ -660,14 +660,13 @@ msgstr "Новые" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:882 +#: src/move.c:880 msgctxt "subtitle" msgid "Old" msgstr "Старые" -#. TRANSLATORS: %ls is the name of the company -#. that has been made bankrupt. -#: src/move.c:1031 +#. TRANSLATORS: %ls represents the company name. +#: src/move.c:1028 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -678,13 +677,8 @@ msgstr "" "\n" "^{Все активы схвачены банком, чтобы погасить долги фирма.^}" -#. TRANSLATORS: %ls is the name of the -#. company that has been made -#. bankrupt. %.2f is a number between -#. 0.00 and 100.00 representing the -#. percentage of company value payed by -#. the bank to players. -#: src/move.c:1059 +#. TRANSLATORS: %ls represents the company name. +#: src/move.c:1051 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -704,7 +698,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1087 +#: src/move.c:1079 msgctxt "label" msgid "Amount paid per share: " msgstr "Выплаченная сумма за акцию: " @@ -713,16 +707,16 @@ msgstr "Выплаченная сумма за акцию: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1095 +#: src/move.c:1087 msgctxt "label" msgid "Old share value: " msgstr "Старая цена акции: " -#: src/move.c:1188 src/exch.c:319 +#: src/move.c:1180 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr " Межзвёздный торговый банк " -#: src/move.c:1190 +#: src/move.c:1182 #, c-format msgid "" "Your debt has amounted to %N!\n" diff --git a/src/globals.c b/src/globals.c index 2cdc4db..be8db46 100644 --- a/src/globals.c +++ b/src/globals.c @@ -86,7 +86,8 @@ const char *default_printable_map_val = vertical line. The first ("." in English) is used for empty space, the second ("+") for outposts, the third ("*") for stars, the remaining for the eight companies. Do not change or translate - anything after the vertical line. */ + anything after the vertical line. Double-width characters ARE + handled correctly. */ N_(".+*ABCDEFGH|output|MapVals"); @@ -96,7 +97,8 @@ const char *default_printable_game_move = (choices). There must be exactly 20 characters (NUMBER_MOVES) before the ASCII vertical line. The first character corresponds to the first character in the "input|GameMoves" string, and so on. - Do not change or translate anything after the vertical line. */ + Do not change or translate anything after the vertical line. + Double-width characters ARE handled correctly. */ N_("abcdefghijklmnopqrst|output|GameMoves"); diff --git a/src/move.c b/src/move.c index 8e98d16..aec3410 100644 --- a/src/move.c +++ b/src/move.c @@ -671,8 +671,7 @@ void bankrupt_player (bool forced) txdlgbox(MAX_DLG_LINES, 50, 7, WCENTER, attr_error_window, attr_error_title, attr_error_highlight, 0, 0, attr_error_waitforkey, _(" Bankruptcy Court "), - /* TRANSLATORS: %ls is the name of the player being made - bankrupt. */ + /* TRANSLATORS: %ls is the player's name. */ _("%ls has been declared bankrupt " "by the Interstellar Trading Bank."), player[current_player].name); @@ -680,8 +679,7 @@ void bankrupt_player (bool forced) txdlgbox(MAX_DLG_LINES, 50, 7, WCENTER, attr_error_window, attr_error_title, attr_error_highlight, 0, 0, attr_error_waitforkey, _(" Bankruptcy Court "), - /* TRANSLATORS: %ls is the name of the player that has - declared themselves bankrupt. */ + /* TRANSLATORS: %ls is the player's name. */ _("%ls has declared bankruptcy."), player[current_player].name); } @@ -846,7 +844,7 @@ void merge_companies (map_val_t a, map_val_t b) right(curwin, lines + 4, x, attr_normal, 0, 0, 1, /* TRANSLATORS: "New stock" refers to the company that has - absorbed another due to a merger. */ + absorbed the other due to a merger. */ pgettext("label", "New Stock: ")); leftch(curwin, lines + 4, x, chbuf_aa, 1, &width_aa); @@ -1026,8 +1024,7 @@ void adjust_values (void) attr_error_title, attr_error_highlight, attr_error_normal, 0, attr_error_waitforkey, _(" Bankruptcy Court "), - /* TRANSLATORS: %ls is the name of the company - that has been made bankrupt. */ + /* TRANSLATORS: %ls represents the company name. */ _("%ls has been declared bankrupt " "by the Interstellar Trading Bank.\n\n" "^{All assets have been taken " @@ -1050,12 +1047,7 @@ void adjust_values (void) lines = mkchstr(chbuf, BUFSIZE, attr_error_highlight, attr_error_normal, 0, 6, 60 - 4, widthbuf, 6, - /* TRANSLATORS: %ls is the name of the - company that has been made - bankrupt. %.2f is a number between - 0.00 and 100.00 representing the - percentage of company value payed by - the bank to players. */ + /* TRANSLATORS: %ls represents the company name. */ _("%ls has been declared bankrupt by the " "Interstellar Trading Bank.\n\n" "^{The Bank has agreed to pay stock holders ^}" From 32864b0bdffbc2a8149adea9a297fed8dd2ef970 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Fri, 16 Mar 2012 10:49:25 +1100 Subject: [PATCH 16/18] Add information about version 7.3 of Star Traders; update all dates --- NEWS | 7 +++++-- doc/trader.6 | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 97f477f..2b78854 100644 --- a/NEWS +++ b/NEWS @@ -15,10 +15,13 @@ consult the Subversion repository for "trader" on The ZAP Group web server at http://www.zap.org.au/services/svn/. -Version 7.3 (not yet released) +Version 7.3 (16th March, 2012) ------------------------------ -@@@ Minor bug fixes. Russian translation. +Star Traders has been translated into Russian. In addition, a number of +bugs with internationalisation have been fixed. The "default value" key +(originally "=" or ";" as the first key-press in any input field) has been +incorporated into the language translation files. Version 7.2 (29th August, 2011) diff --git a/doc/trader.6 b/doc/trader.6 index bd2500c..43926ee 100644 --- a/doc/trader.6 +++ b/doc/trader.6 @@ -41,7 +41,7 @@ .if \n[.g] .mso www.tmac .\" .\" ********************************************************************* -.TH TRADER 6 "15th March, 2012" "Unix-like systems" +.TH TRADER 6 "16th March, 2012" "Unix-like systems" .SH NAME trader \- a game of interstellar trading .\" ********************************************************************* From f265336d3b303b418f314359d774ca65124defab Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Fri, 16 Mar 2012 11:30:07 +1100 Subject: [PATCH 17/18] Add all auto-generated files All auto-generated files are created by running ./build-aux/bootstrap with Gnulib as at commit a7967a2cf0998b6c157c7cf8e1d8d9d11dab30b0 (with a date stamp of Thu Mar 15 08:46:29 2012 -0700), Autoconf 2.68, Automake 1.11.3 and Gettext 0.18.1.1. --- Makefile.in | 139 ++-- aclocal.m4 | 70 +- build-aux/config.rpath | 4 +- build-aux/snippet/arg-nonnull.h | 2 +- build-aux/snippet/c++defs.h | 2 +- build-aux/snippet/unused-parameter.h | 2 +- build-aux/snippet/warn-on-use.h | 2 +- config.h.in | 73 ++- configure | 915 ++++++++++++++++++++++----- doc/Makefile.in | 83 ++- lib/Makefile.am | 50 +- lib/Makefile.in | 123 +++- lib/btowc.c | 2 +- lib/c-ctype.c | 5 +- lib/c-ctype.h | 35 +- lib/c-strcase.h | 10 +- lib/c-strcasecmp.c | 5 +- lib/c-strncasecmp.c | 5 +- lib/config.charset | 7 +- lib/getopt.c | 66 +- lib/getopt.in.h | 54 +- lib/getopt1.c | 6 +- lib/getopt_int.h | 16 +- lib/gettext.h | 7 +- lib/gettimeofday.c | 16 +- lib/iconv.c | 5 +- lib/iconv.in.h | 5 +- lib/iconv_close.c | 5 +- lib/iconv_open.c | 7 +- lib/localcharset.c | 33 +- lib/localcharset.h | 5 +- lib/locale.in.h | 2 +- lib/mbrtowc.c | 24 +- lib/mbsinit.c | 2 +- lib/mbsrtowcs-impl.h | 2 +- lib/mbsrtowcs-state.c | 2 +- lib/mbsrtowcs.c | 2 +- lib/mbtowc-impl.h | 2 +- lib/mbtowc.c | 2 +- lib/memchr.c | 2 +- lib/ref-add.sin | 5 +- lib/ref-del.sin | 5 +- lib/stdbool.in.h | 5 +- lib/stddef.in.h | 5 +- lib/stdint.in.h | 35 +- lib/stdio.in.h | 47 +- lib/stdlib.in.h | 178 +++++- lib/str-two-way.h | 5 +- lib/streq.h | 10 +- lib/striconv.c | 5 +- lib/striconv.h | 5 +- lib/string.in.h | 5 +- lib/strnlen1.c | 2 +- lib/strnlen1.h | 5 +- lib/strstr.c | 5 +- lib/sys_stat.in.h | 69 +- lib/sys_time.in.h | 112 +++- lib/time.in.h | 5 +- lib/unistd.in.h | 197 ++++-- lib/unistr.in.h | 2 +- lib/unistr/u8-mbtoucr.c | 2 +- lib/unistr/u8-uctomb-aux.c | 2 +- lib/unistr/u8-uctomb.c | 2 +- lib/unitypes.in.h | 2 +- lib/verify.h | 16 +- lib/wchar.in.h | 17 +- lib/wcrtomb.c | 2 +- lib/wcsdup-impl.h | 2 +- lib/wcsdup.c | 2 +- lib/wctob.c | 2 +- lib/wctomb-impl.h | 2 +- lib/wctomb.c | 2 +- lib/wctype.in.h | 17 +- lib/wmemcpy-impl.h | 2 +- lib/wmemcpy.c | 2 +- m4/00gnulib.m4 | 2 +- m4/Makefile.in | 75 ++- m4/assert.m4 | 2 +- m4/btowc.m4 | 2 +- m4/codeset.m4 | 2 +- m4/config-h.m4 | 2 +- m4/configmake.m4 | 2 +- m4/extensions.m4 | 6 +- m4/fcntl-o.m4 | 17 +- m4/getopt.m4 | 6 +- m4/gettext.m4 | 4 +- m4/gettimeofday.m4 | 8 +- m4/glibc2.m4 | 31 + m4/glibc21.m4 | 2 +- m4/gnulib-common.m4 | 78 ++- m4/gnulib-comp.m4 | 34 +- m4/gnulib-tool.m4 | 57 ++ m4/iconv.m4 | 6 +- m4/iconv_h.m4 | 2 +- m4/iconv_open.m4 | 2 +- m4/include_next.m4 | 42 +- m4/inline.m4 | 2 +- m4/intdiv0.m4 | 87 +++ m4/intl.m4 | 300 +++++++++ m4/intldir.m4 | 19 + m4/intlmacosx.m4 | 2 +- m4/intmax.m4 | 36 ++ m4/inttypes-pri.m4 | 42 ++ m4/inttypes_h.m4 | 29 + m4/lcmessage.m4 | 35 + m4/lib-ld.m4 | 2 +- m4/lib-link.m4 | 2 +- m4/lib-prefix.m4 | 2 +- m4/libunistring-base.m4 | 2 +- m4/localcharset.m4 | 2 +- m4/locale-fr.m4 | 20 +- m4/locale-ja.m4 | 13 +- m4/locale-zh.m4 | 10 +- m4/locale_h.m4 | 2 +- m4/lock.m4 | 41 ++ m4/longlong.m4 | 8 +- m4/mbrtowc.m4 | 2 +- m4/mbsinit.m4 | 2 +- m4/mbsrtowcs.m4 | 2 +- m4/mbstate_t.m4 | 2 +- m4/mbtowc.m4 | 2 +- m4/memchr.m4 | 2 +- m4/mmap-anon.m4 | 2 +- m4/multiarch.m4 | 2 +- m4/nls.m4 | 2 +- m4/nocrash.m4 | 32 +- m4/po.m4 | 10 +- m4/printf-posix.m4 | 48 ++ m4/progtest.m4 | 2 +- m4/size_max.m4 | 79 +++ m4/ssize_t.m4 | 23 + m4/stdbool.m4 | 2 +- m4/stddef_h.m4 | 2 +- m4/stdint.m4 | 16 +- m4/stdint_h.m4 | 27 + m4/stdio_h.m4 | 11 +- m4/stdlib_h.m4 | 21 +- m4/string_h.m4 | 2 +- m4/strstr.m4 | 2 +- m4/sys_socket_h.m4 | 177 ++++++ m4/sys_stat_h.m4 | 10 +- m4/sys_time_h.m4 | 40 +- m4/threadlib.m4 | 371 +++++++++++ m4/time_h.m4 | 6 +- m4/uintmax_t.m4 | 30 + m4/unistd_h.m4 | 36 +- m4/visibility.m4 | 77 +++ m4/warn-on-use.m4 | 2 +- m4/wchar_h.m4 | 2 +- m4/wchar_t.m4 | 2 +- m4/wcrtomb.m4 | 2 +- m4/wcsdup.m4 | 2 +- m4/wctob.m4 | 8 +- m4/wctomb.m4 | 2 +- m4/wctype_h.m4 | 2 +- m4/wint_t.m4 | 2 +- m4/wmemcpy.m4 | 26 +- m4/xsize.m4 | 13 + src/Makefile.in | 75 ++- 159 files changed, 3979 insertions(+), 819 deletions(-) create mode 100644 m4/glibc2.m4 create mode 100644 m4/gnulib-tool.m4 create mode 100644 m4/intdiv0.m4 create mode 100644 m4/intl.m4 create mode 100644 m4/intldir.m4 create mode 100644 m4/intmax.m4 create mode 100644 m4/inttypes-pri.m4 create mode 100644 m4/inttypes_h.m4 create mode 100644 m4/lcmessage.m4 create mode 100644 m4/lock.m4 create mode 100644 m4/printf-posix.m4 create mode 100644 m4/size_max.m4 create mode 100644 m4/ssize_t.m4 create mode 100644 m4/stdint_h.m4 create mode 100644 m4/sys_socket_h.m4 create mode 100644 m4/threadlib.m4 create mode 100644 m4/uintmax_t.m4 create mode 100644 m4/visibility.m4 create mode 100644 m4/xsize.m4 diff --git a/Makefile.in b/Makefile.in index 6b059a1..88f7bcb 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,9 +1,9 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.11.3 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -18,7 +18,7 @@ ######################################################################### # # # Star Traders: A Game of Interstellar Trading # -# Copyright (C) 1990-2011, John Zaitseff # +# Copyright (C) 1990-2012, John Zaitseff # # # ######################################################################### @@ -93,17 +93,19 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \ $(top_srcdir)/m4/mmap-anon.m4 $(top_srcdir)/m4/multiarch.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/nocrash.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/stdbool.m4 $(top_srcdir)/m4/stddef_h.m4 \ - $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdio_h.m4 \ - $(top_srcdir)/m4/stdlib_h.m4 $(top_srcdir)/m4/string_h.m4 \ - $(top_srcdir)/m4/strstr.m4 $(top_srcdir)/m4/sys_stat_h.m4 \ - $(top_srcdir)/m4/sys_time_h.m4 $(top_srcdir)/m4/time_h.m4 \ - $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/warn-on-use.m4 \ - $(top_srcdir)/m4/wchar_h.m4 $(top_srcdir)/m4/wchar_t.m4 \ - $(top_srcdir)/m4/wcrtomb.m4 $(top_srcdir)/m4/wcsdup.m4 \ - $(top_srcdir)/m4/wctob.m4 $(top_srcdir)/m4/wctomb.m4 \ - $(top_srcdir)/m4/wctype_h.m4 $(top_srcdir)/m4/wint_t.m4 \ - $(top_srcdir)/m4/wmemcpy.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/stdbool.m4 \ + $(top_srcdir)/m4/stddef_h.m4 $(top_srcdir)/m4/stdint.m4 \ + $(top_srcdir)/m4/stdio_h.m4 $(top_srcdir)/m4/stdlib_h.m4 \ + $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strstr.m4 \ + $(top_srcdir)/m4/sys_socket_h.m4 \ + $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \ + $(top_srcdir)/m4/time_h.m4 $(top_srcdir)/m4/unistd_h.m4 \ + $(top_srcdir)/m4/warn-on-use.m4 $(top_srcdir)/m4/wchar_h.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wcrtomb.m4 \ + $(top_srcdir)/m4/wcsdup.m4 $(top_srcdir)/m4/wctob.m4 \ + $(top_srcdir)/m4/wctomb.m4 $(top_srcdir)/m4/wctype_h.m4 \ + $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/wmemcpy.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ @@ -133,9 +135,11 @@ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ - { test ! -d "$(distdir)" \ - || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr "$(distdir)"; }; } + if test -d "$(distdir)"; then \ + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -rf "$(distdir)" \ + || { sleep 5 && rm -rf "$(distdir)"; }; \ + else :; fi am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ @@ -164,6 +168,8 @@ am__relativize = \ DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print pkglibexecdir = @pkglibexecdir@ ACLOCAL = @ACLOCAL@ @@ -203,9 +209,11 @@ GNULIB_ATOLL = @GNULIB_ATOLL@ GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ +GNULIB_CHDIR = @GNULIB_CHDIR@ GNULIB_CHOWN = @GNULIB_CHOWN@ GNULIB_CLOSE = @GNULIB_CLOSE@ GNULIB_DPRINTF = @GNULIB_DPRINTF@ +GNULIB_DUP = @GNULIB_DUP@ GNULIB_DUP2 = @GNULIB_DUP2@ GNULIB_DUP3 = @GNULIB_DUP3@ GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ @@ -216,6 +224,8 @@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FDATASYNC = @GNULIB_FDATASYNC@ +GNULIB_FDOPEN = @GNULIB_FDOPEN@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FFSL = @GNULIB_FFSL@ GNULIB_FFSLL = @GNULIB_FFSLL@ @@ -232,6 +242,7 @@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSCANF = @GNULIB_FSCANF@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTAT = @GNULIB_FSTAT@ GNULIB_FSTATAT = @GNULIB_FSTATAT@ GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ @@ -256,9 +267,11 @@ GNULIB_GETS = @GNULIB_GETS@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GL_UNISTD_H_GETOPT = @GNULIB_GL_UNISTD_H_GETOPT@ GNULIB_GRANTPT = @GNULIB_GRANTPT@ GNULIB_GROUP_MEMBER = @GNULIB_GROUP_MEMBER@ GNULIB_ICONV = @GNULIB_ICONV@ +GNULIB_ISATTY = @GNULIB_ISATTY@ GNULIB_ISWBLANK = @GNULIB_ISWBLANK@ GNULIB_ISWCTYPE = @GNULIB_ISWCTYPE@ GNULIB_LCHMOD = @GNULIB_LCHMOD@ @@ -306,19 +319,23 @@ GNULIB_MKTIME = @GNULIB_MKTIME@ GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ +GNULIB_PCLOSE = @GNULIB_PCLOSE@ GNULIB_PERROR = @GNULIB_PERROR@ GNULIB_PIPE = @GNULIB_PIPE@ GNULIB_PIPE2 = @GNULIB_PIPE2@ GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_OPENPT = @GNULIB_POSIX_OPENPT@ GNULIB_PREAD = @GNULIB_PREAD@ GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PTSNAME_R = @GNULIB_PTSNAME_R@ GNULIB_PUTC = @GNULIB_PUTC@ GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ GNULIB_PUTS = @GNULIB_PUTS@ GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM = @GNULIB_RANDOM@ GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READ = @GNULIB_READ@ @@ -333,6 +350,7 @@ GNULIB_RMDIR = @GNULIB_RMDIR@ GNULIB_RPMATCH = @GNULIB_RPMATCH@ GNULIB_SCANF = @GNULIB_SCANF@ GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETHOSTNAME = @GNULIB_SETHOSTNAME@ GNULIB_SETLOCALE = @GNULIB_SETLOCALE@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ @@ -368,7 +386,6 @@ GNULIB_TIME_R = @GNULIB_TIME_R@ GNULIB_TMPFILE = @GNULIB_TMPFILE@ GNULIB_TOWCTRANS = @GNULIB_TOWCTRANS@ GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ -GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ GNULIB_UNISTD_H_NONBLOCKING = @GNULIB_UNISTD_H_NONBLOCKING@ GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ GNULIB_UNLINK = @GNULIB_UNLINK@ @@ -432,6 +449,7 @@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ +HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ @@ -447,6 +465,7 @@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ +HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ @@ -468,6 +487,7 @@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ @@ -516,11 +536,16 @@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_OS_H = @HAVE_OS_H@ +HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ +HAVE_POPEN = @HAVE_POPEN@ +HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ @@ -530,6 +555,7 @@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SETENV = @HAVE_SETENV@ +HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ @@ -596,6 +622,7 @@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WCTRANS_T = @HAVE_WCTRANS_T@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WCTYPE_T = @HAVE_WCTYPE_T@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ @@ -692,6 +719,7 @@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ @@ -715,6 +743,7 @@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ISWBLANK = @REPLACE_ISWBLANK@ REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ @@ -745,8 +774,10 @@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ +REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_REALLOC = @REPLACE_REALLOC@ @@ -776,6 +807,7 @@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ @@ -889,7 +921,7 @@ all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: -am--refresh: +am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ @@ -925,10 +957,8 @@ $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__aclocal_m4_deps): config.h: stamp-h1 - @if test ! -f $@; then \ - rm -f stamp-h1; \ - $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ - else :; fi + @if test ! -f $@; then rm -f stamp-h1; else :; fi + @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 @@ -1147,7 +1177,11 @@ dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-lzip: distdir + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__remove_distdir) dist-lzma: distdir @@ -1155,7 +1189,7 @@ dist-lzma: distdir $(am__remove_distdir) dist-xz: distdir - tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir @@ -1173,7 +1207,7 @@ dist-zip: distdir dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then @@ -1187,6 +1221,8 @@ distcheck: dist bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.lz*) \ + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ @@ -1206,6 +1242,7 @@ distcheck: dist && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ @@ -1234,8 +1271,16 @@ distcheck: dist list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: - @$(am__cd) '$(distuninstallcheck_dir)' \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + @test -n '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: trying to run $@ with an empty' \ + '$$(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + $(am__cd) '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ @@ -1266,10 +1311,15 @@ install-am: all-am installcheck: installcheck-recursive install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: @@ -1356,17 +1406,18 @@ uninstall-am: .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ - dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \ - distclean distclean-generic distclean-hdr distclean-tags \ - distcleancheck distdir distuninstallcheck dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ - pdf-am ps ps-am tags tags-recursive uninstall uninstall-am + dist-lzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ + distcheck distclean distclean-generic distclean-hdr \ + distclean-tags distcleancheck distdir distuninstallcheck dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs installdirs-am \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ + uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/aclocal.m4 b/aclocal.m4 index 2cb0286..f608c6d 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,7 +1,8 @@ -# generated automatically by aclocal 1.11.1 -*- Autoconf -*- +# generated automatically by aclocal 1.11.3 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, +# Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -19,12 +20,15 @@ You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) -# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software +# Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 1 + # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been @@ -34,7 +38,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.11.1], [], +m4_if([$1], [1.11.3], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -50,19 +54,21 @@ m4_define([_AM_AUTOCONF_VERSION], []) # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.11.1])dnl +[AM_AUTOMAKE_VERSION([1.11.3])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 1 + # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. @@ -144,14 +150,14 @@ AC_CONFIG_COMMANDS_PRE( Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 -# Free Software Foundation, Inc. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, +# 2010, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 10 +# serial 12 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, @@ -191,6 +197,7 @@ AC_CACHE_CHECK([dependency style of $depcc], # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. + rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. @@ -255,7 +262,7 @@ AC_CACHE_CHECK([dependency style of $depcc], break fi ;; - msvisualcpp | msvcmsys) + msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. @@ -320,10 +327,13 @@ AC_DEFUN([AM_DEP_TRACK], if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' + am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- @@ -545,12 +555,15 @@ for _am_header in $config_headers :; do done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, +# Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 1 + # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. @@ -717,12 +730,15 @@ else fi ]) -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, +# Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 1 + # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. @@ -745,13 +761,14 @@ esac # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software +# Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 4 +# serial 5 # _AM_MANGLE_OPTION(NAME) # ----------------------- @@ -759,13 +776,13 @@ AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) -# ------------------------------ +# -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- +# ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) @@ -841,12 +858,14 @@ Check your system clock]) fi AC_MSG_RESULT(yes)]) -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 1 + # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't @@ -869,13 +888,13 @@ fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006, 2008 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 2 +# serial 3 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- @@ -884,13 +903,13 @@ AC_SUBST([INSTALL_STRIP_PROGRAM])]) AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- +# -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -912,10 +931,11 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) +[# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) @@ -1030,6 +1050,7 @@ m4_include([m4/nls.m4]) m4_include([m4/nocrash.m4]) m4_include([m4/po.m4]) m4_include([m4/progtest.m4]) +m4_include([m4/ssize_t.m4]) m4_include([m4/stdbool.m4]) m4_include([m4/stddef_h.m4]) m4_include([m4/stdint.m4]) @@ -1037,6 +1058,7 @@ m4_include([m4/stdio_h.m4]) m4_include([m4/stdlib_h.m4]) m4_include([m4/string_h.m4]) m4_include([m4/strstr.m4]) +m4_include([m4/sys_socket_h.m4]) m4_include([m4/sys_stat_h.m4]) m4_include([m4/sys_time_h.m4]) m4_include([m4/time_h.m4]) diff --git a/build-aux/config.rpath b/build-aux/config.rpath index 8bd7f5d..1a07018 100755 --- a/build-aux/config.rpath +++ b/build-aux/config.rpath @@ -2,7 +2,7 @@ # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # -# Copyright 1996-2011 Free Software Foundation, Inc. +# Copyright 1996-2012 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit , 1996 # @@ -25,7 +25,7 @@ # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. -# All known linkers require a `.a' archive for static linking (except MSVC, +# All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a shrext=.so diff --git a/build-aux/snippet/arg-nonnull.h b/build-aux/snippet/arg-nonnull.h index 6c2f1e8..3a9dd26 100644 --- a/build-aux/snippet/arg-nonnull.h +++ b/build-aux/snippet/arg-nonnull.h @@ -1,5 +1,5 @@ /* A C macro for declaring that specific arguments must not be NULL. - Copyright (C) 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published diff --git a/build-aux/snippet/c++defs.h b/build-aux/snippet/c++defs.h index b6821a6..96da94b 100644 --- a/build-aux/snippet/c++defs.h +++ b/build-aux/snippet/c++defs.h @@ -1,5 +1,5 @@ /* C++ compatible function declaration macros. - Copyright (C) 2010-2011 Free Software Foundation, Inc. + Copyright (C) 2010-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published diff --git a/build-aux/snippet/unused-parameter.h b/build-aux/snippet/unused-parameter.h index c8d2071..1c8d61f 100644 --- a/build-aux/snippet/unused-parameter.h +++ b/build-aux/snippet/unused-parameter.h @@ -1,5 +1,5 @@ /* A C macro for declaring that specific function parameters are not used. - Copyright (C) 2008-2011 Free Software Foundation, Inc. + Copyright (C) 2008-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published diff --git a/build-aux/snippet/warn-on-use.h b/build-aux/snippet/warn-on-use.h index 2cdeec3..d4cb94f 100644 --- a/build-aux/snippet/warn-on-use.h +++ b/build-aux/snippet/warn-on-use.h @@ -1,5 +1,5 @@ /* A C macro for emitting warnings if a function is used. - Copyright (C) 2010-2011 Free Software Foundation, Inc. + Copyright (C) 2010-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published diff --git a/config.h.in b/config.h.in index 0ed2fbf..c08c7c4 100644 --- a/config.h.in +++ b/config.h.in @@ -176,7 +176,7 @@ /* Define if you have and nl_langinfo(CODESET). */ #undef HAVE_LANGINFO_CODESET -/* Define to 1 if the system has the type `long long int'. */ +/* Define to 1 if the system has the type 'long long int'. */ #undef HAVE_LONG_LONG_INT /* Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including @@ -229,12 +229,18 @@ macros. */ #undef HAVE_RAW_DECL_CANONICALIZE_FILE_NAME +/* Define to 1 if chdir is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_CHDIR + /* Define to 1 if chown is declared even after undefining macros. */ #undef HAVE_RAW_DECL_CHOWN /* Define to 1 if dprintf is declared even after undefining macros. */ #undef HAVE_RAW_DECL_DPRINTF +/* Define to 1 if dup is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_DUP + /* Define to 1 if dup2 is declared even after undefining macros. */ #undef HAVE_RAW_DECL_DUP2 @@ -265,6 +271,9 @@ /* Define to 1 if fchownat is declared even after undefining macros. */ #undef HAVE_RAW_DECL_FCHOWNAT +/* Define to 1 if fdatasync is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FDATASYNC + /* Define to 1 if ffsl is declared even after undefining macros. */ #undef HAVE_RAW_DECL_FFSL @@ -277,6 +286,9 @@ /* Define to 1 if fseeko is declared even after undefining macros. */ #undef HAVE_RAW_DECL_FSEEKO +/* Define to 1 if fstat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FSTAT + /* Define to 1 if fstatat is declared even after undefining macros. */ #undef HAVE_RAW_DECL_FSTATAT @@ -340,8 +352,14 @@ /* Define to 1 if group_member is declared even after undefining macros. */ #undef HAVE_RAW_DECL_GROUP_MEMBER -/* Define to 1 if initstat_r is declared even after undefining macros. */ -#undef HAVE_RAW_DECL_INITSTAT_R +/* Define to 1 if initstate is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_INITSTATE + +/* Define to 1 if initstate_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_INITSTATE_R + +/* Define to 1 if isatty is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_ISATTY /* Define to 1 if iswctype is declared even after undefining macros. */ #undef HAVE_RAW_DECL_ISWCTYPE @@ -418,6 +436,9 @@ /* Define to 1 if mkstemps is declared even after undefining macros. */ #undef HAVE_RAW_DECL_MKSTEMPS +/* Define to 1 if pclose is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_PCLOSE + /* Define to 1 if pipe is declared even after undefining macros. */ #undef HAVE_RAW_DECL_PIPE @@ -427,15 +448,24 @@ /* Define to 1 if popen is declared even after undefining macros. */ #undef HAVE_RAW_DECL_POPEN +/* Define to 1 if posix_openpt is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_POSIX_OPENPT + /* Define to 1 if pread is declared even after undefining macros. */ #undef HAVE_RAW_DECL_PREAD /* Define to 1 if ptsname is declared even after undefining macros. */ #undef HAVE_RAW_DECL_PTSNAME +/* Define to 1 if ptsname_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_PTSNAME_R + /* Define to 1 if pwrite is declared even after undefining macros. */ #undef HAVE_RAW_DECL_PWRITE +/* Define to 1 if random is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_RANDOM + /* Define to 1 if random_r is declared even after undefining macros. */ #undef HAVE_RAW_DECL_RANDOM_R @@ -463,9 +493,15 @@ /* Define to 1 if setenv is declared even after undefining macros. */ #undef HAVE_RAW_DECL_SETENV +/* Define to 1 if sethostname is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SETHOSTNAME + /* Define to 1 if setlocale is declared even after undefining macros. */ #undef HAVE_RAW_DECL_SETLOCALE +/* Define to 1 if setstate is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SETSTATE + /* Define to 1 if setstate_r is declared even after undefining macros. */ #undef HAVE_RAW_DECL_SETSTATE_R @@ -478,6 +514,9 @@ /* Define to 1 if snprintf is declared even after undefining macros. */ #undef HAVE_RAW_DECL_SNPRINTF +/* Define to 1 if srandom is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SRANDOM + /* Define to 1 if srandom_r is declared even after undefining macros. */ #undef HAVE_RAW_DECL_SRANDOM_R @@ -703,6 +742,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H +/* Define to 1 if you have the `symlink' function. */ +#undef HAVE_SYMLINK + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_BITYPES_H @@ -712,6 +754,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_MMAN_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_SOCKET_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H @@ -730,7 +775,7 @@ /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H -/* Define to 1 if the system has the type `unsigned long long int'. */ +/* Define to 1 if the system has the type 'unsigned long long int'. */ #undef HAVE_UNSIGNED_LONG_LONG_INT /* Define to 1 if you have the header file. */ @@ -751,12 +796,12 @@ /* Define to 1 if you have the header file. */ #undef HAVE_WCTYPE_H +/* Define to 1 if you have the header file. */ +#undef HAVE_WINSOCK2_H + /* Define if you have the 'wint_t' type. */ #undef HAVE_WINT_T -/* Define to 1 if you have the `wmemcpy' function. */ -#undef HAVE_WMEMCPY - /* Define to 1 if O_NOATIME works. */ #undef HAVE_WORKING_O_NOATIME @@ -859,12 +904,12 @@ /* Define to 1 if on MINIX. */ #undef _MINIX -/* The _Noreturn keyword of draft C1X. */ +/* The _Noreturn keyword of C11. */ #ifndef _Noreturn # if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \ || 0x5110 <= __SUNPRO_C) # define _Noreturn __attribute__ ((__noreturn__)) -# elif 1200 <= _MSC_VER +# elif defined _MSC_VER && 1200 <= _MSC_VER # define _Noreturn __declspec (noreturn) # else # define _Noreturn @@ -876,7 +921,7 @@ this defined. */ #undef _POSIX_1_SOURCE -/* Define to 1 if you need to in order for `stat' and other things to work. */ +/* Define to 1 if you need to in order for 'stat' and other things to work. */ #undef _POSIX_SOURCE /* Define to 500 only on HP-UX. */ @@ -937,9 +982,15 @@ /* Define to a type if does not define. */ #undef mbstate_t +/* Define to `int' if does not define. */ +#undef mode_t + /* Define to the type of st_nlink in struct stat, or a supertype. */ #undef nlink_t +/* Define to `int' if does not define. */ +#undef pid_t + /* Define to the equivalent of the C99 'restrict' keyword, or to nothing if this is not supported. Do not define if restrict is supported directly. */ @@ -957,7 +1008,7 @@ /* Define to `unsigned int' if does not define. */ #undef size_t -/* Define to `int' if does not define. */ +/* Define as a signed type of the same size as size_t. */ #undef ssize_t /* Define as a marker that can be attached to declarations that might not diff --git a/configure b/configure index 588b034..4633fa0 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for Star Traders 7.2. +# Generated by GNU Autoconf 2.68 for Star Traders 7.3. # # Report bugs to . # @@ -560,8 +560,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Star Traders' PACKAGE_TARNAME='trader' -PACKAGE_VERSION='7.2' -PACKAGE_STRING='Star Traders 7.2' +PACKAGE_VERSION='7.3' +PACKAGE_STRING='Star Traders 7.3' PACKAGE_BUGREPORT='J.Zaitseff@zap.org.au' PACKAGE_URL='http://www.zap.org.au/software/trader/' @@ -699,6 +699,7 @@ GNULIB_LSTAT GNULIB_LCHMOD GNULIB_FUTIMENS GNULIB_FSTATAT +GNULIB_FSTAT GNULIB_FCHMODAT NEXT_AS_FIRST_DIRECTIVE_STRING_H NEXT_STRING_H @@ -735,11 +736,14 @@ REPLACE_FPURGE REPLACE_FPRINTF REPLACE_FOPEN REPLACE_FFLUSH +REPLACE_FDOPEN REPLACE_FCLOSE REPLACE_DPRINTF HAVE_VDPRINTF HAVE_VASPRINTF HAVE_RENAMEAT +HAVE_POPEN +HAVE_PCLOSE HAVE_FTELLO HAVE_FSEEKO HAVE_DPRINTF @@ -777,6 +781,7 @@ GNULIB_PRINTF_POSIX GNULIB_PRINTF GNULIB_POPEN GNULIB_PERROR +GNULIB_PCLOSE GNULIB_OBSTACK_PRINTF_POSIX GNULIB_OBSTACK_PRINTF GNULIB_GETS @@ -801,6 +806,7 @@ GNULIB_FOPEN GNULIB_FGETS GNULIB_FGETC GNULIB_FFLUSH +GNULIB_FDOPEN GNULIB_FCLOSE GNULIB_DPRINTF GL_GENERATE_STDINT_H_FALSE @@ -913,7 +919,9 @@ REPLACE_STRTOD REPLACE_SETENV REPLACE_REALPATH REPLACE_REALLOC +REPLACE_RANDOM_R REPLACE_PUTENV +REPLACE_PTSNAME_R REPLACE_MKSTEMP REPLACE_MBTOWC REPLACE_MALLOC @@ -932,7 +940,10 @@ HAVE_RPMATCH HAVE_REALPATH HAVE_RANDOM_R HAVE_RANDOM_H +HAVE_RANDOM +HAVE_PTSNAME_R HAVE_PTSNAME +HAVE_POSIX_OPENPT HAVE_MKSTEMPS HAVE_MKSTEMP HAVE_MKOSTEMPS @@ -956,8 +967,11 @@ GNULIB_RPMATCH GNULIB_REALPATH GNULIB_REALLOC_POSIX GNULIB_RANDOM_R +GNULIB_RANDOM GNULIB_PUTENV +GNULIB_PTSNAME_R GNULIB_PTSNAME +GNULIB_POSIX_OPENPT GNULIB_MKSTEMPS GNULIB_MKSTEMP GNULIB_MKOSTEMPS @@ -1002,13 +1016,16 @@ REPLACE_ICONV_OPEN REPLACE_ICONV ICONV_CONST GNULIB_ICONV +HAVE_WINSOCK2_H NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H NEXT_SYS_TIME_H +REPLACE_STRUCT_TIMEVAL REPLACE_GETTIMEOFDAY HAVE_SYS_TIME_H HAVE_STRUCT_TIMEVAL HAVE_GETTIMEOFDAY GNULIB_GETTIMEOFDAY +GNULIB_GL_UNISTD_H_GETOPT GETOPT_H HAVE_GETOPT_H NEXT_AS_FIRST_DIRECTIVE_GETOPT_H @@ -1035,6 +1052,7 @@ REPLACE_LSEEK REPLACE_LINKAT REPLACE_LINK REPLACE_LCHOWN +REPLACE_ISATTY REPLACE_GETPAGESIZE REPLACE_GETGROUPS REPLACE_GETLOGIN_R @@ -1048,10 +1066,12 @@ REPLACE_CHOWN HAVE_SYS_PARAM_H HAVE_OS_H HAVE_DECL_TTYNAME_R +HAVE_DECL_SETHOSTNAME HAVE_DECL_GETUSERSHELL HAVE_DECL_GETPAGESIZE HAVE_DECL_GETLOGIN_R HAVE_DECL_GETDOMAINNAME +HAVE_DECL_FDATASYNC HAVE_DECL_FCHDIR HAVE_DECL_ENVIRON HAVE_USLEEP @@ -1059,6 +1079,7 @@ HAVE_UNLINKAT HAVE_SYMLINKAT HAVE_SYMLINK HAVE_SLEEP +HAVE_SETHOSTNAME HAVE_READLINKAT HAVE_READLINK HAVE_PWRITE @@ -1076,6 +1097,7 @@ HAVE_GETGROUPS HAVE_GETDTABLESIZE HAVE_FTRUNCATE HAVE_FSYNC +HAVE_FDATASYNC HAVE_FCHOWNAT HAVE_FCHDIR HAVE_FACCESSAT @@ -1089,11 +1111,11 @@ GNULIB_UNLINKAT GNULIB_UNLINK GNULIB_UNISTD_H_SIGPIPE GNULIB_UNISTD_H_NONBLOCKING -GNULIB_UNISTD_H_GETOPT GNULIB_TTYNAME_R GNULIB_SYMLINKAT GNULIB_SYMLINK GNULIB_SLEEP +GNULIB_SETHOSTNAME GNULIB_RMDIR GNULIB_READLINKAT GNULIB_READLINK @@ -1106,6 +1128,7 @@ GNULIB_LSEEK GNULIB_LINKAT GNULIB_LINK GNULIB_LCHOWN +GNULIB_ISATTY GNULIB_GROUP_MEMBER GNULIB_GETUSERSHELL GNULIB_GETPAGESIZE @@ -1118,6 +1141,7 @@ GNULIB_GETDOMAINNAME GNULIB_GETCWD GNULIB_FTRUNCATE GNULIB_FSYNC +GNULIB_FDATASYNC GNULIB_FCHOWNAT GNULIB_FCHDIR GNULIB_FACCESSAT @@ -1125,8 +1149,10 @@ GNULIB_EUIDACCESS GNULIB_ENVIRON GNULIB_DUP3 GNULIB_DUP2 +GNULIB_DUP GNULIB_CLOSE GNULIB_CHOWN +GNULIB_CHDIR pkglibexecdir lispdir LOCALE_FR @@ -1248,15 +1274,16 @@ build_os build_vendor build_cpu build +RANLIB ARFLAGS AR -RANLIB EGREP GREP CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE +am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE @@ -1896,7 +1923,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Star Traders 7.2 to adapt to many kinds of systems. +\`configure' configures Star Traders 7.3 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1966,7 +1993,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Star Traders 7.2:";; + short | recursive ) echo "Configuration of Star Traders 7.3:";; esac cat <<\_ACEOF @@ -2069,7 +2096,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Star Traders configure 7.2 +Star Traders configure 7.3 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -2716,7 +2743,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by Star Traders $as_me 7.2, which was +It was created by Star Traders $as_me 7.3, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -3001,8 +3028,11 @@ as_fn_append ac_func_list " btowc" gl_getopt_required=GNU as_fn_append ac_header_list " getopt.h" as_fn_append ac_header_list " sys/time.h" +as_fn_append ac_header_list " sys/socket.h" as_fn_append ac_func_list " gettimeofday" as_fn_append ac_header_list " iconv.h" +as_fn_append ac_header_list " unistd.h" +as_fn_append ac_func_list " symlink" as_fn_append ac_header_list " xlocale.h" as_fn_append ac_func_list " mbsinit" as_fn_append ac_func_list " mbrtowc" @@ -3012,14 +3042,12 @@ as_fn_append ac_func_list " mprotect" as_fn_append ac_header_list " wchar.h" as_fn_append ac_header_list " stdint.h" as_fn_append ac_header_list " sys/stat.h" -as_fn_append ac_header_list " unistd.h" as_fn_append ac_header_list " features.h" as_fn_append ac_func_list " wcrtomb" as_fn_append ac_func_list " wcsdup" as_fn_append ac_func_list " wctob" as_fn_append ac_func_list " iswcntrl" as_fn_append ac_header_list " wctype.h" -as_fn_append ac_func_list " wmemcpy" # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false @@ -3564,7 +3592,7 @@ fi # Define the identity of the package. PACKAGE='trader' - VERSION='7.2' + VERSION='7.3' cat >>confdefs.h <<_ACEOF @@ -3594,11 +3622,11 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. -# Always define AMTAR for backward compatibility. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' @@ -4447,6 +4475,7 @@ fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' + am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= @@ -4471,6 +4500,7 @@ else # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. + rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. @@ -4530,7 +4560,7 @@ else break fi ;; - msvisualcpp | msvcmsys) + msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. @@ -5040,7 +5070,13 @@ $as_echo "$ac_cv_path_EGREP" >&6; } - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 +$as_echo_n "checking for Minix Amsterdam compiler... " >&6; } +if ${gl_cv_c_amsterdam_compiler+:} false; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __ACK__ @@ -5050,14 +5086,131 @@ Amsterdam _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Amsterdam" >/dev/null 2>&1; then : - AR='cc -c.a' - ARFLAGS='-o' - RANLIB=':' - + gl_cv_c_amsterdam_compiler=yes else - AR='ar' - ARFLAGS='cru' - if test -n "$ac_tool_prefix"; then + gl_cv_c_amsterdam_compiler=no +fi +rm -f conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 +$as_echo "$gl_cv_c_amsterdam_compiler" >&6; } + if test -z "$AR"; then + if test $gl_cv_c_amsterdam_compiler = yes; then + AR='cc -c.a' + if test -z "$ARFLAGS"; then + ARFLAGS='-o' + fi + else + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +set dummy ${ac_tool_prefix}ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AR="${ac_tool_prefix}ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AR="ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AR" = x; then + AR="ar" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +else + AR="$ac_cv_prog_AR" +fi + + if test -z "$ARFLAGS"; then + ARFLAGS='cru' + fi + fi + else + if test -z "$ARFLAGS"; then + ARFLAGS='cru' + fi + fi + + + if test -z "$RANLIB"; then + if test $gl_cv_c_amsterdam_compiler = yes; then + RANLIB=':' + else + if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 @@ -5149,11 +5302,8 @@ else RANLIB="$ac_cv_prog_RANLIB" fi - -fi -rm -f conftest* - - + fi + fi if test "x$CC" != xcc; then @@ -5598,6 +5748,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } # Code from module snippet/c++defs: # Code from module snippet/unused-parameter: # Code from module snippet/warn-on-use: + # Code from module ssize_t: # Code from module stdbool: # Code from module stddef: # Code from module stdint: @@ -8068,9 +8219,9 @@ char buf[16]; int main () { /* Check whether the given locale name is recognized by the system. */ #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ - /* On native Win32, setlocale(category, "") looks at the system settings, + /* On native Windows, setlocale(category, "") looks at the system settings, not at the environment variables. Also, when an encoding suffix such - as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE + as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE category of the locale to "C". */ if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) @@ -8105,10 +8256,12 @@ int main () { one byte long. This excludes the UTF-8 encoding. */ t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; +#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ /* Check whether the decimal separator is a comma. On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point are nl_langinfo(RADIXCHAR) are both ".". */ if (localeconv () ->decimal_point[0] != ',') return 1; +#endif return 0; } @@ -8126,7 +8279,7 @@ _ACEOF # "ja" as "Japanese" or "Japanese_Japan.932", # and similar. mingw*) - # Test for the native Win32 locale name. + # Test for the native Windows locale name. if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then gt_cv_locale_fr=French_France.1252 else @@ -8178,8 +8331,10 @@ $as_echo "$gt_cv_locale_fr" >&6; } + GNULIB_CHDIR=0; GNULIB_CHOWN=0; GNULIB_CLOSE=0; + GNULIB_DUP=0; GNULIB_DUP2=0; GNULIB_DUP3=0; GNULIB_ENVIRON=0; @@ -8187,6 +8342,7 @@ $as_echo "$gt_cv_locale_fr" >&6; } GNULIB_FACCESSAT=0; GNULIB_FCHDIR=0; GNULIB_FCHOWNAT=0; + GNULIB_FDATASYNC=0; GNULIB_FSYNC=0; GNULIB_FTRUNCATE=0; GNULIB_GETCWD=0; @@ -8199,6 +8355,7 @@ $as_echo "$gt_cv_locale_fr" >&6; } GNULIB_GETPAGESIZE=0; GNULIB_GETUSERSHELL=0; GNULIB_GROUP_MEMBER=0; + GNULIB_ISATTY=0; GNULIB_LCHOWN=0; GNULIB_LINK=0; GNULIB_LINKAT=0; @@ -8211,11 +8368,11 @@ $as_echo "$gt_cv_locale_fr" >&6; } GNULIB_READLINK=0; GNULIB_READLINKAT=0; GNULIB_RMDIR=0; + GNULIB_SETHOSTNAME=0; GNULIB_SLEEP=0; GNULIB_SYMLINK=0; GNULIB_SYMLINKAT=0; GNULIB_TTYNAME_R=0; - GNULIB_UNISTD_H_GETOPT=0; GNULIB_UNISTD_H_NONBLOCKING=0; GNULIB_UNISTD_H_SIGPIPE=0; GNULIB_UNLINK=0; @@ -8229,6 +8386,7 @@ $as_echo "$gt_cv_locale_fr" >&6; } HAVE_FACCESSAT=1; HAVE_FCHDIR=1; HAVE_FCHOWNAT=1; + HAVE_FDATASYNC=1; HAVE_FSYNC=1; HAVE_FTRUNCATE=1; HAVE_GETDTABLESIZE=1; @@ -8246,6 +8404,7 @@ $as_echo "$gt_cv_locale_fr" >&6; } HAVE_PWRITE=1; HAVE_READLINK=1; HAVE_READLINKAT=1; + HAVE_SETHOSTNAME=1; HAVE_SLEEP=1; HAVE_SYMLINK=1; HAVE_SYMLINKAT=1; @@ -8253,10 +8412,12 @@ $as_echo "$gt_cv_locale_fr" >&6; } HAVE_USLEEP=1; HAVE_DECL_ENVIRON=1; HAVE_DECL_FCHDIR=1; + HAVE_DECL_FDATASYNC=1; HAVE_DECL_GETDOMAINNAME=1; HAVE_DECL_GETLOGIN_R=1; HAVE_DECL_GETPAGESIZE=1; HAVE_DECL_GETUSERSHELL=1; + HAVE_DECL_SETHOSTNAME=1; HAVE_DECL_TTYNAME_R=1; HAVE_OS_H=0; HAVE_SYS_PARAM_H=0; @@ -8270,6 +8431,7 @@ $as_echo "$gt_cv_locale_fr" >&6; } REPLACE_GETLOGIN_R=0; REPLACE_GETGROUPS=0; REPLACE_GETPAGESIZE=0; + REPLACE_ISATTY=0; REPLACE_LCHOWN=0; REPLACE_LINK=0; REPLACE_LINKAT=0; @@ -8457,13 +8619,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'getopt.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/getopt.h#{ - s#.*"\(.*/getopt.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' else gl_cv_next_getopt_h='<'getopt.h'>' fi @@ -8783,6 +8959,34 @@ nocrash_init (void) } } } +#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* Avoid a crash on native Windows. */ +#define WIN32_LEAN_AND_MEAN +#include +#include +static LONG WINAPI +exception_filter (EXCEPTION_POINTERS *ExceptionInfo) +{ + switch (ExceptionInfo->ExceptionRecord->ExceptionCode) + { + case EXCEPTION_ACCESS_VIOLATION: + case EXCEPTION_IN_PAGE_ERROR: + case EXCEPTION_STACK_OVERFLOW: + case EXCEPTION_GUARD_PAGE: + case EXCEPTION_PRIV_INSTRUCTION: + case EXCEPTION_ILLEGAL_INSTRUCTION: + case EXCEPTION_DATATYPE_MISALIGNMENT: + case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: + case EXCEPTION_NONCONTINUABLE_EXCEPTION: + exit (1); + } + return EXCEPTION_CONTINUE_SEARCH; +} +static void +nocrash_init (void) +{ + SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); +} #else /* Avoid a crash on POSIX systems. */ #include @@ -8929,7 +9133,6 @@ $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h - GNULIB_UNISTD_H_GETOPT=1 fi ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" @@ -8995,6 +9198,9 @@ _ACEOF HAVE_STRUCT_TIMEVAL=1; HAVE_SYS_TIME_H=1; REPLACE_GETTIMEOFDAY=0; + REPLACE_STRUCT_TIMEVAL=0; + + @@ -9032,13 +9238,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'sys/time.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/sys/time.h#{ - s#.*"\(.*/sys/time.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' else gl_cv_next_sys_time_h='<'sys/time.h'>' fi @@ -9067,6 +9287,33 @@ $as_echo "$gl_cv_next_sys_time_h" >&6; } HAVE_SYS_TIME_H=0 fi + + + + + if test $ac_cv_header_sys_socket_h != yes; then + for ac_header in winsock2.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" +if test "x$ac_cv_header_winsock2_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WINSOCK2_H 1 +_ACEOF + +fi + +done + + fi + if test "$ac_cv_header_winsock2_h" = yes; then + HAVE_WINSOCK2_H=1 + UNISTD_H_HAVE_WINSOCK2_H=1 + SYS_IOCTL_H_HAVE_WINSOCK2_H=1 + else + HAVE_WINSOCK2_H=0 + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 $as_echo_n "checking for struct timeval... " >&6; } if ${gl_cv_sys_struct_timeval+:} false; then : @@ -9078,6 +9325,9 @@ else #include #endif #include + #if HAVE_WINSOCK2_H + # include + #endif int main () @@ -9093,11 +9343,51 @@ else gl_cv_sys_struct_timeval=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5 $as_echo "$gl_cv_sys_struct_timeval" >&6; } if test $gl_cv_sys_struct_timeval != yes; then HAVE_STRUCT_TIMEVAL=0 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct struct timeval.tv_sec member" >&5 +$as_echo_n "checking for correct struct timeval.tv_sec member... " >&6; } +if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if HAVE_SYS_TIME_H + #include + #endif + #include + #if HAVE_WINSOCK2_H + # include + #endif + +int +main () +{ +static struct timeval x; + typedef int verify_tv_sec_type[sizeof (x.tv_sec) == sizeof (time_t) ? 1 : -1]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_sys_struct_timeval_tv_sec=yes +else + gl_cv_sys_struct_timeval_tv_sec=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5 +$as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; } + if test $gl_cv_sys_struct_timeval_tv_sec != yes; then + REPLACE_STRUCT_TIMEVAL=1 + fi fi @@ -9432,7 +9722,7 @@ extern #ifdef __cplusplus "C" #endif -#if defined(__STDC__) || defined(__cplusplus) +#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); @@ -9518,6 +9808,13 @@ esac + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 $as_echo_n "checking for working fcntl.h... " >&6; } if ${gl_cv_header_working_fcntl_h+:} false; then : @@ -9530,7 +9827,13 @@ else /* end confdefs.h. */ #include #include - #include + #if HAVE_UNISTD_H + # include + #else /* on Windows with MSVC */ + # include + # include + # defined sleep(n) _sleep ((n) * 1000) + #endif #include #ifndef O_NOATIME #define O_NOATIME 0 @@ -9549,6 +9852,7 @@ main () { int result = !constants; + #if HAVE_SYMLINK { static char const sym[] = "conftest.sym"; if (symlink (".", sym) != 0) @@ -9564,6 +9868,7 @@ main () } unlink (sym); } + #endif { static char const file[] = "confdefs.h"; int fd = open (file, O_RDONLY | O_NOATIME); @@ -9807,13 +10112,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'stddef.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/stddef.h#{ - s#.*"\(.*/stddef.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' fi @@ -9913,9 +10232,9 @@ int main () const char *p; /* Check whether the given locale name is recognized by the system. */ #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ - /* On native Win32, setlocale(category, "") looks at the system settings, + /* On native Windows, setlocale(category, "") looks at the system settings, not at the environment variables. Also, when an encoding suffix such - as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE + as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE category of the locale to "C". */ if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) @@ -9973,8 +10292,9 @@ _ACEOF # "ja" as "Japanese" or "Japanese_Japan.932", # and similar. mingw*) - # Note that on native Win32, the Japanese locale is Japanese_Japan.932, - # and CP932 is very different from EUC-JP, so we cannot use it here. + # Note that on native Windows, the Japanese locale is + # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we + # cannot use it here. gt_cv_locale_ja=none ;; *) @@ -10052,9 +10372,9 @@ int main () const char *p; /* Check whether the given locale name is recognized by the system. */ #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ - /* On native Win32, setlocale(category, "") looks at the system settings, + /* On native Windows, setlocale(category, "") looks at the system settings, not at the environment variables. Also, when an encoding suffix such - as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE + as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE category of the locale to "C". */ if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) @@ -10112,7 +10432,7 @@ _ACEOF # "ja" as "Japanese" or "Japanese_Japan.932", # and similar. mingw*) - # Test for the hypothetical native Win32 locale name. + # Test for the hypothetical native Windows locale name. if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then gt_cv_locale_zh_CN=Chinese_China.54936 else @@ -10185,9 +10505,9 @@ int main () { #if !(defined __BEOS__ || defined __HAIKU__) /* Check whether the given locale name is recognized by the system. */ # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ - /* On native Win32, setlocale(category, "") looks at the system settings, + /* On native Windows, setlocale(category, "") looks at the system settings, not at the environment variables. Also, when an encoding suffix such - as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE + as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE category of the locale to "C". */ if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) @@ -10222,10 +10542,12 @@ int main () { || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') return 1; #endif +#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ /* Check whether the decimal separator is a comma. On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point are nl_langinfo(RADIXCHAR) are both ".". */ if (localeconv () ->decimal_point[0] != ',') return 1; +#endif return 0; } @@ -10243,7 +10565,7 @@ _ACEOF # "ja" as "Japanese" or "Japanese_Japan.932", # and similar. mingw*) - # Test for the hypothetical native Win32 locale name. + # Test for the hypothetical native Windows locale name. if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then gt_cv_locale_fr_utf8=French_France.65001 else @@ -10301,8 +10623,11 @@ $as_echo "$gt_cv_locale_fr_utf8" >&6; } GNULIB_MKOSTEMPS=0; GNULIB_MKSTEMP=0; GNULIB_MKSTEMPS=0; + GNULIB_POSIX_OPENPT=0; GNULIB_PTSNAME=0; + GNULIB_PTSNAME_R=0; GNULIB_PUTENV=0; + GNULIB_RANDOM=0; GNULIB_RANDOM_R=0; GNULIB_REALLOC_POSIX=0; GNULIB_REALPATH=0; @@ -10326,7 +10651,10 @@ $as_echo "$gt_cv_locale_fr_utf8" >&6; } HAVE_MKOSTEMPS=1; HAVE_MKSTEMP=1; HAVE_MKSTEMPS=1; + HAVE_POSIX_OPENPT=1; HAVE_PTSNAME=1; + HAVE_PTSNAME_R=1; + HAVE_RANDOM=1; HAVE_RANDOM_H=1; HAVE_RANDOM_R=1; HAVE_REALPATH=1; @@ -10345,7 +10673,9 @@ $as_echo "$gt_cv_locale_fr_utf8" >&6; } REPLACE_MALLOC=0; REPLACE_MBTOWC=0; REPLACE_MKSTEMP=0; + REPLACE_PTSNAME_R=0; REPLACE_PUTENV=0; + REPLACE_RANDOM_R=0; REPLACE_REALLOC=0; REPLACE_REALPATH=0; REPLACE_SETENV=0; @@ -10908,13 +11238,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'stdint.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/stdint.h#{ - s#.*"\(.*/stdint.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' else gl_cv_next_stdint_h='<'stdint.h'>' fi @@ -10956,8 +11300,6 @@ else /* end confdefs.h. */ -#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ -#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ #include /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in . */ @@ -11126,8 +11468,6 @@ else /* end confdefs.h. */ -#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ -#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ #include @@ -11538,6 +11878,10 @@ _ACEOF + if test $BITSIZEOF_WINT_T -lt 32; then + BITSIZEOF_WINT_T=32 + fi + STDINT_H=stdint.h fi @@ -11553,6 +11897,7 @@ fi GNULIB_DPRINTF=0; GNULIB_FCLOSE=0; + GNULIB_FDOPEN=0; GNULIB_FFLUSH=0; GNULIB_FGETC=0; GNULIB_FGETS=0; @@ -11577,6 +11922,7 @@ fi GNULIB_GETS=0; GNULIB_OBSTACK_PRINTF=0; GNULIB_OBSTACK_PRINTF_POSIX=0; + GNULIB_PCLOSE=0; GNULIB_PERROR=0; GNULIB_POPEN=0; GNULIB_PRINTF=0; @@ -11614,11 +11960,14 @@ fi HAVE_DPRINTF=1; HAVE_FSEEKO=1; HAVE_FTELLO=1; + HAVE_PCLOSE=1; + HAVE_POPEN=1; HAVE_RENAMEAT=1; HAVE_VASPRINTF=1; HAVE_VDPRINTF=1; REPLACE_DPRINTF=0; REPLACE_FCLOSE=0; + REPLACE_FDOPEN=0; REPLACE_FFLUSH=0; REPLACE_FOPEN=0; REPLACE_FPRINTF=0; @@ -11678,13 +12027,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'string.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/string.h#{ - s#.*"\(.*/string.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' fi @@ -11825,6 +12188,7 @@ $as_echo "$gl_cv_func_strstr_works_always" >&6; } GNULIB_FCHMODAT=0; + GNULIB_FSTAT=0; GNULIB_FSTATAT=0; GNULIB_FUTIMENS=0; GNULIB_LCHMOD=0; @@ -11901,6 +12265,17 @@ fi +ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" +if test "x$ac_cv_type_mode_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define mode_t int +_ACEOF + +fi + GNULIB_MKTIME=0; GNULIB_NANOSLEEP=0; @@ -12044,13 +12419,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'time.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/time.h#{ - s#.*"\(.*/time.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' fi @@ -12073,7 +12462,16 @@ $as_echo "$gl_cv_next_time_h" >&6; } +ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" +if test "x$ac_cv_type_pid_t" = xyes; then : +else + +cat >>confdefs.h <<_ACEOF +#define pid_t int +_ACEOF + +fi @@ -12178,8 +12576,6 @@ $as_echo "#define HAVE_WINT_T 1" >>confdefs.h - - if false; then GL_COND_LIBTOOL_TRUE= GL_COND_LIBTOOL_FALSE='#' @@ -12446,9 +12842,11 @@ if test $REPLACE_GETOPT = 1; then + GNULIB_GL_UNISTD_H_GETOPT=1 fi + $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h @@ -12474,7 +12872,6 @@ $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h - GNULIB_UNISTD_H_GETOPT=1 fi if test $REPLACE_GETOPT = 1; then @@ -12501,6 +12898,7 @@ if test $REPLACE_GETOPT = 1; then + GNULIB_GL_UNISTD_H_GETOPT=1 fi @@ -12511,6 +12909,7 @@ fi + gl_gettimeofday_timezone=void if test $ac_cv_func_gettimeofday != yes; then HAVE_GETTIMEOFDAY=0 @@ -12637,6 +13036,9 @@ $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; } gl_gettimeofday_timezone='struct timezone' elif test $gl_cv_func_gettimeofday_posix_signature != yes; then REPLACE_GETTIMEOFDAY=1 + fi + if test $REPLACE_STRUCT_TIMEVAL = 1; then + REPLACE_GETTIMEOFDAY=1 fi fi @@ -12742,13 +13144,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'iconv.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/iconv.h#{ - s#.*"\(.*/iconv.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' else gl_cv_next_iconv_h='<'iconv.h'>' fi @@ -12924,7 +13340,7 @@ $as_echo "#define HAVE_INLINE 1" >>confdefs.h -LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\"" +LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\"" @@ -13027,13 +13443,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'locale.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/locale.h#{ - s#.*"\(.*/locale.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' fi @@ -14343,6 +14773,39 @@ $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 +$as_echo_n "checking for ssize_t... " >&6; } +if ${gt_cv_ssize_t+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int x = sizeof (ssize_t *) + sizeof (ssize_t); + return !x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_ssize_t=yes +else + gt_cv_ssize_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 +$as_echo "$gt_cv_ssize_t" >&6; } + if test $gt_cv_ssize_t = no; then + +$as_echo "#define ssize_t int" >>confdefs.h + + fi + + # Define two additional variables used in the Makefile substitution. @@ -14444,13 +14907,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'stddef.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/stddef.h#{ - s#.*"\(.*/stddef.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' fi @@ -14503,13 +14980,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'stdio.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/stdio.h#{ - s#.*"\(.*/stdio.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' fi @@ -14555,7 +15046,7 @@ $as_echo "$gl_cv_next_stdio_h" >&6; } - for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do + for gl_func in dprintf fpurge fseeko ftello getdelim getline pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } @@ -14623,13 +15114,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'stdlib.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/stdlib.h#{ - s#.*"\(.*/stdlib.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' fi @@ -14652,7 +15157,7 @@ $as_echo "$gl_cv_next_stdlib_h" >&6; } - for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do + for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } @@ -14952,13 +15457,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'sys/stat.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/sys/stat.h#{ - s#.*"\(.*/sys/stat.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' else gl_cv_next_sys_stat_h='<'sys/stat.h'>' fi @@ -14983,6 +15502,8 @@ $as_echo "$gl_cv_next_sys_stat_h" >&6; } + + ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include #include " @@ -14996,7 +15517,7 @@ fi - for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do + for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } @@ -15078,13 +15599,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'unistd.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/unistd.h#{ - s#.*"\(.*/unistd.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' else gl_cv_next_unistd_h='<'unistd.h'>' fi @@ -15116,7 +15651,9 @@ $as_echo "$gl_cv_next_unistd_h" >&6; } - for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do + + + for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } @@ -15125,7 +15662,10 @@ if eval \${$as_gl_Symbol+:} false; then : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include + +#if HAVE_UNISTD_H +# include +#endif /* Some systems declare various items in the wrong headers. */ #if !(defined __GLIBC__ && !defined __UCLIBC__) # include @@ -15324,13 +15864,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'wchar.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/wchar.h#{ - s#.*"\(.*/wchar.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' else gl_cv_next_wchar_h='<'wchar.h'>' fi @@ -16017,13 +16571,27 @@ _ACEOF aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac + + case "$host_os" in + mingw*) + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' + + gl_header_literal_regex=`echo 'wctype.h' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ + s|^/[^/]|//&| + p + q + }' gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/wctype.h#{ - s#.*"\(.*/wctype.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' + sed -n "$gl_absolute_header_sed"`'"' else gl_cv_next_wctype_h='<'wctype.h'>' fi @@ -16313,8 +16881,43 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmemcpy" >&5 +$as_echo_n "checking for wmemcpy... " >&6; } +if ${gl_cv_func_wmemcpy+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - if test $ac_cv_func_wmemcpy = no; then +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include + +int +main () +{ +return ! wmemcpy ((wchar_t *) 0, (const wchar_t *) 0, 0); + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func_wmemcpy=yes +else + gl_cv_func_wmemcpy=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wmemcpy" >&5 +$as_echo "$gl_cv_func_wmemcpy" >&6; } + if test $gl_cv_func_wmemcpy = no; then HAVE_WMEMCPY=0 fi @@ -16857,7 +17460,7 @@ fi if test "x$with_plaincurses" != xno && test "x$ax_cv_curses_which" = xno; then : - if test "x$CURSES_LIB" = x; then : + if test "x$CURSES_LIB" != x; then : LIBS="$ax_saved_LIBS $CURSES_LIB" @@ -17757,7 +18360,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Star Traders $as_me 7.2, which was +This file was extended by Star Traders $as_me 7.3, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -17824,7 +18427,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -Star Traders config.status 7.2 +Star Traders config.status 7.3 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" @@ -18697,12 +19300,12 @@ $as_echo X"$file" | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` - # Hide the ALL_LINGUAS assigment from automake < 1.5. + # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. - # Hide the ALL_LINGUAS assigment from automake < 1.5. + # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES diff --git a/doc/Makefile.in b/doc/Makefile.in index 7a8144c..a974bc6 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -1,9 +1,9 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.11.3 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -18,7 +18,7 @@ ######################################################################### # # # Star Traders: A Game of Interstellar Trading # -# Copyright (C) 1990-2011, John Zaitseff # +# Copyright (C) 1990-2012, John Zaitseff # # # ######################################################################### @@ -89,17 +89,19 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \ $(top_srcdir)/m4/mmap-anon.m4 $(top_srcdir)/m4/multiarch.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/nocrash.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/stdbool.m4 $(top_srcdir)/m4/stddef_h.m4 \ - $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdio_h.m4 \ - $(top_srcdir)/m4/stdlib_h.m4 $(top_srcdir)/m4/string_h.m4 \ - $(top_srcdir)/m4/strstr.m4 $(top_srcdir)/m4/sys_stat_h.m4 \ - $(top_srcdir)/m4/sys_time_h.m4 $(top_srcdir)/m4/time_h.m4 \ - $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/warn-on-use.m4 \ - $(top_srcdir)/m4/wchar_h.m4 $(top_srcdir)/m4/wchar_t.m4 \ - $(top_srcdir)/m4/wcrtomb.m4 $(top_srcdir)/m4/wcsdup.m4 \ - $(top_srcdir)/m4/wctob.m4 $(top_srcdir)/m4/wctomb.m4 \ - $(top_srcdir)/m4/wctype_h.m4 $(top_srcdir)/m4/wint_t.m4 \ - $(top_srcdir)/m4/wmemcpy.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/stdbool.m4 \ + $(top_srcdir)/m4/stddef_h.m4 $(top_srcdir)/m4/stdint.m4 \ + $(top_srcdir)/m4/stdio_h.m4 $(top_srcdir)/m4/stdlib_h.m4 \ + $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strstr.m4 \ + $(top_srcdir)/m4/sys_socket_h.m4 \ + $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \ + $(top_srcdir)/m4/time_h.m4 $(top_srcdir)/m4/unistd_h.m4 \ + $(top_srcdir)/m4/warn-on-use.m4 $(top_srcdir)/m4/wchar_h.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wcrtomb.m4 \ + $(top_srcdir)/m4/wcsdup.m4 $(top_srcdir)/m4/wctob.m4 \ + $(top_srcdir)/m4/wctomb.m4 $(top_srcdir)/m4/wctype_h.m4 \ + $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/wmemcpy.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d @@ -129,6 +131,12 @@ am__nobase_list = $(am__nobase_strip_setup); \ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } man6dir = $(mandir)/man6 am__installdirs = "$(DESTDIR)$(man6dir)" NROFF = nroff @@ -172,9 +180,11 @@ GNULIB_ATOLL = @GNULIB_ATOLL@ GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ +GNULIB_CHDIR = @GNULIB_CHDIR@ GNULIB_CHOWN = @GNULIB_CHOWN@ GNULIB_CLOSE = @GNULIB_CLOSE@ GNULIB_DPRINTF = @GNULIB_DPRINTF@ +GNULIB_DUP = @GNULIB_DUP@ GNULIB_DUP2 = @GNULIB_DUP2@ GNULIB_DUP3 = @GNULIB_DUP3@ GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ @@ -185,6 +195,8 @@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FDATASYNC = @GNULIB_FDATASYNC@ +GNULIB_FDOPEN = @GNULIB_FDOPEN@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FFSL = @GNULIB_FFSL@ GNULIB_FFSLL = @GNULIB_FFSLL@ @@ -201,6 +213,7 @@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSCANF = @GNULIB_FSCANF@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTAT = @GNULIB_FSTAT@ GNULIB_FSTATAT = @GNULIB_FSTATAT@ GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ @@ -225,9 +238,11 @@ GNULIB_GETS = @GNULIB_GETS@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GL_UNISTD_H_GETOPT = @GNULIB_GL_UNISTD_H_GETOPT@ GNULIB_GRANTPT = @GNULIB_GRANTPT@ GNULIB_GROUP_MEMBER = @GNULIB_GROUP_MEMBER@ GNULIB_ICONV = @GNULIB_ICONV@ +GNULIB_ISATTY = @GNULIB_ISATTY@ GNULIB_ISWBLANK = @GNULIB_ISWBLANK@ GNULIB_ISWCTYPE = @GNULIB_ISWCTYPE@ GNULIB_LCHMOD = @GNULIB_LCHMOD@ @@ -275,19 +290,23 @@ GNULIB_MKTIME = @GNULIB_MKTIME@ GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ +GNULIB_PCLOSE = @GNULIB_PCLOSE@ GNULIB_PERROR = @GNULIB_PERROR@ GNULIB_PIPE = @GNULIB_PIPE@ GNULIB_PIPE2 = @GNULIB_PIPE2@ GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_OPENPT = @GNULIB_POSIX_OPENPT@ GNULIB_PREAD = @GNULIB_PREAD@ GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PTSNAME_R = @GNULIB_PTSNAME_R@ GNULIB_PUTC = @GNULIB_PUTC@ GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ GNULIB_PUTS = @GNULIB_PUTS@ GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM = @GNULIB_RANDOM@ GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READ = @GNULIB_READ@ @@ -302,6 +321,7 @@ GNULIB_RMDIR = @GNULIB_RMDIR@ GNULIB_RPMATCH = @GNULIB_RPMATCH@ GNULIB_SCANF = @GNULIB_SCANF@ GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETHOSTNAME = @GNULIB_SETHOSTNAME@ GNULIB_SETLOCALE = @GNULIB_SETLOCALE@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ @@ -337,7 +357,6 @@ GNULIB_TIME_R = @GNULIB_TIME_R@ GNULIB_TMPFILE = @GNULIB_TMPFILE@ GNULIB_TOWCTRANS = @GNULIB_TOWCTRANS@ GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ -GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ GNULIB_UNISTD_H_NONBLOCKING = @GNULIB_UNISTD_H_NONBLOCKING@ GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ GNULIB_UNLINK = @GNULIB_UNLINK@ @@ -401,6 +420,7 @@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ +HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ @@ -416,6 +436,7 @@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ +HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ @@ -437,6 +458,7 @@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ @@ -485,11 +507,16 @@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_OS_H = @HAVE_OS_H@ +HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ +HAVE_POPEN = @HAVE_POPEN@ +HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ @@ -499,6 +526,7 @@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SETENV = @HAVE_SETENV@ +HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ @@ -565,6 +593,7 @@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WCTRANS_T = @HAVE_WCTRANS_T@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WCTYPE_T = @HAVE_WCTYPE_T@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ @@ -661,6 +690,7 @@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ @@ -684,6 +714,7 @@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ISWBLANK = @REPLACE_ISWBLANK@ REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ @@ -714,8 +745,10 @@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ +REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_REALLOC = @REPLACE_REALLOC@ @@ -745,6 +778,7 @@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ @@ -911,9 +945,7 @@ uninstall-man6: files=`{ for i in $$list; do echo "$$i"; done; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^6][0-9a-z]*$$,6,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ - test -z "$$files" || { \ - echo " ( cd '$(DESTDIR)$(man6dir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(man6dir)" && rm -f $$files; } + dir='$(DESTDIR)$(man6dir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: @@ -981,10 +1013,15 @@ install-am: all-am installcheck: installcheck-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: diff --git a/lib/Makefile.am b/lib/Makefile.am index b8dfbe1..f9a16e9 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,11 +1,23 @@ ## DO NOT EDIT! GENERATED AUTOMATICALLY! ## Process this file with automake to produce Makefile.in. -# Copyright (C) 2002-2011 Free Software Foundation, Inc. +# Copyright (C) 2002-2012 Free Software Foundation, Inc. # -# This file is free software, distributed under the terms of the GNU -# General Public License. As a special exception to the GNU General -# Public License, this file may be distributed as part of a program -# that contains a configuration script generated by Autoconf, under +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see . +# +# As a special exception to the GNU General Public License, +# this file may be distributed as part of a program that +# contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. @@ -612,6 +624,7 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ -e 's/@''GNULIB_DPRINTF''@/$(GNULIB_DPRINTF)/g' \ -e 's/@''GNULIB_FCLOSE''@/$(GNULIB_FCLOSE)/g' \ + -e 's/@''GNULIB_FDOPEN''@/$(GNULIB_FDOPEN)/g' \ -e 's/@''GNULIB_FFLUSH''@/$(GNULIB_FFLUSH)/g' \ -e 's/@''GNULIB_FGETC''@/$(GNULIB_FGETC)/g' \ -e 's/@''GNULIB_FGETS''@/$(GNULIB_FGETS)/g' \ @@ -636,6 +649,7 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) -e 's/@''GNULIB_GETS''@/$(GNULIB_GETS)/g' \ -e 's/@''GNULIB_OBSTACK_PRINTF''@/$(GNULIB_OBSTACK_PRINTF)/g' \ -e 's/@''GNULIB_OBSTACK_PRINTF_POSIX''@/$(GNULIB_OBSTACK_PRINTF_POSIX)/g' \ + -e 's/@''GNULIB_PCLOSE''@/$(GNULIB_PCLOSE)/g' \ -e 's/@''GNULIB_PERROR''@/$(GNULIB_PERROR)/g' \ -e 's/@''GNULIB_POPEN''@/$(GNULIB_POPEN)/g' \ -e 's/@''GNULIB_PRINTF''@/$(GNULIB_PRINTF)/g' \ @@ -674,11 +688,14 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ + -e 's|@''HAVE_PCLOSE''@|$(HAVE_PCLOSE)|g' \ + -e 's|@''HAVE_POPEN''@|$(HAVE_POPEN)|g' \ -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ + -e 's|@''REPLACE_FDOPEN''@|$(REPLACE_FDOPEN)|g' \ -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ @@ -749,8 +766,11 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \ -e 's/@''GNULIB_MKOSTEMPS''@/$(GNULIB_MKOSTEMPS)/g' \ -e 's/@''GNULIB_MKSTEMP''@/$(GNULIB_MKSTEMP)/g' \ -e 's/@''GNULIB_MKSTEMPS''@/$(GNULIB_MKSTEMPS)/g' \ + -e 's/@''GNULIB_POSIX_OPENPT''@/$(GNULIB_POSIX_OPENPT)/g' \ -e 's/@''GNULIB_PTSNAME''@/$(GNULIB_PTSNAME)/g' \ + -e 's/@''GNULIB_PTSNAME_R''@/$(GNULIB_PTSNAME_R)/g' \ -e 's/@''GNULIB_PUTENV''@/$(GNULIB_PUTENV)/g' \ + -e 's/@''GNULIB_RANDOM''@/$(GNULIB_RANDOM)/g' \ -e 's/@''GNULIB_RANDOM_R''@/$(GNULIB_RANDOM_R)/g' \ -e 's/@''GNULIB_REALLOC_POSIX''@/$(GNULIB_REALLOC_POSIX)/g' \ -e 's/@''GNULIB_REALPATH''@/$(GNULIB_REALPATH)/g' \ @@ -775,7 +795,10 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \ -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \ -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \ + -e 's|@''HAVE_POSIX_OPENPT''@|$(HAVE_POSIX_OPENPT)|g' \ -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \ + -e 's|@''HAVE_PTSNAME_R''@|$(HAVE_PTSNAME_R)|g' \ + -e 's|@''HAVE_RANDOM''@|$(HAVE_RANDOM)|g' \ -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \ -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \ -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \ @@ -793,7 +816,9 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \ -e 's|@''REPLACE_MALLOC''@|$(REPLACE_MALLOC)|g' \ -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \ -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ + -e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \ -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ + -e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \ -e 's|@''REPLACE_REALLOC''@|$(REPLACE_REALLOC)|g' \ -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \ -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ @@ -958,6 +983,7 @@ sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNU -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ -e 's/@''GNULIB_FCHMODAT''@/$(GNULIB_FCHMODAT)/g' \ + -e 's/@''GNULIB_FSTAT''@/$(GNULIB_FSTAT)/g' \ -e 's/@''GNULIB_FSTATAT''@/$(GNULIB_FSTATAT)/g' \ -e 's/@''GNULIB_FUTIMENS''@/$(GNULIB_FUTIMENS)/g' \ -e 's/@''GNULIB_LCHMOD''@/$(GNULIB_LCHMOD)/g' \ @@ -1019,9 +1045,11 @@ sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNU -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \ -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GNULIB_GETTIMEOFDAY)/g' \ + -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ -e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \ -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \ -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \ + -e 's/@''REPLACE_STRUCT_TIMEVAL''@/$(REPLACE_STRUCT_TIMEVAL)/g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ @@ -1091,8 +1119,10 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ + -e 's/@''GNULIB_CHDIR''@/$(GNULIB_CHDIR)/g' \ -e 's/@''GNULIB_CHOWN''@/$(GNULIB_CHOWN)/g' \ -e 's/@''GNULIB_CLOSE''@/$(GNULIB_CLOSE)/g' \ + -e 's/@''GNULIB_DUP''@/$(GNULIB_DUP)/g' \ -e 's/@''GNULIB_DUP2''@/$(GNULIB_DUP2)/g' \ -e 's/@''GNULIB_DUP3''@/$(GNULIB_DUP3)/g' \ -e 's/@''GNULIB_ENVIRON''@/$(GNULIB_ENVIRON)/g' \ @@ -1100,6 +1130,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's/@''GNULIB_FACCESSAT''@/$(GNULIB_FACCESSAT)/g' \ -e 's/@''GNULIB_FCHDIR''@/$(GNULIB_FCHDIR)/g' \ -e 's/@''GNULIB_FCHOWNAT''@/$(GNULIB_FCHOWNAT)/g' \ + -e 's/@''GNULIB_FDATASYNC''@/$(GNULIB_FDATASYNC)/g' \ -e 's/@''GNULIB_FSYNC''@/$(GNULIB_FSYNC)/g' \ -e 's/@''GNULIB_FTRUNCATE''@/$(GNULIB_FTRUNCATE)/g' \ -e 's/@''GNULIB_GETCWD''@/$(GNULIB_GETCWD)/g' \ @@ -1112,6 +1143,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's/@''GNULIB_GETPAGESIZE''@/$(GNULIB_GETPAGESIZE)/g' \ -e 's/@''GNULIB_GETUSERSHELL''@/$(GNULIB_GETUSERSHELL)/g' \ -e 's/@''GNULIB_GROUP_MEMBER''@/$(GNULIB_GROUP_MEMBER)/g' \ + -e 's/@''GNULIB_ISATTY''@/$(GNULIB_ISATTY)/g' \ -e 's/@''GNULIB_LCHOWN''@/$(GNULIB_LCHOWN)/g' \ -e 's/@''GNULIB_LINK''@/$(GNULIB_LINK)/g' \ -e 's/@''GNULIB_LINKAT''@/$(GNULIB_LINKAT)/g' \ @@ -1124,11 +1156,12 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's/@''GNULIB_READLINK''@/$(GNULIB_READLINK)/g' \ -e 's/@''GNULIB_READLINKAT''@/$(GNULIB_READLINKAT)/g' \ -e 's/@''GNULIB_RMDIR''@/$(GNULIB_RMDIR)/g' \ + -e 's/@''GNULIB_SETHOSTNAME''@/$(GNULIB_SETHOSTNAME)/g' \ -e 's/@''GNULIB_SLEEP''@/$(GNULIB_SLEEP)/g' \ -e 's/@''GNULIB_SYMLINK''@/$(GNULIB_SYMLINK)/g' \ -e 's/@''GNULIB_SYMLINKAT''@/$(GNULIB_SYMLINKAT)/g' \ -e 's/@''GNULIB_TTYNAME_R''@/$(GNULIB_TTYNAME_R)/g' \ - -e 's/@''GNULIB_UNISTD_H_GETOPT''@/$(GNULIB_UNISTD_H_GETOPT)/g' \ + -e 's/@''GNULIB_UNISTD_H_GETOPT''@/0$(GNULIB_GL_UNISTD_H_GETOPT)/g' \ -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GNULIB_UNISTD_H_NONBLOCKING)/g' \ -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GNULIB_UNISTD_H_SIGPIPE)/g' \ -e 's/@''GNULIB_UNLINK''@/$(GNULIB_UNLINK)/g' \ @@ -1143,6 +1176,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ + -e 's|@''HAVE_FDATASYNC''@|$(HAVE_FDATASYNC)|g' \ -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \ -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \ @@ -1160,6 +1194,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ + -e 's|@''HAVE_SETHOSTNAME''@|$(HAVE_SETHOSTNAME)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \ -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ @@ -1167,10 +1202,12 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \ -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \ + -e 's|@''HAVE_DECL_FDATASYNC''@|$(HAVE_DECL_FDATASYNC)|g' \ -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \ -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \ + -e 's|@''HAVE_DECL_SETHOSTNAME''@|$(HAVE_DECL_SETHOSTNAME)|g' \ -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \ -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ @@ -1185,6 +1222,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \ -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ + -e 's|@''REPLACE_ISATTY''@|$(REPLACE_ISATTY)|g' \ -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \ diff --git a/lib/Makefile.in b/lib/Makefile.in index 12cae86..8df00e6 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -1,9 +1,9 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.11.3 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,12 +15,24 @@ @SET_MAKE@ -# Copyright (C) 2002-2011 Free Software Foundation, Inc. +# Copyright (C) 2002-2012 Free Software Foundation, Inc. # -# This file is free software, distributed under the terms of the GNU -# General Public License. As a special exception to the GNU General -# Public License, this file may be distributed as part of a program -# that contains a configuration script generated by Autoconf, under +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see . +# +# As a special exception to the GNU General Public License, +# this file may be distributed as part of a program that +# contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. @@ -77,17 +89,19 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \ $(top_srcdir)/m4/mmap-anon.m4 $(top_srcdir)/m4/multiarch.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/nocrash.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/stdbool.m4 $(top_srcdir)/m4/stddef_h.m4 \ - $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdio_h.m4 \ - $(top_srcdir)/m4/stdlib_h.m4 $(top_srcdir)/m4/string_h.m4 \ - $(top_srcdir)/m4/strstr.m4 $(top_srcdir)/m4/sys_stat_h.m4 \ - $(top_srcdir)/m4/sys_time_h.m4 $(top_srcdir)/m4/time_h.m4 \ - $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/warn-on-use.m4 \ - $(top_srcdir)/m4/wchar_h.m4 $(top_srcdir)/m4/wchar_t.m4 \ - $(top_srcdir)/m4/wcrtomb.m4 $(top_srcdir)/m4/wcsdup.m4 \ - $(top_srcdir)/m4/wctob.m4 $(top_srcdir)/m4/wctomb.m4 \ - $(top_srcdir)/m4/wctype_h.m4 $(top_srcdir)/m4/wint_t.m4 \ - $(top_srcdir)/m4/wmemcpy.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/stdbool.m4 \ + $(top_srcdir)/m4/stddef_h.m4 $(top_srcdir)/m4/stdint.m4 \ + $(top_srcdir)/m4/stdio_h.m4 $(top_srcdir)/m4/stdlib_h.m4 \ + $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strstr.m4 \ + $(top_srcdir)/m4/sys_socket_h.m4 \ + $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \ + $(top_srcdir)/m4/time_h.m4 $(top_srcdir)/m4/unistd_h.m4 \ + $(top_srcdir)/m4/warn-on-use.m4 $(top_srcdir)/m4/wchar_h.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wcrtomb.m4 \ + $(top_srcdir)/m4/wcsdup.m4 $(top_srcdir)/m4/wctob.m4 \ + $(top_srcdir)/m4/wctomb.m4 $(top_srcdir)/m4/wctype_h.m4 \ + $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/wmemcpy.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d @@ -201,9 +215,11 @@ GNULIB_ATOLL = @GNULIB_ATOLL@ GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ +GNULIB_CHDIR = @GNULIB_CHDIR@ GNULIB_CHOWN = @GNULIB_CHOWN@ GNULIB_CLOSE = @GNULIB_CLOSE@ GNULIB_DPRINTF = @GNULIB_DPRINTF@ +GNULIB_DUP = @GNULIB_DUP@ GNULIB_DUP2 = @GNULIB_DUP2@ GNULIB_DUP3 = @GNULIB_DUP3@ GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ @@ -214,6 +230,8 @@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FDATASYNC = @GNULIB_FDATASYNC@ +GNULIB_FDOPEN = @GNULIB_FDOPEN@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FFSL = @GNULIB_FFSL@ GNULIB_FFSLL = @GNULIB_FFSLL@ @@ -230,6 +248,7 @@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSCANF = @GNULIB_FSCANF@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTAT = @GNULIB_FSTAT@ GNULIB_FSTATAT = @GNULIB_FSTATAT@ GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ @@ -254,9 +273,11 @@ GNULIB_GETS = @GNULIB_GETS@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GL_UNISTD_H_GETOPT = @GNULIB_GL_UNISTD_H_GETOPT@ GNULIB_GRANTPT = @GNULIB_GRANTPT@ GNULIB_GROUP_MEMBER = @GNULIB_GROUP_MEMBER@ GNULIB_ICONV = @GNULIB_ICONV@ +GNULIB_ISATTY = @GNULIB_ISATTY@ GNULIB_ISWBLANK = @GNULIB_ISWBLANK@ GNULIB_ISWCTYPE = @GNULIB_ISWCTYPE@ GNULIB_LCHMOD = @GNULIB_LCHMOD@ @@ -304,19 +325,23 @@ GNULIB_MKTIME = @GNULIB_MKTIME@ GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ +GNULIB_PCLOSE = @GNULIB_PCLOSE@ GNULIB_PERROR = @GNULIB_PERROR@ GNULIB_PIPE = @GNULIB_PIPE@ GNULIB_PIPE2 = @GNULIB_PIPE2@ GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_OPENPT = @GNULIB_POSIX_OPENPT@ GNULIB_PREAD = @GNULIB_PREAD@ GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PTSNAME_R = @GNULIB_PTSNAME_R@ GNULIB_PUTC = @GNULIB_PUTC@ GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ GNULIB_PUTS = @GNULIB_PUTS@ GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM = @GNULIB_RANDOM@ GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READ = @GNULIB_READ@ @@ -331,6 +356,7 @@ GNULIB_RMDIR = @GNULIB_RMDIR@ GNULIB_RPMATCH = @GNULIB_RPMATCH@ GNULIB_SCANF = @GNULIB_SCANF@ GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETHOSTNAME = @GNULIB_SETHOSTNAME@ GNULIB_SETLOCALE = @GNULIB_SETLOCALE@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ @@ -366,7 +392,6 @@ GNULIB_TIME_R = @GNULIB_TIME_R@ GNULIB_TMPFILE = @GNULIB_TMPFILE@ GNULIB_TOWCTRANS = @GNULIB_TOWCTRANS@ GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ -GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ GNULIB_UNISTD_H_NONBLOCKING = @GNULIB_UNISTD_H_NONBLOCKING@ GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ GNULIB_UNLINK = @GNULIB_UNLINK@ @@ -430,6 +455,7 @@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ +HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ @@ -445,6 +471,7 @@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ +HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ @@ -466,6 +493,7 @@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ @@ -514,11 +542,16 @@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_OS_H = @HAVE_OS_H@ +HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ +HAVE_POPEN = @HAVE_POPEN@ +HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ @@ -528,6 +561,7 @@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SETENV = @HAVE_SETENV@ +HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ @@ -594,6 +628,7 @@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WCTRANS_T = @HAVE_WCTRANS_T@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WCTYPE_T = @HAVE_WCTYPE_T@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ @@ -690,6 +725,7 @@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ @@ -713,6 +749,7 @@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ISWBLANK = @REPLACE_ISWBLANK@ REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ @@ -743,8 +780,10 @@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ +REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_REALLOC = @REPLACE_REALLOC@ @@ -774,6 +813,7 @@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ @@ -1023,7 +1063,7 @@ unistr/u8-uctomb.$(OBJEXT): unistr/$(am__dirstamp) \ unistr/$(DEPDIR)/$(am__dirstamp) unistr/u8-uctomb-aux.$(OBJEXT): unistr/$(am__dirstamp) \ unistr/$(DEPDIR)/$(am__dirstamp) -libgnu.a: $(libgnu_a_OBJECTS) $(libgnu_a_DEPENDENCIES) +libgnu.a: $(libgnu_a_OBJECTS) $(libgnu_a_DEPENDENCIES) $(EXTRA_libgnu_a_DEPENDENCIES) -rm -f libgnu.a $(libgnu_a_AR) libgnu.a $(libgnu_a_OBJECTS) $(libgnu_a_LIBADD) $(RANLIB) libgnu.a @@ -1301,10 +1341,15 @@ install-am: all-am installcheck: installcheck-recursive install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) @@ -1703,6 +1748,7 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ -e 's/@''GNULIB_DPRINTF''@/$(GNULIB_DPRINTF)/g' \ -e 's/@''GNULIB_FCLOSE''@/$(GNULIB_FCLOSE)/g' \ + -e 's/@''GNULIB_FDOPEN''@/$(GNULIB_FDOPEN)/g' \ -e 's/@''GNULIB_FFLUSH''@/$(GNULIB_FFLUSH)/g' \ -e 's/@''GNULIB_FGETC''@/$(GNULIB_FGETC)/g' \ -e 's/@''GNULIB_FGETS''@/$(GNULIB_FGETS)/g' \ @@ -1727,6 +1773,7 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) -e 's/@''GNULIB_GETS''@/$(GNULIB_GETS)/g' \ -e 's/@''GNULIB_OBSTACK_PRINTF''@/$(GNULIB_OBSTACK_PRINTF)/g' \ -e 's/@''GNULIB_OBSTACK_PRINTF_POSIX''@/$(GNULIB_OBSTACK_PRINTF_POSIX)/g' \ + -e 's/@''GNULIB_PCLOSE''@/$(GNULIB_PCLOSE)/g' \ -e 's/@''GNULIB_PERROR''@/$(GNULIB_PERROR)/g' \ -e 's/@''GNULIB_POPEN''@/$(GNULIB_POPEN)/g' \ -e 's/@''GNULIB_PRINTF''@/$(GNULIB_PRINTF)/g' \ @@ -1765,11 +1812,14 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ + -e 's|@''HAVE_PCLOSE''@|$(HAVE_PCLOSE)|g' \ + -e 's|@''HAVE_POPEN''@|$(HAVE_POPEN)|g' \ -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ + -e 's|@''REPLACE_FDOPEN''@|$(REPLACE_FDOPEN)|g' \ -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ @@ -1831,8 +1881,11 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \ -e 's/@''GNULIB_MKOSTEMPS''@/$(GNULIB_MKOSTEMPS)/g' \ -e 's/@''GNULIB_MKSTEMP''@/$(GNULIB_MKSTEMP)/g' \ -e 's/@''GNULIB_MKSTEMPS''@/$(GNULIB_MKSTEMPS)/g' \ + -e 's/@''GNULIB_POSIX_OPENPT''@/$(GNULIB_POSIX_OPENPT)/g' \ -e 's/@''GNULIB_PTSNAME''@/$(GNULIB_PTSNAME)/g' \ + -e 's/@''GNULIB_PTSNAME_R''@/$(GNULIB_PTSNAME_R)/g' \ -e 's/@''GNULIB_PUTENV''@/$(GNULIB_PUTENV)/g' \ + -e 's/@''GNULIB_RANDOM''@/$(GNULIB_RANDOM)/g' \ -e 's/@''GNULIB_RANDOM_R''@/$(GNULIB_RANDOM_R)/g' \ -e 's/@''GNULIB_REALLOC_POSIX''@/$(GNULIB_REALLOC_POSIX)/g' \ -e 's/@''GNULIB_REALPATH''@/$(GNULIB_REALPATH)/g' \ @@ -1857,7 +1910,10 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \ -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \ -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \ + -e 's|@''HAVE_POSIX_OPENPT''@|$(HAVE_POSIX_OPENPT)|g' \ -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \ + -e 's|@''HAVE_PTSNAME_R''@|$(HAVE_PTSNAME_R)|g' \ + -e 's|@''HAVE_RANDOM''@|$(HAVE_RANDOM)|g' \ -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \ -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \ -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \ @@ -1875,7 +1931,9 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \ -e 's|@''REPLACE_MALLOC''@|$(REPLACE_MALLOC)|g' \ -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \ -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ + -e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \ -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ + -e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \ -e 's|@''REPLACE_REALLOC''@|$(REPLACE_REALLOC)|g' \ -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \ -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ @@ -1992,6 +2050,7 @@ sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNU -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ -e 's/@''GNULIB_FCHMODAT''@/$(GNULIB_FCHMODAT)/g' \ + -e 's/@''GNULIB_FSTAT''@/$(GNULIB_FSTAT)/g' \ -e 's/@''GNULIB_FSTATAT''@/$(GNULIB_FSTATAT)/g' \ -e 's/@''GNULIB_FUTIMENS''@/$(GNULIB_FUTIMENS)/g' \ -e 's/@''GNULIB_LCHMOD''@/$(GNULIB_LCHMOD)/g' \ @@ -2043,9 +2102,11 @@ sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNU -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \ -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GNULIB_GETTIMEOFDAY)/g' \ + -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ -e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \ -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \ -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \ + -e 's/@''REPLACE_STRUCT_TIMEVAL''@/$(REPLACE_STRUCT_TIMEVAL)/g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ @@ -2097,8 +2158,10 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ + -e 's/@''GNULIB_CHDIR''@/$(GNULIB_CHDIR)/g' \ -e 's/@''GNULIB_CHOWN''@/$(GNULIB_CHOWN)/g' \ -e 's/@''GNULIB_CLOSE''@/$(GNULIB_CLOSE)/g' \ + -e 's/@''GNULIB_DUP''@/$(GNULIB_DUP)/g' \ -e 's/@''GNULIB_DUP2''@/$(GNULIB_DUP2)/g' \ -e 's/@''GNULIB_DUP3''@/$(GNULIB_DUP3)/g' \ -e 's/@''GNULIB_ENVIRON''@/$(GNULIB_ENVIRON)/g' \ @@ -2106,6 +2169,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's/@''GNULIB_FACCESSAT''@/$(GNULIB_FACCESSAT)/g' \ -e 's/@''GNULIB_FCHDIR''@/$(GNULIB_FCHDIR)/g' \ -e 's/@''GNULIB_FCHOWNAT''@/$(GNULIB_FCHOWNAT)/g' \ + -e 's/@''GNULIB_FDATASYNC''@/$(GNULIB_FDATASYNC)/g' \ -e 's/@''GNULIB_FSYNC''@/$(GNULIB_FSYNC)/g' \ -e 's/@''GNULIB_FTRUNCATE''@/$(GNULIB_FTRUNCATE)/g' \ -e 's/@''GNULIB_GETCWD''@/$(GNULIB_GETCWD)/g' \ @@ -2118,6 +2182,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's/@''GNULIB_GETPAGESIZE''@/$(GNULIB_GETPAGESIZE)/g' \ -e 's/@''GNULIB_GETUSERSHELL''@/$(GNULIB_GETUSERSHELL)/g' \ -e 's/@''GNULIB_GROUP_MEMBER''@/$(GNULIB_GROUP_MEMBER)/g' \ + -e 's/@''GNULIB_ISATTY''@/$(GNULIB_ISATTY)/g' \ -e 's/@''GNULIB_LCHOWN''@/$(GNULIB_LCHOWN)/g' \ -e 's/@''GNULIB_LINK''@/$(GNULIB_LINK)/g' \ -e 's/@''GNULIB_LINKAT''@/$(GNULIB_LINKAT)/g' \ @@ -2130,11 +2195,12 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's/@''GNULIB_READLINK''@/$(GNULIB_READLINK)/g' \ -e 's/@''GNULIB_READLINKAT''@/$(GNULIB_READLINKAT)/g' \ -e 's/@''GNULIB_RMDIR''@/$(GNULIB_RMDIR)/g' \ + -e 's/@''GNULIB_SETHOSTNAME''@/$(GNULIB_SETHOSTNAME)/g' \ -e 's/@''GNULIB_SLEEP''@/$(GNULIB_SLEEP)/g' \ -e 's/@''GNULIB_SYMLINK''@/$(GNULIB_SYMLINK)/g' \ -e 's/@''GNULIB_SYMLINKAT''@/$(GNULIB_SYMLINKAT)/g' \ -e 's/@''GNULIB_TTYNAME_R''@/$(GNULIB_TTYNAME_R)/g' \ - -e 's/@''GNULIB_UNISTD_H_GETOPT''@/$(GNULIB_UNISTD_H_GETOPT)/g' \ + -e 's/@''GNULIB_UNISTD_H_GETOPT''@/0$(GNULIB_GL_UNISTD_H_GETOPT)/g' \ -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GNULIB_UNISTD_H_NONBLOCKING)/g' \ -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GNULIB_UNISTD_H_SIGPIPE)/g' \ -e 's/@''GNULIB_UNLINK''@/$(GNULIB_UNLINK)/g' \ @@ -2149,6 +2215,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ + -e 's|@''HAVE_FDATASYNC''@|$(HAVE_FDATASYNC)|g' \ -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \ -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \ @@ -2166,6 +2233,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ + -e 's|@''HAVE_SETHOSTNAME''@|$(HAVE_SETHOSTNAME)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \ -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ @@ -2173,10 +2241,12 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \ -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \ + -e 's|@''HAVE_DECL_FDATASYNC''@|$(HAVE_DECL_FDATASYNC)|g' \ -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \ -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \ + -e 's|@''HAVE_DECL_SETHOSTNAME''@|$(HAVE_DECL_SETHOSTNAME)|g' \ -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \ -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ @@ -2191,6 +2261,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \ -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ + -e 's|@''REPLACE_ISATTY''@|$(REPLACE_ISATTY)|g' \ -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \ diff --git a/lib/btowc.c b/lib/btowc.c index 9b3908d..cec9eca 100644 --- a/lib/btowc.c +++ b/lib/btowc.c @@ -1,5 +1,5 @@ /* Convert unibyte character to wide character. - Copyright (C) 2008, 2010-2011 Free Software Foundation, Inc. + Copyright (C) 2008, 2010-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify diff --git a/lib/c-ctype.c b/lib/c-ctype.c index 0fb4295..952d7a8 100644 --- a/lib/c-ctype.c +++ b/lib/c-ctype.c @@ -1,6 +1,6 @@ /* Character handling in C locale. - Copyright 2000-2003, 2006, 2009-2011 Free Software Foundation, Inc. + Copyright 2000-2003, 2006, 2009-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -13,8 +13,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software Foundation, -Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +along with this program; if not, see . */ #include diff --git a/lib/c-ctype.h b/lib/c-ctype.h index 57e71ee..0b31309 100644 --- a/lib/c-ctype.h +++ b/lib/c-ctype.h @@ -5,7 +5,7 @@ functions' behaviour depends on the current locale set via setlocale. - Copyright (C) 2000-2003, 2006, 2008-2011 Free Software Foundation, Inc. + Copyright (C) 2000-2003, 2006, 2008-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,8 +18,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software Foundation, -Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +along with this program; if not, see . */ #ifndef C_CTYPE_H #define C_CTYPE_H @@ -118,23 +117,23 @@ extern "C" { if (c_isalpha (*s)) ... */ -extern bool c_isascii (int c); /* not locale dependent */ +extern bool c_isascii (int c) _GL_ATTRIBUTE_CONST; /* not locale dependent */ -extern bool c_isalnum (int c); -extern bool c_isalpha (int c); -extern bool c_isblank (int c); -extern bool c_iscntrl (int c); -extern bool c_isdigit (int c); -extern bool c_islower (int c); -extern bool c_isgraph (int c); -extern bool c_isprint (int c); -extern bool c_ispunct (int c); -extern bool c_isspace (int c); -extern bool c_isupper (int c); -extern bool c_isxdigit (int c); +extern bool c_isalnum (int c) _GL_ATTRIBUTE_CONST; +extern bool c_isalpha (int c) _GL_ATTRIBUTE_CONST; +extern bool c_isblank (int c) _GL_ATTRIBUTE_CONST; +extern bool c_iscntrl (int c) _GL_ATTRIBUTE_CONST; +extern bool c_isdigit (int c) _GL_ATTRIBUTE_CONST; +extern bool c_islower (int c) _GL_ATTRIBUTE_CONST; +extern bool c_isgraph (int c) _GL_ATTRIBUTE_CONST; +extern bool c_isprint (int c) _GL_ATTRIBUTE_CONST; +extern bool c_ispunct (int c) _GL_ATTRIBUTE_CONST; +extern bool c_isspace (int c) _GL_ATTRIBUTE_CONST; +extern bool c_isupper (int c) _GL_ATTRIBUTE_CONST; +extern bool c_isxdigit (int c) _GL_ATTRIBUTE_CONST; -extern int c_tolower (int c); -extern int c_toupper (int c); +extern int c_tolower (int c) _GL_ATTRIBUTE_CONST; +extern int c_toupper (int c) _GL_ATTRIBUTE_CONST; #if defined __GNUC__ && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ && !defined NO_C_CTYPE_MACROS diff --git a/lib/c-strcase.h b/lib/c-strcase.h index 4148c34..fdef238 100644 --- a/lib/c-strcase.h +++ b/lib/c-strcase.h @@ -1,5 +1,5 @@ /* Case-insensitive string comparison functions in C locale. - Copyright (C) 1995-1996, 2001, 2003, 2005, 2009-2011 Free Software + Copyright (C) 1995-1996, 2001, 2003, 2005, 2009-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ #ifndef C_STRCASE_H #define C_STRCASE_H @@ -40,12 +39,13 @@ extern "C" { /* Compare strings S1 and S2, ignoring case, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. */ -extern int c_strcasecmp (const char *s1, const char *s2); +extern int c_strcasecmp (const char *s1, const char *s2) _GL_ATTRIBUTE_PURE; /* Compare no more than N characters of strings S1 and S2, ignoring case, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. */ -extern int c_strncasecmp (const char *s1, const char *s2, size_t n); +extern int c_strncasecmp (const char *s1, const char *s2, size_t n) + _GL_ATTRIBUTE_PURE; #ifdef __cplusplus diff --git a/lib/c-strcasecmp.c b/lib/c-strcasecmp.c index 4c4e106..d8332ca 100644 --- a/lib/c-strcasecmp.c +++ b/lib/c-strcasecmp.c @@ -1,5 +1,5 @@ /* c-strcasecmp.c -- case insensitive string comparator in C locale - Copyright (C) 1998-1999, 2005-2006, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 1998-1999, 2005-2006, 2009-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -12,8 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ #include diff --git a/lib/c-strncasecmp.c b/lib/c-strncasecmp.c index 0c433b9..47fb5fd 100644 --- a/lib/c-strncasecmp.c +++ b/lib/c-strncasecmp.c @@ -1,5 +1,5 @@ /* c-strncasecmp.c -- case insensitive string comparator in C locale - Copyright (C) 1998-1999, 2005-2006, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 1998-1999, 2005-2006, 2009-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -12,8 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ #include diff --git a/lib/config.charset b/lib/config.charset index 93b5a5d..89b3017 100644 --- a/lib/config.charset +++ b/lib/config.charset @@ -1,7 +1,7 @@ #! /bin/sh # Output a system dependent table of character encoding aliases. # -# Copyright (C) 2000-2004, 2006-2011 Free Software Foundation, Inc. +# Copyright (C) 2000-2004, 2006-2012 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,8 +14,7 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# with this program; if not, see . # # The table consists of lines of the form # ALIAS CANONICAL @@ -30,6 +29,8 @@ # The current list of GNU canonical charset names is as follows. # # name MIME? used by which systems +# (darwin = MacOS X, woe32 = native Windows) +# # ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin cygwin # ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin # ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin diff --git a/lib/getopt.c b/lib/getopt.c index 7c9f704..4342a34 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -2,7 +2,7 @@ NOTE: getopt is part of the C library, so if you don't know what "Keep this file name-space clean" means, talk to drepper@gnu.org before changing it! - Copyright (C) 1987-1996, 1998-2004, 2006, 2008-2011 Free Software + Copyright (C) 1987-1996, 1998-2004, 2006, 2008-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -41,15 +41,15 @@ # include #endif -/* This version of `getopt' appears to the caller like standard Unix `getopt' +/* This version of 'getopt' appears to the caller like standard Unix 'getopt' but it behaves differently for the user, since it allows the user to intersperse the options with the other arguments. - As `getopt_long' works, it permutes the elements of ARGV so that, + As 'getopt_long' works, it permutes the elements of ARGV so that, when it is done, all the options precede everything else. Thus all application programs are extended to handle flexible argument order. - Using `getopt' or setting the environment variable POSIXLY_CORRECT + Using 'getopt' or setting the environment variable POSIXLY_CORRECT disables permutation. Then the behavior is completely standard. @@ -58,24 +58,24 @@ #include "getopt_int.h" -/* For communication from `getopt' to the caller. - When `getopt' finds an option that takes an argument, +/* For communication from 'getopt' to the caller. + When 'getopt' finds an option that takes an argument, the argument value is returned here. - Also, when `ordering' is RETURN_IN_ORDER, + Also, when 'ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller - and for communication between successive calls to `getopt'. + and for communication between successive calls to 'getopt'. - On entry to `getopt', zero means this is the first call; initialize. + On entry to 'getopt', zero means this is the first call; initialize. - When `getopt' returns -1, this is the index of the first of the + When 'getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. - Otherwise, `optind' communicates from one call to the next + Otherwise, 'optind' communicates from one call to the next how much of ARGV has been scanned so far. */ /* 1003.2 says this must be 1 before any call. */ @@ -137,7 +137,7 @@ extern char *__getopt_nonoption_flags; The other is elements [last_nonopt,optind), which contains all the options processed since those non-options were skipped. - `first_nonopt' and `last_nonopt' are relocated so that they describe + 'first_nonopt' and 'last_nonopt' are relocated so that they describe the new indices of the non-options in ARGV after they are moved. */ static void @@ -154,7 +154,7 @@ exchange (char **argv, struct _getopt_data *d) but it consists of two parts that need to be swapped next. */ #if defined _LIBC && defined USE_NONOPTION_FLAGS - /* First make sure the handling of the `__getopt_nonoption_flags' + /* First make sure the handling of the '__getopt_nonoption_flags' string can work normally. Our top argument must be in the range of the string. */ if (d->__nonoption_flags_len > 0 && top >= d->__nonoption_flags_max_len) @@ -291,48 +291,48 @@ _getopt_initialize (int argc _GL_UNUSED, If an element of ARGV starts with '-', and is not exactly "-" or "--", then it is an option element. The characters of this element - (aside from the initial '-') are option characters. If `getopt' + (aside from the initial '-') are option characters. If 'getopt' is called repeatedly, it returns successively each of the option characters from each of the option elements. - If `getopt' finds another option character, it returns that character, - updating `optind' and `nextchar' so that the next call to `getopt' can + If 'getopt' finds another option character, it returns that character, + updating 'optind' and 'nextchar' so that the next call to 'getopt' can resume the scan with the following option character or ARGV-element. - If there are no more option characters, `getopt' returns -1. - Then `optind' is the index in ARGV of the first ARGV-element + If there are no more option characters, 'getopt' returns -1. + Then 'optind' is the index in ARGV of the first ARGV-element that is not an option. (The ARGV-elements have been permuted so that those that are not options now come last.) OPTSTRING is a string containing the legitimate option characters. If an option character is seen that is not listed in OPTSTRING, - return '?' after printing an error message. If you set `opterr' to + return '?' after printing an error message. If you set 'opterr' to zero, the error message is suppressed but we still return '?'. If a char in OPTSTRING is followed by a colon, that means it wants an arg, so the following text in the same ARGV-element, or the text of the following - ARGV-element, is returned in `optarg'. Two colons mean an option that + ARGV-element, is returned in 'optarg'. Two colons mean an option that wants an optional arg; if there is text in the current ARGV-element, - it is returned in `optarg', otherwise `optarg' is set to zero. + it is returned in 'optarg', otherwise 'optarg' is set to zero. - If OPTSTRING starts with `-' or `+', it requests different methods of + If OPTSTRING starts with '-' or '+', it requests different methods of handling the non-option ARGV-elements. See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above. - Long-named options begin with `--' instead of `-'. + Long-named options begin with '--' instead of '-'. Their names may be abbreviated as long as the abbreviation is unique or is an exact match for some defined option. If they have an argument, it follows the option name in the same ARGV-element, separated - from the option name by a `=', or else the in next ARGV-element. - When `getopt' finds a long-named option, it returns 0 if that option's - `flag' field is nonzero, the value of the option's `val' field - if the `flag' field is zero. + from the option name by a '=', or else the in next ARGV-element. + When 'getopt' finds a long-named option, it returns 0 if that option's + 'flag' field is nonzero, the value of the option's 'val' field + if the 'flag' field is zero. The elements of ARGV aren't really const, because we permute them. But we pretend they're const in the prototype to be compatible with other systems. - LONGOPTS is a vector of `struct option' terminated by an + LONGOPTS is a vector of 'struct option' terminated by an element containing a name which is zero. LONGIND returns the index in LONGOPT of the long-named option found. @@ -409,7 +409,7 @@ _getopt_internal_r (int argc, char **argv, const char *optstring, d->__last_nonopt = d->optind; } - /* The special ARGV-element `--' means premature end of options. + /* The special ARGV-element '--' means premature end of options. Skip it like a null option, then exchange with previous non-options as if it were an option, then skip everything else like a non-option. */ @@ -788,7 +788,7 @@ _getopt_internal_r (int argc, char **argv, const char *optstring, char c = *d->__nextchar++; const char *temp = strchr (optstring, c); - /* Increment `optind' when we start to process its last character. */ + /* Increment 'optind' when we start to process its last character. */ if (*d->__nextchar == '\0') ++d->optind; @@ -887,7 +887,7 @@ _getopt_internal_r (int argc, char **argv, const char *optstring, return c; } else - /* We already incremented `d->optind' once; + /* We already incremented 'd->optind' once; increment it again when taking next ARGV-elt as argument. */ d->optarg = argv[d->optind++]; @@ -1114,7 +1114,7 @@ _getopt_internal_r (int argc, char **argv, const char *optstring, c = '?'; } else - /* We already incremented `optind' once; + /* We already incremented 'optind' once; increment it again when taking next ARGV-elt as argument. */ d->optarg = argv[d->optind++]; d->__nextchar = NULL; @@ -1177,7 +1177,7 @@ __posix_getopt (int argc, char *const *argv, const char *optstring) #ifdef TEST /* Compile with -DTEST to make an executable for use in testing - the above definition of `getopt'. */ + the above definition of 'getopt'. */ int main (int argc, char **argv) diff --git a/lib/getopt.in.h b/lib/getopt.in.h index 0f3918a..06b6dfc 100644 --- a/lib/getopt.in.h +++ b/lib/getopt.in.h @@ -1,5 +1,5 @@ /* Declarations for getopt. - Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2007, 2009-2011 Free Software + Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2007, 2009-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -82,7 +82,7 @@ getopt_long_only can permute argv; this is required for backward compatibility (e.g., for LSB 2.0.1). - This used to be `#if defined __GETOPT_PREFIX && !defined __need_getopt', + This used to be '#if defined __GETOPT_PREFIX && !defined __need_getopt', but it caused redefinition warnings if both unistd.h and getopt.h were included, since unistd.h includes getopt.h having previously defined __need_getopt. @@ -128,29 +128,29 @@ extern "C" { #endif -/* For communication from `getopt' to the caller. - When `getopt' finds an option that takes an argument, +/* For communication from 'getopt' to the caller. + When 'getopt' finds an option that takes an argument, the argument value is returned here. - Also, when `ordering' is RETURN_IN_ORDER, + Also, when 'ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ extern char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller - and for communication between successive calls to `getopt'. + and for communication between successive calls to 'getopt'. - On entry to `getopt', zero means this is the first call; initialize. + On entry to 'getopt', zero means this is the first call; initialize. - When `getopt' returns -1, this is the index of the first of the + When 'getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. - Otherwise, `optind' communicates from one call to the next + Otherwise, 'optind' communicates from one call to the next how much of ARGV has been scanned so far. */ extern int optind; -/* Callers store zero here to inhibit the error message `getopt' prints +/* Callers store zero here to inhibit the error message 'getopt' prints for unrecognized options. */ extern int opterr; @@ -162,24 +162,24 @@ extern int optopt; #ifndef __need_getopt /* Describe the long-named options requested by the application. The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector - of `struct option' terminated by an element containing a name which is + of 'struct option' terminated by an element containing a name which is zero. - The field `has_arg' is: + The field 'has_arg' is: no_argument (or 0) if the option does not take an argument, required_argument (or 1) if the option requires an argument, optional_argument (or 2) if the option takes an optional argument. - If the field `flag' is not NULL, it points to a variable that is set - to the value given in the field `val' when the option is found, but + If the field 'flag' is not NULL, it points to a variable that is set + to the value given in the field 'val' when the option is found, but left unchanged if the option is not found. - To have a long-named option do something other than set an `int' to - a compiled-in constant, such as set a value from `optarg', set the - option's `flag' field to zero and its `val' field to a nonzero + To have a long-named option do something other than set an 'int' to + a compiled-in constant, such as set a value from 'optarg', set the + option's 'flag' field to zero and its 'val' field to a nonzero value (the equivalent single-letter option character, if there is - one). For long options that have a zero `flag' field, `getopt' - returns the contents of the `val' field. */ + one). For long options that have a zero 'flag' field, 'getopt' + returns the contents of the 'val' field. */ # if !GNULIB_defined_struct_option struct option @@ -194,7 +194,7 @@ struct option # define GNULIB_defined_struct_option 1 # endif -/* Names for the values of the `has_arg' field of `struct option'. */ +/* Names for the values of the 'has_arg' field of 'struct option'. */ # define no_argument 0 # define required_argument 1 @@ -208,23 +208,23 @@ struct option Return the option character from OPTS just read. Return -1 when there are no more options. For unrecognized options, or options - missing arguments, `optopt' is set to the option letter, and '?' is + missing arguments, 'optopt' is set to the option letter, and '?' is returned. The OPTS string is a list of characters which are recognized option letters, optionally followed by colons, specifying that that letter - takes an argument, to be placed in `optarg'. + takes an argument, to be placed in 'optarg'. If a letter in OPTS is followed by two colons, its argument is - optional. This behavior is specific to the GNU `getopt'. + optional. This behavior is specific to the GNU 'getopt'. - The argument `--' causes premature termination of argument - scanning, explicitly telling `getopt' that there are no more + The argument '--' causes premature termination of argument + scanning, explicitly telling 'getopt' that there are no more options. - If OPTS begins with `-', then non-option arguments are treated as + If OPTS begins with '-', then non-option arguments are treated as arguments to the option '\1'. This behavior is specific to the GNU - `getopt'. If OPTS begins with `+', or POSIXLY_CORRECT is set in + 'getopt'. If OPTS begins with '+', or POSIXLY_CORRECT is set in the environment, then do not permute arguments. */ extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) diff --git a/lib/getopt1.c b/lib/getopt1.c index 3656802..fb2a8f5 100644 --- a/lib/getopt1.c +++ b/lib/getopt1.c @@ -1,5 +1,5 @@ /* getopt_long and getopt_long_only entry points for GNU getopt. - Copyright (C) 1987-1994, 1996-1998, 2004, 2006, 2009-2011 Free Software + Copyright (C) 1987-1994, 1996-1998, 2004, 2006, 2009-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -141,11 +141,11 @@ main (int argc, char **argv) break; case 'c': - printf ("option c with value `%s'\n", optarg); + printf ("option c with value '%s'\n", optarg); break; case 'd': - printf ("option d with value `%s'\n", optarg); + printf ("option d with value '%s'\n", optarg); break; case '?': diff --git a/lib/getopt_int.h b/lib/getopt_int.h index 9f0c713..2da020c 100644 --- a/lib/getopt_int.h +++ b/lib/getopt_int.h @@ -1,5 +1,5 @@ /* Internal declarations for getopt. - Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2004, 2009-2011 Free Software + Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2004, 2009-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -40,7 +40,7 @@ extern int _getopt_internal (int ___argc, char **___argv, stop option processing when the first non-option is seen. This is what Unix does. This mode of operation is selected by either setting the environment - variable POSIXLY_CORRECT, or using `+' as the first character + variable POSIXLY_CORRECT, or using '+' as the first character of the list of option characters, or by calling getopt. PERMUTE is the default. We permute the contents of ARGV as we @@ -52,12 +52,12 @@ extern int _getopt_internal (int ___argc, char **___argv, written to expect options and other ARGV-elements in any order and that care about the ordering of the two. We describe each non-option ARGV-element as if it were the argument of an option - with character code 1. Using `-' as the first character of the + with character code 1. Using '-' as the first character of the list of option characters selects this mode of operation. - The special argument `--' forces an end of option-scanning regardless - of the value of `ordering'. In the case of RETURN_IN_ORDER, only - `--' can cause `getopt' to return -1 with `optind' != ARGC. */ + The special argument '--' forces an end of option-scanning regardless + of the value of 'ordering'. In the case of RETURN_IN_ORDER, only + '--' can cause 'getopt' to return -1 with 'optind' != ARGC. */ enum __ord { @@ -99,8 +99,8 @@ struct _getopt_data /* Handle permutation of arguments. */ /* Describe the part of ARGV that contains non-options that have - been skipped. `first_nonopt' is the index in ARGV of the first - of them; `last_nonopt' is the index after the last of them. */ + been skipped. 'first_nonopt' is the index in ARGV of the first + of them; 'last_nonopt' is the index after the last of them. */ int __first_nonopt; int __last_nonopt; diff --git a/lib/gettext.h b/lib/gettext.h index 458e332..75875cd 100644 --- a/lib/gettext.h +++ b/lib/gettext.h @@ -1,5 +1,5 @@ /* Convenience header for conditional use of GNU . - Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2011 Free Software + Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + with this program; if not, see . */ #ifndef _LIBGETTEXT_H #define _LIBGETTEXT_H 1 @@ -185,7 +184,7 @@ npgettext_aux (const char *domain, #include #define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \ - (((__GNUC__ >= 3 || __GNUG__ >= 2) && !__STRICT_ANSI__) \ + (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__) \ /* || __STDC_VERSION__ >= 199901L */ ) #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS diff --git a/lib/gettimeofday.c b/lib/gettimeofday.c index adfb51f..5d35060 100644 --- a/lib/gettimeofday.c +++ b/lib/gettimeofday.c @@ -1,6 +1,6 @@ /* Provide gettimeofday for systems that don't have it or for which it's broken. - Copyright (C) 2001-2003, 2005-2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2007, 2009-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ /* written by Jim Meyering */ @@ -110,7 +109,18 @@ gettimeofday (struct timeval *restrict tv, void *restrict tz) struct tm save = *localtime_buffer_addr; # endif +# if defined timeval /* 'struct timeval' overridden by gnulib? */ +# undef timeval + struct timeval otv; + int result = gettimeofday (&otv, (struct timezone *) tz); + if (result == 0) + { + tv->tv_sec = otv.tv_sec; + tv->tv_usec = otv.tv_usec; + } +# else int result = gettimeofday (tv, (struct timezone *) tz); +# endif # if GETTIMEOFDAY_CLOBBERS_LOCALTIME *localtime_buffer_addr = save; diff --git a/lib/iconv.c b/lib/iconv.c index 8928376..66966dd 100644 --- a/lib/iconv.c +++ b/lib/iconv.c @@ -1,5 +1,5 @@ /* Character set conversion. - Copyright (C) 1999-2001, 2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 1999-2001, 2007, 2009-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -12,8 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + with this program; if not, see . */ #include diff --git a/lib/iconv.in.h b/lib/iconv.in.h index 83ca719..1ee4239 100644 --- a/lib/iconv.in.h +++ b/lib/iconv.in.h @@ -1,6 +1,6 @@ /* A GNU-like . - Copyright (C) 2007-2011 Free Software Foundation, Inc. + Copyright (C) 2007-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ #ifndef _@GUARD_PREFIX@_ICONV_H diff --git a/lib/iconv_close.c b/lib/iconv_close.c index 72cbf88..c02f76c 100644 --- a/lib/iconv_close.c +++ b/lib/iconv_close.c @@ -1,5 +1,5 @@ /* Character set conversion. - Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -12,8 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + with this program; if not, see . */ #include diff --git a/lib/iconv_open.c b/lib/iconv_open.c index e857cbb..7653617 100644 --- a/lib/iconv_open.c +++ b/lib/iconv_open.c @@ -1,5 +1,5 @@ /* Character set conversion. - Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -12,8 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + with this program; if not, see . */ #include @@ -57,7 +56,7 @@ rpl_iconv_open (const char *tocode, const char *fromcode) iconv() to these encoding inserts a BOM, which is wrong. We do not need to handle conversion between arbitrary encodings and UTF-{16,32}{BE,LE}, because the 'striconveh' module implements two-step - conversion throough UTF-8. + conversion through UTF-8. The _ICONV_* constants are chosen to be disjoint from any iconv_t returned by the system's iconv_open() functions. Recall that iconv_t is a scalar type. */ diff --git a/lib/localcharset.c b/lib/localcharset.c index 96739c7..113205d 100644 --- a/lib/localcharset.c +++ b/lib/localcharset.c @@ -1,6 +1,6 @@ /* Determine a canonical name for the current locale's character encoding. - Copyright (C) 2000-2006, 2008-2011 Free Software Foundation, Inc. + Copyright (C) 2000-2006, 2008-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + with this program; if not, see . */ /* Written by Bruno Haible . */ @@ -34,7 +33,7 @@ #endif #if defined _WIN32 || defined __WIN32__ -# define WIN32_NATIVE +# define WINDOWS_NATIVE #endif #if defined __EMX__ @@ -44,7 +43,7 @@ # endif #endif -#if !defined WIN32_NATIVE +#if !defined WINDOWS_NATIVE # include # if HAVE_LANGINFO_CODESET # include @@ -57,7 +56,7 @@ # define WIN32_LEAN_AND_MEAN # include # endif -#elif defined WIN32_NATIVE +#elif defined WINDOWS_NATIVE # define WIN32_LEAN_AND_MEAN # include #endif @@ -83,7 +82,7 @@ #endif #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ - /* Win32, Cygwin, OS/2, DOS */ + /* Native Windows, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') #endif @@ -123,7 +122,7 @@ get_charset_aliases (void) cp = charset_aliases; if (cp == NULL) { -#if !(defined DARWIN7 || defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) +#if !(defined DARWIN7 || defined VMS || defined WINDOWS_NATIVE || defined __CYGWIN__) const char *dir; const char *base = "charset.alias"; char *file_name; @@ -308,7 +307,7 @@ get_charset_aliases (void) "DECKOREAN" "\0" "EUC-KR" "\0"; # endif -# if defined WIN32_NATIVE || defined __CYGWIN__ +# if defined WINDOWS_NATIVE || defined __CYGWIN__ /* To avoid the troubles of installing a separate file in the same directory as the DLL and of retrieving the DLL's directory at runtime, simply inline the aliases here. */ @@ -360,7 +359,7 @@ locale_charset (void) const char *codeset; const char *aliases; -#if !(defined WIN32_NATIVE || defined OS2) +#if !(defined WINDOWS_NATIVE || defined OS2) # if HAVE_LANGINFO_CODESET @@ -407,10 +406,10 @@ locale_charset (void) } } - /* Woe32 has a function returning the locale's codepage as a number: - GetACP(). This encoding is used by Cygwin, unless the user has set - the environment variable CYGWIN=codepage:oem (which very few people - do). + /* The Windows API has a function returning the locale's codepage as a + number: GetACP(). This encoding is used by Cygwin, unless the user + has set the environment variable CYGWIN=codepage:oem (which very few + people do). Output directed to console windows needs to be converted (to GetOEMCP() if the console is using a raster font, or to GetConsoleOutputCP() if it is using a TrueType font). Cygwin does @@ -453,12 +452,12 @@ locale_charset (void) # endif -#elif defined WIN32_NATIVE +#elif defined WINDOWS_NATIVE static char buf[2 + 10 + 1]; - /* Woe32 has a function returning the locale's codepage as a number: - GetACP(). + /* The Windows API has a function returning the locale's codepage as a + number: GetACP(). When the output goes to a console window, it needs to be provided in GetOEMCP() encoding if the console is using a raster font, or in GetConsoleOutputCP() encoding if it is using a TrueType font. diff --git a/lib/localcharset.h b/lib/localcharset.h index edbb13b..39dc593 100644 --- a/lib/localcharset.h +++ b/lib/localcharset.h @@ -1,5 +1,5 @@ /* Determine a canonical name for the current locale's character encoding. - Copyright (C) 2000-2003, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2000-2003, 2009-2012 Free Software Foundation, Inc. This file is part of the GNU CHARSET Library. This program is free software; you can redistribute it and/or modify @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + with this program; if not, see . */ #ifndef _LOCALCHARSET_H #define _LOCALCHARSET_H diff --git a/lib/locale.in.h b/lib/locale.in.h index 79c1490..a97e3e7 100644 --- a/lib/locale.in.h +++ b/lib/locale.in.h @@ -1,5 +1,5 @@ /* A POSIX . - Copyright (C) 2007-2011 Free Software Foundation, Inc. + Copyright (C) 2007-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/lib/mbrtowc.c b/lib/mbrtowc.c index 7a8e599..e3f354b 100644 --- a/lib/mbrtowc.c +++ b/lib/mbrtowc.c @@ -1,5 +1,5 @@ /* Convert multibyte character to wide character. - Copyright (C) 1999-2002, 2005-2011 Free Software Foundation, Inc. + Copyright (C) 1999-2002, 2005-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify @@ -128,7 +128,7 @@ mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) { const char *encoding = locale_charset (); - if (STREQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0, 0)) + if (STREQ_OPT (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0, 0)) { /* Cf. unistr/u8-mblen.c. */ unsigned char c = (unsigned char) p[0]; @@ -185,7 +185,8 @@ mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) /* As a reference for this code, you can use the GNU libiconv implementation. Look for uses of the RET_TOOFEW macro. */ - if (STREQ (encoding, "EUC-JP", 'E', 'U', 'C', '-', 'J', 'P', 0, 0, 0)) + if (STREQ_OPT (encoding, + "EUC-JP", 'E', 'U', 'C', '-', 'J', 'P', 0, 0, 0)) { if (m == 1) { @@ -208,9 +209,12 @@ mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) } goto invalid; } - if (STREQ (encoding, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0) - || STREQ (encoding, "GB2312", 'G', 'B', '2', '3', '1', '2', 0, 0, 0) - || STREQ (encoding, "BIG5", 'B', 'I', 'G', '5', 0, 0, 0, 0, 0)) + if (STREQ_OPT (encoding, + "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0) + || STREQ_OPT (encoding, + "GB2312", 'G', 'B', '2', '3', '1', '2', 0, 0, 0) + || STREQ_OPT (encoding, + "BIG5", 'B', 'I', 'G', '5', 0, 0, 0, 0, 0)) { if (m == 1) { @@ -221,7 +225,8 @@ mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) } goto invalid; } - if (STREQ (encoding, "EUC-TW", 'E', 'U', 'C', '-', 'T', 'W', 0, 0, 0)) + if (STREQ_OPT (encoding, + "EUC-TW", 'E', 'U', 'C', '-', 'T', 'W', 0, 0, 0)) { if (m == 1) { @@ -239,7 +244,8 @@ mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) } goto invalid; } - if (STREQ (encoding, "GB18030", 'G', 'B', '1', '8', '0', '3', '0', 0, 0)) + if (STREQ_OPT (encoding, + "GB18030", 'G', 'B', '1', '8', '0', '3', '0', 0, 0)) { if (m == 1) { @@ -272,7 +278,7 @@ mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) } goto invalid; } - if (STREQ (encoding, "SJIS", 'S', 'J', 'I', 'S', 0, 0, 0, 0, 0)) + if (STREQ_OPT (encoding, "SJIS", 'S', 'J', 'I', 'S', 0, 0, 0, 0, 0)) { if (m == 1) { diff --git a/lib/mbsinit.c b/lib/mbsinit.c index 8ac2137..638142e 100644 --- a/lib/mbsinit.c +++ b/lib/mbsinit.c @@ -1,5 +1,5 @@ /* Test for initial conversion state. - Copyright (C) 2008-2011 Free Software Foundation, Inc. + Copyright (C) 2008-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify diff --git a/lib/mbsrtowcs-impl.h b/lib/mbsrtowcs-impl.h index e78bbfb..019bc33 100644 --- a/lib/mbsrtowcs-impl.h +++ b/lib/mbsrtowcs-impl.h @@ -1,5 +1,5 @@ /* Convert string to wide string. - Copyright (C) 2008-2011 Free Software Foundation, Inc. + Copyright (C) 2008-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify diff --git a/lib/mbsrtowcs-state.c b/lib/mbsrtowcs-state.c index 91073b5..bf246eb 100644 --- a/lib/mbsrtowcs-state.c +++ b/lib/mbsrtowcs-state.c @@ -1,5 +1,5 @@ /* Convert string to wide string. - Copyright (C) 2008-2011 Free Software Foundation, Inc. + Copyright (C) 2008-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify diff --git a/lib/mbsrtowcs.c b/lib/mbsrtowcs.c index 69e6dff..e3ec876 100644 --- a/lib/mbsrtowcs.c +++ b/lib/mbsrtowcs.c @@ -1,5 +1,5 @@ /* Convert string to wide string. - Copyright (C) 2008-2011 Free Software Foundation, Inc. + Copyright (C) 2008-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify diff --git a/lib/mbtowc-impl.h b/lib/mbtowc-impl.h index 1645eb5..bb75ed2 100644 --- a/lib/mbtowc-impl.h +++ b/lib/mbtowc-impl.h @@ -1,5 +1,5 @@ /* Convert multibyte character to wide character. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This program is free software: you can redistribute it and/or modify diff --git a/lib/mbtowc.c b/lib/mbtowc.c index b3848a1..97eab4e 100644 --- a/lib/mbtowc.c +++ b/lib/mbtowc.c @@ -1,5 +1,5 @@ /* Convert multibyte character to wide character. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This program is free software: you can redistribute it and/or modify diff --git a/lib/memchr.c b/lib/memchr.c index 6d903b1..b8fb0ef 100644 --- a/lib/memchr.c +++ b/lib/memchr.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2004, 2006, 2008-2011 +/* Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2004, 2006, 2008-2012 Free Software Foundation, Inc. Based on strlen implementation by Torbjorn Granlund (tege@sics.se), diff --git a/lib/ref-add.sin b/lib/ref-add.sin index a57eaef..4ec043f 100644 --- a/lib/ref-add.sin +++ b/lib/ref-add.sin @@ -1,6 +1,6 @@ # Add this package to a list of references stored in a text file. # -# Copyright (C) 2000, 2009-2011 Free Software Foundation, Inc. +# Copyright (C) 2000, 2009-2012 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -13,8 +13,7 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# with this program; if not, see . # # Written by Bruno Haible . # diff --git a/lib/ref-del.sin b/lib/ref-del.sin index e23097d..eb03881 100644 --- a/lib/ref-del.sin +++ b/lib/ref-del.sin @@ -1,6 +1,6 @@ # Remove this package from a list of references stored in a text file. # -# Copyright (C) 2000, 2009-2011 Free Software Foundation, Inc. +# Copyright (C) 2000, 2009-2012 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -13,8 +13,7 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# with this program; if not, see . # # Written by Bruno Haible . # diff --git a/lib/stdbool.in.h b/lib/stdbool.in.h index b64dc75..ed1f9aa 100644 --- a/lib/stdbool.in.h +++ b/lib/stdbool.in.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2003, 2006-2011 Free Software Foundation, Inc. +/* Copyright (C) 2001-2003, 2006-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify @@ -12,8 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ #ifndef _GL_STDBOOL_H #define _GL_STDBOOL_H diff --git a/lib/stddef.in.h b/lib/stddef.in.h index c7b98e7..17fcaea 100644 --- a/lib/stddef.in.h +++ b/lib/stddef.in.h @@ -1,6 +1,6 @@ /* A substitute for POSIX 2008 , for platforms that have issues. - Copyright (C) 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2009-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ /* Written by Eric Blake. */ diff --git a/lib/stdint.in.h b/lib/stdint.in.h index b6d08c7..8e4c822 100644 --- a/lib/stdint.in.h +++ b/lib/stdint.in.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2002, 2004-2011 Free Software Foundation, Inc. +/* Copyright (C) 2001-2002, 2004-2012 Free Software Foundation, Inc. Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood. This file is part of gnulib. @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ /* * ISO C 99 for platforms that lack it. @@ -34,6 +33,16 @@ . */ #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H +/* On Android (Bionic libc), includes this file before + having defined 'time_t'. Therefore in this case avoid including + other system header files; just include the system's . + Ideally we should test __BIONIC__ here, but it is only defined after + has been included; hence test __ANDROID__ instead. */ +#if defined __ANDROID__ \ + && defined _SYS_TYPES_H_ && !defined _SSIZE_T_DEFINED_ +# @INCLUDE_NEXT@ @NEXT_STDINT_H@ +#else + /* Get those types that are already defined in other system include files, so that we can "#define int8_t signed char" below without worrying about a later system include file containing a "typedef @@ -49,6 +58,17 @@ diagnostics. */ # define __STDINT_H__ # endif + + /* Some pre-C++11 implementations need this. */ +# ifdef __cplusplus +# ifndef __STDC_CONSTANT_MACROS +# define __STDC_CONSTANT_MACROS 1 +# endif +# ifndef __STDC_LIMIT_MACROS +# define __STDC_LIMIT_MACROS 1 +# endif +# endif + /* Other systems may have an incomplete or buggy . Include it before , since any "#include " in would reinclude us, skipping our contents because @@ -313,8 +333,6 @@ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t) /* 7.18.2. Limits of specified-width integer types */ -#if ! defined __cplusplus || defined __STDC_LIMIT_MACROS - /* 7.18.2.1. Limits of exact-width integer types */ /* Here we assume a standard architecture where the hardware integer @@ -534,12 +552,8 @@ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t) #define WINT_MAX \ _STDINT_MAX (@HAVE_SIGNED_WINT_T@, @BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@) -#endif /* !defined __cplusplus || defined __STDC_LIMIT_MACROS */ - /* 7.18.4. Macros for integer constants */ -#if ! defined __cplusplus || defined __STDC_CONSTANT_MACROS - /* 7.18.4.1. Macros for minimum-width integer constants */ /* According to ISO C 99 Technical Corrigendum 1 */ @@ -600,7 +614,6 @@ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t) # endif #endif -#endif /* !defined __cplusplus || defined __STDC_CONSTANT_MACROS */ - #endif /* _@GUARD_PREFIX@_STDINT_H */ +#endif /* !(defined __ANDROID__ && ...) */ #endif /* !defined _@GUARD_PREFIX@_STDINT_H && !defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H */ diff --git a/lib/stdio.in.h b/lib/stdio.in.h index 473c84c..9dc7c4a 100644 --- a/lib/stdio.in.h +++ b/lib/stdio.in.h @@ -1,6 +1,6 @@ /* A GNU-like . - Copyright (C) 2004, 2007-2011 Free Software Foundation, Inc. + Copyright (C) 2004, 2007-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ @@ -170,6 +169,26 @@ _GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - " "use gnulib module fclose for portable POSIX compliance"); #endif +#if @GNULIB_FDOPEN@ +# if @REPLACE_FDOPEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fdopen +# define fdopen rpl_fdopen +# endif +_GL_FUNCDECL_RPL (fdopen, FILE *, (int fd, const char *mode) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (fdopen, FILE *, (int fd, const char *mode)); +# else +_GL_CXXALIAS_SYS (fdopen, FILE *, (int fd, const char *mode)); +# endif +_GL_CXXALIASWARN (fdopen); +#elif defined GNULIB_POSIXCHECK +# undef fdopen +/* Assume fdopen is always declared. */ +_GL_WARN_ON_USE (fdopen, "fdopen on native Windows platforms is not POSIX compliant - " + "use gnulib module fdopen for portability"); +#endif + #if @GNULIB_FFLUSH@ /* Flush all pending data on STREAM according to POSIX rules. Both output and seekable input streams are supported. @@ -239,7 +258,7 @@ _GL_CXXALIASWARN (fopen); #elif defined GNULIB_POSIXCHECK # undef fopen /* Assume fopen is always declared. */ -_GL_WARN_ON_USE (fopen, "fopen on Win32 platforms is not POSIX compatible - " +_GL_WARN_ON_USE (fopen, "fopen on native Windows platforms is not POSIX compliant - " "use gnulib module fopen for portability"); #endif @@ -367,7 +386,7 @@ _GL_CXXALIASWARN (freopen); # undef freopen /* Assume freopen is always declared. */ _GL_WARN_ON_USE (freopen, - "freopen on Win32 platforms is not POSIX compatible - " + "freopen on native Windows platforms is not POSIX compliant - " "use gnulib module freopen for portability"); #endif @@ -750,6 +769,20 @@ _GL_CXXALIAS_SYS (obstack_vprintf, int, _GL_CXXALIASWARN (obstack_vprintf); #endif +#if @GNULIB_PCLOSE@ +# if !@HAVE_PCLOSE@ +_GL_FUNCDECL_SYS (pclose, int, (FILE *stream) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (pclose, int, (FILE *stream)); +_GL_CXXALIASWARN (pclose); +#elif defined GNULIB_POSIXCHECK +# undef pclose +# if HAVE_RAW_DECL_PCLOSE +_GL_WARN_ON_USE (pclose, "pclose is unportable - " + "use gnulib module pclose for more portability"); +# endif +#endif + #if @GNULIB_PERROR@ /* Print a message to standard error, describing the value of ERRNO, (if STRING is not NULL and not empty) prefixed with STRING and ": ", @@ -781,6 +814,10 @@ _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); # else +# if !@HAVE_POPEN@ +_GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode) + _GL_ARG_NONNULL ((1, 2))); +# endif _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); # endif _GL_CXXALIASWARN (popen); diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 047fac1..e92a614 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -1,6 +1,6 @@ /* A GNU-like . - Copyright (C) 1995, 2001-2004, 2006-2011 Free Software Foundation, Inc. + Copyright (C) 1995, 2001-2004, 2006-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -49,6 +49,11 @@ # include #endif +/* Native Windows platforms declare mktemp() in . */ +#if 0 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) +# include +#endif + #if @GNULIB_RANDOM_R@ /* OSF/1 5.1 declares 'struct random_data' in , which is included @@ -58,7 +63,7 @@ # include # endif -# if !@HAVE_STRUCT_RANDOM_DATA@ || !@HAVE_RANDOM_R@ +# if !@HAVE_STRUCT_RANDOM_DATA@ || @REPLACE_RANDOM_R@ || !@HAVE_RANDOM_R@ # include # endif @@ -247,7 +252,7 @@ _GL_CXXALIASWARN (grantpt); #elif defined GNULIB_POSIXCHECK # undef grantpt # if HAVE_RAW_DECL_GRANTPT -_GL_WARN_ON_USE (ptsname, "grantpt is not portable - " +_GL_WARN_ON_USE (grantpt, "grantpt is not portable - " "use gnulib module grantpt for portability"); # endif #endif @@ -423,6 +428,22 @@ _GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - " # endif #endif +#if @GNULIB_POSIX_OPENPT@ +/* Return an FD open to the master side of a pseudo-terminal. Flags should + include O_RDWR, and may also include O_NOCTTY. */ +# if !@HAVE_POSIX_OPENPT@ +_GL_FUNCDECL_SYS (posix_openpt, int, (int flags)); +# endif +_GL_CXXALIAS_SYS (posix_openpt, int, (int flags)); +_GL_CXXALIASWARN (posix_openpt); +#elif defined GNULIB_POSIXCHECK +# undef posix_openpt +# if HAVE_RAW_DECL_POSIX_OPENPT +_GL_WARN_ON_USE (posix_openpt, "posix_openpt is not portable - " + "use gnulib module posix_openpt for portability"); +# endif +#endif + #if @GNULIB_PTSNAME@ /* Return the pathname of the pseudo-terminal slave associated with the master FD is open on, or NULL on errors. */ @@ -439,6 +460,32 @@ _GL_WARN_ON_USE (ptsname, "ptsname is not portable - " # endif #endif +#if @GNULIB_PTSNAME_R@ +/* Set the pathname of the pseudo-terminal slave associated with + the master FD is open on and return 0, or set errno and return + non-zero on errors. */ +# if @REPLACE_PTSNAME_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef ptsname_r +# define ptsname_r rpl_ptsname_r +# endif +_GL_FUNCDECL_RPL (ptsname_r, int, (int fd, char *buf, size_t len)); +_GL_CXXALIAS_RPL (ptsname_r, int, (int fd, char *buf, size_t len)); +# else +# if !@HAVE_PTSNAME_R@ +_GL_FUNCDECL_SYS (ptsname_r, int, (int fd, char *buf, size_t len)); +# endif +_GL_CXXALIAS_SYS (ptsname_r, int, (int fd, char *buf, size_t len)); +# endif +_GL_CXXALIASWARN (ptsname_r); +#elif defined GNULIB_POSIXCHECK +# undef ptsname_r +# if HAVE_RAW_DECL_PTSNAME_R +_GL_WARN_ON_USE (ptsname_r, "ptsname_r is not portable - " + "use gnulib module ptsname_r for portability"); +# endif +#endif + #if @GNULIB_PUTENV@ # if @REPLACE_PUTENV@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) @@ -462,12 +509,83 @@ _GL_CXXALIASWARN (putenv); # endif #endif + +#if @GNULIB_RANDOM@ +# if !@HAVE_RANDOM@ +_GL_FUNCDECL_SYS (random, long, (void)); +# endif +_GL_CXXALIAS_SYS (random, long, (void)); +_GL_CXXALIASWARN (random); +#elif defined GNULIB_POSIXCHECK +# undef random +# if HAVE_RAW_DECL_RANDOM +_GL_WARN_ON_USE (random, "random is unportable - " + "use gnulib module random for portability"); +# endif +#endif + +#if @GNULIB_RANDOM@ +# if !@HAVE_RANDOM@ +_GL_FUNCDECL_SYS (srandom, void, (unsigned int seed)); +# endif +_GL_CXXALIAS_SYS (srandom, void, (unsigned int seed)); +_GL_CXXALIASWARN (srandom); +#elif defined GNULIB_POSIXCHECK +# undef srandom +# if HAVE_RAW_DECL_SRANDOM +_GL_WARN_ON_USE (srandom, "srandom is unportable - " + "use gnulib module random for portability"); +# endif +#endif + +#if @GNULIB_RANDOM@ +# if !@HAVE_RANDOM@ +_GL_FUNCDECL_SYS (initstate, char *, + (unsigned int seed, char *buf, size_t buf_size) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (initstate, char *, + (unsigned int seed, char *buf, size_t buf_size)); +_GL_CXXALIASWARN (initstate); +#elif defined GNULIB_POSIXCHECK +# undef initstate +# if HAVE_RAW_DECL_INITSTATE_R +_GL_WARN_ON_USE (initstate, "initstate is unportable - " + "use gnulib module random for portability"); +# endif +#endif + +#if @GNULIB_RANDOM@ +# if !@HAVE_RANDOM@ +_GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (setstate, char *, (char *arg_state)); +_GL_CXXALIASWARN (setstate); +#elif defined GNULIB_POSIXCHECK +# undef setstate +# if HAVE_RAW_DECL_SETSTATE_R +_GL_WARN_ON_USE (setstate, "setstate is unportable - " + "use gnulib module random for portability"); +# endif +#endif + + #if @GNULIB_RANDOM_R@ -# if !@HAVE_RANDOM_R@ +# if @REPLACE_RANDOM_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef random_r +# define random_r rpl_random_r +# endif +_GL_FUNCDECL_RPL (random_r, int, (struct random_data *buf, int32_t *result) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (random_r, int, (struct random_data *buf, int32_t *result)); +# else +# if !@HAVE_RANDOM_R@ _GL_FUNCDECL_SYS (random_r, int, (struct random_data *buf, int32_t *result) _GL_ARG_NONNULL ((1, 2))); -# endif +# endif _GL_CXXALIAS_SYS (random_r, int, (struct random_data *buf, int32_t *result)); +# endif _GL_CXXALIASWARN (random_r); #elif defined GNULIB_POSIXCHECK # undef random_r @@ -478,13 +596,25 @@ _GL_WARN_ON_USE (random_r, "random_r is unportable - " #endif #if @GNULIB_RANDOM_R@ -# if !@HAVE_RANDOM_R@ +# if @REPLACE_RANDOM_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef srandom_r +# define srandom_r rpl_srandom_r +# endif +_GL_FUNCDECL_RPL (srandom_r, int, + (unsigned int seed, struct random_data *rand_state) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (srandom_r, int, + (unsigned int seed, struct random_data *rand_state)); +# else +# if !@HAVE_RANDOM_R@ _GL_FUNCDECL_SYS (srandom_r, int, (unsigned int seed, struct random_data *rand_state) _GL_ARG_NONNULL ((2))); -# endif +# endif _GL_CXXALIAS_SYS (srandom_r, int, (unsigned int seed, struct random_data *rand_state)); +# endif _GL_CXXALIASWARN (srandom_r); #elif defined GNULIB_POSIXCHECK # undef srandom_r @@ -495,15 +625,29 @@ _GL_WARN_ON_USE (srandom_r, "srandom_r is unportable - " #endif #if @GNULIB_RANDOM_R@ -# if !@HAVE_RANDOM_R@ +# if @REPLACE_RANDOM_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef initstate_r +# define initstate_r rpl_initstate_r +# endif +_GL_FUNCDECL_RPL (initstate_r, int, + (unsigned int seed, char *buf, size_t buf_size, + struct random_data *rand_state) + _GL_ARG_NONNULL ((2, 4))); +_GL_CXXALIAS_RPL (initstate_r, int, + (unsigned int seed, char *buf, size_t buf_size, + struct random_data *rand_state)); +# else +# if !@HAVE_RANDOM_R@ _GL_FUNCDECL_SYS (initstate_r, int, (unsigned int seed, char *buf, size_t buf_size, struct random_data *rand_state) _GL_ARG_NONNULL ((2, 4))); -# endif +# endif _GL_CXXALIAS_SYS (initstate_r, int, (unsigned int seed, char *buf, size_t buf_size, struct random_data *rand_state)); +# endif _GL_CXXALIASWARN (initstate_r); #elif defined GNULIB_POSIXCHECK # undef initstate_r @@ -514,13 +658,25 @@ _GL_WARN_ON_USE (initstate_r, "initstate_r is unportable - " #endif #if @GNULIB_RANDOM_R@ -# if !@HAVE_RANDOM_R@ +# if @REPLACE_RANDOM_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef setstate_r +# define setstate_r rpl_setstate_r +# endif +_GL_FUNCDECL_RPL (setstate_r, int, + (char *arg_state, struct random_data *rand_state) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (setstate_r, int, + (char *arg_state, struct random_data *rand_state)); +# else +# if !@HAVE_RANDOM_R@ _GL_FUNCDECL_SYS (setstate_r, int, (char *arg_state, struct random_data *rand_state) _GL_ARG_NONNULL ((1, 2))); -# endif +# endif _GL_CXXALIAS_SYS (setstate_r, int, (char *arg_state, struct random_data *rand_state)); +# endif _GL_CXXALIASWARN (setstate_r); #elif defined GNULIB_POSIXCHECK # undef setstate_r diff --git a/lib/str-two-way.h b/lib/str-two-way.h index 08a6cd3..af8f77b 100644 --- a/lib/str-two-way.h +++ b/lib/str-two-way.h @@ -1,5 +1,5 @@ /* Byte-wise substring search, using the Two-Way algorithm. - Copyright (C) 2008-2011 Free Software Foundation, Inc. + Copyright (C) 2008-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Eric Blake , 2008. @@ -14,8 +14,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + with this program; if not, see . */ /* Before including this file, you need to include and , and define: diff --git a/lib/streq.h b/lib/streq.h index c7794f6..b312f7f 100644 --- a/lib/streq.h +++ b/lib/streq.h @@ -1,5 +1,5 @@ /* Optimized string comparison. - Copyright (C) 2001-2002, 2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2007, 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published @@ -21,8 +21,8 @@ #include -/* STREQ allows to optimize string comparison with a small literal string. - STREQ (s, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0) +/* STREQ_OPT allows to optimize string comparison with a small literal string. + STREQ_OPT (s, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0) is semantically equivalent to strcmp (s, "EUC-KR") == 0 just faster. */ @@ -163,12 +163,12 @@ streq0 (const char *s1, const char *s2, char s20, char s21, char s22, char s23, return 0; } -#define STREQ(s1,s2,s20,s21,s22,s23,s24,s25,s26,s27,s28) \ +#define STREQ_OPT(s1,s2,s20,s21,s22,s23,s24,s25,s26,s27,s28) \ streq0 (s1, s2, s20, s21, s22, s23, s24, s25, s26, s27, s28) #else -#define STREQ(s1,s2,s20,s21,s22,s23,s24,s25,s26,s27,s28) \ +#define STREQ_OPT(s1,s2,s20,s21,s22,s23,s24,s25,s26,s27,s28) \ (strcmp (s1, s2) == 0) #endif diff --git a/lib/striconv.c b/lib/striconv.c index f710d05..4458d0c 100644 --- a/lib/striconv.c +++ b/lib/striconv.c @@ -1,5 +1,5 @@ /* Charset conversion. - Copyright (C) 2001-2007, 2010-2011 Free Software Foundation, Inc. + Copyright (C) 2001-2007, 2010-2012 Free Software Foundation, Inc. Written by Bruno Haible and Simon Josefsson. This program is free software; you can redistribute it and/or modify @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ #include diff --git a/lib/striconv.h b/lib/striconv.h index 2165d71..fc3aa69 100644 --- a/lib/striconv.h +++ b/lib/striconv.h @@ -1,5 +1,5 @@ /* Charset conversion. - Copyright (C) 2001-2004, 2006-2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009-2012 Free Software Foundation, Inc. Written by Bruno Haible and Simon Josefsson. This program is free software; you can redistribute it and/or modify @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ #ifndef _STRICONV_H #define _STRICONV_H diff --git a/lib/string.in.h b/lib/string.in.h index 62d7994..cad18db 100644 --- a/lib/string.in.h +++ b/lib/string.in.h @@ -1,6 +1,6 @@ /* A GNU-like . - Copyright (C) 1995-1996, 2001-2011 Free Software Foundation, Inc. + Copyright (C) 1995-1996, 2001-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ #ifndef _@GUARD_PREFIX@_STRING_H diff --git a/lib/strnlen1.c b/lib/strnlen1.c index f64ce10..52dc507 100644 --- a/lib/strnlen1.c +++ b/lib/strnlen1.c @@ -1,5 +1,5 @@ /* Find the length of STRING + 1, but scan at most MAXLEN bytes. - Copyright (C) 2005-2006, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/lib/strnlen1.h b/lib/strnlen1.h index 1bb13de..4c4f0c0 100644 --- a/lib/strnlen1.h +++ b/lib/strnlen1.h @@ -1,5 +1,5 @@ /* Find the length of STRING + 1, but scan at most MAXLEN bytes. - Copyright (C) 2005, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2005, 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -28,7 +28,8 @@ extern "C" { /* Find the length of STRING + 1, but scan at most MAXLEN bytes. If no '\0' terminator is found in that many characters, return MAXLEN. */ /* This is the same as strnlen (string, maxlen - 1) + 1. */ -extern size_t strnlen1 (const char *string, size_t maxlen); +extern size_t strnlen1 (const char *string, size_t maxlen) + _GL_ATTRIBUTE_PURE; #ifdef __cplusplus diff --git a/lib/strstr.c b/lib/strstr.c index 433cad6..94d6252 100644 --- a/lib/strstr.c +++ b/lib/strstr.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-1994, 1996-1998, 2000, 2004, 2007-2011 Free Software +/* Copyright (C) 1991-1994, 1996-1998, 2000, 2004, 2007-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + with this program; if not, see . */ /* This particular implementation was written by Eric Blake, 2008. */ diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index 5acee70..e4331c7 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h @@ -1,5 +1,5 @@ /* Provide a more complete sys/stat header file. - Copyright (C) 2005-2011 Free Software Foundation, Inc. + Copyright (C) 2005-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -12,8 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ /* Written by Eric Blake, Paul Eggert, and Jim Meyering. */ @@ -55,10 +54,22 @@ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Before doing "#define mkdir rpl_mkdir" below, we need to include all - headers that may declare mkdir(). */ + headers that may declare mkdir(). Native Windows platforms declare mkdir + in and/or , not in . */ #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ # include /* mingw32, mingw64 */ -# include /* mingw64 */ +# include /* mingw64, MSVC 9 */ +#endif + +/* Native Windows platforms declare umask() in . */ +#if 0 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) +# include +#endif + +#ifndef S_IFIFO +# ifdef _S_IFIFO +# define S_IFIFO _S_IFIFO +# endif #endif #ifndef S_IFMT @@ -312,16 +323,25 @@ _GL_WARN_ON_USE (fchmodat, "fchmodat is not portable - " #endif -#if @REPLACE_FSTAT@ -# if !(defined __cplusplus && defined GNULIB_NAMESPACE) -# define fstat rpl_fstat -# endif +#if @GNULIB_FSTAT@ +# if @REPLACE_FSTAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fstat +# define fstat rpl_fstat +# endif _GL_FUNCDECL_RPL (fstat, int, (int fd, struct stat *buf) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (fstat, int, (int fd, struct stat *buf)); -#else +# else _GL_CXXALIAS_SYS (fstat, int, (int fd, struct stat *buf)); -#endif +# endif _GL_CXXALIASWARN (fstat); +#elif defined GNULIB_POSIXCHECK +# undef fstat +# if HAVE_RAW_DECL_FSTAT +_GL_WARN_ON_USE (fstat, "fstat has portability problems - " + "use gnulib module fstat for portability"); +# endif +#endif #if @GNULIB_FSTATAT@ @@ -595,14 +615,33 @@ _GL_WARN_ON_USE (mknodat, "mknodat is not portable - " /* We can't use the object-like #define stat rpl_stat, because of struct stat. This means that rpl_stat will not be used if the user does (stat)(a,b). Oh well. */ -# undef stat -# ifdef _LARGE_FILES +# if defined _AIX && defined stat && defined _LARGE_FILES /* With _LARGE_FILES defined, AIX (only) defines stat to stat64, so we have to replace stat64() instead of stat(). */ -# define stat stat64 # undef stat64 # define stat64(name, st) rpl_stat (name, st) -# else /* !_LARGE_FILES */ +# elif defined __MINGW32__ && defined stat +# ifdef _USE_32BIT_TIME_T + /* The system headers define stat to _stat32i64. */ +# undef _stat32i64 +# define _stat32i64(name, st) rpl_stat (name, st) +# else + /* The system headers define stat to _stat64. */ +# undef _stat64 +# define _stat64(name, st) rpl_stat (name, st) +# endif +# elif defined _MSC_VER && defined stat +# ifdef _USE_32BIT_TIME_T + /* The system headers define stat to _stat32. */ +# undef _stat32 +# define _stat32(name, st) rpl_stat (name, st) +# else + /* The system headers define stat to _stat64i32. */ +# undef _stat64i32 +# define _stat64i32(name, st) rpl_stat (name, st) +# endif +# else /* !(_AIX ||__MINGW32__ || _MSC_VER) */ +# undef stat # define stat(name, st) rpl_stat (name, st) # endif /* !_LARGE_FILES */ _GL_EXTERN_C int stat (const char *name, struct stat *buf) diff --git a/lib/sys_time.in.h b/lib/sys_time.in.h index e615058..d915cee 100644 --- a/lib/sys_time.in.h +++ b/lib/sys_time.in.h @@ -1,6 +1,6 @@ /* Provide a more complete sys/time.h. - Copyright (C) 2007-2011 Free Software Foundation, Inc. + Copyright (C) 2007-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ /* Written by Paul Eggert. */ @@ -40,6 +39,16 @@ # include # endif +/* On native Windows with MSVC, get the 'struct timeval' type. + Also, on native Windows with a 64-bit time_t, where we are overriding the + 'struct timeval' type, get all declarations of system functions whose + signature contains 'struct timeval'. */ +# if (defined _MSC_VER || @REPLACE_STRUCT_TIMEVAL@) && @HAVE_WINSOCK2_H@ && !defined _GL_INCLUDING_WINSOCK2_H +# define _GL_INCLUDING_WINSOCK2_H +# include +# undef _GL_INCLUDING_WINSOCK2_H +# endif + /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ @@ -50,7 +59,11 @@ extern "C" { # endif -# if ! @HAVE_STRUCT_TIMEVAL@ +# if !@HAVE_STRUCT_TIMEVAL@ || @REPLACE_STRUCT_TIMEVAL@ + +# if @REPLACE_STRUCT_TIMEVAL@ +# define timeval rpl_timeval +# endif # if !GNULIB_defined_struct_timeval struct timeval @@ -98,4 +111,95 @@ _GL_WARN_ON_USE (gettimeofday, "gettimeofday is unportable - " # endif # endif +/* Hide some function declarations from . */ + +# if defined _MSC_VER && @HAVE_WINSOCK2_H@ +# if !defined _@GUARD_PREFIX@_UNISTD_H +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef close +# define close close_used_without_including_unistd_h +# else + _GL_WARN_ON_USE (close, + "close() used without including "); +# endif +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef gethostname +# define gethostname gethostname_used_without_including_unistd_h +# else + _GL_WARN_ON_USE (gethostname, + "gethostname() used without including "); +# endif +# endif +# if !defined _@GUARD_PREFIX@_SYS_SOCKET_H +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef socket +# define socket socket_used_without_including_sys_socket_h +# undef connect +# define connect connect_used_without_including_sys_socket_h +# undef accept +# define accept accept_used_without_including_sys_socket_h +# undef bind +# define bind bind_used_without_including_sys_socket_h +# undef getpeername +# define getpeername getpeername_used_without_including_sys_socket_h +# undef getsockname +# define getsockname getsockname_used_without_including_sys_socket_h +# undef getsockopt +# define getsockopt getsockopt_used_without_including_sys_socket_h +# undef listen +# define listen listen_used_without_including_sys_socket_h +# undef recv +# define recv recv_used_without_including_sys_socket_h +# undef send +# define send send_used_without_including_sys_socket_h +# undef recvfrom +# define recvfrom recvfrom_used_without_including_sys_socket_h +# undef sendto +# define sendto sendto_used_without_including_sys_socket_h +# undef setsockopt +# define setsockopt setsockopt_used_without_including_sys_socket_h +# undef shutdown +# define shutdown shutdown_used_without_including_sys_socket_h +# else + _GL_WARN_ON_USE (socket, + "socket() used without including "); + _GL_WARN_ON_USE (connect, + "connect() used without including "); + _GL_WARN_ON_USE (accept, + "accept() used without including "); + _GL_WARN_ON_USE (bind, + "bind() used without including "); + _GL_WARN_ON_USE (getpeername, + "getpeername() used without including "); + _GL_WARN_ON_USE (getsockname, + "getsockname() used without including "); + _GL_WARN_ON_USE (getsockopt, + "getsockopt() used without including "); + _GL_WARN_ON_USE (listen, + "listen() used without including "); + _GL_WARN_ON_USE (recv, + "recv() used without including "); + _GL_WARN_ON_USE (send, + "send() used without including "); + _GL_WARN_ON_USE (recvfrom, + "recvfrom() used without including "); + _GL_WARN_ON_USE (sendto, + "sendto() used without including "); + _GL_WARN_ON_USE (setsockopt, + "setsockopt() used without including "); + _GL_WARN_ON_USE (shutdown, + "shutdown() used without including "); +# endif +# endif +# if !defined _@GUARD_PREFIX@_SYS_SELECT_H +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef select +# define select select_used_without_including_sys_select_h +# else + _GL_WARN_ON_USE (select, + "select() used without including "); +# endif +# endif +# endif + #endif /* _@GUARD_PREFIX@_SYS_TIME_H */ diff --git a/lib/time.in.h b/lib/time.in.h index 1fbebf4..04cde05 100644 --- a/lib/time.in.h +++ b/lib/time.in.h @@ -1,6 +1,6 @@ /* A more-standard . - Copyright (C) 2007-2011 Free Software Foundation, Inc. + Copyright (C) 2007-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 119cd14..1b26c09 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -1,5 +1,5 @@ /* Substitute for and wrapper around . - Copyright (C) 2003-2011 Free Software Foundation, Inc. + Copyright (C) 2003-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -12,8 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ @@ -75,18 +74,28 @@ #endif /* mingw fails to declare _exit in . */ -/* mingw, BeOS, Haiku declare environ in , not in . */ +/* mingw, MSVC, BeOS, Haiku declare environ in , not in + . */ /* Solaris declares getcwd not only in but also in . */ /* But avoid namespace pollution on glibc systems. */ #ifndef __GLIBC__ # include #endif -/* mingw declares getcwd in , not in . */ -#if ((@GNULIB_GETCWD@ || defined GNULIB_POSIXCHECK) \ +/* Native Windows platforms declare chdir, getcwd, rmdir in + and/or , not in . + They also declare access(), chmod(), close(), dup(), dup2(), isatty(), + lseek(), read(), unlink(), write() in . */ +#if ((@GNULIB_CHDIR@ || @GNULIB_GETCWD@ || @GNULIB_RMDIR@ \ + || defined GNULIB_POSIXCHECK) \ && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) # include /* mingw32, mingw64 */ -# include /* mingw64 */ +# include /* mingw64, MSVC 9 */ +#elif (@GNULIB_CLOSE@ || @GNULIB_DUP@ || @GNULIB_DUP2@ || @GNULIB_ISATTY@ \ + || @GNULIB_LSEEK@ || @GNULIB_READ@ || @GNULIB_UNLINK@ || @GNULIB_WRITE@ \ + || defined GNULIB_POSIXCHECK) \ + && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) +# include #endif /* AIX and OSF/1 5.1 declare getdomainname in , not in . @@ -98,6 +107,12 @@ # include #endif +/* MSVC defines off_t in . */ +#if !@HAVE_UNISTD_H@ +/* Get off_t. */ +# include +#endif + #if (@GNULIB_READ@ || @GNULIB_WRITE@ \ || @GNULIB_READLINK@ || @GNULIB_READLINKAT@ \ || @GNULIB_PREAD@ || @GNULIB_PWRITE@ || defined GNULIB_POSIXCHECK) @@ -224,12 +239,24 @@ _GL_WARN_ON_USE (access, "the access function is a security risk - " #endif +#if @GNULIB_CHDIR@ +_GL_CXXALIAS_SYS (chdir, int, (const char *file) _GL_ARG_NONNULL ((1))); +_GL_CXXALIASWARN (chdir); +#elif defined GNULIB_POSIXCHECK +# undef chdir +# if HAVE_RAW_DECL_CHDIR +_GL_WARN_ON_USE (chown, "chdir is not always in - " + "use gnulib module chdir for portability"); +# endif +#endif + + #if @GNULIB_CHOWN@ /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE to GID (if GID is not -1). Follow symbolic links. Return 0 if successful, otherwise -1 and errno set. - See the POSIX:2001 specification - . */ + See the POSIX:2008 specification + . */ + See the POSIX:2008 specification + . */ # if @REPLACE_DUP2@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define dup2 rpl_dup2 @@ -426,8 +461,8 @@ _GL_WARN_ON_USE (faccessat, "faccessat is not portable - " /* Change the process' current working directory to the directory on which the given file descriptor is open. Return 0 if successful, otherwise -1 and errno set. - See the POSIX:2001 specification - . */ + See the POSIX:2008 specification + . */ # if ! @HAVE_FCHDIR@ _GL_FUNCDECL_SYS (fchdir, int, (int /*fd*/)); @@ -484,11 +519,30 @@ _GL_WARN_ON_USE (fchownat, "fchownat is not portable - " #endif -#if @GNULIB_FSYNC@ +#if @GNULIB_FDATASYNC@ /* Synchronize changes to a file. Return 0 if successful, otherwise -1 and errno set. - See POSIX:2001 specification - . */ + See POSIX:2008 specification + . */ +# if !@HAVE_FDATASYNC@ || !@HAVE_DECL_FDATASYNC@ +_GL_FUNCDECL_SYS (fdatasync, int, (int fd)); +# endif +_GL_CXXALIAS_SYS (fdatasync, int, (int fd)); +_GL_CXXALIASWARN (fdatasync); +#elif defined GNULIB_POSIXCHECK +# undef fdatasync +# if HAVE_RAW_DECL_FDATASYNC +_GL_WARN_ON_USE (fdatasync, "fdatasync is unportable - " + "use gnulib module fdatasync for portability"); +# endif +#endif + + +#if @GNULIB_FSYNC@ +/* Synchronize changes, including metadata, to a file. + Return 0 if successful, otherwise -1 and errno set. + See POSIX:2008 specification + . */ # if !@HAVE_FSYNC@ _GL_FUNCDECL_SYS (fsync, int, (int fd)); # endif @@ -506,8 +560,8 @@ _GL_WARN_ON_USE (fsync, "fsync is unportable - " #if @GNULIB_FTRUNCATE@ /* Change the size of the file to which FD is opened to become equal to LENGTH. Return 0 if successful, otherwise -1 and errno set. - See the POSIX:2001 specification - . */ + See the POSIX:2008 specification + . */ # if !@HAVE_FTRUNCATE@ _GL_FUNCDECL_SYS (ftruncate, int, (int fd, off_t length)); # endif @@ -527,8 +581,8 @@ _GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - " of BUF. Return BUF if successful, or NULL if the directory couldn't be determined or SIZE was too small. - See the POSIX:2001 specification - . + See the POSIX:2008 specification + . Additionally, the gnulib module 'getcwd' guarantees the following GNU extension: If BUF is NULL, an array is allocated with 'malloc'; the array is SIZE bytes long, unless SIZE == 0, in which case it is as big as @@ -887,12 +941,33 @@ _GL_WARN_ON_USE (group_member, "group_member is unportable - " #endif +#if @GNULIB_ISATTY@ +# if @REPLACE_ISATTY@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef isatty +# define isatty rpl_isatty +# endif +_GL_FUNCDECL_RPL (isatty, int, (int fd)); +_GL_CXXALIAS_RPL (isatty, int, (int fd)); +# else +_GL_CXXALIAS_SYS (isatty, int, (int fd)); +# endif +_GL_CXXALIASWARN (isatty); +#elif defined GNULIB_POSIXCHECK +# undef isatty +# if HAVE_RAW_DECL_ISATTY +_GL_WARN_ON_USE (isatty, "isatty has portability problems on native Windows - " + "use gnulib module isatty for portability"); +# endif +#endif + + #if @GNULIB_LCHOWN@ /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE to GID (if GID is not -1). Do not follow symbolic links. Return 0 if successful, otherwise -1 and errno set. - See the POSIX:2001 specification - . */ + See the POSIX:2008 specification + . */ # if @REPLACE_LCHOWN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef lchown @@ -921,8 +996,8 @@ _GL_WARN_ON_USE (lchown, "lchown is unportable to pre-POSIX.1-2001 systems - " #if @GNULIB_LINK@ /* Create a new hard link for an existing file. Return 0 if successful, otherwise -1 and errno set. - See POSIX:2001 specification - . */ + See POSIX:2008 specification + . */ # if @REPLACE_LINK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define link rpl_link @@ -987,8 +1062,8 @@ _GL_WARN_ON_USE (linkat, "linkat is unportable - " #if @GNULIB_LSEEK@ /* Set the offset of FD relative to SEEK_SET, SEEK_CUR, or SEEK_END. Return the new offset if successful, otherwise -1 and errno set. - See the POSIX:2001 specification - . */ + See the POSIX:2008 specification + . */ # if @REPLACE_LSEEK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define lseek rpl_lseek @@ -1058,8 +1133,9 @@ _GL_WARN_ON_USE (pipe2, "pipe2 is unportable - " #if @GNULIB_PREAD@ /* Read at most BUFSIZE bytes from FD into BUF, starting at OFFSET. Return the number of bytes placed into BUF if successful, otherwise - set errno and return -1. 0 indicates EOF. See the POSIX:2001 - specification . */ + set errno and return -1. 0 indicates EOF. + See the POSIX:2008 specification + . */ # if @REPLACE_PREAD@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef pread @@ -1093,8 +1169,8 @@ _GL_WARN_ON_USE (pread, "pread is unportable - " /* Write at most BUFSIZE bytes from BUF into FD, starting at OFFSET. Return the number of bytes written if successful, otherwise set errno and return -1. 0 indicates nothing written. See the - POSIX:2001 specification - . */ + POSIX:2008 specification + . */ # if @REPLACE_PWRITE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef pwrite @@ -1126,9 +1202,9 @@ _GL_WARN_ON_USE (pwrite, "pwrite is unportable - " #if @GNULIB_READ@ /* Read up to COUNT bytes from file descriptor FD into the buffer starting - at BUF. See the POSIX:2001 specification - . */ -# if @REPLACE_READ@ && @GNULIB_UNISTD_H_NONBLOCKING@ + at BUF. See the POSIX:2008 specification + . */ +# if @REPLACE_READ@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef read # define read rpl_read @@ -1150,8 +1226,8 @@ _GL_CXXALIASWARN (read); /* Read the contents of the symbolic link FILE and place the first BUFSIZE bytes of it into BUF. Return the number of bytes placed into BUF if successful, otherwise -1 and errno set. - See the POSIX:2001 specification - . */ + See the POSIX:2008 specification + . */ # if @REPLACE_READLINK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define readlink rpl_readlink @@ -1219,11 +1295,38 @@ _GL_WARN_ON_USE (rmdir, "rmdir is unportable - " #endif +#if @GNULIB_SETHOSTNAME@ +/* Set the host name of the machine. + The host name may or may not be fully qualified. + + Put LEN bytes of NAME into the host name. + Return 0 if successful, otherwise, set errno and return -1. + + Platforms with no ability to set the hostname return -1 and set + errno = ENOSYS. */ +# if !@HAVE_SETHOSTNAME@ || !@HAVE_DECL_SETHOSTNAME@ +_GL_FUNCDECL_SYS (sethostname, int, (const char *name, size_t len) + _GL_ARG_NONNULL ((1))); +# endif +/* Need to cast, because on Solaris 11 2011-10, MacOS X 10.5, IRIX 6.5 + and FreeBSD 6.4 the second parameter is int. On Solaris 11 + 2011-10, the first parameter is not const. */ +_GL_CXXALIAS_SYS_CAST (sethostname, int, (const char *name, size_t len)); +_GL_CXXALIASWARN (sethostname); +#elif defined GNULIB_POSIXCHECK +# undef sethostname +# if HAVE_RAW_DECL_SETHOSTNAME +_GL_WARN_ON_USE (sethostname, "sethostname is unportable - " + "use gnulib module sethostname for portability"); +# endif +#endif + + #if @GNULIB_SLEEP@ /* Pause the execution of the current thread for N seconds. Returns the number of seconds left to sleep. - See the POSIX:2001 specification - . */ + See the POSIX:2008 specification + . */ # if @REPLACE_SLEEP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef sleep @@ -1372,7 +1475,7 @@ _GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - " /* Pause the execution of the current thread for N microseconds. Returns 0 on completion, or -1 on range error. See the POSIX:2001 specification - . */ + . */ # if @REPLACE_USLEEP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef usleep @@ -1398,9 +1501,9 @@ _GL_WARN_ON_USE (usleep, "usleep is unportable - " #if @GNULIB_WRITE@ /* Write up to COUNT bytes starting at BUF to file descriptor FD. - See the POSIX:2001 specification - . */ -# if @REPLACE_WRITE@ && (@GNULIB_UNISTD_H_NONBLOCKING@ || @GNULIB_UNISTD_H_SIGPIPE@) + See the POSIX:2008 specification + . */ +# if @REPLACE_WRITE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef write # define write rpl_write diff --git a/lib/unistr.in.h b/lib/unistr.in.h index 0330cf8..479075e 100644 --- a/lib/unistr.in.h +++ b/lib/unistr.in.h @@ -1,5 +1,5 @@ /* Elementary Unicode string functions. - Copyright (C) 2001-2002, 2005-2011 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2005-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published diff --git a/lib/unistr/u8-mbtoucr.c b/lib/unistr/u8-mbtoucr.c index f658d67..8bc59d7 100644 --- a/lib/unistr/u8-mbtoucr.c +++ b/lib/unistr/u8-mbtoucr.c @@ -1,5 +1,5 @@ /* Look at first character in UTF-8 string, returning an error code. - Copyright (C) 1999-2002, 2006-2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 1999-2002, 2006-2007, 2009-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it diff --git a/lib/unistr/u8-uctomb-aux.c b/lib/unistr/u8-uctomb-aux.c index cc9ed99..5ee212b 100644 --- a/lib/unistr/u8-uctomb-aux.c +++ b/lib/unistr/u8-uctomb-aux.c @@ -1,5 +1,5 @@ /* Conversion UCS-4 to UTF-8. - Copyright (C) 2002, 2006-2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2002, 2006-2007, 2009-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify it diff --git a/lib/unistr/u8-uctomb.c b/lib/unistr/u8-uctomb.c index ba11dc8..e56e4a2 100644 --- a/lib/unistr/u8-uctomb.c +++ b/lib/unistr/u8-uctomb.c @@ -1,5 +1,5 @@ /* Store a character in UTF-8 string. - Copyright (C) 2002, 2005-2006, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2002, 2005-2006, 2009-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify it diff --git a/lib/unitypes.in.h b/lib/unitypes.in.h index 20cbf45..b1235e6 100644 --- a/lib/unitypes.in.h +++ b/lib/unitypes.in.h @@ -1,5 +1,5 @@ /* Elementary types for the GNU UniString library. - Copyright (C) 2002, 2005-2006, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2002, 2005-2006, 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published diff --git a/lib/verify.h b/lib/verify.h index 9a8caad..cef14ad 100644 --- a/lib/verify.h +++ b/lib/verify.h @@ -1,6 +1,6 @@ /* Compile-time assert-like macros. - Copyright (C) 2005-2006, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,13 +21,11 @@ # define _GL_VERIFY_H -/* Define _GL_HAVE__STATIC_ASSERT to 1 if _Static_assert works as per the - C1X draft N1548 section 6.7.10. This is supported by GCC 4.6.0 and - later, in C mode, and its use here generates easier-to-read diagnostics - when verify (R) fails. +/* Define _GL_HAVE__STATIC_ASSERT to 1 if _Static_assert works as per C11. + This is supported by GCC 4.6.0 and later, in C mode, and its use + here generates easier-to-read diagnostics when verify (R) fails. - Define _GL_HAVE_STATIC_ASSERT to 1 if static_assert works as per the - C++0X draft N3242 section 7.(4). + Define _GL_HAVE_STATIC_ASSERT to 1 if static_assert works as per C++11. This will likely be supported by future GCC versions, in C++ mode. Use this only with GCC. If we were willing to slow 'configure' @@ -188,7 +186,7 @@ template trailing ';'. If R is false, fail at compile-time, preferably with a diagnostic that includes the string-literal DIAGNOSTIC. - Unfortunately, unlike C1X, this implementation must appear as an + Unfortunately, unlike C11, this implementation must appear as an ordinary declaration, and cannot appear inside struct { ... }. */ # ifdef _GL_HAVE__STATIC_ASSERT @@ -205,7 +203,7 @@ template # define _Static_assert(R, DIAGNOSTIC) _GL_VERIFY (R, DIAGNOSTIC) # endif # if !defined _GL_HAVE_STATIC_ASSERT && !defined static_assert -# define static_assert _Static_assert /* Draft C1X requires this #define. */ +# define static_assert _Static_assert /* C11 requires this #define. */ # endif # endif diff --git a/lib/wchar.in.h b/lib/wchar.in.h index 1401ae2..4e92a77 100644 --- a/lib/wchar.in.h +++ b/lib/wchar.in.h @@ -1,6 +1,6 @@ /* A substitute for ISO C99 , for platforms that have issues. - Copyright (C) 2007-2011 Free Software Foundation, Inc. + Copyright (C) 2007-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ /* Written by Eric Blake. */ @@ -98,6 +97,18 @@ # define WEOF -1 # endif #else +/* MSVC defines wint_t as 'unsigned short' in . + This is too small: ISO C 99 section 7.24.1.(2) says that wint_t must be + "unchanged by default argument promotions". Override it. */ +# if defined _MSC_VER +# if !GNULIB_defined_wint_t +# include +typedef unsigned int rpl_wint_t; +# undef wint_t +# define wint_t rpl_wint_t +# define GNULIB_defined_wint_t 1 +# endif +# endif # ifndef WEOF # define WEOF ((wint_t) -1) # endif diff --git a/lib/wcrtomb.c b/lib/wcrtomb.c index 6632589..9e6494e 100644 --- a/lib/wcrtomb.c +++ b/lib/wcrtomb.c @@ -1,5 +1,5 @@ /* Convert wide character to multibyte character. - Copyright (C) 2008-2011 Free Software Foundation, Inc. + Copyright (C) 2008-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify diff --git a/lib/wcsdup-impl.h b/lib/wcsdup-impl.h index f721ca1..0100ff5 100644 --- a/lib/wcsdup-impl.h +++ b/lib/wcsdup-impl.h @@ -1,5 +1,5 @@ /* Duplicate a wide string. - Copyright (C) 1999, 2011 Free Software Foundation, Inc. + Copyright (C) 1999, 2011-2012 Free Software Foundation, Inc. Written by Bruno Haible , 1999. This program is free software: you can redistribute it and/or modify diff --git a/lib/wcsdup.c b/lib/wcsdup.c index b55e630..2893b8f 100644 --- a/lib/wcsdup.c +++ b/lib/wcsdup.c @@ -1,5 +1,5 @@ /* Duplicate a wide string. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This program is free software: you can redistribute it and/or modify diff --git a/lib/wctob.c b/lib/wctob.c index cc26afc..0885c1b 100644 --- a/lib/wctob.c +++ b/lib/wctob.c @@ -1,5 +1,5 @@ /* Convert wide character to unibyte character. - Copyright (C) 2008, 2010-2011 Free Software Foundation, Inc. + Copyright (C) 2008, 2010-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify diff --git a/lib/wctomb-impl.h b/lib/wctomb-impl.h index 4e95de6..68264cf 100644 --- a/lib/wctomb-impl.h +++ b/lib/wctomb-impl.h @@ -1,5 +1,5 @@ /* Convert wide character to multibyte character. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This program is free software: you can redistribute it and/or modify diff --git a/lib/wctomb.c b/lib/wctomb.c index 889a3c6..736a7c7 100644 --- a/lib/wctomb.c +++ b/lib/wctomb.c @@ -1,5 +1,5 @@ /* Convert wide character to multibyte character. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This program is free software: you can redistribute it and/or modify diff --git a/lib/wctype.in.h b/lib/wctype.in.h index 06cc19a..aa018b1 100644 --- a/lib/wctype.in.h +++ b/lib/wctype.in.h @@ -1,6 +1,6 @@ /* A substitute for ISO C99 , for platforms that lack it. - Copyright (C) 2006-2011 Free Software Foundation, Inc. + Copyright (C) 2006-2012 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ /* Written by Bruno Haible and Paul Eggert. */ @@ -79,6 +78,18 @@ # define WEOF -1 # endif #else +/* MSVC defines wint_t as 'unsigned short' in . + This is too small: ISO C 99 section 7.24.1.(2) says that wint_t must be + "unchanged by default argument promotions". Override it. */ +# if defined _MSC_VER +# if !GNULIB_defined_wint_t +# include +typedef unsigned int rpl_wint_t; +# undef wint_t +# define wint_t rpl_wint_t +# define GNULIB_defined_wint_t 1 +# endif +# endif # ifndef WEOF # define WEOF ((wint_t) -1) # endif diff --git a/lib/wmemcpy-impl.h b/lib/wmemcpy-impl.h index 6802e76..04a021d 100644 --- a/lib/wmemcpy-impl.h +++ b/lib/wmemcpy-impl.h @@ -1,5 +1,5 @@ /* Copy wide character array. - Copyright (C) 1999, 2011 Free Software Foundation, Inc. + Copyright (C) 1999, 2011-2012 Free Software Foundation, Inc. Written by Bruno Haible , 1999. This program is free software: you can redistribute it and/or modify diff --git a/lib/wmemcpy.c b/lib/wmemcpy.c index 0142497..4c6e6e2 100644 --- a/lib/wmemcpy.c +++ b/lib/wmemcpy.c @@ -1,5 +1,5 @@ /* Copy wide character array. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2012 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This program is free software: you can redistribute it and/or modify diff --git a/m4/00gnulib.m4 b/m4/00gnulib.m4 index 7feed46..d978cb8 100644 --- a/m4/00gnulib.m4 +++ b/m4/00gnulib.m4 @@ -1,5 +1,5 @@ # 00gnulib.m4 serial 2 -dnl Copyright (C) 2009-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/Makefile.in b/m4/Makefile.in index 65d5e3d..11b61fa 100644 --- a/m4/Makefile.in +++ b/m4/Makefile.in @@ -1,9 +1,9 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.11.3 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -18,12 +18,12 @@ ######################################################################### # # # Star Traders: A Game of Interstellar Trading # -# Copyright (C) 1990-2011, John Zaitseff # +# Copyright (C) 1990-2012, John Zaitseff # # # ######################################################################### # Author: John Zaitseff -# $Id: Makefile.am 16 2011-06-14 13:11:16Z john $ +# $Id: Makefile.am 343 2011-08-29 01:11:53Z john $ # # This file, m4/Makefile.am, contains the m4 macro directory Makefile for # Star Traders. It needs to be processed by automake to produce the @@ -88,17 +88,19 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \ $(top_srcdir)/m4/mmap-anon.m4 $(top_srcdir)/m4/multiarch.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/nocrash.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/stdbool.m4 $(top_srcdir)/m4/stddef_h.m4 \ - $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdio_h.m4 \ - $(top_srcdir)/m4/stdlib_h.m4 $(top_srcdir)/m4/string_h.m4 \ - $(top_srcdir)/m4/strstr.m4 $(top_srcdir)/m4/sys_stat_h.m4 \ - $(top_srcdir)/m4/sys_time_h.m4 $(top_srcdir)/m4/time_h.m4 \ - $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/warn-on-use.m4 \ - $(top_srcdir)/m4/wchar_h.m4 $(top_srcdir)/m4/wchar_t.m4 \ - $(top_srcdir)/m4/wcrtomb.m4 $(top_srcdir)/m4/wcsdup.m4 \ - $(top_srcdir)/m4/wctob.m4 $(top_srcdir)/m4/wctomb.m4 \ - $(top_srcdir)/m4/wctype_h.m4 $(top_srcdir)/m4/wint_t.m4 \ - $(top_srcdir)/m4/wmemcpy.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/stdbool.m4 \ + $(top_srcdir)/m4/stddef_h.m4 $(top_srcdir)/m4/stdint.m4 \ + $(top_srcdir)/m4/stdio_h.m4 $(top_srcdir)/m4/stdlib_h.m4 \ + $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strstr.m4 \ + $(top_srcdir)/m4/sys_socket_h.m4 \ + $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \ + $(top_srcdir)/m4/time_h.m4 $(top_srcdir)/m4/unistd_h.m4 \ + $(top_srcdir)/m4/warn-on-use.m4 $(top_srcdir)/m4/wchar_h.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wcrtomb.m4 \ + $(top_srcdir)/m4/wcsdup.m4 $(top_srcdir)/m4/wctob.m4 \ + $(top_srcdir)/m4/wctomb.m4 $(top_srcdir)/m4/wctype_h.m4 \ + $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/wmemcpy.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d @@ -146,9 +148,11 @@ GNULIB_ATOLL = @GNULIB_ATOLL@ GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ +GNULIB_CHDIR = @GNULIB_CHDIR@ GNULIB_CHOWN = @GNULIB_CHOWN@ GNULIB_CLOSE = @GNULIB_CLOSE@ GNULIB_DPRINTF = @GNULIB_DPRINTF@ +GNULIB_DUP = @GNULIB_DUP@ GNULIB_DUP2 = @GNULIB_DUP2@ GNULIB_DUP3 = @GNULIB_DUP3@ GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ @@ -159,6 +163,8 @@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FDATASYNC = @GNULIB_FDATASYNC@ +GNULIB_FDOPEN = @GNULIB_FDOPEN@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FFSL = @GNULIB_FFSL@ GNULIB_FFSLL = @GNULIB_FFSLL@ @@ -175,6 +181,7 @@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSCANF = @GNULIB_FSCANF@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTAT = @GNULIB_FSTAT@ GNULIB_FSTATAT = @GNULIB_FSTATAT@ GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ @@ -199,9 +206,11 @@ GNULIB_GETS = @GNULIB_GETS@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GL_UNISTD_H_GETOPT = @GNULIB_GL_UNISTD_H_GETOPT@ GNULIB_GRANTPT = @GNULIB_GRANTPT@ GNULIB_GROUP_MEMBER = @GNULIB_GROUP_MEMBER@ GNULIB_ICONV = @GNULIB_ICONV@ +GNULIB_ISATTY = @GNULIB_ISATTY@ GNULIB_ISWBLANK = @GNULIB_ISWBLANK@ GNULIB_ISWCTYPE = @GNULIB_ISWCTYPE@ GNULIB_LCHMOD = @GNULIB_LCHMOD@ @@ -249,19 +258,23 @@ GNULIB_MKTIME = @GNULIB_MKTIME@ GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ +GNULIB_PCLOSE = @GNULIB_PCLOSE@ GNULIB_PERROR = @GNULIB_PERROR@ GNULIB_PIPE = @GNULIB_PIPE@ GNULIB_PIPE2 = @GNULIB_PIPE2@ GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_OPENPT = @GNULIB_POSIX_OPENPT@ GNULIB_PREAD = @GNULIB_PREAD@ GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PTSNAME_R = @GNULIB_PTSNAME_R@ GNULIB_PUTC = @GNULIB_PUTC@ GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ GNULIB_PUTS = @GNULIB_PUTS@ GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM = @GNULIB_RANDOM@ GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READ = @GNULIB_READ@ @@ -276,6 +289,7 @@ GNULIB_RMDIR = @GNULIB_RMDIR@ GNULIB_RPMATCH = @GNULIB_RPMATCH@ GNULIB_SCANF = @GNULIB_SCANF@ GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETHOSTNAME = @GNULIB_SETHOSTNAME@ GNULIB_SETLOCALE = @GNULIB_SETLOCALE@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ @@ -311,7 +325,6 @@ GNULIB_TIME_R = @GNULIB_TIME_R@ GNULIB_TMPFILE = @GNULIB_TMPFILE@ GNULIB_TOWCTRANS = @GNULIB_TOWCTRANS@ GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ -GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ GNULIB_UNISTD_H_NONBLOCKING = @GNULIB_UNISTD_H_NONBLOCKING@ GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ GNULIB_UNLINK = @GNULIB_UNLINK@ @@ -375,6 +388,7 @@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ +HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ @@ -390,6 +404,7 @@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ +HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ @@ -411,6 +426,7 @@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ @@ -459,11 +475,16 @@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_OS_H = @HAVE_OS_H@ +HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ +HAVE_POPEN = @HAVE_POPEN@ +HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ @@ -473,6 +494,7 @@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SETENV = @HAVE_SETENV@ +HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ @@ -539,6 +561,7 @@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WCTRANS_T = @HAVE_WCTRANS_T@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WCTYPE_T = @HAVE_WCTYPE_T@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ @@ -635,6 +658,7 @@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ @@ -658,6 +682,7 @@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ISWBLANK = @REPLACE_ISWBLANK@ REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ @@ -688,8 +713,10 @@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ +REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_REALLOC = @REPLACE_REALLOC@ @@ -719,6 +746,7 @@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ @@ -911,10 +939,15 @@ install-am: all-am installcheck: installcheck-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: diff --git a/m4/assert.m4 b/m4/assert.m4 index 2de5ef5..b748e5e 100644 --- a/m4/assert.m4 +++ b/m4/assert.m4 @@ -1,6 +1,6 @@ #serial 7 -# Copyright (C) 1998-1999, 2001, 2004, 2008-2011 Free Software Foundation, Inc. +# Copyright (C) 1998-1999, 2001, 2004, 2008-2012 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. diff --git a/m4/btowc.m4 b/m4/btowc.m4 index 2b845e7..e565321 100644 --- a/m4/btowc.m4 +++ b/m4/btowc.m4 @@ -1,5 +1,5 @@ # btowc.m4 serial 10 -dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2008-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/codeset.m4 b/m4/codeset.m4 index da73552..cf53d24 100644 --- a/m4/codeset.m4 +++ b/m4/codeset.m4 @@ -1,5 +1,5 @@ # codeset.m4 serial 5 (gettext-0.18.2) -dnl Copyright (C) 2000-2002, 2006, 2008-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2000-2002, 2006, 2008-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/config-h.m4 b/m4/config-h.m4 index 2dc77a6..b61e22f 100644 --- a/m4/config-h.m4 +++ b/m4/config-h.m4 @@ -1,6 +1,6 @@ # Say that -DHAVE_CONFIG_H is not needed. -dnl Copyright (C) 2006, 2009-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2006, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/configmake.m4 b/m4/configmake.m4 index a029823..8c82371 100644 --- a/m4/configmake.m4 +++ b/m4/configmake.m4 @@ -1,5 +1,5 @@ # configmake.m4 serial 1 -dnl Copyright (C) 2010-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2010-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/extensions.m4 b/m4/extensions.m4 index 22156e0..0bfaef6 100644 --- a/m4/extensions.m4 +++ b/m4/extensions.m4 @@ -1,7 +1,7 @@ -# serial 10 -*- Autoconf -*- +# serial 11 -*- Autoconf -*- # Enable extensions on systems that normally disable them. -# Copyright (C) 2003, 2006-2011 Free Software Foundation, Inc. +# Copyright (C) 2003, 2006-2012 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -43,7 +43,7 @@ AC_BEFORE([$0], [AC_RUN_IFELSE])dnl AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=]) if test "$MINIX" = yes; then AC_DEFINE([_POSIX_SOURCE], [1], - [Define to 1 if you need to in order for `stat' and other + [Define to 1 if you need to in order for 'stat' and other things to work.]) AC_DEFINE([_POSIX_1_SOURCE], [2], [Define to 2 if the system does not provide POSIX.1 features diff --git a/m4/fcntl-o.m4 b/m4/fcntl-o.m4 index 88db07e..9862741 100644 --- a/m4/fcntl-o.m4 +++ b/m4/fcntl-o.m4 @@ -1,5 +1,5 @@ -# fcntl-o.m4 serial 3 -dnl Copyright (C) 2006, 2009-2011 Free Software Foundation, Inc. +# fcntl-o.m4 serial 4 +dnl Copyright (C) 2006, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -17,12 +17,21 @@ AC_DEFUN([gl_FCNTL_O_FLAGS], m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])], [AC_REQUIRE([AC_GNU_SOURCE])]) + + AC_CHECK_HEADERS_ONCE([unistd.h]) + AC_CHECK_FUNCS_ONCE([symlink]) AC_CACHE_CHECK([for working fcntl.h], [gl_cv_header_working_fcntl_h], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include #include - #include + #if HAVE_UNISTD_H + # include + #else /* on Windows with MSVC */ + # include + # include + # defined sleep(n) _sleep ((n) * 1000) + #endif #include #ifndef O_NOATIME #define O_NOATIME 0 @@ -38,6 +47,7 @@ AC_DEFUN([gl_FCNTL_O_FLAGS], ]], [[ int result = !constants; + #if HAVE_SYMLINK { static char const sym[] = "conftest.sym"; if (symlink (".", sym) != 0) @@ -53,6 +63,7 @@ AC_DEFUN([gl_FCNTL_O_FLAGS], } unlink (sym); } + #endif { static char const file[] = "confdefs.h"; int fd = open (file, O_RDONLY | O_NOATIME); diff --git a/m4/getopt.m4 b/m4/getopt.m4 index 047a3db..2aea895 100644 --- a/m4/getopt.m4 +++ b/m4/getopt.m4 @@ -1,5 +1,5 @@ -# getopt.m4 serial 38 -dnl Copyright (C) 2002-2006, 2008-2011 Free Software Foundation, Inc. +# getopt.m4 serial 39 +dnl Copyright (C) 2002-2006, 2008-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -25,8 +25,6 @@ AC_DEFUN([gl_FUNC_GETOPT_POSIX], if test $REPLACE_GETOPT = 1; then dnl Arrange for getopt.h to be created. gl_GETOPT_SUBSTITUTE_HEADER - dnl Arrange for unistd.h to include getopt.h. - GNULIB_UNISTD_H_GETOPT=1 fi ]) diff --git a/m4/gettext.m4 b/m4/gettext.m4 index cab4dfc..5415f88 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 @@ -1,5 +1,5 @@ # gettext.m4 serial 64 (gettext-0.18.2) -dnl Copyright (C) 1995-2011 Free Software Foundation, Inc. +dnl Copyright (C) 1995-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -35,7 +35,7 @@ dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, -dnl the value `$(top_builddir)/intl/' is used. +dnl the value '$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled diff --git a/m4/gettimeofday.m4 b/m4/gettimeofday.m4 index 47c1e1d..dc68c43 100644 --- a/m4/gettimeofday.m4 +++ b/m4/gettimeofday.m4 @@ -1,6 +1,6 @@ -# serial 17 +# serial 18 -# Copyright (C) 2001-2003, 2005, 2007, 2009-2011 Free Software Foundation, Inc. +# Copyright (C) 2001-2003, 2005, 2007, 2009-2012 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -50,6 +50,10 @@ int gettimeofday (struct timeval *restrict, struct timezone *restrict); elif test $gl_cv_func_gettimeofday_posix_signature != yes; then REPLACE_GETTIMEOFDAY=1 fi + dnl If we override 'struct timeval', we also have to override gettimeofday. + if test $REPLACE_STRUCT_TIMEVAL = 1; then + REPLACE_GETTIMEOFDAY=1 + fi m4_ifdef([gl_FUNC_TZSET_CLOBBER], [ gl_FUNC_TZSET_CLOBBER if test $gl_cv_func_tzset_clobber = yes; then diff --git a/m4/glibc2.m4 b/m4/glibc2.m4 new file mode 100644 index 0000000..f4c4ad1 --- /dev/null +++ b/m4/glibc2.m4 @@ -0,0 +1,31 @@ +# glibc2.m4 serial 3 +dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2012 Free Software Foundation, +dnl Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Test for the GNU C Library, version 2.0 or newer. +# From Bruno Haible. + +AC_DEFUN([gt_GLIBC2], + [ + AC_CACHE_CHECK([whether we are using the GNU C Library 2 or newer], + [ac_cv_gnu_library_2], + [AC_EGREP_CPP([Lucky GNU user], + [ +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ >= 2) && !defined __UCLIBC__ + Lucky GNU user + #endif +#endif + ], + [ac_cv_gnu_library_2=yes], + [ac_cv_gnu_library_2=no]) + ] + ) + AC_SUBST([GLIBC2]) + GLIBC2="$ac_cv_gnu_library_2" + ] +) diff --git a/m4/glibc21.m4 b/m4/glibc21.m4 index bc81c11..c938fb1 100644 --- a/m4/glibc21.m4 +++ b/m4/glibc21.m4 @@ -1,5 +1,5 @@ # glibc21.m4 serial 5 -dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2011 Free Software Foundation, +dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2012 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 9dc8fbe..ae4d254 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 @@ -1,5 +1,5 @@ -# gnulib-common.m4 serial 29 -dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. +# gnulib-common.m4 serial 32 +dnl Copyright (C) 2007-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -13,12 +13,12 @@ AC_DEFUN([gl_COMMON], [ ]) AC_DEFUN([gl_COMMON_BODY], [ AH_VERBATIM([_Noreturn], -[/* The _Noreturn keyword of draft C1X. */ +[/* The _Noreturn keyword of C11. */ #ifndef _Noreturn # if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \ || 0x5110 <= __SUNPRO_C) # define _Noreturn __attribute__ ((__noreturn__)) -# elif 1200 <= _MSC_VER +# elif defined _MSC_VER && 1200 <= _MSC_VER # define _Noreturn __declspec (noreturn) # else # define _Noreturn @@ -211,8 +211,33 @@ m4_ifndef([AS_VAR_IF], [m4_define([AS_VAR_IF], [AS_IF([test x"AS_VAR_GET([$1])" = x""$2], [$3], [$4])])]) +# gl_PROG_CC_C99 +# Modifies the value of the shell variable CC in an attempt to make $CC +# understand ISO C99 source code. +# This is like AC_PROG_CC_C99, except that +# - AC_PROG_CC_C99 did not exist in Autoconf versions < 2.60, +# - AC_PROG_CC_C99 does not mix well with AC_PROG_CC_STDC +# , +# but many more packages use AC_PROG_CC_STDC than AC_PROG_CC_C99 +# . +# Remaining problems: +# - When AC_PROG_CC_STDC is invoked twice, it adds the C99 enabling options +# to CC twice +# . +# - AC_PROG_CC_STDC is likely to change now that C11 is an ISO standard. +AC_DEFUN([gl_PROG_CC_C99], +[ + dnl Change that version number to the minimum Autoconf version that supports + dnl mixing AC_PROG_CC_C99 calls with AC_PROG_CC_STDC calls. + m4_version_prereq([9.0], + [AC_REQUIRE([AC_PROG_CC_C99])], + [AC_REQUIRE([AC_PROG_CC_STDC])]) +]) + # gl_PROG_AR_RANLIB # Determines the values for AR, ARFLAGS, RANLIB that fit with the compiler. +# The user can set the variables AR, ARFLAGS, RANLIB if he wants to override +# the values. AC_DEFUN([gl_PROG_AR_RANLIB], [ dnl Minix 3 comes with two toolchains: The Amsterdam Compiler Kit compiler @@ -220,24 +245,47 @@ AC_DEFUN([gl_PROG_AR_RANLIB], dnl library formats. In particular, the GNU binutils programs ar, ranlib dnl produce libraries that work only with gcc, not with cc. AC_REQUIRE([AC_PROG_CC]) - AC_EGREP_CPP([Amsterdam], + AC_CACHE_CHECK([for Minix Amsterdam compiler], [gl_cv_c_amsterdam_compiler], [ + AC_EGREP_CPP([Amsterdam], + [ #ifdef __ACK__ Amsterdam #endif - ], - [AR='cc -c.a' - ARFLAGS='-o' - RANLIB=':' - ], - [dnl Use the Automake-documented default values for AR and ARFLAGS. - AR='ar' - ARFLAGS='cru' - dnl Use the ranlib program if it is available. - AC_PROG_RANLIB + ], + [gl_cv_c_amsterdam_compiler=yes], + [gl_cv_c_amsterdam_compiler=no]) ]) + if test -z "$AR"; then + if test $gl_cv_c_amsterdam_compiler = yes; then + AR='cc -c.a' + if test -z "$ARFLAGS"; then + ARFLAGS='-o' + fi + else + dnl Use the Automake-documented default values for AR and ARFLAGS, + dnl but prefer ${host}-ar over ar (useful for cross-compiling). + AC_CHECK_TOOL([AR], [ar], [ar]) + if test -z "$ARFLAGS"; then + ARFLAGS='cru' + fi + fi + else + if test -z "$ARFLAGS"; then + ARFLAGS='cru' + fi + fi AC_SUBST([AR]) AC_SUBST([ARFLAGS]) + if test -z "$RANLIB"; then + if test $gl_cv_c_amsterdam_compiler = yes; then + RANLIB=':' + else + dnl Use the ranlib program if it is available. + AC_PROG_RANLIB + fi + fi + AC_SUBST([RANLIB]) ]) # AC_PROG_MKDIR_P diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 index 0e0217d..b55dc2d 100644 --- a/m4/gnulib-comp.m4 +++ b/m4/gnulib-comp.m4 @@ -1,10 +1,22 @@ # DO NOT EDIT! GENERATED AUTOMATICALLY! -# Copyright (C) 2002-2011 Free Software Foundation, Inc. +# Copyright (C) 2002-2012 Free Software Foundation, Inc. # -# This file is free software, distributed under the terms of the GNU -# General Public License. As a special exception to the GNU General -# Public License, this file may be distributed as part of a program -# that contains a configuration script generated by Autoconf, under +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see . +# +# As a special exception to the GNU General Public License, +# this file may be distributed as part of a program that +# contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. @@ -61,6 +73,7 @@ AC_DEFUN([gl_EARLY], # Code from module snippet/c++defs: # Code from module snippet/unused-parameter: # Code from module snippet/warn-on-use: + # Code from module ssize_t: # Code from module stdbool: # Code from module stddef: # Code from module stdint: @@ -120,14 +133,20 @@ if test $REPLACE_GETOPT = 1; then AC_LIBOBJ([getopt]) AC_LIBOBJ([getopt1]) gl_PREREQ_GETOPT + dnl Arrange for unistd.h to include getopt.h. + GNULIB_GL_UNISTD_H_GETOPT=1 fi +AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT]) gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu]) gl_FUNC_GETOPT_POSIX if test $REPLACE_GETOPT = 1; then AC_LIBOBJ([getopt]) AC_LIBOBJ([getopt1]) gl_PREREQ_GETOPT + dnl Arrange for unistd.h to include getopt.h. + GNULIB_GL_UNISTD_H_GETOPT=1 fi +AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT]) dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac. AM_GNU_GETTEXT_VERSION([0.18.1]) AC_SUBST([LIBINTL]) @@ -152,7 +171,7 @@ if test $REPLACE_ICONV = 1; then fi gl_INLINE gl_LOCALCHARSET -LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\"" +LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\"" AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT]) gl_LOCALE_H gl_FUNC_MBRTOWC @@ -187,6 +206,7 @@ if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then fi gl_STRING_MODULE_INDICATOR([memchr]) gl_MULTIARCH +gt_TYPE_SSIZE_T AM_STDBOOL_H gl_STDDEF_H gl_STDINT_H @@ -515,6 +535,7 @@ AC_DEFUN([gl_FILE_LIST], [ m4/printf-posix.m4 m4/progtest.m4 m4/size_max.m4 + m4/ssize_t.m4 m4/stdbool.m4 m4/stddef_h.m4 m4/stdint.m4 @@ -523,6 +544,7 @@ AC_DEFUN([gl_FILE_LIST], [ m4/stdlib_h.m4 m4/string_h.m4 m4/strstr.m4 + m4/sys_socket_h.m4 m4/sys_stat_h.m4 m4/sys_time_h.m4 m4/threadlib.m4 diff --git a/m4/gnulib-tool.m4 b/m4/gnulib-tool.m4 new file mode 100644 index 0000000..a09ffc1 --- /dev/null +++ b/m4/gnulib-tool.m4 @@ -0,0 +1,57 @@ +# gnulib-tool.m4 serial 2 +dnl Copyright (C) 2004-2005, 2009-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl The following macros need not be invoked explicitly. +dnl Invoking them does nothing except to declare default arguments +dnl for "gnulib-tool --import". + +dnl Usage: gl_LOCAL_DIR([DIR]) +AC_DEFUN([gl_LOCAL_DIR], []) + +dnl Usage: gl_MODULES([module1 module2 ...]) +AC_DEFUN([gl_MODULES], []) + +dnl Usage: gl_AVOID([module1 module2 ...]) +AC_DEFUN([gl_AVOID], []) + +dnl Usage: gl_SOURCE_BASE([DIR]) +AC_DEFUN([gl_SOURCE_BASE], []) + +dnl Usage: gl_M4_BASE([DIR]) +AC_DEFUN([gl_M4_BASE], []) + +dnl Usage: gl_PO_BASE([DIR]) +AC_DEFUN([gl_PO_BASE], []) + +dnl Usage: gl_DOC_BASE([DIR]) +AC_DEFUN([gl_DOC_BASE], []) + +dnl Usage: gl_TESTS_BASE([DIR]) +AC_DEFUN([gl_TESTS_BASE], []) + +dnl Usage: gl_WITH_TESTS +AC_DEFUN([gl_WITH_TESTS], []) + +dnl Usage: gl_LIB([LIBNAME]) +AC_DEFUN([gl_LIB], []) + +dnl Usage: gl_LGPL or gl_LGPL([VERSION]) +AC_DEFUN([gl_LGPL], []) + +dnl Usage: gl_MAKEFILE_NAME([FILENAME]) +AC_DEFUN([gl_MAKEFILE_NAME], []) + +dnl Usage: gl_LIBTOOL +AC_DEFUN([gl_LIBTOOL], []) + +dnl Usage: gl_MACRO_PREFIX([PREFIX]) +AC_DEFUN([gl_MACRO_PREFIX], []) + +dnl Usage: gl_PO_DOMAIN([DOMAIN]) +AC_DEFUN([gl_PO_DOMAIN], []) + +dnl Usage: gl_VC_FILES([BOOLEAN]) +AC_DEFUN([gl_VC_FILES], []) diff --git a/m4/iconv.m4 b/m4/iconv.m4 index 085cd06..6a47236 100644 --- a/m4/iconv.m4 +++ b/m4/iconv.m4 @@ -1,5 +1,5 @@ -# iconv.m4 serial 17 (gettext-0.18.2) -dnl Copyright (C) 2000-2002, 2007-2011 Free Software Foundation, Inc. +# iconv.m4 serial 18 (gettext-0.18.2) +dnl Copyright (C) 2000-2002, 2007-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -242,7 +242,7 @@ extern #ifdef __cplusplus "C" #endif -#if defined(__STDC__) || defined(__cplusplus) +#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); diff --git a/m4/iconv_h.m4 b/m4/iconv_h.m4 index 8cca7fd..aa86cf8 100644 --- a/m4/iconv_h.m4 +++ b/m4/iconv_h.m4 @@ -1,5 +1,5 @@ # iconv_h.m4 serial 8 -dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/iconv_open.m4 b/m4/iconv_open.m4 index accdecc..07f4849 100644 --- a/m4/iconv_open.m4 +++ b/m4/iconv_open.m4 @@ -1,5 +1,5 @@ # iconv_open.m4 serial 14 -dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/include_next.m4 b/m4/include_next.m4 index ebf081a..a60a261 100644 --- a/m4/include_next.m4 +++ b/m4/include_next.m4 @@ -1,5 +1,5 @@ -# include_next.m4 serial 20 -dnl Copyright (C) 2006-2011 Free Software Foundation, Inc. +# include_next.m4 serial 23 +dnl Copyright (C) 2006-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -143,7 +143,7 @@ choke me # even if the compiler does not support include_next. # The three "///" are to pacify Sun C 5.8, which otherwise would say # "warning: #include of /usr/include/... may be non-portable". -# Use `""', not `<>', so that the /// cannot be confused with a C99 comment. +# Use '""', not '<>', so that the /// cannot be confused with a C99 comment. # Note: This macro assumes that the header file is not empty after # preprocessing, i.e. it does not only define preprocessor macros but also # provides some type/enum definitions or function/variable declarations. @@ -207,17 +207,41 @@ dnl until we can assume autoconf 2.64 or newer. aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac +changequote(,) + case "$host_os" in + mingw*) + dnl For the sake of native Windows compilers (excluding gcc), + dnl treat backslash as a directory separator, like /. + dnl Actually, these compilers use a double-backslash as + dnl directory separator, inside the + dnl # line "filename" + dnl directives. + gl_dirsep_regex='[/\\]' + ;; + *) + gl_dirsep_regex='\/' + ;; + esac + dnl A sed expression that turns a string into a basic regular + dnl expression, for use within "/.../". + gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' +changequote([,]) + gl_header_literal_regex=`echo ']m4_defn([gl_HEADER_NAME])[' \ + | sed -e "$gl_make_literal_regex_sed"` + gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ + s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ +changequote(,)dnl + s|^/[^/]|//&| +changequote([,])dnl + p + q + }' dnl eval is necessary to expand gl_absname_cpp. dnl Ultrix and Pyramid sh refuse to redirect output of eval, dnl so use subshell. AS_VAR_SET(gl_next_header, ['"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | - sed -n '\#/]m4_defn([gl_HEADER_NAME])[#{ - s#.*"\(.*/]m4_defn([gl_HEADER_NAME])[\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"']) + sed -n "$gl_absolute_header_sed"`'"']) m4_if([$2], [check], [else AS_VAR_SET(gl_next_header, ['<'gl_HEADER_NAME'>']) diff --git a/m4/inline.m4 b/m4/inline.m4 index a459080..6fa9972 100644 --- a/m4/inline.m4 +++ b/m4/inline.m4 @@ -1,5 +1,5 @@ # inline.m4 serial 4 -dnl Copyright (C) 2006, 2009-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2006, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/intdiv0.m4 b/m4/intdiv0.m4 new file mode 100644 index 0000000..6d89aeb --- /dev/null +++ b/m4/intdiv0.m4 @@ -0,0 +1,87 @@ +# intdiv0.m4 serial 5 (gettext-0.18.2) +dnl Copyright (C) 2002, 2007-2008, 2010-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_DEFUN([gt_INTDIV0], +[ + AC_REQUIRE([AC_PROG_CC])dnl + AC_REQUIRE([AC_CANONICAL_HOST])dnl + + AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], + gt_cv_int_divbyzero_sigfpe, + [ + gt_cv_int_divbyzero_sigfpe= +changequote(,)dnl + case "$host_os" in + macos* | darwin[6-9]* | darwin[1-9][0-9]*) + # On MacOS X 10.2 or newer, just assume the same as when cross- + # compiling. If we were to perform the real test, 1 Crash Report + # dialog window would pop up. + case "$host_cpu" in + i[34567]86 | x86_64) + gt_cv_int_divbyzero_sigfpe="guessing yes" ;; + esac + ;; + esac +changequote([,])dnl + if test -z "$gt_cv_int_divbyzero_sigfpe"; then + AC_RUN_IFELSE( + [AC_LANG_SOURCE([[ +#include +#include + +static void +sigfpe_handler (int sig) +{ + /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ + exit (sig != SIGFPE); +} + +int x = 1; +int y = 0; +int z; +int nan; + +int main () +{ + signal (SIGFPE, sigfpe_handler); +/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ +#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) + signal (SIGTRAP, sigfpe_handler); +#endif +/* Linux/SPARC yields signal SIGILL. */ +#if defined (__sparc__) && defined (__linux__) + signal (SIGILL, sigfpe_handler); +#endif + + z = x / y; + nan = y / y; + exit (2); +} +]])], + [gt_cv_int_divbyzero_sigfpe=yes], + [gt_cv_int_divbyzero_sigfpe=no], + [ + # Guess based on the CPU. +changequote(,)dnl + case "$host_cpu" in + alpha* | i[34567]86 | x86_64 | m68k | s390*) + gt_cv_int_divbyzero_sigfpe="guessing yes";; + *) + gt_cv_int_divbyzero_sigfpe="guessing no";; + esac +changequote([,])dnl + ]) + fi + ]) + case "$gt_cv_int_divbyzero_sigfpe" in + *yes) value=1;; + *) value=0;; + esac + AC_DEFINE_UNQUOTED([INTDIV0_RAISES_SIGFPE], [$value], + [Define if integer division by zero raises signal SIGFPE.]) +]) diff --git a/m4/intl.m4 b/m4/intl.m4 new file mode 100644 index 0000000..d67e29c --- /dev/null +++ b/m4/intl.m4 @@ -0,0 +1,300 @@ +# intl.m4 serial 17c +dnl Copyright (C) 1995-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1995-2000. +dnl Bruno Haible , 2000-2009. + +AC_PREREQ([2.53]) + +dnl Checks for all prerequisites of the intl subdirectory, +dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, +dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. +AC_DEFUN([AM_INTL_SUBDIR], +[ + AC_REQUIRE([AC_PROG_INSTALL])dnl + AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake + AC_REQUIRE([AC_PROG_CC])dnl + AC_REQUIRE([AC_CANONICAL_HOST])dnl + AC_REQUIRE([gt_GLIBC2])dnl + AC_REQUIRE([AC_PROG_RANLIB])dnl + AC_REQUIRE([gl_VISIBILITY])dnl + AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl + AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl + AC_REQUIRE([gt_TYPE_WCHAR_T])dnl + AC_REQUIRE([gt_TYPE_WINT_T])dnl + AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) + AC_REQUIRE([gt_TYPE_INTMAX_T]) + AC_REQUIRE([gt_PRINTF_POSIX]) + AC_REQUIRE([gl_GLIBC21])dnl + AC_REQUIRE([gl_XSIZE])dnl + AC_REQUIRE([gl_FCNTL_O_FLAGS])dnl + AC_REQUIRE([gt_INTL_MACOSX])dnl + + dnl Support for automake's --enable-silent-rules. + case "$enable_silent_rules" in + yes) INTL_DEFAULT_VERBOSITY=0;; + no) INTL_DEFAULT_VERBOSITY=1;; + *) INTL_DEFAULT_VERBOSITY=1;; + esac + AC_SUBST([INTL_DEFAULT_VERBOSITY]) + + AC_CHECK_TYPE([ptrdiff_t], , + [AC_DEFINE([ptrdiff_t], [long], + [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) + ]) + AC_CHECK_HEADERS([stddef.h stdlib.h string.h]) + AC_CHECK_FUNCS([asprintf fwprintf newlocale putenv setenv setlocale \ + snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb]) + + dnl Use the _snprintf function only if it is declared (because on NetBSD it + dnl is defined as a weak alias of snprintf; we prefer to use the latter). + gt_CHECK_DECL(_snprintf, [#include ]) + gt_CHECK_DECL(_snwprintf, [#include ]) + + dnl Use the *_unlocked functions only if they are declared. + dnl (because some of them were defined without being declared in Solaris + dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built + dnl on Solaris 2.5.1 to run on Solaris 2.6). + dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. + gt_CHECK_DECL(getc_unlocked, [#include ]) + + case $gt_cv_func_printf_posix in + *yes) HAVE_POSIX_PRINTF=1 ;; + *) HAVE_POSIX_PRINTF=0 ;; + esac + AC_SUBST([HAVE_POSIX_PRINTF]) + if test "$ac_cv_func_asprintf" = yes; then + HAVE_ASPRINTF=1 + else + HAVE_ASPRINTF=0 + fi + AC_SUBST([HAVE_ASPRINTF]) + if test "$ac_cv_func_snprintf" = yes; then + HAVE_SNPRINTF=1 + else + HAVE_SNPRINTF=0 + fi + AC_SUBST([HAVE_SNPRINTF]) + if test "$ac_cv_func_newlocale" = yes; then + HAVE_NEWLOCALE=1 + else + HAVE_NEWLOCALE=0 + fi + AC_SUBST([HAVE_NEWLOCALE]) + if test "$ac_cv_func_wprintf" = yes; then + HAVE_WPRINTF=1 + else + HAVE_WPRINTF=0 + fi + AC_SUBST([HAVE_WPRINTF]) + + AM_LANGINFO_CODESET + gt_LC_MESSAGES + + dnl Compilation on mingw and Cygwin needs special Makefile rules, because + dnl 1. when we install a shared library, we must arrange to export + dnl auxiliary pointer variables for every exported variable, + dnl 2. when we install a shared library and a static library simultaneously, + dnl the include file specifies __declspec(dllimport) and therefore we + dnl must arrange to define the auxiliary pointer variables for the + dnl exported variables _also_ in the static library. + if test "$enable_shared" = yes; then + case "$host_os" in + mingw* | cygwin*) is_woe32dll=yes ;; + *) is_woe32dll=no ;; + esac + else + is_woe32dll=no + fi + WOE32DLL=$is_woe32dll + AC_SUBST([WOE32DLL]) + + dnl On mingw and Cygwin, we can activate special Makefile rules which add + dnl version information to the shared libraries and executables. + case "$host_os" in + mingw* | cygwin*) is_woe32=yes ;; + *) is_woe32=no ;; + esac + WOE32=$is_woe32 + AC_SUBST([WOE32]) + if test $WOE32 = yes; then + dnl Check for a program that compiles Windows resource files. + AC_CHECK_TOOL([WINDRES], [windres]) + fi + + dnl Determine whether when creating a library, "-lc" should be passed to + dnl libtool or not. On many platforms, it is required for the libtool option + dnl -no-undefined to work. On HP-UX, however, the -lc - stored by libtool + dnl in the *.la files - makes it impossible to create multithreaded programs, + dnl because libtool also reorders the -lc to come before the -pthread, and + dnl this disables pthread_create() . + case "$host_os" in + hpux*) LTLIBC="" ;; + *) LTLIBC="-lc" ;; + esac + AC_SUBST([LTLIBC]) + + dnl Rename some macros and functions used for locking. + AH_BOTTOM([ +#define __libc_lock_t gl_lock_t +#define __libc_lock_define gl_lock_define +#define __libc_lock_define_initialized gl_lock_define_initialized +#define __libc_lock_init gl_lock_init +#define __libc_lock_lock gl_lock_lock +#define __libc_lock_unlock gl_lock_unlock +#define __libc_lock_recursive_t gl_recursive_lock_t +#define __libc_lock_define_recursive gl_recursive_lock_define +#define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized +#define __libc_lock_init_recursive gl_recursive_lock_init +#define __libc_lock_lock_recursive gl_recursive_lock_lock +#define __libc_lock_unlock_recursive gl_recursive_lock_unlock +#define glthread_in_use libintl_thread_in_use +#define glthread_lock_init_func libintl_lock_init_func +#define glthread_lock_lock_func libintl_lock_lock_func +#define glthread_lock_unlock_func libintl_lock_unlock_func +#define glthread_lock_destroy_func libintl_lock_destroy_func +#define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded +#define glthread_rwlock_init_func libintl_rwlock_init_func +#define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded +#define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func +#define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded +#define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func +#define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded +#define glthread_rwlock_unlock_func libintl_rwlock_unlock_func +#define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded +#define glthread_rwlock_destroy_func libintl_rwlock_destroy_func +#define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded +#define glthread_recursive_lock_init_func libintl_recursive_lock_init_func +#define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded +#define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func +#define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded +#define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func +#define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded +#define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func +#define glthread_once_func libintl_once_func +#define glthread_once_singlethreaded libintl_once_singlethreaded +#define glthread_once_multithreaded libintl_once_multithreaded +]) +]) + + +dnl Checks for the core files of the intl subdirectory: +dnl dcigettext.c +dnl eval-plural.h +dnl explodename.c +dnl finddomain.c +dnl gettextP.h +dnl gmo.h +dnl hash-string.h hash-string.c +dnl l10nflist.c +dnl libgnuintl.h.in (except the *printf stuff) +dnl loadinfo.h +dnl loadmsgcat.c +dnl localealias.c +dnl log.c +dnl plural-exp.h plural-exp.c +dnl plural.y +dnl Used by libglocale. +AC_DEFUN([gt_INTL_SUBDIR_CORE], +[ + AC_REQUIRE([AC_C_INLINE])dnl + AC_REQUIRE([AC_TYPE_SIZE_T])dnl + AC_REQUIRE([gl_AC_HEADER_STDINT_H]) + AC_REQUIRE([AC_FUNC_ALLOCA])dnl + AC_REQUIRE([AC_FUNC_MMAP])dnl + AC_REQUIRE([gt_INTDIV0])dnl + AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl + AC_REQUIRE([gt_INTTYPES_PRI])dnl + AC_REQUIRE([gl_LOCK])dnl + + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }]], + [[]])], + [AC_DEFINE([HAVE_BUILTIN_EXPECT], [1], + [Define to 1 if the compiler understands __builtin_expect.])]) + + AC_CHECK_HEADERS([argz.h inttypes.h limits.h unistd.h sys/param.h]) + AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \ + stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ + argz_stringify argz_next __fsetlocking]) + + dnl Use the *_unlocked functions only if they are declared. + dnl (because some of them were defined without being declared in Solaris + dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built + dnl on Solaris 2.5.1 to run on Solaris 2.6). + dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. + gt_CHECK_DECL([feof_unlocked], [#include ]) + gt_CHECK_DECL([fgets_unlocked], [#include ]) + + AM_ICONV + + dnl intl/plural.c is generated from intl/plural.y. It requires bison, + dnl because plural.y uses bison specific features. It requires at least + dnl bison-1.26 because earlier versions generate a plural.c that doesn't + dnl compile. + dnl bison is only needed for the maintainer (who touches plural.y). But in + dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put + dnl the rule in general Makefile. Now, some people carelessly touch the + dnl files or have a broken "make" program, hence the plural.c rule will + dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not + dnl present or too old. + AC_CHECK_PROGS([INTLBISON], [bison]) + if test -z "$INTLBISON"; then + ac_verc_fail=yes + else + dnl Found it, now check the version. + AC_MSG_CHECKING([version of bison]) +changequote(<<,>>)dnl + ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` + case $ac_prog_version in + '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; + 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) +changequote([,])dnl + ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; + *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; + esac + AC_MSG_RESULT([$ac_prog_version]) + fi + if test $ac_verc_fail = yes; then + INTLBISON=: + fi +]) + + +dnl gt_CHECK_DECL(FUNC, INCLUDES) +dnl Check whether a function is declared. +AC_DEFUN([gt_CHECK_DECL], +[ + AC_CACHE_CHECK([whether $1 is declared], [ac_cv_have_decl_$1], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[$2]], + [[ +#ifndef $1 + char *p = (char *) $1; +#endif + ]])], + [ac_cv_have_decl_$1=yes], + [ac_cv_have_decl_$1=no])]) + if test $ac_cv_have_decl_$1 = yes; then + gt_value=1 + else + gt_value=0 + fi + AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], + [Define to 1 if you have the declaration of '$1', and to 0 if you don't.]) +]) diff --git a/m4/intldir.m4 b/m4/intldir.m4 new file mode 100644 index 0000000..b81de61 --- /dev/null +++ b/m4/intldir.m4 @@ -0,0 +1,19 @@ +# intldir.m4 serial 2 (gettext-0.18) +dnl Copyright (C) 2006, 2009-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +AC_PREREQ([2.52]) + +dnl Tells the AM_GNU_GETTEXT macro to consider an intl/ directory. +AC_DEFUN([AM_GNU_GETTEXT_INTL_SUBDIR], []) diff --git a/m4/intlmacosx.m4 b/m4/intlmacosx.m4 index 51f8547..dc2ddfe 100644 --- a/m4/intlmacosx.m4 +++ b/m4/intlmacosx.m4 @@ -1,5 +1,5 @@ # intlmacosx.m4 serial 4 (gettext-0.18.2) -dnl Copyright (C) 2004-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2004-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/intmax.m4 b/m4/intmax.m4 new file mode 100644 index 0000000..e3b251f --- /dev/null +++ b/m4/intmax.m4 @@ -0,0 +1,36 @@ +# intmax.m4 serial 6 (gettext-0.18.2) +dnl Copyright (C) 2002-2005, 2008-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. +dnl Test whether the system has the 'intmax_t' type, but don't attempt to +dnl find a replacement if it is lacking. + +AC_DEFUN([gt_TYPE_INTMAX_T], +[ + AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) + AC_REQUIRE([gl_AC_HEADER_STDINT_H]) + AC_CACHE_CHECK([for intmax_t], [gt_cv_c_intmax_t], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#include +#if HAVE_STDINT_H_WITH_UINTMAX +#include +#endif +#if HAVE_INTTYPES_H_WITH_UINTMAX +#include +#endif + ]], + [[intmax_t x = -1; + return !x;]])], + [gt_cv_c_intmax_t=yes], + [gt_cv_c_intmax_t=no])]) + if test $gt_cv_c_intmax_t = yes; then + AC_DEFINE([HAVE_INTMAX_T], [1], + [Define if you have the 'intmax_t' type in or .]) + fi +]) diff --git a/m4/inttypes-pri.m4 b/m4/inttypes-pri.m4 new file mode 100644 index 0000000..977206f --- /dev/null +++ b/m4/inttypes-pri.m4 @@ -0,0 +1,42 @@ +# inttypes-pri.m4 serial 7 (gettext-0.18.2) +dnl Copyright (C) 1997-2002, 2006, 2008-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_PREREQ([2.53]) + +# Define PRI_MACROS_BROKEN if exists and defines the PRI* +# macros to non-string values. This is the case on AIX 4.3.3. + +AC_DEFUN([gt_INTTYPES_PRI], +[ + AC_CHECK_HEADERS([inttypes.h]) + if test $ac_cv_header_inttypes_h = yes; then + AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], + [gt_cv_inttypes_pri_broken], + [ + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#ifdef PRId32 +char *p = PRId32; +#endif + ]], + [[]])], + [gt_cv_inttypes_pri_broken=no], + [gt_cv_inttypes_pri_broken=yes]) + ]) + fi + if test "$gt_cv_inttypes_pri_broken" = yes; then + AC_DEFINE_UNQUOTED([PRI_MACROS_BROKEN], [1], + [Define if exists and defines unusable PRI* macros.]) + PRI_MACROS_BROKEN=1 + else + PRI_MACROS_BROKEN=0 + fi + AC_SUBST([PRI_MACROS_BROKEN]) +]) diff --git a/m4/inttypes_h.m4 b/m4/inttypes_h.m4 new file mode 100644 index 0000000..91c7bca --- /dev/null +++ b/m4/inttypes_h.m4 @@ -0,0 +1,29 @@ +# inttypes_h.m4 serial 10 +dnl Copyright (C) 1997-2004, 2006, 2008-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Paul Eggert. + +# Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, +# doesn't clash with , and declares uintmax_t. + +AC_DEFUN([gl_AC_HEADER_INTTYPES_H], +[ + AC_CACHE_CHECK([for inttypes.h], [gl_cv_header_inttypes_h], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#include + ]], + [[uintmax_t i = (uintmax_t) -1; return !i;]])], + [gl_cv_header_inttypes_h=yes], + [gl_cv_header_inttypes_h=no])]) + if test $gl_cv_header_inttypes_h = yes; then + AC_DEFINE_UNQUOTED([HAVE_INTTYPES_H_WITH_UINTMAX], [1], + [Define if exists, doesn't clash with , + and declares uintmax_t. ]) + fi +]) diff --git a/m4/lcmessage.m4 b/m4/lcmessage.m4 new file mode 100644 index 0000000..4ed0eb6 --- /dev/null +++ b/m4/lcmessage.m4 @@ -0,0 +1,35 @@ +# lcmessage.m4 serial 7 (gettext-0.18.2) +dnl Copyright (C) 1995-2002, 2004-2005, 2008-2012 Free Software Foundation, +dnl Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1995. + +# Check whether LC_MESSAGES is available in . + +AC_DEFUN([gt_LC_MESSAGES], +[ + AC_CACHE_CHECK([for LC_MESSAGES], [gt_cv_val_LC_MESSAGES], + [AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[return LC_MESSAGES]])], + [gt_cv_val_LC_MESSAGES=yes], + [gt_cv_val_LC_MESSAGES=no])]) + if test $gt_cv_val_LC_MESSAGES = yes; then + AC_DEFINE([HAVE_LC_MESSAGES], [1], + [Define if your file defines LC_MESSAGES.]) + fi +]) diff --git a/m4/lib-ld.m4 b/m4/lib-ld.m4 index ae003f7..4e1374d 100644 --- a/m4/lib-ld.m4 +++ b/m4/lib-ld.m4 @@ -1,5 +1,5 @@ # lib-ld.m4 serial 5 (gettext-0.18.2) -dnl Copyright (C) 1996-2003, 2009-2011 Free Software Foundation, Inc. +dnl Copyright (C) 1996-2003, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/lib-link.m4 b/m4/lib-link.m4 index e7c9ba9..d11b4b4 100644 --- a/m4/lib-link.m4 +++ b/m4/lib-link.m4 @@ -1,5 +1,5 @@ # lib-link.m4 serial 26 (gettext-0.18.2) -dnl Copyright (C) 2001-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2001-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4 index 7e5f0bd..007aa05 100644 --- a/m4/lib-prefix.m4 +++ b/m4/lib-prefix.m4 @@ -1,5 +1,5 @@ # lib-prefix.m4 serial 7 (gettext-0.18) -dnl Copyright (C) 2001-2005, 2008-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2001-2005, 2008-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/libunistring-base.m4 b/m4/libunistring-base.m4 index 9831448..d91c42b 100644 --- a/m4/libunistring-base.m4 +++ b/m4/libunistring-base.m4 @@ -1,5 +1,5 @@ # libunistring-base.m4 serial 5 -dnl Copyright (C) 2010-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2010-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/localcharset.m4 b/m4/localcharset.m4 index 6801ca9..8010379 100644 --- a/m4/localcharset.m4 +++ b/m4/localcharset.m4 @@ -1,5 +1,5 @@ # localcharset.m4 serial 7 -dnl Copyright (C) 2002, 2004, 2006, 2009-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2002, 2004, 2006, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/locale-fr.m4 b/m4/locale-fr.m4 index 3f4f954..04d801f 100644 --- a/m4/locale-fr.m4 +++ b/m4/locale-fr.m4 @@ -1,5 +1,5 @@ -# locale-fr.m4 serial 13 -dnl Copyright (C) 2003, 2005-2011 Free Software Foundation, Inc. +# locale-fr.m4 serial 16 +dnl Copyright (C) 2003, 2005-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -26,9 +26,9 @@ char buf[16]; int main () { /* Check whether the given locale name is recognized by the system. */ #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ - /* On native Win32, setlocale(category, "") looks at the system settings, + /* On native Windows, setlocale(category, "") looks at the system settings, not at the environment variables. Also, when an encoding suffix such - as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE + as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE category of the locale to "C". */ if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) @@ -63,10 +63,12 @@ int main () { one byte long. This excludes the UTF-8 encoding. */ t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; +#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ /* Check whether the decimal separator is a comma. On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point are nl_langinfo(RADIXCHAR) are both ".". */ if (localeconv () ->decimal_point[0] != ',') return 1; +#endif return 0; } changequote([,])dnl @@ -80,7 +82,7 @@ changequote([,])dnl # "ja" as "Japanese" or "Japanese_Japan.932", # and similar. mingw*) - # Test for the native Win32 locale name. + # Test for the native Windows locale name. if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then gt_cv_locale_fr=French_France.1252 else @@ -152,9 +154,9 @@ int main () { #if !(defined __BEOS__ || defined __HAIKU__) /* Check whether the given locale name is recognized by the system. */ # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ - /* On native Win32, setlocale(category, "") looks at the system settings, + /* On native Windows, setlocale(category, "") looks at the system settings, not at the environment variables. Also, when an encoding suffix such - as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE + as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE category of the locale to "C". */ if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) @@ -189,10 +191,12 @@ int main () { || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') return 1; #endif +#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ /* Check whether the decimal separator is a comma. On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point are nl_langinfo(RADIXCHAR) are both ".". */ if (localeconv () ->decimal_point[0] != ',') return 1; +#endif return 0; } changequote([,])dnl @@ -206,7 +210,7 @@ changequote([,])dnl # "ja" as "Japanese" or "Japanese_Japan.932", # and similar. mingw*) - # Test for the hypothetical native Win32 locale name. + # Test for the hypothetical native Windows locale name. if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then gt_cv_locale_fr_utf8=French_France.65001 else diff --git a/m4/locale-ja.m4 b/m4/locale-ja.m4 index d44c2c8..201ac4e 100644 --- a/m4/locale-ja.m4 +++ b/m4/locale-ja.m4 @@ -1,5 +1,5 @@ -# locale-ja.m4 serial 9 -dnl Copyright (C) 2003, 2005-2011 Free Software Foundation, Inc. +# locale-ja.m4 serial 11 +dnl Copyright (C) 2003, 2005-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -28,9 +28,9 @@ int main () const char *p; /* Check whether the given locale name is recognized by the system. */ #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ - /* On native Win32, setlocale(category, "") looks at the system settings, + /* On native Windows, setlocale(category, "") looks at the system settings, not at the environment variables. Also, when an encoding suffix such - as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE + as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE category of the locale to "C". */ if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) @@ -84,8 +84,9 @@ changequote([,])dnl # "ja" as "Japanese" or "Japanese_Japan.932", # and similar. mingw*) - # Note that on native Win32, the Japanese locale is Japanese_Japan.932, - # and CP932 is very different from EUC-JP, so we cannot use it here. + # Note that on native Windows, the Japanese locale is + # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we + # cannot use it here. gt_cv_locale_ja=none ;; *) diff --git a/m4/locale-zh.m4 b/m4/locale-zh.m4 index 5e06398..0cf5ada 100644 --- a/m4/locale-zh.m4 +++ b/m4/locale-zh.m4 @@ -1,5 +1,5 @@ -# locale-zh.m4 serial 9 -dnl Copyright (C) 2003, 2005-2011 Free Software Foundation, Inc. +# locale-zh.m4 serial 11 +dnl Copyright (C) 2003, 2005-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -29,9 +29,9 @@ int main () const char *p; /* Check whether the given locale name is recognized by the system. */ #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ - /* On native Win32, setlocale(category, "") looks at the system settings, + /* On native Windows, setlocale(category, "") looks at the system settings, not at the environment variables. Also, when an encoding suffix such - as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE + as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE category of the locale to "C". */ if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) @@ -85,7 +85,7 @@ changequote([,])dnl # "ja" as "Japanese" or "Japanese_Japan.932", # and similar. mingw*) - # Test for the hypothetical native Win32 locale name. + # Test for the hypothetical native Windows locale name. if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then gt_cv_locale_zh_CN=Chinese_China.54936 else diff --git a/m4/locale_h.m4 b/m4/locale_h.m4 index e77a303..4289587 100644 --- a/m4/locale_h.m4 +++ b/m4/locale_h.m4 @@ -1,5 +1,5 @@ # locale_h.m4 serial 14 -dnl Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/lock.m4 b/m4/lock.m4 new file mode 100644 index 0000000..c0a6206 --- /dev/null +++ b/m4/lock.m4 @@ -0,0 +1,41 @@ +# lock.m4 serial 11 (gettext-0.18.2) +dnl Copyright (C) 2005-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_DEFUN([gl_LOCK], +[ + AC_REQUIRE([gl_THREADLIB]) + if test "$gl_threads_api" = posix; then + # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the + # pthread_rwlock_* functions. + AC_CHECK_TYPE([pthread_rwlock_t], + [AC_DEFINE([HAVE_PTHREAD_RWLOCK], [1], + [Define if the POSIX multithreading library has read/write locks.])], + [], + [#include ]) + # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. + AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM( + [[#include ]], + [[ +#if __FreeBSD__ == 4 +error "No, in FreeBSD 4.0 recursive mutexes actually don't work." +#else +int x = (int)PTHREAD_MUTEX_RECURSIVE; +return !x; +#endif + ]])], + [AC_DEFINE([HAVE_PTHREAD_MUTEX_RECURSIVE], [1], + [Define if the defines PTHREAD_MUTEX_RECURSIVE.])]) + fi + gl_PREREQ_LOCK +]) + +# Prerequisites of lib/lock.c. +AC_DEFUN([gl_PREREQ_LOCK], [ + AC_REQUIRE([AC_C_INLINE]) +]) diff --git a/m4/longlong.m4 b/m4/longlong.m4 index aed816c..b9c65c7 100644 --- a/m4/longlong.m4 +++ b/m4/longlong.m4 @@ -1,5 +1,5 @@ -# longlong.m4 serial 16 -dnl Copyright (C) 1999-2007, 2009-2011 Free Software Foundation, Inc. +# longlong.m4 serial 17 +dnl Copyright (C) 1999-2007, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -51,7 +51,7 @@ AC_DEFUN([AC_TYPE_LONG_LONG_INT], fi]) if test $ac_cv_type_long_long_int = yes; then AC_DEFINE([HAVE_LONG_LONG_INT], [1], - [Define to 1 if the system has the type `long long int'.]) + [Define to 1 if the system has the type 'long long int'.]) fi ]) @@ -77,7 +77,7 @@ AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], fi]) if test $ac_cv_type_unsigned_long_long_int = yes; then AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1], - [Define to 1 if the system has the type `unsigned long long int'.]) + [Define to 1 if the system has the type 'unsigned long long int'.]) fi ]) diff --git a/m4/mbrtowc.m4 b/m4/mbrtowc.m4 index aa2fdfe..8f829c8 100644 --- a/m4/mbrtowc.m4 +++ b/m4/mbrtowc.m4 @@ -1,5 +1,5 @@ # mbrtowc.m4 serial 25 -dnl Copyright (C) 2001-2002, 2004-2005, 2008-2011 Free Software Foundation, +dnl Copyright (C) 2001-2002, 2004-2005, 2008-2012 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, diff --git a/m4/mbsinit.m4 b/m4/mbsinit.m4 index 27e06d7..da56c3d 100644 --- a/m4/mbsinit.m4 +++ b/m4/mbsinit.m4 @@ -1,5 +1,5 @@ # mbsinit.m4 serial 8 -dnl Copyright (C) 2008, 2010-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2008, 2010-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/mbsrtowcs.m4 b/m4/mbsrtowcs.m4 index 065df92..a95f606 100644 --- a/m4/mbsrtowcs.m4 +++ b/m4/mbsrtowcs.m4 @@ -1,5 +1,5 @@ # mbsrtowcs.m4 serial 13 -dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2008-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/mbstate_t.m4 b/m4/mbstate_t.m4 index f7c46b8..61a8190 100644 --- a/m4/mbstate_t.m4 +++ b/m4/mbstate_t.m4 @@ -1,5 +1,5 @@ # mbstate_t.m4 serial 13 -dnl Copyright (C) 2000-2002, 2008-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2000-2002, 2008-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/mbtowc.m4 b/m4/mbtowc.m4 index 7793a00..fec0d25 100644 --- a/m4/mbtowc.m4 +++ b/m4/mbtowc.m4 @@ -1,5 +1,5 @@ # mbtowc.m4 serial 2 -dnl Copyright (C) 2011 Free Software Foundation, Inc. +dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/memchr.m4 b/m4/memchr.m4 index f6dc3e7..0040294 100644 --- a/m4/memchr.m4 +++ b/m4/memchr.m4 @@ -1,5 +1,5 @@ # memchr.m4 serial 12 -dnl Copyright (C) 2002-2004, 2009-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2004, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/mmap-anon.m4 b/m4/mmap-anon.m4 index 952536f..4613cbe 100644 --- a/m4/mmap-anon.m4 +++ b/m4/mmap-anon.m4 @@ -1,5 +1,5 @@ # mmap-anon.m4 serial 9 -dnl Copyright (C) 2005, 2007, 2009-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2005, 2007, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/multiarch.m4 b/m4/multiarch.m4 index 691d892..b424dce 100644 --- a/m4/multiarch.m4 +++ b/m4/multiarch.m4 @@ -1,5 +1,5 @@ # multiarch.m4 serial 6 -dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2008-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/nls.m4 b/m4/nls.m4 index 6a21216..0866677 100644 --- a/m4/nls.m4 +++ b/m4/nls.m4 @@ -1,5 +1,5 @@ # nls.m4 serial 5 (gettext-0.18) -dnl Copyright (C) 1995-2003, 2005-2006, 2008-2011 Free Software Foundation, +dnl Copyright (C) 1995-2003, 2005-2006, 2008-2012 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, diff --git a/m4/nocrash.m4 b/m4/nocrash.m4 index 0cc0d53..08ef825 100644 --- a/m4/nocrash.m4 +++ b/m4/nocrash.m4 @@ -1,5 +1,5 @@ -# nocrash.m4 serial 2 -dnl Copyright (C) 2005, 2009-2011 Free Software Foundation, Inc. +# nocrash.m4 serial 3 +dnl Copyright (C) 2005, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -79,6 +79,34 @@ nocrash_init (void) } } } +#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* Avoid a crash on native Windows. */ +#define WIN32_LEAN_AND_MEAN +#include +#include +static LONG WINAPI +exception_filter (EXCEPTION_POINTERS *ExceptionInfo) +{ + switch (ExceptionInfo->ExceptionRecord->ExceptionCode) + { + case EXCEPTION_ACCESS_VIOLATION: + case EXCEPTION_IN_PAGE_ERROR: + case EXCEPTION_STACK_OVERFLOW: + case EXCEPTION_GUARD_PAGE: + case EXCEPTION_PRIV_INSTRUCTION: + case EXCEPTION_ILLEGAL_INSTRUCTION: + case EXCEPTION_DATATYPE_MISALIGNMENT: + case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: + case EXCEPTION_NONCONTINUABLE_EXCEPTION: + exit (1); + } + return EXCEPTION_CONTINUE_SEARCH; +} +static void +nocrash_init (void) +{ + SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); +} #else /* Avoid a crash on POSIX systems. */ #include diff --git a/m4/po.m4 b/m4/po.m4 index 9a0cca8..05d8f7b 100644 --- a/m4/po.m4 +++ b/m4/po.m4 @@ -1,5 +1,5 @@ -# po.m4 serial 17a -dnl Copyright (C) 1995-2011 Free Software Foundation, Inc. +# po.m4 serial 17b +dnl Copyright (C) 1995-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -130,12 +130,12 @@ changequote([,])dnl test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` - # Hide the ALL_LINGUAS assigment from automake < 1.5. + # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. - # Hide the ALL_LINGUAS assigment from automake < 1.5. + # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES @@ -317,7 +317,7 @@ changequote([,])dnl sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'` ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` fi - # Hide the ALL_LINGUAS assigment from automake < 1.5. + # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) diff --git a/m4/printf-posix.m4 b/m4/printf-posix.m4 new file mode 100644 index 0000000..0b9da42 --- /dev/null +++ b/m4/printf-posix.m4 @@ -0,0 +1,48 @@ +# printf-posix.m4 serial 6 (gettext-0.18.2) +dnl Copyright (C) 2003, 2007, 2009-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. +dnl Test whether the printf() function supports POSIX/XSI format strings with +dnl positions. + +AC_DEFUN([gt_PRINTF_POSIX], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings], + gt_cv_func_printf_posix, + [ + AC_RUN_IFELSE( + [AC_LANG_SOURCE([[ +#include +#include +/* The string "%2$d %1$d", with dollar characters protected from the shell's + dollar expansion (possibly an autoconf bug). */ +static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; +static char buf[100]; +int main () +{ + sprintf (buf, format, 33, 55); + return (strcmp (buf, "55 33") != 0); +}]])], + [gt_cv_func_printf_posix=yes], + [gt_cv_func_printf_posix=no], + [ + AC_EGREP_CPP([notposix], [ +#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ + notposix +#endif + ], + [gt_cv_func_printf_posix="guessing no"], + [gt_cv_func_printf_posix="guessing yes"]) + ]) + ]) + case $gt_cv_func_printf_posix in + *yes) + AC_DEFINE([HAVE_POSIX_PRINTF], [1], + [Define if your printf() function supports format strings with positions.]) + ;; + esac +]) diff --git a/m4/progtest.m4 b/m4/progtest.m4 index 5130d56..ce3abbc 100644 --- a/m4/progtest.m4 +++ b/m4/progtest.m4 @@ -1,5 +1,5 @@ # progtest.m4 serial 7 (gettext-0.18.2) -dnl Copyright (C) 1996-2003, 2005, 2008-2011 Free Software Foundation, Inc. +dnl Copyright (C) 1996-2003, 2005, 2008-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/size_max.m4 b/m4/size_max.m4 new file mode 100644 index 0000000..5a8162b --- /dev/null +++ b/m4/size_max.m4 @@ -0,0 +1,79 @@ +# size_max.m4 serial 10 +dnl Copyright (C) 2003, 2005-2006, 2008-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_DEFUN([gl_SIZE_MAX], +[ + AC_CHECK_HEADERS([stdint.h]) + dnl First test whether the system already has SIZE_MAX. + AC_CACHE_CHECK([for SIZE_MAX], [gl_cv_size_max], [ + gl_cv_size_max= + AC_EGREP_CPP([Found it], [ +#include +#if HAVE_STDINT_H +#include +#endif +#ifdef SIZE_MAX +Found it +#endif +], [gl_cv_size_max=yes]) + if test -z "$gl_cv_size_max"; then + dnl Define it ourselves. Here we assume that the type 'size_t' is not wider + dnl than the type 'unsigned long'. Try hard to find a definition that can + dnl be used in a preprocessor #if, i.e. doesn't contain a cast. + AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1], + [#include +#include ], [size_t_bits_minus_1=]) + AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)], + [#include ], [fits_in_uint=]) + if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then + if test $fits_in_uint = 1; then + dnl Even though SIZE_MAX fits in an unsigned int, it must be of type + dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'. + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + extern size_t foo; + extern unsigned long foo; + ]], + [[]])], + [fits_in_uint=0]) + fi + dnl We cannot use 'expr' to simplify this expression, because 'expr' + dnl works only with 'long' integers in the host environment, while we + dnl might be cross-compiling from a 32-bit platform to a 64-bit platform. + if test $fits_in_uint = 1; then + gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" + else + gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" + fi + else + dnl Shouldn't happen, but who knows... + gl_cv_size_max='((size_t)~(size_t)0)' + fi + fi + ]) + if test "$gl_cv_size_max" != yes; then + AC_DEFINE_UNQUOTED([SIZE_MAX], [$gl_cv_size_max], + [Define as the maximum value of type 'size_t', if the system doesn't define it.]) + fi + dnl Don't redefine SIZE_MAX in config.h if config.h is re-included after + dnl . Remember that the #undef in AH_VERBATIM gets replaced with + dnl #define by AC_DEFINE_UNQUOTED. + AH_VERBATIM([SIZE_MAX], +[/* Define as the maximum value of type 'size_t', if the system doesn't define + it. */ +#ifndef SIZE_MAX +# undef SIZE_MAX +#endif]) +]) + +dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. +dnl Remove this when we can assume autoconf >= 2.61. +m4_ifdef([AC_COMPUTE_INT], [], [ + AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) +]) diff --git a/m4/ssize_t.m4 b/m4/ssize_t.m4 new file mode 100644 index 0000000..209d64c --- /dev/null +++ b/m4/ssize_t.m4 @@ -0,0 +1,23 @@ +# ssize_t.m4 serial 5 (gettext-0.18.2) +dnl Copyright (C) 2001-2003, 2006, 2010-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. +dnl Test whether ssize_t is defined. + +AC_DEFUN([gt_TYPE_SSIZE_T], +[ + AC_CACHE_CHECK([for ssize_t], [gt_cv_ssize_t], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[int x = sizeof (ssize_t *) + sizeof (ssize_t); + return !x;]])], + [gt_cv_ssize_t=yes], [gt_cv_ssize_t=no])]) + if test $gt_cv_ssize_t = no; then + AC_DEFINE([ssize_t], [int], + [Define as a signed type of the same size as size_t.]) + fi +]) diff --git a/m4/stdbool.m4 b/m4/stdbool.m4 index 1ebf3e6..eabfa64 100644 --- a/m4/stdbool.m4 +++ b/m4/stdbool.m4 @@ -1,6 +1,6 @@ # Check for stdbool.h that conforms to C99. -dnl Copyright (C) 2002-2006, 2009-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2006, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/stddef_h.m4 b/m4/stddef_h.m4 index 1ae2344..cc11609 100644 --- a/m4/stddef_h.m4 +++ b/m4/stddef_h.m4 @@ -1,6 +1,6 @@ dnl A placeholder for POSIX 2008 , for platforms that have issues. # stddef_h.m4 serial 4 -dnl Copyright (C) 2009-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/stdint.m4 b/m4/stdint.m4 index c75e957..28d342e 100644 --- a/m4/stdint.m4 +++ b/m4/stdint.m4 @@ -1,5 +1,5 @@ -# stdint.m4 serial 41 -dnl Copyright (C) 2001-2011 Free Software Foundation, Inc. +# stdint.m4 serial 43 +dnl Copyright (C) 2001-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -69,8 +69,6 @@ AC_DEFUN_ONCE([gl_STDINT_H], [gl_cv_header_working_stdint_h=no AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[ -#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ -#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ #include /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in . */ @@ -219,8 +217,6 @@ struct s { dnl This detects a bug on HP-UX 11.23/ia64. AC_RUN_IFELSE([ AC_LANG_PROGRAM([[ -#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ -#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ #include ] @@ -466,6 +462,14 @@ AC_DEFUN([gl_STDINT_TYPE_PROPERTIES], fi gl_INTEGER_TYPE_SUFFIX([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES]) + + dnl If wint_t is smaller than 'int', it cannot satisfy the ISO C 99 + dnl requirement that wint_t is "unchanged by default argument promotions". + dnl In this case gnulib's and override wint_t. + dnl Set the variable BITSIZEOF_WINT_T accordingly. + if test $BITSIZEOF_WINT_T -lt 32; then + BITSIZEOF_WINT_T=32 + fi ]) dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. diff --git a/m4/stdint_h.m4 b/m4/stdint_h.m4 new file mode 100644 index 0000000..581de96 --- /dev/null +++ b/m4/stdint_h.m4 @@ -0,0 +1,27 @@ +# stdint_h.m4 serial 9 +dnl Copyright (C) 1997-2004, 2006, 2008-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Paul Eggert. + +# Define HAVE_STDINT_H_WITH_UINTMAX if exists, +# doesn't clash with , and declares uintmax_t. + +AC_DEFUN([gl_AC_HEADER_STDINT_H], +[ + AC_CACHE_CHECK([for stdint.h], [gl_cv_header_stdint_h], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + #include ]], + [[uintmax_t i = (uintmax_t) -1; return !i;]])], + [gl_cv_header_stdint_h=yes], + [gl_cv_header_stdint_h=no])]) + if test $gl_cv_header_stdint_h = yes; then + AC_DEFINE_UNQUOTED([HAVE_STDINT_H_WITH_UINTMAX], [1], + [Define if exists, doesn't clash with , + and declares uintmax_t. ]) + fi +]) diff --git a/m4/stdio_h.m4 b/m4/stdio_h.m4 index a8326f3..1973e8d 100644 --- a/m4/stdio_h.m4 +++ b/m4/stdio_h.m4 @@ -1,5 +1,5 @@ -# stdio_h.m4 serial 37 -dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. +# stdio_h.m4 serial 40 +dnl Copyright (C) 2007-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -74,7 +74,7 @@ AC_DEFUN([gl_STDIO_H], dnl corresponding gnulib module is not in use, and which is not dnl guaranteed by C89. gl_WARN_ON_USE_PREPARE([[#include - ]], [dprintf fpurge fseeko ftello getdelim getline popen renameat + ]], [dprintf fpurge fseeko ftello getdelim getline pclose popen renameat snprintf tmpfile vdprintf vsnprintf]) ]) @@ -91,6 +91,7 @@ AC_DEFUN([gl_STDIO_H_DEFAULTS], [ GNULIB_DPRINTF=0; AC_SUBST([GNULIB_DPRINTF]) GNULIB_FCLOSE=0; AC_SUBST([GNULIB_FCLOSE]) + GNULIB_FDOPEN=0; AC_SUBST([GNULIB_FDOPEN]) GNULIB_FFLUSH=0; AC_SUBST([GNULIB_FFLUSH]) GNULIB_FGETC=0; AC_SUBST([GNULIB_FGETC]) GNULIB_FGETS=0; AC_SUBST([GNULIB_FGETS]) @@ -115,6 +116,7 @@ AC_DEFUN([gl_STDIO_H_DEFAULTS], GNULIB_GETS=0; AC_SUBST([GNULIB_GETS]) GNULIB_OBSTACK_PRINTF=0; AC_SUBST([GNULIB_OBSTACK_PRINTF]) GNULIB_OBSTACK_PRINTF_POSIX=0; AC_SUBST([GNULIB_OBSTACK_PRINTF_POSIX]) + GNULIB_PCLOSE=0; AC_SUBST([GNULIB_PCLOSE]) GNULIB_PERROR=0; AC_SUBST([GNULIB_PERROR]) GNULIB_POPEN=0; AC_SUBST([GNULIB_POPEN]) GNULIB_PRINTF=0; AC_SUBST([GNULIB_PRINTF]) @@ -153,11 +155,14 @@ AC_DEFUN([gl_STDIO_H_DEFAULTS], HAVE_DPRINTF=1; AC_SUBST([HAVE_DPRINTF]) HAVE_FSEEKO=1; AC_SUBST([HAVE_FSEEKO]) HAVE_FTELLO=1; AC_SUBST([HAVE_FTELLO]) + HAVE_PCLOSE=1; AC_SUBST([HAVE_PCLOSE]) + HAVE_POPEN=1; AC_SUBST([HAVE_POPEN]) HAVE_RENAMEAT=1; AC_SUBST([HAVE_RENAMEAT]) HAVE_VASPRINTF=1; AC_SUBST([HAVE_VASPRINTF]) HAVE_VDPRINTF=1; AC_SUBST([HAVE_VDPRINTF]) REPLACE_DPRINTF=0; AC_SUBST([REPLACE_DPRINTF]) REPLACE_FCLOSE=0; AC_SUBST([REPLACE_FCLOSE]) + REPLACE_FDOPEN=0; AC_SUBST([REPLACE_FDOPEN]) REPLACE_FFLUSH=0; AC_SUBST([REPLACE_FFLUSH]) REPLACE_FOPEN=0; AC_SUBST([REPLACE_FOPEN]) REPLACE_FPRINTF=0; AC_SUBST([REPLACE_FPRINTF]) diff --git a/m4/stdlib_h.m4 b/m4/stdlib_h.m4 index 25fdada..ab43728 100644 --- a/m4/stdlib_h.m4 +++ b/m4/stdlib_h.m4 @@ -1,5 +1,5 @@ -# stdlib_h.m4 serial 37 -dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. +# stdlib_h.m4 serial 41 +dnl Copyright (C) 2007-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -19,10 +19,11 @@ AC_DEFUN([gl_STDLIB_H], #if HAVE_RANDOM_H # include #endif - ]], [_Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp - mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r - setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt - unsetenv]) + ]], [_Exit atoll canonicalize_file_name getloadavg getsubopt grantpt + initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps + posix_openpt ptsname ptsname_r random random_r realpath rpmatch + setenv setstate setstate_r srandom srandom_r + strtod strtoll strtoull unlockpt unsetenv]) ]) AC_DEFUN([gl_STDLIB_MODULE_INDICATOR], @@ -50,8 +51,11 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS], GNULIB_MKOSTEMPS=0; AC_SUBST([GNULIB_MKOSTEMPS]) GNULIB_MKSTEMP=0; AC_SUBST([GNULIB_MKSTEMP]) GNULIB_MKSTEMPS=0; AC_SUBST([GNULIB_MKSTEMPS]) + GNULIB_POSIX_OPENPT=0; AC_SUBST([GNULIB_POSIX_OPENPT]) GNULIB_PTSNAME=0; AC_SUBST([GNULIB_PTSNAME]) + GNULIB_PTSNAME_R=0; AC_SUBST([GNULIB_PTSNAME_R]) GNULIB_PUTENV=0; AC_SUBST([GNULIB_PUTENV]) + GNULIB_RANDOM=0; AC_SUBST([GNULIB_RANDOM]) GNULIB_RANDOM_R=0; AC_SUBST([GNULIB_RANDOM_R]) GNULIB_REALLOC_POSIX=0; AC_SUBST([GNULIB_REALLOC_POSIX]) GNULIB_REALPATH=0; AC_SUBST([GNULIB_REALPATH]) @@ -76,7 +80,10 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS], HAVE_MKOSTEMPS=1; AC_SUBST([HAVE_MKOSTEMPS]) HAVE_MKSTEMP=1; AC_SUBST([HAVE_MKSTEMP]) HAVE_MKSTEMPS=1; AC_SUBST([HAVE_MKSTEMPS]) + HAVE_POSIX_OPENPT=1; AC_SUBST([HAVE_POSIX_OPENPT]) HAVE_PTSNAME=1; AC_SUBST([HAVE_PTSNAME]) + HAVE_PTSNAME_R=1; AC_SUBST([HAVE_PTSNAME_R]) + HAVE_RANDOM=1; AC_SUBST([HAVE_RANDOM]) HAVE_RANDOM_H=1; AC_SUBST([HAVE_RANDOM_H]) HAVE_RANDOM_R=1; AC_SUBST([HAVE_RANDOM_R]) HAVE_REALPATH=1; AC_SUBST([HAVE_REALPATH]) @@ -95,7 +102,9 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS], REPLACE_MALLOC=0; AC_SUBST([REPLACE_MALLOC]) REPLACE_MBTOWC=0; AC_SUBST([REPLACE_MBTOWC]) REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP]) + REPLACE_PTSNAME_R=0; AC_SUBST([REPLACE_PTSNAME_R]) REPLACE_PUTENV=0; AC_SUBST([REPLACE_PUTENV]) + REPLACE_RANDOM_R=0; AC_SUBST([REPLACE_RANDOM_R]) REPLACE_REALLOC=0; AC_SUBST([REPLACE_REALLOC]) REPLACE_REALPATH=0; AC_SUBST([REPLACE_REALPATH]) REPLACE_SETENV=0; AC_SUBST([REPLACE_SETENV]) diff --git a/m4/string_h.m4 b/m4/string_h.m4 index 4f9f511..5677e09 100644 --- a/m4/string_h.m4 +++ b/m4/string_h.m4 @@ -1,6 +1,6 @@ # Configure a GNU-like replacement for . -# Copyright (C) 2007-2011 Free Software Foundation, Inc. +# Copyright (C) 2007-2012 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. diff --git a/m4/strstr.m4 b/m4/strstr.m4 index bf6a750..a2e3e80 100644 --- a/m4/strstr.m4 +++ b/m4/strstr.m4 @@ -1,5 +1,5 @@ # strstr.m4 serial 15 -dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2008-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/sys_socket_h.m4 b/m4/sys_socket_h.m4 new file mode 100644 index 0000000..8d4e7e1 --- /dev/null +++ b/m4/sys_socket_h.m4 @@ -0,0 +1,177 @@ +# sys_socket_h.m4 serial 22 +dnl Copyright (C) 2005-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Simon Josefsson. + +AC_DEFUN([gl_HEADER_SYS_SOCKET], +[ + AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AC_C_INLINE]) + + dnl On OSF/1, the functions recv(), send(), recvfrom(), sendto() have + dnl old-style declarations (with return type 'int' instead of 'ssize_t') + dnl unless _POSIX_PII_SOCKET is defined. + case "$host_os" in + osf*) + AC_DEFINE([_POSIX_PII_SOCKET], [1], + [Define to 1 in order to get the POSIX compatible declarations + of socket functions.]) + ;; + esac + + AC_CACHE_CHECK([whether is self-contained], + [gl_cv_header_sys_socket_h_selfcontained], + [ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[]])], + [gl_cv_header_sys_socket_h_selfcontained=yes], + [gl_cv_header_sys_socket_h_selfcontained=no]) + ]) + if test $gl_cv_header_sys_socket_h_selfcontained = yes; then + dnl If the shutdown function exists, should define + dnl SHUT_RD, SHUT_WR, SHUT_RDWR. + AC_CHECK_FUNCS([shutdown]) + if test $ac_cv_func_shutdown = yes; then + AC_CACHE_CHECK([whether defines the SHUT_* macros], + [gl_cv_header_sys_socket_h_shut], + [ + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[#include ]], + [[int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };]])], + [gl_cv_header_sys_socket_h_shut=yes], + [gl_cv_header_sys_socket_h_shut=no]) + ]) + if test $gl_cv_header_sys_socket_h_shut = no; then + SYS_SOCKET_H='sys/socket.h' + fi + fi + fi + # We need to check for ws2tcpip.h now. + gl_PREREQ_SYS_H_SOCKET + AC_CHECK_TYPES([struct sockaddr_storage, sa_family_t],,,[ + /* sys/types.h is not needed according to POSIX, but the + sys/socket.h in i386-unknown-freebsd4.10 and + powerpc-apple-darwin5.5 required it. */ +#include +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_WS2TCPIP_H +#include +#endif +]) + if test $ac_cv_type_struct_sockaddr_storage = no; then + HAVE_STRUCT_SOCKADDR_STORAGE=0 + fi + if test $ac_cv_type_sa_family_t = no; then + HAVE_SA_FAMILY_T=0 + fi + if test $ac_cv_type_struct_sockaddr_storage != no; then + AC_CHECK_MEMBERS([struct sockaddr_storage.ss_family], + [], + [HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0], + [#include + #ifdef HAVE_SYS_SOCKET_H + #include + #endif + #ifdef HAVE_WS2TCPIP_H + #include + #endif + ]) + fi + if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \ + || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then + SYS_SOCKET_H='sys/socket.h' + fi + gl_PREREQ_SYS_H_WINSOCK2 + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[ +/* Some systems require prerequisite headers. */ +#include +#include + ]], [socket connect accept bind getpeername getsockname getsockopt + listen recv send recvfrom sendto setsockopt shutdown accept4]) +]) + +AC_DEFUN([gl_PREREQ_SYS_H_SOCKET], +[ + dnl Check prerequisites of the replacement. + AC_REQUIRE([gl_CHECK_SOCKET_HEADERS]) + gl_CHECK_NEXT_HEADERS([sys/socket.h]) + if test $ac_cv_header_sys_socket_h = yes; then + HAVE_SYS_SOCKET_H=1 + HAVE_WS2TCPIP_H=0 + else + HAVE_SYS_SOCKET_H=0 + if test $ac_cv_header_ws2tcpip_h = yes; then + HAVE_WS2TCPIP_H=1 + else + HAVE_WS2TCPIP_H=0 + fi + fi + AC_SUBST([HAVE_SYS_SOCKET_H]) + AC_SUBST([HAVE_WS2TCPIP_H]) +]) + +# Common prerequisites of the replacement and of the +# replacement. +# Sets and substitutes HAVE_WINSOCK2_H. +AC_DEFUN([gl_PREREQ_SYS_H_WINSOCK2], +[ + m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])]) + m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])]) + AC_CHECK_HEADERS_ONCE([sys/socket.h]) + if test $ac_cv_header_sys_socket_h != yes; then + dnl We cannot use AC_CHECK_HEADERS_ONCE here, because that would make + dnl the check for those headers unconditional; yet cygwin reports + dnl that the headers are present but cannot be compiled (since on + dnl cygwin, all socket information should come from sys/socket.h). + AC_CHECK_HEADERS([winsock2.h]) + fi + if test "$ac_cv_header_winsock2_h" = yes; then + HAVE_WINSOCK2_H=1 + UNISTD_H_HAVE_WINSOCK2_H=1 + SYS_IOCTL_H_HAVE_WINSOCK2_H=1 + else + HAVE_WINSOCK2_H=0 + fi + AC_SUBST([HAVE_WINSOCK2_H]) +]) + +AC_DEFUN([gl_SYS_SOCKET_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_SYS_SOCKET_H_DEFAULTS], +[ + GNULIB_SOCKET=0; AC_SUBST([GNULIB_SOCKET]) + GNULIB_CONNECT=0; AC_SUBST([GNULIB_CONNECT]) + GNULIB_ACCEPT=0; AC_SUBST([GNULIB_ACCEPT]) + GNULIB_BIND=0; AC_SUBST([GNULIB_BIND]) + GNULIB_GETPEERNAME=0; AC_SUBST([GNULIB_GETPEERNAME]) + GNULIB_GETSOCKNAME=0; AC_SUBST([GNULIB_GETSOCKNAME]) + GNULIB_GETSOCKOPT=0; AC_SUBST([GNULIB_GETSOCKOPT]) + GNULIB_LISTEN=0; AC_SUBST([GNULIB_LISTEN]) + GNULIB_RECV=0; AC_SUBST([GNULIB_RECV]) + GNULIB_SEND=0; AC_SUBST([GNULIB_SEND]) + GNULIB_RECVFROM=0; AC_SUBST([GNULIB_RECVFROM]) + GNULIB_SENDTO=0; AC_SUBST([GNULIB_SENDTO]) + GNULIB_SETSOCKOPT=0; AC_SUBST([GNULIB_SETSOCKOPT]) + GNULIB_SHUTDOWN=0; AC_SUBST([GNULIB_SHUTDOWN]) + GNULIB_ACCEPT4=0; AC_SUBST([GNULIB_ACCEPT4]) + HAVE_STRUCT_SOCKADDR_STORAGE=1; AC_SUBST([HAVE_STRUCT_SOCKADDR_STORAGE]) + HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1; + AC_SUBST([HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY]) + HAVE_SA_FAMILY_T=1; AC_SUBST([HAVE_SA_FAMILY_T]) + HAVE_ACCEPT4=1; AC_SUBST([HAVE_ACCEPT4]) +]) diff --git a/m4/sys_stat_h.m4 b/m4/sys_stat_h.m4 index fc41912..a0b96bc 100644 --- a/m4/sys_stat_h.m4 +++ b/m4/sys_stat_h.m4 @@ -1,5 +1,5 @@ -# sys_stat_h.m4 serial 24 -*- Autoconf -*- -dnl Copyright (C) 2006-2011 Free Software Foundation, Inc. +# sys_stat_h.m4 serial 26 -*- Autoconf -*- +dnl Copyright (C) 2006-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -19,6 +19,9 @@ AC_DEFUN([gl_HEADER_SYS_STAT_H], gl_CHECK_NEXT_HEADERS([sys/stat.h]) + dnl Ensure the type mode_t gets defined. + AC_REQUIRE([AC_TYPE_MODE_T]) + dnl Define types that are supposed to be defined in or dnl . AC_CHECK_TYPE([nlink_t], [], @@ -30,7 +33,7 @@ AC_DEFUN([gl_HEADER_SYS_STAT_H], dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[#include - ]], [fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat + ]], [fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat]) ]) # gl_HEADER_SYS_STAT_H @@ -47,6 +50,7 @@ AC_DEFUN([gl_SYS_STAT_H_DEFAULTS], [ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl for REPLACE_FCHDIR GNULIB_FCHMODAT=0; AC_SUBST([GNULIB_FCHMODAT]) + GNULIB_FSTAT=0; AC_SUBST([GNULIB_FSTAT]) GNULIB_FSTATAT=0; AC_SUBST([GNULIB_FSTATAT]) GNULIB_FUTIMENS=0; AC_SUBST([GNULIB_FUTIMENS]) GNULIB_LCHMOD=0; AC_SUBST([GNULIB_LCHMOD]) diff --git a/m4/sys_time_h.m4 b/m4/sys_time_h.m4 index 3a3adc8..26eaf8e 100644 --- a/m4/sys_time_h.m4 +++ b/m4/sys_time_h.m4 @@ -1,7 +1,7 @@ # Configure a replacement for . -# serial 6 +# serial 8 -# Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. +# Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -27,6 +27,9 @@ AC_DEFUN([gl_HEADER_SYS_TIME_H_BODY], HAVE_SYS_TIME_H=0 fi + dnl On native Windows with MSVC, 'struct timeval' is defined in + dnl only. So include that header in the list. + gl_PREREQ_SYS_H_WINSOCK2 AC_CACHE_CHECK([for struct timeval], [gl_cv_sys_struct_timeval], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( @@ -34,12 +37,42 @@ AC_DEFUN([gl_HEADER_SYS_TIME_H_BODY], #include #endif #include + #if HAVE_WINSOCK2_H + # include + #endif ]], [[static struct timeval x; x.tv_sec = x.tv_usec;]])], [gl_cv_sys_struct_timeval=yes], - [gl_cv_sys_struct_timeval=no])]) + [gl_cv_sys_struct_timeval=no]) + ]) if test $gl_cv_sys_struct_timeval != yes; then HAVE_STRUCT_TIMEVAL=0 + else + dnl On native Windows with a 64-bit 'time_t', 'struct timeval' is defined + dnl (in and for mingw64, in only + dnl for MSVC) with a tv_sec field of type 'long' (32-bit!), which is + dnl smaller than the 'time_t' type mandated by POSIX. + AC_CACHE_CHECK([for correct struct timeval.tv_sec member], + [gl_cv_sys_struct_timeval_tv_sec], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#if HAVE_SYS_TIME_H + #include + #endif + #include + #if HAVE_WINSOCK2_H + # include + #endif + ]], + [[static struct timeval x; + typedef int verify_tv_sec_type[sizeof (x.tv_sec) == sizeof (time_t) ? 1 : -1]; + ]])], + [gl_cv_sys_struct_timeval_tv_sec=yes], + [gl_cv_sys_struct_timeval_tv_sec=no]) + ]) + if test $gl_cv_sys_struct_timeval_tv_sec != yes; then + REPLACE_STRUCT_TIMEVAL=1 + fi fi dnl Check for declarations of anything we want to poison if the @@ -69,4 +102,5 @@ AC_DEFUN([gl_HEADER_SYS_TIME_H_DEFAULTS], HAVE_STRUCT_TIMEVAL=1; AC_SUBST([HAVE_STRUCT_TIMEVAL]) HAVE_SYS_TIME_H=1; AC_SUBST([HAVE_SYS_TIME_H]) REPLACE_GETTIMEOFDAY=0; AC_SUBST([REPLACE_GETTIMEOFDAY]) + REPLACE_STRUCT_TIMEVAL=0; AC_SUBST([REPLACE_STRUCT_TIMEVAL]) ]) diff --git a/m4/threadlib.m4 b/m4/threadlib.m4 new file mode 100644 index 0000000..9cedb67 --- /dev/null +++ b/m4/threadlib.m4 @@ -0,0 +1,371 @@ +# threadlib.m4 serial 9 (gettext-0.18.2) +dnl Copyright (C) 2005-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl gl_THREADLIB +dnl ------------ +dnl Tests for a multithreading library to be used. +dnl If the configure.ac contains a definition of the gl_THREADLIB_DEFAULT_NO +dnl (it must be placed before the invocation of gl_THREADLIB_EARLY!), then the +dnl default is 'no', otherwise it is system dependent. In both cases, the user +dnl can change the choice through the options --enable-threads=choice or +dnl --disable-threads. +dnl Defines at most one of the macros USE_POSIX_THREADS, USE_SOLARIS_THREADS, +dnl USE_PTH_THREADS, USE_WINDOWS_THREADS +dnl Sets the variables LIBTHREAD and LTLIBTHREAD to the linker options for use +dnl in a Makefile (LIBTHREAD for use without libtool, LTLIBTHREAD for use with +dnl libtool). +dnl Sets the variables LIBMULTITHREAD and LTLIBMULTITHREAD similarly, for +dnl programs that really need multithread functionality. The difference +dnl between LIBTHREAD and LIBMULTITHREAD is that on platforms supporting weak +dnl symbols, typically LIBTHREAD="" whereas LIBMULTITHREAD="-lpthread". +dnl Adds to CPPFLAGS the flag -D_REENTRANT or -D_THREAD_SAFE if needed for +dnl multithread-safe programs. + +AC_DEFUN([gl_THREADLIB_EARLY], +[ + AC_REQUIRE([gl_THREADLIB_EARLY_BODY]) +]) + +dnl The guts of gl_THREADLIB_EARLY. Needs to be expanded only once. + +AC_DEFUN([gl_THREADLIB_EARLY_BODY], +[ + dnl Ordering constraints: This macro modifies CPPFLAGS in a way that + dnl influences the result of the autoconf tests that test for *_unlocked + dnl declarations, on AIX 5 at least. Therefore it must come early. + AC_BEFORE([$0], [gl_FUNC_GLIBC_UNLOCKED_IO])dnl + AC_BEFORE([$0], [gl_ARGP])dnl + + AC_REQUIRE([AC_CANONICAL_HOST]) + dnl _GNU_SOURCE is needed for pthread_rwlock_t on glibc systems. + dnl AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60 and obsoletes + dnl AC_GNU_SOURCE. + m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], + [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])], + [AC_REQUIRE([AC_GNU_SOURCE])]) + dnl Check for multithreading. + m4_ifdef([gl_THREADLIB_DEFAULT_NO], + [m4_divert_text([DEFAULTS], [gl_use_threads_default=no])], + [m4_divert_text([DEFAULTS], [gl_use_threads_default=])]) + AC_ARG_ENABLE([threads], +AC_HELP_STRING([--enable-threads={posix|solaris|pth|windows}], [specify multithreading API])m4_ifdef([gl_THREADLIB_DEFAULT_NO], [], [ +AC_HELP_STRING([--disable-threads], [build without multithread safety])]), + [gl_use_threads=$enableval], + [if test -n "$gl_use_threads_default"; then + gl_use_threads="$gl_use_threads_default" + else +changequote(,)dnl + case "$host_os" in + dnl Disable multithreading by default on OSF/1, because it interferes + dnl with fork()/exec(): When msgexec is linked with -lpthread, its + dnl child process gets an endless segmentation fault inside execvp(). + dnl Disable multithreading by default on Cygwin 1.5.x, because it has + dnl bugs that lead to endless loops or crashes. See + dnl . + osf*) gl_use_threads=no ;; + cygwin*) + case `uname -r` in + 1.[0-5].*) gl_use_threads=no ;; + *) gl_use_threads=yes ;; + esac + ;; + *) gl_use_threads=yes ;; + esac +changequote([,])dnl + fi + ]) + if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then + # For using : + case "$host_os" in + osf*) + # On OSF/1, the compiler needs the flag -D_REENTRANT so that it + # groks . cc also understands the flag -pthread, but + # we don't use it because 1. gcc-2.95 doesn't understand -pthread, + # 2. putting a flag into CPPFLAGS that has an effect on the linker + # causes the AC_LINK_IFELSE test below to succeed unexpectedly, + # leading to wrong values of LIBTHREAD and LTLIBTHREAD. + CPPFLAGS="$CPPFLAGS -D_REENTRANT" + ;; + esac + # Some systems optimize for single-threaded programs by default, and + # need special flags to disable these optimizations. For example, the + # definition of 'errno' in . + case "$host_os" in + aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; + solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; + esac + fi +]) + +dnl The guts of gl_THREADLIB. Needs to be expanded only once. + +AC_DEFUN([gl_THREADLIB_BODY], +[ + AC_REQUIRE([gl_THREADLIB_EARLY_BODY]) + gl_threads_api=none + LIBTHREAD= + LTLIBTHREAD= + LIBMULTITHREAD= + LTLIBMULTITHREAD= + if test "$gl_use_threads" != no; then + dnl Check whether the compiler and linker support weak declarations. + AC_CACHE_CHECK([whether imported symbols can be declared weak], + [gl_cv_have_weak], + [gl_cv_have_weak=no + dnl First, test whether the compiler accepts it syntactically. + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[extern void xyzzy (); +#pragma weak xyzzy]], + [[xyzzy();]])], + [gl_cv_have_weak=maybe]) + if test $gl_cv_have_weak = maybe; then + dnl Second, test whether it actually works. On Cygwin 1.7.2, with + dnl gcc 4.3, symbols declared weak always evaluate to the address 0. + AC_RUN_IFELSE( + [AC_LANG_SOURCE([[ +#include +#pragma weak fputs +int main () +{ + return (fputs == NULL); +}]])], + [gl_cv_have_weak=yes], + [gl_cv_have_weak=no], + [dnl When cross-compiling, assume that only ELF platforms support + dnl weak symbols. + AC_EGREP_CPP([Extensible Linking Format], + [#ifdef __ELF__ + Extensible Linking Format + #endif + ], + [gl_cv_have_weak="guessing yes"], + [gl_cv_have_weak="guessing no"]) + ]) + fi + ]) + if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then + # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that + # it groks . It's added above, in gl_THREADLIB_EARLY_BODY. + AC_CHECK_HEADER([pthread.h], + [gl_have_pthread_h=yes], [gl_have_pthread_h=no]) + if test "$gl_have_pthread_h" = yes; then + # Other possible tests: + # -lpthreads (FSU threads, PCthreads) + # -lgthreads + gl_have_pthread= + # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist + # in libc. IRIX 6.5 has the first one in both libc and libpthread, but + # the second one only in libpthread, and lock.c needs it. + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[pthread_mutex_lock((pthread_mutex_t*)0); + pthread_mutexattr_init((pthread_mutexattr_t*)0);]])], + [gl_have_pthread=yes]) + # Test for libpthread by looking for pthread_kill. (Not pthread_self, + # since it is defined as a macro on OSF/1.) + if test -n "$gl_have_pthread"; then + # The program links fine without libpthread. But it may actually + # need to link with libpthread in order to create multiple threads. + AC_CHECK_LIB([pthread], [pthread_kill], + [LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread + # On Solaris and HP-UX, most pthread functions exist also in libc. + # Therefore pthread_in_use() needs to actually try to create a + # thread: pthread_create from libc will fail, whereas + # pthread_create will actually create a thread. + case "$host_os" in + solaris* | hpux*) + AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], [1], + [Define if the pthread_in_use() detection is hard.]) + esac + ]) + else + # Some library is needed. Try libpthread and libc_r. + AC_CHECK_LIB([pthread], [pthread_kill], + [gl_have_pthread=yes + LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread + LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread]) + if test -z "$gl_have_pthread"; then + # For FreeBSD 4. + AC_CHECK_LIB([c_r], [pthread_kill], + [gl_have_pthread=yes + LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r + LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r]) + fi + fi + if test -n "$gl_have_pthread"; then + gl_threads_api=posix + AC_DEFINE([USE_POSIX_THREADS], [1], + [Define if the POSIX multithreading library can be used.]) + if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then + if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then + AC_DEFINE([USE_POSIX_THREADS_WEAK], [1], + [Define if references to the POSIX multithreading library should be made weak.]) + LIBTHREAD= + LTLIBTHREAD= + fi + fi + fi + fi + fi + if test -z "$gl_have_pthread"; then + if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then + gl_have_solaristhread= + gl_save_LIBS="$LIBS" + LIBS="$LIBS -lthread" + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#include + ]], + [[thr_self();]])], + [gl_have_solaristhread=yes]) + LIBS="$gl_save_LIBS" + if test -n "$gl_have_solaristhread"; then + gl_threads_api=solaris + LIBTHREAD=-lthread + LTLIBTHREAD=-lthread + LIBMULTITHREAD="$LIBTHREAD" + LTLIBMULTITHREAD="$LTLIBTHREAD" + AC_DEFINE([USE_SOLARIS_THREADS], [1], + [Define if the old Solaris multithreading library can be used.]) + if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then + AC_DEFINE([USE_SOLARIS_THREADS_WEAK], [1], + [Define if references to the old Solaris multithreading library should be made weak.]) + LIBTHREAD= + LTLIBTHREAD= + fi + fi + fi + fi + if test "$gl_use_threads" = pth; then + gl_save_CPPFLAGS="$CPPFLAGS" + AC_LIB_LINKFLAGS([pth]) + gl_have_pth= + gl_save_LIBS="$LIBS" + LIBS="$LIBS $LIBPTH" + AC_LINK_IFELSE( + [AC_LANG_PROGRAM([[#include ]], [[pth_self();]])], + [gl_have_pth=yes]) + LIBS="$gl_save_LIBS" + if test -n "$gl_have_pth"; then + gl_threads_api=pth + LIBTHREAD="$LIBPTH" + LTLIBTHREAD="$LTLIBPTH" + LIBMULTITHREAD="$LIBTHREAD" + LTLIBMULTITHREAD="$LTLIBTHREAD" + AC_DEFINE([USE_PTH_THREADS], [1], + [Define if the GNU Pth multithreading library can be used.]) + if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then + if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then + AC_DEFINE([USE_PTH_THREADS_WEAK], [1], + [Define if references to the GNU Pth multithreading library should be made weak.]) + LIBTHREAD= + LTLIBTHREAD= + fi + fi + else + CPPFLAGS="$gl_save_CPPFLAGS" + fi + fi + if test -z "$gl_have_pthread"; then + case "$gl_use_threads" in + yes | windows | win32) # The 'win32' is for backward compatibility. + if { case "$host_os" in + mingw*) true;; + *) false;; + esac + }; then + gl_threads_api=windows + AC_DEFINE([USE_WINDOWS_THREADS], [1], + [Define if the native Windows multithreading API can be used.]) + fi + ;; + esac + fi + fi + AC_MSG_CHECKING([for multithread API to use]) + AC_MSG_RESULT([$gl_threads_api]) + AC_SUBST([LIBTHREAD]) + AC_SUBST([LTLIBTHREAD]) + AC_SUBST([LIBMULTITHREAD]) + AC_SUBST([LTLIBMULTITHREAD]) +]) + +AC_DEFUN([gl_THREADLIB], +[ + AC_REQUIRE([gl_THREADLIB_EARLY]) + AC_REQUIRE([gl_THREADLIB_BODY]) +]) + + +dnl gl_DISABLE_THREADS +dnl ------------------ +dnl Sets the gl_THREADLIB default so that threads are not used by default. +dnl The user can still override it at installation time, by using the +dnl configure option '--enable-threads'. + +AC_DEFUN([gl_DISABLE_THREADS], [ + m4_divert_text([INIT_PREPARE], [gl_use_threads_default=no]) +]) + + +dnl Survey of platforms: +dnl +dnl Platform Available Compiler Supports test-lock +dnl flavours option weak result +dnl --------------- --------- --------- -------- --------- +dnl Linux 2.4/glibc posix -lpthread Y OK +dnl +dnl GNU Hurd/glibc posix +dnl +dnl FreeBSD 5.3 posix -lc_r Y +dnl posix -lkse ? Y +dnl posix -lpthread ? Y +dnl posix -lthr Y +dnl +dnl FreeBSD 5.2 posix -lc_r Y +dnl posix -lkse Y +dnl posix -lthr Y +dnl +dnl FreeBSD 4.0,4.10 posix -lc_r Y OK +dnl +dnl NetBSD 1.6 -- +dnl +dnl OpenBSD 3.4 posix -lpthread Y OK +dnl +dnl MacOS X 10.[123] posix -lpthread Y OK +dnl +dnl Solaris 7,8,9 posix -lpthread Y Sol 7,8: 0.0; Sol 9: OK +dnl solaris -lthread Y Sol 7,8: 0.0; Sol 9: OK +dnl +dnl HP-UX 11 posix -lpthread N (cc) OK +dnl Y (gcc) +dnl +dnl IRIX 6.5 posix -lpthread Y 0.5 +dnl +dnl AIX 4.3,5.1 posix -lpthread N AIX 4: 0.5; AIX 5: OK +dnl +dnl OSF/1 4.0,5.1 posix -pthread (cc) N OK +dnl -lpthread (gcc) Y +dnl +dnl Cygwin posix -lpthread Y OK +dnl +dnl Any of the above pth -lpth 0.0 +dnl +dnl Mingw windows N OK +dnl +dnl BeOS 5 -- +dnl +dnl The test-lock result shows what happens if in test-lock.c EXPLICIT_YIELD is +dnl turned off: +dnl OK if all three tests terminate OK, +dnl 0.5 if the first test terminates OK but the second one loops endlessly, +dnl 0.0 if the first test already loops endlessly. diff --git a/m4/time_h.m4 b/m4/time_h.m4 index 615da1c..b88da76 100644 --- a/m4/time_h.m4 +++ b/m4/time_h.m4 @@ -1,8 +1,8 @@ # Configure a more-standard replacement for . -# Copyright (C) 2000-2001, 2003-2007, 2009-2011 Free Software Foundation, Inc. +# Copyright (C) 2000-2001, 2003-2007, 2009-2012 Free Software Foundation, Inc. -# serial 4 +# serial 6 # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -25,7 +25,7 @@ AC_DEFUN([gl_HEADER_TIME_H_BODY], AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC]) ]) -dnl Define HAVE_STRUCT_TIMESPEC if `struct timespec' is declared +dnl Define HAVE_STRUCT_TIMESPEC if 'struct timespec' is declared dnl in time.h, sys/time.h, or pthread.h. AC_DEFUN([gl_CHECK_TYPE_STRUCT_TIMESPEC], diff --git a/m4/uintmax_t.m4 b/m4/uintmax_t.m4 new file mode 100644 index 0000000..983b675 --- /dev/null +++ b/m4/uintmax_t.m4 @@ -0,0 +1,30 @@ +# uintmax_t.m4 serial 12 +dnl Copyright (C) 1997-2004, 2007-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Paul Eggert. + +AC_PREREQ([2.13]) + +# Define uintmax_t to 'unsigned long' or 'unsigned long long' +# if it is not already defined in or . + +AC_DEFUN([gl_AC_TYPE_UINTMAX_T], +[ + AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) + AC_REQUIRE([gl_AC_HEADER_STDINT_H]) + if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then + AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) + test $ac_cv_type_unsigned_long_long_int = yes \ + && ac_type='unsigned long long' \ + || ac_type='unsigned long' + AC_DEFINE_UNQUOTED([uintmax_t], [$ac_type], + [Define to unsigned long or unsigned long long + if and don't define.]) + else + AC_DEFINE([HAVE_UINTMAX_T], [1], + [Define if you have the 'uintmax_t' type in or .]) + fi +]) diff --git a/m4/unistd_h.m4 b/m4/unistd_h.m4 index fb6fe07..7595534 100644 --- a/m4/unistd_h.m4 +++ b/m4/unistd_h.m4 @@ -1,5 +1,5 @@ -# unistd_h.m4 serial 56 -dnl Copyright (C) 2006-2011 Free Software Foundation, Inc. +# unistd_h.m4 serial 63 +dnl Copyright (C) 2006-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -21,9 +21,15 @@ AC_DEFUN([gl_UNISTD_H], fi AC_SUBST([HAVE_UNISTD_H]) + dnl Ensure the type pid_t gets defined. + AC_REQUIRE([AC_TYPE_PID_T]) + dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. - gl_WARN_ON_USE_PREPARE([[#include + gl_WARN_ON_USE_PREPARE([[ +#if HAVE_UNISTD_H +# include +#endif /* Some systems declare various items in the wrong headers. */ #if !(defined __GLIBC__ && !defined __UCLIBC__) # include @@ -33,12 +39,13 @@ AC_DEFUN([gl_UNISTD_H], # include # endif #endif - ]], [chown dup2 dup3 environ euidaccess faccessat fchdir fchownat - fsync ftruncate getcwd getdomainname getdtablesize getgroups - gethostname getlogin getlogin_r getpagesize getusershell setusershell - endusershell group_member lchown link linkat lseek pipe pipe2 pread pwrite - readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat - usleep]) + ]], [chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat + fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups + gethostname getlogin getlogin_r getpagesize + getusershell setusershell endusershell + group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite + readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r + unlink unlinkat usleep]) ]) AC_DEFUN([gl_UNISTD_MODULE_INDICATOR], @@ -52,8 +59,10 @@ AC_DEFUN([gl_UNISTD_MODULE_INDICATOR], AC_DEFUN([gl_UNISTD_H_DEFAULTS], [ + GNULIB_CHDIR=0; AC_SUBST([GNULIB_CHDIR]) GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN]) GNULIB_CLOSE=0; AC_SUBST([GNULIB_CLOSE]) + GNULIB_DUP=0; AC_SUBST([GNULIB_DUP]) GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2]) GNULIB_DUP3=0; AC_SUBST([GNULIB_DUP3]) GNULIB_ENVIRON=0; AC_SUBST([GNULIB_ENVIRON]) @@ -61,6 +70,7 @@ AC_DEFUN([gl_UNISTD_H_DEFAULTS], GNULIB_FACCESSAT=0; AC_SUBST([GNULIB_FACCESSAT]) GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR]) GNULIB_FCHOWNAT=0; AC_SUBST([GNULIB_FCHOWNAT]) + GNULIB_FDATASYNC=0; AC_SUBST([GNULIB_FDATASYNC]) GNULIB_FSYNC=0; AC_SUBST([GNULIB_FSYNC]) GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE]) GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD]) @@ -73,6 +83,7 @@ AC_DEFUN([gl_UNISTD_H_DEFAULTS], GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE]) GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL]) GNULIB_GROUP_MEMBER=0; AC_SUBST([GNULIB_GROUP_MEMBER]) + GNULIB_ISATTY=0; AC_SUBST([GNULIB_ISATTY]) GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN]) GNULIB_LINK=0; AC_SUBST([GNULIB_LINK]) GNULIB_LINKAT=0; AC_SUBST([GNULIB_LINKAT]) @@ -85,11 +96,11 @@ AC_DEFUN([gl_UNISTD_H_DEFAULTS], GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK]) GNULIB_READLINKAT=0; AC_SUBST([GNULIB_READLINKAT]) GNULIB_RMDIR=0; AC_SUBST([GNULIB_RMDIR]) + GNULIB_SETHOSTNAME=0; AC_SUBST([GNULIB_SETHOSTNAME]) GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP]) GNULIB_SYMLINK=0; AC_SUBST([GNULIB_SYMLINK]) GNULIB_SYMLINKAT=0; AC_SUBST([GNULIB_SYMLINKAT]) GNULIB_TTYNAME_R=0; AC_SUBST([GNULIB_TTYNAME_R]) - GNULIB_UNISTD_H_GETOPT=0; AC_SUBST([GNULIB_UNISTD_H_GETOPT]) GNULIB_UNISTD_H_NONBLOCKING=0; AC_SUBST([GNULIB_UNISTD_H_NONBLOCKING]) GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE]) GNULIB_UNLINK=0; AC_SUBST([GNULIB_UNLINK]) @@ -104,6 +115,7 @@ AC_DEFUN([gl_UNISTD_H_DEFAULTS], HAVE_FACCESSAT=1; AC_SUBST([HAVE_FACCESSAT]) HAVE_FCHDIR=1; AC_SUBST([HAVE_FCHDIR]) HAVE_FCHOWNAT=1; AC_SUBST([HAVE_FCHOWNAT]) + HAVE_FDATASYNC=1; AC_SUBST([HAVE_FDATASYNC]) HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC]) HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE]) HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE]) @@ -121,6 +133,7 @@ AC_DEFUN([gl_UNISTD_H_DEFAULTS], HAVE_PWRITE=1; AC_SUBST([HAVE_PWRITE]) HAVE_READLINK=1; AC_SUBST([HAVE_READLINK]) HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT]) + HAVE_SETHOSTNAME=1; AC_SUBST([HAVE_SETHOSTNAME]) HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP]) HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK]) HAVE_SYMLINKAT=1; AC_SUBST([HAVE_SYMLINKAT]) @@ -128,10 +141,12 @@ AC_DEFUN([gl_UNISTD_H_DEFAULTS], HAVE_USLEEP=1; AC_SUBST([HAVE_USLEEP]) HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON]) HAVE_DECL_FCHDIR=1; AC_SUBST([HAVE_DECL_FCHDIR]) + HAVE_DECL_FDATASYNC=1; AC_SUBST([HAVE_DECL_FDATASYNC]) HAVE_DECL_GETDOMAINNAME=1; AC_SUBST([HAVE_DECL_GETDOMAINNAME]) HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R]) HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE]) HAVE_DECL_GETUSERSHELL=1; AC_SUBST([HAVE_DECL_GETUSERSHELL]) + HAVE_DECL_SETHOSTNAME=1; AC_SUBST([HAVE_DECL_SETHOSTNAME]) HAVE_DECL_TTYNAME_R=1; AC_SUBST([HAVE_DECL_TTYNAME_R]) HAVE_OS_H=0; AC_SUBST([HAVE_OS_H]) HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H]) @@ -145,6 +160,7 @@ AC_DEFUN([gl_UNISTD_H_DEFAULTS], REPLACE_GETLOGIN_R=0; AC_SUBST([REPLACE_GETLOGIN_R]) REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS]) REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE]) + REPLACE_ISATTY=0; AC_SUBST([REPLACE_ISATTY]) REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN]) REPLACE_LINK=0; AC_SUBST([REPLACE_LINK]) REPLACE_LINKAT=0; AC_SUBST([REPLACE_LINKAT]) diff --git a/m4/visibility.m4 b/m4/visibility.m4 new file mode 100644 index 0000000..7b24d39 --- /dev/null +++ b/m4/visibility.m4 @@ -0,0 +1,77 @@ +# visibility.m4 serial 4 (gettext-0.18.2) +dnl Copyright (C) 2005, 2008, 2010-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl Tests whether the compiler supports the command-line option +dnl -fvisibility=hidden and the function and variable attributes +dnl __attribute__((__visibility__("hidden"))) and +dnl __attribute__((__visibility__("default"))). +dnl Does *not* test for __visibility__("protected") - which has tricky +dnl semantics (see the 'vismain' test in glibc) and does not exist e.g. on +dnl MacOS X. +dnl Does *not* test for __visibility__("internal") - which has processor +dnl dependent semantics. +dnl Does *not* test for #pragma GCC visibility push(hidden) - which is +dnl "really only recommended for legacy code". +dnl Set the variable CFLAG_VISIBILITY. +dnl Defines and sets the variable HAVE_VISIBILITY. + +AC_DEFUN([gl_VISIBILITY], +[ + AC_REQUIRE([AC_PROG_CC]) + CFLAG_VISIBILITY= + HAVE_VISIBILITY=0 + if test -n "$GCC"; then + dnl First, check whether -Werror can be added to the command line, or + dnl whether it leads to an error because of some other option that the + dnl user has put into $CC $CFLAGS $CPPFLAGS. + AC_MSG_CHECKING([whether the -Werror option is usable]) + AC_CACHE_VAL([gl_cv_cc_vis_werror], [ + gl_save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -Werror" + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[]], [[]])], + [gl_cv_cc_vis_werror=yes], + [gl_cv_cc_vis_werror=no]) + CFLAGS="$gl_save_CFLAGS"]) + AC_MSG_RESULT([$gl_cv_cc_vis_werror]) + dnl Now check whether visibility declarations are supported. + AC_MSG_CHECKING([for simple visibility declarations]) + AC_CACHE_VAL([gl_cv_cc_visibility], [ + gl_save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -fvisibility=hidden" + dnl We use the option -Werror and a function dummyfunc, because on some + dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning + dnl "visibility attribute not supported in this configuration; ignored" + dnl at the first function definition in every compilation unit, and we + dnl don't want to use the option in this case. + if test $gl_cv_cc_vis_werror = yes; then + CFLAGS="$CFLAGS -Werror" + fi + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[extern __attribute__((__visibility__("hidden"))) int hiddenvar; + extern __attribute__((__visibility__("default"))) int exportedvar; + extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); + extern __attribute__((__visibility__("default"))) int exportedfunc (void); + void dummyfunc (void) {} + ]], + [[]])], + [gl_cv_cc_visibility=yes], + [gl_cv_cc_visibility=no]) + CFLAGS="$gl_save_CFLAGS"]) + AC_MSG_RESULT([$gl_cv_cc_visibility]) + if test $gl_cv_cc_visibility = yes; then + CFLAG_VISIBILITY="-fvisibility=hidden" + HAVE_VISIBILITY=1 + fi + fi + AC_SUBST([CFLAG_VISIBILITY]) + AC_SUBST([HAVE_VISIBILITY]) + AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY], + [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.]) +]) diff --git a/m4/warn-on-use.m4 b/m4/warn-on-use.m4 index f09deef..03b113c 100644 --- a/m4/warn-on-use.m4 +++ b/m4/warn-on-use.m4 @@ -1,5 +1,5 @@ # warn-on-use.m4 serial 4 -dnl Copyright (C) 2010-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2010-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/wchar_h.m4 b/m4/wchar_h.m4 index 977491f..c7a8b2d 100644 --- a/m4/wchar_h.m4 +++ b/m4/wchar_h.m4 @@ -1,6 +1,6 @@ dnl A placeholder for ISO C99 , for platforms that have issues. -dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2007-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/wchar_t.m4 b/m4/wchar_t.m4 index d2c03c4..534735d 100644 --- a/m4/wchar_t.m4 +++ b/m4/wchar_t.m4 @@ -1,5 +1,5 @@ # wchar_t.m4 serial 4 (gettext-0.18.2) -dnl Copyright (C) 2002-2003, 2008-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2003, 2008-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/wcrtomb.m4 b/m4/wcrtomb.m4 index be5e815..00d7302 100644 --- a/m4/wcrtomb.m4 +++ b/m4/wcrtomb.m4 @@ -1,5 +1,5 @@ # wcrtomb.m4 serial 11 -dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2008-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/wcsdup.m4 b/m4/wcsdup.m4 index d4bfdd4..d8ff40a 100644 --- a/m4/wcsdup.m4 +++ b/m4/wcsdup.m4 @@ -1,5 +1,5 @@ # wcsdup.m4 serial 2 -dnl Copyright (C) 2011 Free Software Foundation, Inc. +dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/wctob.m4 b/m4/wctob.m4 index 8175d00..786c881 100644 --- a/m4/wctob.m4 +++ b/m4/wctob.m4 @@ -1,5 +1,5 @@ -# wctob.m4 serial 9 -dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. +# wctob.m4 serial 10 +dnl Copyright (C) 2008-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -104,7 +104,7 @@ int main () if test $REPLACE_WCTOB = 0; then dnl IRIX 6.5 has the wctob() function but does not declare it. - AC_CHECK_DECLS([wctob], [], [], [ + AC_CHECK_DECLS([wctob], [], [], [[ /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be included @@ -113,7 +113,7 @@ int main () #include #include #include -]) +]]) if test $ac_cv_have_decl_wctob != yes; then HAVE_DECL_WCTOB=0 fi diff --git a/m4/wctomb.m4 b/m4/wctomb.m4 index ee16a7e..88fd6be 100644 --- a/m4/wctomb.m4 +++ b/m4/wctomb.m4 @@ -1,5 +1,5 @@ # wctomb.m4 serial 2 -dnl Copyright (C) 2011 Free Software Foundation, Inc. +dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/wctype_h.m4 b/m4/wctype_h.m4 index f7c46df..a109383 100644 --- a/m4/wctype_h.m4 +++ b/m4/wctype_h.m4 @@ -2,7 +2,7 @@ dnl A placeholder for ISO C99 , for platforms that lack it. -dnl Copyright (C) 2006-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2006-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/wint_t.m4 b/m4/wint_t.m4 index da1ce3d..3260cce 100644 --- a/m4/wint_t.m4 +++ b/m4/wint_t.m4 @@ -1,5 +1,5 @@ # wint_t.m4 serial 5 (gettext-0.18.2) -dnl Copyright (C) 2003, 2007-2011 Free Software Foundation, Inc. +dnl Copyright (C) 2003, 2007-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff --git a/m4/wmemcpy.m4 b/m4/wmemcpy.m4 index 917c603..071076f 100644 --- a/m4/wmemcpy.m4 +++ b/m4/wmemcpy.m4 @@ -1,5 +1,5 @@ -# wmemcpy.m4 serial 2 -dnl Copyright (C) 2011 Free Software Foundation, Inc. +# wmemcpy.m4 serial 3 +dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,8 +7,26 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_WMEMCPY], [ AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) - AC_CHECK_FUNCS_ONCE([wmemcpy]) - if test $ac_cv_func_wmemcpy = no; then + dnl We cannot use AC_CHECK_FUNCS here, because the MSVC 9 header files + dnl provide this function as an inline function definition. + AC_CACHE_CHECK([for wmemcpy], [gl_cv_func_wmemcpy], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[ +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include +]], + [[return ! wmemcpy ((wchar_t *) 0, (const wchar_t *) 0, 0);]]) + ], + [gl_cv_func_wmemcpy=yes], + [gl_cv_func_wmemcpy=no]) + ]) + if test $gl_cv_func_wmemcpy = no; then HAVE_WMEMCPY=0 fi ]) diff --git a/m4/xsize.m4 b/m4/xsize.m4 new file mode 100644 index 0000000..b3b7fee --- /dev/null +++ b/m4/xsize.m4 @@ -0,0 +1,13 @@ +# xsize.m4 serial 4 +dnl Copyright (C) 2003-2004, 2008-2012 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_XSIZE], +[ + dnl Prerequisites of lib/xsize.h. + AC_REQUIRE([gl_SIZE_MAX]) + AC_REQUIRE([AC_C_INLINE]) + AC_CHECK_HEADERS([stdint.h]) +]) diff --git a/src/Makefile.in b/src/Makefile.in index 16df814..1561cf8 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -1,9 +1,9 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.11.3 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -18,7 +18,7 @@ ######################################################################### # # # Star Traders: A Game of Interstellar Trading # -# Copyright (C) 1990-2011, John Zaitseff # +# Copyright (C) 1990-2012, John Zaitseff # # # ######################################################################### @@ -90,17 +90,19 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \ $(top_srcdir)/m4/mmap-anon.m4 $(top_srcdir)/m4/multiarch.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/nocrash.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/stdbool.m4 $(top_srcdir)/m4/stddef_h.m4 \ - $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdio_h.m4 \ - $(top_srcdir)/m4/stdlib_h.m4 $(top_srcdir)/m4/string_h.m4 \ - $(top_srcdir)/m4/strstr.m4 $(top_srcdir)/m4/sys_stat_h.m4 \ - $(top_srcdir)/m4/sys_time_h.m4 $(top_srcdir)/m4/time_h.m4 \ - $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/warn-on-use.m4 \ - $(top_srcdir)/m4/wchar_h.m4 $(top_srcdir)/m4/wchar_t.m4 \ - $(top_srcdir)/m4/wcrtomb.m4 $(top_srcdir)/m4/wcsdup.m4 \ - $(top_srcdir)/m4/wctob.m4 $(top_srcdir)/m4/wctomb.m4 \ - $(top_srcdir)/m4/wctype_h.m4 $(top_srcdir)/m4/wint_t.m4 \ - $(top_srcdir)/m4/wmemcpy.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/stdbool.m4 \ + $(top_srcdir)/m4/stddef_h.m4 $(top_srcdir)/m4/stdint.m4 \ + $(top_srcdir)/m4/stdio_h.m4 $(top_srcdir)/m4/stdlib_h.m4 \ + $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strstr.m4 \ + $(top_srcdir)/m4/sys_socket_h.m4 \ + $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \ + $(top_srcdir)/m4/time_h.m4 $(top_srcdir)/m4/unistd_h.m4 \ + $(top_srcdir)/m4/warn-on-use.m4 $(top_srcdir)/m4/wchar_h.m4 \ + $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wcrtomb.m4 \ + $(top_srcdir)/m4/wcsdup.m4 $(top_srcdir)/m4/wctob.m4 \ + $(top_srcdir)/m4/wctomb.m4 $(top_srcdir)/m4/wctype_h.m4 \ + $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/wmemcpy.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d @@ -167,9 +169,11 @@ GNULIB_ATOLL = @GNULIB_ATOLL@ GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ +GNULIB_CHDIR = @GNULIB_CHDIR@ GNULIB_CHOWN = @GNULIB_CHOWN@ GNULIB_CLOSE = @GNULIB_CLOSE@ GNULIB_DPRINTF = @GNULIB_DPRINTF@ +GNULIB_DUP = @GNULIB_DUP@ GNULIB_DUP2 = @GNULIB_DUP2@ GNULIB_DUP3 = @GNULIB_DUP3@ GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ @@ -180,6 +184,8 @@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FDATASYNC = @GNULIB_FDATASYNC@ +GNULIB_FDOPEN = @GNULIB_FDOPEN@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FFSL = @GNULIB_FFSL@ GNULIB_FFSLL = @GNULIB_FFSLL@ @@ -196,6 +202,7 @@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSCANF = @GNULIB_FSCANF@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTAT = @GNULIB_FSTAT@ GNULIB_FSTATAT = @GNULIB_FSTATAT@ GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ @@ -220,9 +227,11 @@ GNULIB_GETS = @GNULIB_GETS@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GL_UNISTD_H_GETOPT = @GNULIB_GL_UNISTD_H_GETOPT@ GNULIB_GRANTPT = @GNULIB_GRANTPT@ GNULIB_GROUP_MEMBER = @GNULIB_GROUP_MEMBER@ GNULIB_ICONV = @GNULIB_ICONV@ +GNULIB_ISATTY = @GNULIB_ISATTY@ GNULIB_ISWBLANK = @GNULIB_ISWBLANK@ GNULIB_ISWCTYPE = @GNULIB_ISWCTYPE@ GNULIB_LCHMOD = @GNULIB_LCHMOD@ @@ -270,19 +279,23 @@ GNULIB_MKTIME = @GNULIB_MKTIME@ GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ +GNULIB_PCLOSE = @GNULIB_PCLOSE@ GNULIB_PERROR = @GNULIB_PERROR@ GNULIB_PIPE = @GNULIB_PIPE@ GNULIB_PIPE2 = @GNULIB_PIPE2@ GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_OPENPT = @GNULIB_POSIX_OPENPT@ GNULIB_PREAD = @GNULIB_PREAD@ GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PTSNAME_R = @GNULIB_PTSNAME_R@ GNULIB_PUTC = @GNULIB_PUTC@ GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ GNULIB_PUTS = @GNULIB_PUTS@ GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM = @GNULIB_RANDOM@ GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READ = @GNULIB_READ@ @@ -297,6 +310,7 @@ GNULIB_RMDIR = @GNULIB_RMDIR@ GNULIB_RPMATCH = @GNULIB_RPMATCH@ GNULIB_SCANF = @GNULIB_SCANF@ GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETHOSTNAME = @GNULIB_SETHOSTNAME@ GNULIB_SETLOCALE = @GNULIB_SETLOCALE@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ @@ -332,7 +346,6 @@ GNULIB_TIME_R = @GNULIB_TIME_R@ GNULIB_TMPFILE = @GNULIB_TMPFILE@ GNULIB_TOWCTRANS = @GNULIB_TOWCTRANS@ GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ -GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ GNULIB_UNISTD_H_NONBLOCKING = @GNULIB_UNISTD_H_NONBLOCKING@ GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ GNULIB_UNLINK = @GNULIB_UNLINK@ @@ -396,6 +409,7 @@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ +HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ @@ -411,6 +425,7 @@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ +HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ @@ -432,6 +447,7 @@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ @@ -480,11 +496,16 @@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_OS_H = @HAVE_OS_H@ +HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ +HAVE_POPEN = @HAVE_POPEN@ +HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ @@ -494,6 +515,7 @@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SETENV = @HAVE_SETENV@ +HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ @@ -560,6 +582,7 @@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WCTRANS_T = @HAVE_WCTRANS_T@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WCTYPE_T = @HAVE_WCTYPE_T@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ @@ -656,6 +679,7 @@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ @@ -679,6 +703,7 @@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ISWBLANK = @REPLACE_ISWBLANK@ REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ @@ -709,8 +734,10 @@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ +REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_REALLOC = @REPLACE_REALLOC@ @@ -740,6 +767,7 @@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ @@ -928,7 +956,7 @@ uninstall-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) -trader$(EXEEXT): $(trader_OBJECTS) $(trader_DEPENDENCIES) +trader$(EXEEXT): $(trader_OBJECTS) $(trader_DEPENDENCIES) $(EXTRA_trader_DEPENDENCIES) @rm -f trader$(EXEEXT) $(LINK) $(trader_OBJECTS) $(trader_LDADD) $(LIBS) @@ -1187,10 +1215,15 @@ install-am: all-am installcheck: installcheck-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi mostlyclean-generic: clean-generic: From a26d401edffd8b7f78603d29331ca5cafb0750ec Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Fri, 16 Mar 2012 11:34:55 +1100 Subject: [PATCH 18/18] Regenerate all PO and GMO translation files --- po/en@quot.gmo | Bin 29665 -> 29706 bytes po/en@quot.po | 224 ++++++++++++++++++++++++++----------------------- po/en_AU.gmo | Bin 29706 -> 29747 bytes po/en_AU.po | 2 +- po/en_CA.gmo | Bin 29704 -> 29745 bytes po/en_CA.po | 2 +- po/en_GB.gmo | Bin 29703 -> 29744 bytes po/en_GB.po | 2 +- po/en_US.gmo | Bin 29692 -> 29733 bytes po/en_US.po | 2 +- po/ru.gmo | Bin 0 -> 38896 bytes po/ru.po | 2 +- po/trader.pot | 218 +++++++++++++++++++++++++---------------------- 13 files changed, 242 insertions(+), 210 deletions(-) create mode 100644 po/ru.gmo diff --git a/po/en@quot.gmo b/po/en@quot.gmo index 4fd7cebeac5111815dc62b1e3ef5ff0491378e84..7dfa951539c48b95349fa03e56a645cf637bcbb8 100644 GIT binary patch delta 3849 zcmZA2eQ;FO8OQN+VL=ku-Mk1SKu91UV%Q|Ri$F*qK*F0Z0TEOj5zz(`hzSUEj0G2C zu*I1csPLx-(}#=Q;P@ zbI*OwIrm=t+IzOsOPo&&Y%%;!QwC9X^)x2aGo~b{R%5oO8gnByVH&n#KRkvhc)_)Q zkLkn#PSSZ9{HcpP3}caVCiW$sk6FefOdXYM8h&dV%x=^LC$KkmIKM`9_#^g5kGpAL znaI6OK577y_|t>TMfI}+HPELp6F1`|+=Xknzqw4MiH4>0rVINpyy-X+hvNzi;8wf^ z|AaT;QPlb0p$62Ov<$&qRQpsMiVx!mT<_Xc>xCy z8-HfE+(dUOd4#gS8F!AwZnPJpCTAj&UURo|iSt*eJ8#5c_%1Rk(}|iik38tnQ&Dj~ zGVf;MKxRy{eHRUS_D3*^o3I3r;5593dZcOeqDQHB{sGm|K@8!CI2Jpw2-8`Uqw!A6 z#Rg2qov48{YsN-Wd4~q&>RZgg)WP;fF8*#9Ee4AAAm(H}f)T zRkh;ZIqxEN67Qo?%l+j%vWdG;+o3Z-MI*U_N?Cw3$Smg=WJQ`;s3)yNJ=x<}%MJEo zAL1c}tP1hO|Xu1mZP3zA?o}F)IQkZj-S9R;;&Hs1}56`a#7cnp^h&`tv}O9MRUI$lkfx7 zA~}iLa2=>ANFp6F8#Q;gqEbH@)nSD@UgK#deM?apor@ZH9VS#+L#01%KrO~59E{DV z3r}J{{L;lgqqbY>6x(4ADpSR%>#I=%sCV(Nak{a=Vzb%E`YvE~G(k_37@w zeW>lV%*6>*hnrD1*zVke%3K?Er4+M?uekWesrLLBYRaZKD^UI2Kb8FJ$*XA4$kw4! zwgokSzn~W5A=Hh}q6XTDyhhExa1y3Z)8~iOViTT1UAL00q}{ZMzu|Zm1NdLmF6y3` zVfSeab-@DUWoMqiA^3aOegJuwm``y8{_NU^&9v>4QRi2oGVv@b6R#kz7SoRE|B7o* zz0K~1M3jo2WG?dVFtyHY&XcGPyxZ*yBZ9+-7vd;vbT*^D0q2o-jY+%1zFDWD_I;hx zM=iqr$ZH{CPTPw4%z4gv-ub!nE9W=P@30#k{eYUfpHNele5ZA=Glm-2G}OSKzzp1m zVeS6|RFsf`jKOu6P+~FEU?>Q-h=k*^a%E*eH&^Ze?z70kn@c5GIqVV7TPBr zghiZJfciL9V;|zP58IE^mpGU>SZN0`s*?Qc>vS&-Lpd;~%6^?zqf)&eBX|jQVgG8o zoyK4(@spT~hjBc9j`^6i)Go3+kSv=es43o$>gNoW;g3rb_UkluneC{f)_$F?p;l={ zoxPwMvx$F$>gW~J@%Nn3kbC_eU^{=bYa-6IWd&`7t}^15g*-2_ z3va_zyx&>leA2lI(>T7vxzE{-x~{`{8H2>vu$T6KaHYL*Kh%jsQBOG9IS#dbO0Xy1 zj#_kcP>Zw*)!`}^H((Fq-=X?@9<_#cVmh8do!{9NvwHqP#iKzVq5{hG-w`U$P!9Vu zg9DRVs4b+l`i};)`@T<2KbDPomGV60nBNo};l1l03l@NuQPufqMPTA$J4P|>D`Y(mzJ=%!h@jnfX4ZcB5zYUbV zerCA9`^0Y!ru%Kdfd5c9!)x~I!*TC*e|NapJLq2uXJ>xInX@T-DC~Um3yMA^@A*Sg zmi29?c9L?6a{YJ6Z%P@_<2d0_|D%-Yk=LlbMJc6hrJSZ{zboB*(7Jw4@xO+0!k?U) z>wVBtnYt$uF0Wj?Xm!o1dluEKt_(~lZV8pH>+Z$@7UmX4 zY6I2@yakuhT2sqRQ85e178?*+X^|yEi!ct1C>@xwwlKp;!Pe>b$9edtcjnyBIp;m^ zdC&Wt<=uECbn$X1c41)Ot&U$WX(;Kf{?4U`oGS>c*16Uc=LX?s9EjU-Fz&--JZ1G4 zF_rRlE8k6Hb&-J)%r`4Bjq(f}=3LAzCX+?QT3_K_N8NA$6Y!Y%397>{a0p&Q4J@9g z@=TYB8bAqudXcH9ewLsHx)RfIJx<2ga1GCQ=gGWD#X@@1jsL;vn9eYV;}YzP&*Nx( z0Y~5-RQn640eyoxm`Zq5e;?-JY#fQtTK(%*zaNM3e0QFVM)nP6U>d#YhA66|1*izE zLUp(e)qWoq;Azv{ROHcHDb7c|@kZ1G+s#w>9m-d+ z4<=BM5i`{s66D9_#p1X!h8j&y5fWZkW6n31p`IMWd$9`{jXR5)v}>qW4-pTQGm-gr zMX1T1f_n8i7{#CAMC{C9Mr+CZiweEcSbEW`G?*=@j((3x*p1`x7*=8*)?_(O!aQuo z0k{n{kT)?OJ5Zte6tgju>7SFE$&7BGqFNO!o1^#~!MeiCDH6+BI*GUrnK$<$YE^B= z)3ocwE0ljnrI!1PW1O3Suc5ZXS=2x-p(1wO3=kb0d1H_ zIi-YE!dzt{V|2BIO9QFLThzBAV|JVFBiy(X73!;~Rh2u|-!}`jT^g|pV|&ObbT@E3 zW)R;ZoQF)S+kkcW8zk!PDrx}X3f2i0;BOgd6RMv<6P#yp6hXCVNQR=t=&DV<+~-v#8y3 z9<@Ca@AvJ;p%&vKn1fALza>V7GsL}zBk_z~_}1z(X80SbQIU886^Zr8S>oDI13F># zUt%uhga`bK6d^~3yWd=G?m*oi`;?3hin|{4XL}`b=D0=XCe+!#7dd0xKQJG&zUTM* z40AbZ&1^=F1NV;EZtgPon%&-*J7^V0%%d1b2Op#6?j&l?E}8!}6KDE?W#heEe*|@; zu0~Di7F1-~tlWcIgeOsJ;d3m|{=ZH}5y;`#nuv3dX?CrsH~s__@&R?;(Ws6dz$APO zITYPfsH6KWEXNC|6ESs`KXArjgmN`1g0pcr&v$FcWMdoZL5FbzexWj}s^MY(QEHj% zBayVg@AF*LDlf*-I34v-YQ`&+YajEwp?H!1C{4ly>Q|!%vH@cX*;X=gr}+_T`+bIb z)331-;}`pnQVk|j?tI*TlzK3e^5rM|K>FAFk5Ux17z>vAk5U~f(wngm4=*MDy73wn z>=>8a;J-@WM}_WX9FN^tgf~!&Y{ZlPqcjCI$D2|8?8F*8j`}F2Ec5;BUg1AV=TP^L zYV_@E8i~I`{x}utXg#XI8|HrVZ>Tr9ifW(QPdw&#yg1KEmdw+nUOU+wx0 z)H#s0(w`gA7@0UK<|6}k3o(j|tiII@%x$PSe+47hVIDGj&5NkHzJ_Z5Un{3I`}=Y* zh5A_3GBxI0^G7(42CK~%%r{UscA7^pO!*Anjh9dl{>rZ3M7>zT)7}Vb*Q8>9p6_zW zXtCv^ZmdFe_@I>+U_Z+Bs0S}YEuOWQif^OZ_gMKj@=dz^0V>8jze8kxPWr$qbhf0p z;D_O)_)fBmNxOr!;jFYH)_}F+-X;BtbTsG)j|_bnoC_CMzC(Ej>CSH#neC)J(jJn+ z{T%54=~WVMc{>7s2&N>B2^|lXCk=^zpE?cR1;0$n3LOjHO)BfxL-Ann_oQ**eY(Q0 zh13z`M~Xuyf%#9mym6{h8vQg7eAK3wM(1CRLGMBK4BA=M{QwP5su9){y=Z zJe-mj`eWC#DeZ+_6RKAC36%!Bt7|Hvg(Ve*rIp#ylJVsgW1=M`B?D&F70#|-)$nvf e^} to cancel: " msgstr "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " @@ -386,7 +388,7 @@ msgstr " Game Winner " #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:847 +#: src/game.c:606 src/move.c:855 msgctxt "subtitle" msgid "Player" msgstr "Player" @@ -512,38 +514,38 @@ msgctxt "label" msgid "Total value: " msgstr "Total value: " -#: src/game.c:800 src/exch.c:323 +#: src/game.c:800 src/exch.c:322 msgctxt "label" msgid "Current cash: " msgstr "Current cash: " -#: src/game.c:807 src/exch.c:331 +#: src/game.c:807 src/exch.c:330 msgctxt "label" msgid "Current debt: " msgstr "Current debt: " -#: src/game.c:813 src/exch.c:336 +#: src/game.c:813 src/exch.c:335 msgctxt "label" msgid "Interest rate: " msgstr "Interest rate: " -#: src/move.c:235 src/exch.c:183 +#: src/move.c:239 src/exch.c:182 msgid "^{<1>^} Display stock portfolio" msgstr "^{<1>^} Display stock portfolio" -#: src/move.c:237 +#: src/move.c:241 msgid "^{<2>^} Declare bankruptcy" msgstr "^{<2>^} Declare bankruptcy" -#: src/move.c:239 +#: src/move.c:243 msgid "^{<3>^} Save and end the game" msgstr "^{<3>^} Save and end the game" -#: src/move.c:241 +#: src/move.c:245 msgid "^{^} Quit the game" msgstr "^{^} Quit the game" -#: src/move.c:245 +#: src/move.c:249 #, c-format msgid "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " msgstr "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " @@ -551,51 +553,53 @@ msgstr "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " #. TRANSLATORS: "Move" refers to the choice of #. moves made by the current player (out of a #. selection of 20 moves). -#: src/move.c:277 +#: src/move.c:282 #, c-format msgid "Move ^{%lc^}" msgstr "Move ^{%lc^}" -#: src/move.c:297 +#: src/move.c:303 msgid "^{<2>^} (Declare bankruptcy)" msgstr "^{<2>^} (Declare bankruptcy)" -#: src/move.c:306 +#: src/move.c:312 msgid "^{<3>^} (Save and end the game)" msgstr "^{<3>^} (Save and end the game)" -#: src/move.c:327 +#: src/move.c:333 msgid "^{^} (Quit the game)" msgstr "^{^} (Quit the game)" -#: src/move.c:342 +#: src/move.c:348 msgid "Are you sure? [^{Y^}/^{N^}] " msgstr "Are you sure? [^{Y^}/^{N^}] " -#: src/move.c:359 src/move.c:437 +#: src/move.c:365 src/move.c:443 #, c-format msgid "Saving game %d... " msgstr "Saving game %d... " -#: src/move.c:667 src/move.c:674 src/move.c:1018 src/move.c:1052 +#: src/move.c:673 src/move.c:681 src/move.c:1026 src/move.c:1062 msgid " Bankruptcy Court " msgstr " Bankruptcy Court " -#: src/move.c:668 +#. TRANSLATORS: %ls is the player's name. +#: src/move.c:675 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "%ls has been declared bankrupt by the Interstellar Trading Bank." -#: src/move.c:675 +#. TRANSLATORS: %ls is the player's name. +#: src/move.c:683 #, c-format msgid "%ls has declared bankruptcy." msgstr "%ls has declared bankruptcy." -#: src/move.c:743 +#: src/move.c:751 msgid " New Company " msgstr " New Company " -#: src/move.c:744 +#: src/move.c:752 #, c-format msgid "" "A new company has been formed!\n" @@ -604,7 +608,7 @@ msgstr "" "A new company has been formed!\n" "Its name is ^{%ls^}." -#: src/move.c:803 +#: src/move.c:811 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" @@ -613,7 +617,7 @@ msgstr "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" -#: src/move.c:809 +#: src/move.c:817 msgid " Company Merger " msgstr " Company Merger " @@ -624,14 +628,14 @@ msgstr " Company Merger " #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:829 +#: src/move.c:837 msgctxt "label" msgid "Old stock: " msgstr "Old stock: " #. TRANSLATORS: "New stock" refers to the company that has -#. absorbed another due to a merger. -#: src/move.c:840 +#. absorbed the other due to a merger. +#: src/move.c:848 msgctxt "label" msgid "New Stock: " msgstr "New Stock: " @@ -641,7 +645,7 @@ msgstr "New Stock: " #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:854 +#: src/move.c:862 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -650,7 +654,7 @@ msgstr "Bonus (%ls)" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:859 +#: src/move.c:867 msgctxt "subtitle" msgid "Total" msgstr "Total" @@ -659,7 +663,7 @@ msgstr "Total" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:866 +#: src/move.c:874 msgctxt "subtitle" msgid "New" msgstr "New" @@ -667,12 +671,13 @@ msgstr "New" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:872 +#: src/move.c:880 msgctxt "subtitle" msgid "Old" msgstr "Old" -#: src/move.c:1019 +#. TRANSLATORS: %ls represents the company name. +#: src/move.c:1028 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -683,7 +688,8 @@ msgstr "" "\n" "^{All assets have been taken to repay outstanding loans.^}" -#: src/move.c:1041 +#. TRANSLATORS: %ls represents the company name. +#: src/move.c:1051 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -702,7 +708,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1069 +#: src/move.c:1079 msgctxt "label" msgid "Amount paid per share: " msgstr "Amount paid per share: " @@ -711,16 +717,16 @@ msgstr "Amount paid per share: " #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1077 +#: src/move.c:1087 msgctxt "label" msgid "Old share value: " msgstr "Old share value: " -#: src/move.c:1170 src/exch.c:320 +#: src/move.c:1180 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr " Interstellar Trading Bank " -#: src/move.c:1172 +#: src/move.c:1182 #, c-format msgid "" "Your debt has amounted to %N!\n" @@ -761,19 +767,19 @@ msgstr "" "Shares\n" "issued" -#: src/exch.c:185 +#: src/exch.c:184 msgid "^{<2>^} Display galaxy map" msgstr "^{<2>^} Display galaxy map" -#: src/exch.c:187 +#: src/exch.c:186 msgid "^{<3>^} Visit the Trading Bank" msgstr "^{<3>^} Visit the Trading Bank" -#: src/exch.c:189 +#: src/exch.c:188 msgid "^{<4>^} Exit the Stock Exchange" msgstr "^{<4>^} Exit the Stock Exchange" -#: src/exch.c:192 +#: src/exch.c:191 msgid "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " msgstr "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " @@ -786,7 +792,7 @@ msgstr "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " #. #. Note that some of these labels are used for both the Player #. Status window and the Trading Bank window. -#: src/exch.c:350 +#: src/exch.c:349 msgctxt "label" msgid "Credit limit: " msgstr "Credit limit: " @@ -795,56 +801,56 @@ msgstr "Credit limit: " #. from the Bank" menu options must all be the same length #. (ie, padded with trailing spaces as required). The maximum #. length is 72 characters. -#: src/exch.c:365 +#: src/exch.c:364 msgid "^{<1>^} Borrow money " msgstr "^{<1>^} Borrow money " -#: src/exch.c:367 +#: src/exch.c:366 msgid "^{<2>^} Repay debt " msgstr "^{<2>^} Repay debt " -#: src/exch.c:369 +#: src/exch.c:368 msgid "^{<3>^} Exit from the Bank" msgstr "^{<3>^} Exit from the Bank" -#: src/exch.c:372 +#: src/exch.c:371 msgid "Enter selection [^{1^}-^{3^}]: " msgstr "Enter selection [^{1^}-^{3^}]: " -#: src/exch.c:425 +#: src/exch.c:424 msgid " Insufficient Credit Limit " msgstr " Insufficient Credit Limit " -#: src/exch.c:426 +#: src/exch.c:425 msgid "The Bank will not lend you any more money." msgstr "The Bank will not lend you any more money." -#: src/exch.c:446 +#: src/exch.c:445 msgid "How much do you wish to borrow? " msgstr "How much do you wish to borrow? " -#: src/exch.c:478 +#: src/exch.c:477 msgid " No Debt " msgstr " No Debt " -#: src/exch.c:479 +#: src/exch.c:478 msgid "You have no debt to repay." msgstr "You have no debt to repay." -#: src/exch.c:483 +#: src/exch.c:482 msgid " No Cash " msgstr " No Cash " -#: src/exch.c:484 +#: src/exch.c:483 msgid "You have no cash with which to repay the debt!" msgstr "You have no cash with which to repay the debt!" -#: src/exch.c:504 +#: src/exch.c:503 msgid "How much do you wish to repay? " msgstr "How much do you wish to repay? " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:580 +#: src/exch.c:579 #, c-format msgid " Stock Transaction in %ls " msgstr " Stock Transaction in %ls " @@ -857,27 +863,27 @@ msgstr " Stock Transaction in %ls " #. and must have at least one trailing space for the output #. routines to work correctly. The maximum length of each #. label is 22 characters. -#: src/exch.c:591 +#: src/exch.c:590 msgctxt "label|Stock A" msgid "Shares issued: " msgstr "Shares issued: " #. TRANSLATORS: "Shares left" is the number of shares that are #. left to be purchased in the current company. -#: src/exch.c:599 +#: src/exch.c:598 msgctxt "label|Stock A" msgid "Shares left: " msgstr "Shares left: " #. TRANSLATORS: "Price per share" is the cost of each share in #. the current company. -#: src/exch.c:606 +#: src/exch.c:605 msgctxt "label|Stock A" msgid "Price per share: " msgstr "Price per share: " #. TRANSLATORS: "Return" is the share return as a percentage. -#: src/exch.c:612 +#: src/exch.c:611 msgctxt "label|Stock A" msgid "Return: " msgstr "Return: " @@ -890,56 +896,56 @@ msgstr "Return: " #. least one trailing space for the display routines to work #. correctly. The maximum length of each label is 18 #. characters. -#: src/exch.c:625 +#: src/exch.c:624 msgctxt "label|Stock B" msgid "Current holdings: " msgstr "Current holdings: " #. TRANSLATORS: "Percentage owned" is the current player's #. percentage ownership in this particular company. -#: src/exch.c:632 +#: src/exch.c:631 msgctxt "label|Stock B" msgid "Percentage owned: " msgstr "Percentage owned: " -#: src/exch.c:637 +#: src/exch.c:636 msgctxt "label|Stock B" msgid "Current cash: " msgstr "Current cash: " -#: src/exch.c:648 +#: src/exch.c:647 msgid "^{<1>^} Buy stock from company" msgstr "^{<1>^} Buy stock from company" -#: src/exch.c:650 +#: src/exch.c:649 msgid "^{<2>^} Sell stock back to company" msgstr "^{<2>^} Sell stock back to company" -#: src/exch.c:652 +#: src/exch.c:651 msgid "^{<3>^} Bid company to issue more shares" msgstr "^{<3>^} Bid company to issue more shares" -#: src/exch.c:654 +#: src/exch.c:653 msgid "^{<4>^} Exit to the Stock Exchange" msgstr "^{<4>^} Exit to the Stock Exchange" -#: src/exch.c:657 +#: src/exch.c:656 msgid "Enter selection [^{1^}-^{4^}]: " msgstr "Enter selection [^{1^}-^{4^}]: " -#: src/exch.c:713 +#: src/exch.c:712 msgid " No Shares Available " msgstr " No Shares Available " -#: src/exch.c:714 +#: src/exch.c:713 msgid "No more shares are available for purchase." msgstr "No more shares are available for purchase." -#: src/exch.c:718 +#: src/exch.c:717 msgid " Insufficient Cash " msgstr " Insufficient Cash " -#: src/exch.c:719 +#: src/exch.c:718 msgid "" "You do not have enough cash\n" "to purchase additional shares." @@ -947,42 +953,42 @@ msgstr "" "You do not have enough cash\n" "to purchase additional shares." -#: src/exch.c:730 +#: src/exch.c:729 #, c-format msgid "You can purchase ^{one^} share." msgid_plural "You can purchase up to ^{%'ld^} shares." msgstr[0] "You can purchase ^{one^} share." msgstr[1] "You can purchase up to ^{%'ld^} shares." -#: src/exch.c:736 +#: src/exch.c:735 msgid "How many shares do you wish to purchase? " msgstr "How many shares do you wish to purchase? " -#: src/exch.c:757 +#: src/exch.c:756 msgid " No Shares " msgstr " No Shares " -#: src/exch.c:758 +#: src/exch.c:757 msgid "You do not have any shares to sell." msgstr "You do not have any shares to sell." -#: src/exch.c:765 +#: src/exch.c:764 #, c-format msgid "You can sell ^{one^} share." msgid_plural "You can sell up to ^{%'ld^} shares." msgstr[0] "You can sell ^{one^} share." msgstr[1] "You can sell up to ^{%'ld^} shares." -#: src/exch.c:771 +#: src/exch.c:770 msgid "How many shares do you wish to sell? " msgstr "How many shares do you wish to sell? " -#: src/exch.c:799 +#: src/exch.c:798 msgid " No Shares Issued " msgstr " No Shares Issued " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:801 +#: src/exch.c:800 #, c-format msgid "" "%ls has refused\n" @@ -991,12 +997,12 @@ msgstr "" "%ls has refused\n" "to issue more shares." -#: src/exch.c:806 +#: src/exch.c:805 msgid " Shares Issued " msgstr " Shares Issued " #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:808 +#: src/exch.c:807 #, c-format msgid "" "%ls has issued\n" @@ -1424,7 +1430,7 @@ msgstr "Page %d of %d" #. TRANSLATORS: The reason the user is not asked "Press any #. key to continue" is historical: many, many people used to #. ask "where is the key?" :-) -#: src/help.c:473 src/intf.c:3024 +#: src/help.c:473 src/intf.c:3035 msgid "[ Press to continue ] " msgstr "[ Press to continue ] " @@ -1457,16 +1463,26 @@ msgstr "terminal size is too small (%d x %d required)" msgid "Star Traders" msgstr "Star Traders" -#: src/intf.c:1264 +#: src/intf.c:1265 msgid "mkchstr_conv: NUL" msgstr "mkchstr_conv: NUL" -#: src/intf.c:1567 +#: src/intf.c:1568 #, c-format msgid "mkchstr: `%s'" msgstr "mkchstr: ‘%s’" -#: src/intf.c:2024 src/intf.c:2069 +#. TRANSLATORS: This string specifies the keycodes used to insert the +#. default value into the input string, if entered as the very first +#. character. Ideally, it should contain an easily-accessible +#. keycode that would NOT be used in ordinary input. Digits, ".", +#. ",", "+" and "-" are definitely NOT acceptable. +#: src/intf.c:2020 +msgctxt "input|DefaultValue" +msgid "=;" +msgstr "=;" + +#: src/intf.c:2034 src/intf.c:2079 #, c-format msgid "gettxline: illegal character in string: `%ls'" msgstr "gettxline: illegal character in string: ‘%ls’" @@ -1475,12 +1491,12 @@ msgstr "gettxline: illegal character in string: ‘%ls’" #. "input|No" contain the keycodes used to determine whether a #. user is answering "Yes" or "No" in response to some question. #. Both upper and lower-case versions should be present. -#: src/intf.c:2941 +#: src/intf.c:2952 msgctxt "input|Yes" msgid "Yy" msgstr "Yy" -#: src/intf.c:2943 +#: src/intf.c:2954 msgctxt "input|No" msgid "Nn" msgstr "Nn" @@ -1488,12 +1504,12 @@ msgstr "Nn" #. TRANSLATORS: The strings "Yes" and "No" are printed as a #. response to user input in answer to questions like "Are you #. sure? [Y/N] " -#: src/intf.c:2994 +#: src/intf.c:3005 msgctxt "answer" msgid "Yes" msgstr "Yes" -#: src/intf.c:2996 +#: src/intf.c:3007 msgctxt "answer" msgid "No" msgstr "No" diff --git a/po/en_AU.gmo b/po/en_AU.gmo index 2f64a2922af60034a2418b486071ab51ffe297d9..0d297ddde2246379ad746eafc153b50256cf7fce 100644 GIT binary patch delta 3838 zcmX}teQ?yp9mny#Y=RKPyi(xLbqr7%OAKb%&_zCYciH?#NJ-QVv1 z_V?Z0-*0ojudm;ixSZwRVfbAnjUaUmHYU$!Oie(w#_Y>9W(am*79PT3cm^}@imShY z*_8b>QoCIKG(-u8u*x|Dhf;n3^NmTEm1M$HJZ~#ZH>$%~Ov6jg&rt*Z3vqh8n0D6`@V2 z0XtFc&)@|7*qM=Q%TrMOmth3AV*wt+vG}1gl|dpgDq>_Ra4G7EccE^0%y|WGrEI(z zNkxfdG9?scnKR~`gh|v-MlH@%B)sN(&ZW+Es5@`LVmyJ&%Jica%|{&c=$WW;DYEWn z>Tp&}t9>68diKQ_#jRL_Z(<{Ui+ZF+M$x0RI)929=r9KH98SVZScTc_$%!}e%p7TNRDn-Zo})6`<^yaeR9~@jio}y_opjuWtee@3+Es_} zecFA9{ge+NxZ#$Y>@5sF3*ygUokUB0JJFp`J93da@tmW89z@(kxu zr&z~18&FTO0M&jY>Ky#cT|bNYls`j_>z``d6`}goqpmMO?LX5_Mr*$hQ}7gOlblB# zxJ#%dNFf|Dj9R3oAV%Q z6aEExEhNl<&6uy8UpviA`%&^cZ*itOGcbvPhM<-%2eo7qoORB*7^D6X)Wr8-E*{5_ z&i`M@C^TRGuYxxnucs`^IjFrb9w%T8MzI-da5u8d<^xpZ!c8``bDWQ(#@UWR`~~uo zG_Rsw;s3yi+~16zZA0_}Or@N_5N<|=a2IOxoWuhB61BEz_t}qA3F_n2gPVxyh5KzJ zzW;zd=POW~ycNgeHq^)I2qvylv30&Z4s8$GuhV8sqy7|XA{S91`^fnp=a2>V_(f1p zT8~vY4_9%6t(Z>Px7dE1f;f_LW!z5W{y6d1*J(W!+KuZTv0taXs8Cg-3Y{Z$NM^5fQQXQIeuVyHE*M|Eg&<)!ZW8qB2r zDd!I7%g)1?#r3n!%g!69e*QJqVHlu17H`q{uOy=z*SZGxpq_BPa}nzJ#BngTpx*iG zQ2n-{27JktU%^3?UqjvaC~6PAhuQcIs(ogQ%Iuyn86Oq;5S5W`{@x_BiS&jyBQQLr zkK6*%A@9*ZcBqJ)`$<0`o$)#XV|*vPGl8PQPbKyt093m_ct-Jng-caaZKm&(b^R)^A@dG8~0C{+!w4}pX`fyTkfpCqasosi$p66qOt0VSV=TmUYFm5)Ul7PZ8y3o6Q^|8G}b9gWhiFSWk6G>NfZU)_}SU+Os8$p8QV delta 3815 zcmXxl4N#QF9mnxKL=EWOfd~eOaDgZgIlKc@Kok{1s!0TOBqL4D&}v7-C>mwjY0^_0 zH3nmCpHyes=%{U(X%a0+)c6vOsZD4}sWz=ibYyB%TgJ4Bb{sosYy16W*PGe?;qy)@v9^^c1Gk>Piq^Z@B+!;DGy8B^$2tuZ^2jTwzUz){$NX?P5i@SLl^ zf+>`5y7GNARu`EV!~$nIrc$1bV~vTKr^#ef@w}}tyHPisz!BK%{0P(3#>K;}yi^#^Sg#ff`Lt5fWZg?R?VNf_iccAHr^AH0EQ}q}@Qhx{r9MoQ2G{ zDMC&5Ow_9{z$mWAN<5UwjMkF*f(pITWO~u7G&{GVI{F0$@FY&bUM$BUtjSWGhPk)~ z6LBYMAp5WYyHKIJgdy~0+2`bBF{7KPn57DqO%J|6um+epMdBHj&Pd#V%$wPcT2&qR zA??oN0Og-kspY}{uO!_o?Ln-P_>QFbVLG6Pdy6Y!!EaeNRj&GvcrA)W?m7uOSAj`_EMa}&VOu!?k zHS!LIb)xi=(G(1#<}6rcL!OE1C?9pb*7=lkjq^p+D&K=@-|5PI?)slGoBCVMv>CQM zS;n}~KqiE3&Rx#8P>bpl)C2zR%7d;voQWPyeL5=CMX0qh+u49)D1QUB2)~0_*p9mI zHH@W^IqfPgptjj(s19$V7EkId+d(yIKnq;C3Agz;tWh1_WkF~Wr_|W5&Un;eJ`Ghr z7qzRJTzOp$@mGg0QlSyC)z}ip| zY)1`XH);`fJwp8T;65re(thOFG+*EhOsLgo$Cx>|58p@K*vuZ%HrmYJIPAlCyouU9 zgQ)G9{}tPQ0ctU};)A%&)gO$J;S4don1}yz7cyqs`YEUz7Na7u9u&6V#NxiHgiwSH6N;gf~!YA)ZsJQ2RfPOq7ahti*N5G@C=HHy%WVys*ytII5!+ z7{C~ED4Ol4qx(H9MN@AhGzk+aF2W!#!2(>1<9NQ=Lnef0Q4hL`n{enn%B-q(+)PYg zUuYvxyvXkJTGT3EfDdB}>Z7z1Kcl?-Yj!s@EVdt|B{+imy{Lh_fiZ>bBpLZ9=jW*H zH~eY)rem?3as*p>z;YZ(`O??zM`-}FC?_qo1DS~WC^cdZ^$VBTkJ7hLkv@)L{Kqol zuNyO(?RF~1D#{x$7tde?Ud18|Ew_uT4vDf^j+*1+sD3`eYP^N|C{?uBe)?D1k5b$! zd;dIC`xUEVHstM8sH4|igC6In&bz2LNpH37D>0w)Q>azH3AH`*?1Xs-+$fp z&}w@QOviE5H^#^iDYG6Ku=yTFaf_=z<~->Rg8EaIGtE#G#b8qdI&AwRk!(1^>l(0j%mLCXq#m!!pXYnm`@}!7{0+*lk?#H8B-264 zB^@Ox+%J$$kbX?!Ex(MwDQ{+Ag70_UGl4M)N2t@_jrVdO+t=$I2$T#xP4OM?YG8{0 zn6B{KO6u|of)jmx-Wh+2cg`R0wFd9^b$VNaCBAO&?ch}3Ti#$WJN*M%){}loV)vUR zBz;bP_T_H_ z|Id+r>&;8f_5HegU2 diff --git a/po/en_AU.po b/po/en_AU.po index e82aa8d..2611419 100644 --- a/po/en_AU.po +++ b/po/en_AU.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2012-03-16 10:10+1100\n" +"POT-Creation-Date: 2012-03-16 13:23+1100\n" "PO-Revision-Date: 2012-03-16 10:11+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Australian)\n" diff --git a/po/en_CA.gmo b/po/en_CA.gmo index c636eea65bb6fdf72a22d05d0ac8729f216eeb79..da09042be7f98702bb636e6e9086067cacf724c1 100644 GIT binary patch delta 3838 zcmX}t3vg7`9mnx=W56b4ck?ii2w@Y#D})W%EP{kQhzV!}3?gNQQRLMH0~834+O)xi z3{dQh1id;4K894pQG+C;V1cTDR2q=-=xCkNGN_}CMQf!_r`3-1`|CM$XU=}kIrrRi z&;6gr-P-GQ^?HfRnaNKXeiuoDNF9BR$@Pq>2&mSW-5JK*g6)`zhp<2PU^-rL^ccF$uGhOqhztY=zl}y5S7=!%NP;pgQ~q4nU8mX<)g? zvrP$V0F(IBi_Ajx(}Wu6M$E-0a1wT43(q%SkZGr4DZS~&G=_I47U3{#!ercmqwrZA zj;B!V|Arb+Kf+Rgg{b<;I0P5s2;A)I_qqDhn8)+Y7i2WDe)KXBhoNq$L3PxKiqIBR zhkH@&dvG*<>`c$G{Ha0%*-ccC75%y|WGrEL8A zq{75aWQr-uG0vECJSI^;5j8ngNO;YC&Lz&DqMqD_L-B27RHhd-X&!OVt7o9fCCI#+ zs)5XyX8T?$^zMr=ircXQPv8{1j(Vjj^rBa3cJ4%VbQpv9E{?}bI03U*lVfo@7Gf)= z;$GB1x-?@&WR6pzSY5?@%ouDRREC==&s3RZ^8s!mRR3b;6p8gLoiuzLnK$!1YE>P= z-_!0x?4^8=N-g*2i-{(7pteJAf{aG;H7aDughA#x#~~}yG@#xzj(W2n;|d;d0MjTJ zl(I^gs}f|4W;Wr{K-S?m)bB>dY@WG|m56VmBAqbf?6N9D-8dh$UlLf2r%<80nYfl? zF_z$BWO~h0*npi#)Q!2__LGOT6f5ur2D$;&&(I2E?!mi|`x9md89n#_YHly!Ap8pT zfMBJy$XSPalX)o*f@ZC8l8uNHNEF>3vpO=L9pyDcak0HAZLa1 z0cQ*58;&gJ8_vt9#dRI^fB+M$au`*Pptf%{Dx$Mc17C>=Wm?D#z(-Mwu^k6v7wX3I z*dIS}<^Q0zTgDx>!+cbvCZg_dL=B+Xm4Ajm_c(J={SB$Ji+Ow<@mI%pQ=wCRfxEC8 zwY@gG@=jET9jFH!ah^s+?vJRD{vE>@oNUV_sP@xPQ}%%KAyj{BCli0Yc`Fqf*)CMb z_M--H9JLtVLv?fwHPECf_R!A4Nt7elf-A5cucGdIjIE^I^a_8&@ERs#&RupFZfd)Jz3+Zec$Hn zMlHfWAjd+&T(cSTPv}~?Z>IFGu0WyBs$7OO%0@Y>oHH>-{bJO>cVP~` zg(2<#56CDqz5lB)rVqzcCgp6@S{R9=u^gkg1S@bSGR@|F)EnnD*wD^!u0r**9fSA+ za!8s3s3ZKZIF{#|p)+iV=3px2^%%mfScFfb7S9RH$6nOjrrc{kPDQAX(|+7SOwWDa zMq>6HyU&-R7WuP>5K0?xu!JYXB9QNF&=ew@-4*>h!V+z#ZvIPurl=@BZl8k--oU#DkLp}vd}OmDO| zR-v}jT&%_yu@FDOa!grjw^bc#k*z_ZY__4M_%aU0Z?P6{U6!z4rw5nWj*?c|uhVc; z2kTHbY{xL}M|E`0UH{y9^D5hZ2;;XLy&(15(kDZ^Q=KeDbp|{$a;Y<{`OcXWeHK-e=yK>xJ zZ^8`fH#&Xii_X_Elj}XsKRLfd-Iuh+dJ6_956ACm|Bof32UofV^{6+z-#HJpeHLL~ zT#Y*On^E_*p*noVm0!j_lnp^Y`0ImV?_K}7V64wE%E$fpg5v{6$m#be z>42Xb8snYwy8>DMu|TpvKa}Hj`OTr2_e+0YXrg!6|11>FJxj|Oq)rk$-~522PsvHY zAbnZ(Z^@k}T_D}~9rfGONAx*O@sxiy{m#gKa&M5TNjpdvN!srUx3;Bz8%ZssGk#4* zq4!RAJfkxbs*5jPux|O<*$bAhizio3><(6MxXFw8ZFkh(UKS~hMWW;Kqp|X`SaCF3 wTADheAu==mqsBFjD_2D77Oahz=a-d6|KF~(JX%J(?$p}Ok|g>%+|-ctUsR{u8vphSJ(Ff|bGAOtAxYGNnA~^!s!F+?lco6$xht*%g zG|Jsp?nPsDk%JK|GAl8I@?;$7T*A#GlSjoGU*TRx-EbKD;A!)(s17e9JBE$9EaO+HP3e!$?T+J4!!Bd+xQ@6Gt5Gqk4gA64#&+n z1oxxbe~KE=ExZrY2#@MV;~;zlhvE}f|FYE|!ht;BT_mHC-NGEqpf}wRM|CtC6`@tA z4qrsIKZwP6&U9J697Wwf2c!5D=3^@k!?Wg1oKi+b0lk&tOw=21LOrn6?7(kPzJ@)q z4+R-9)6C4Es7FDf2UkW=qsb{j!s}|yndV~DlM^@?+mX?@PSm7*g?jZ6@lZJznQvEu zn(XnYSD%h?d=jg1Uk)=mk<3*p^h)LQqE~4$TTmVC!4y1#WAHRqVo%oOD7+sFuo>^c z7f}P*iAC6k3e_i=kD*-uoI$zF=msh#sDfqlKCUNNUCf*!@iT9S~HK^R**MQnCOR)wM`^hMD*Rcw7 zh;IqbK&I7gzBkGi25wGW=R>xXe5<&RMvcca>+ecRtxhPpljSypZ(YVNmUZ+r)} zMvh}tC(3Cunt~gsIg8ZzkmsN}8iu+)(VS~Go6n$D`3_Y3Rx5vG*FVEN>i=U780X97 zGQouzWb$#9`I316wW!Xc9`Fw<->~xCOmsT+*{D#Lpw`M{a|UKo{sC$c{seRJS=4=d zF)@J5F{}6(wau=eI=qQmJQ)*w2eqgHO}FxV+!W%lMs;|b1))WpTIatygHeb1SXBMP zs9iPB$}8%KzdGDVg+{o|+=UAHTd0tJhzensm3uwl+YdoaS-Cj@)!$Uqo6kiJY$Ym! zEvNzf61525e1Q1t!Dpz@NG~AAru!F;!@DQyv*X+(+==g@Zu}8@NZV*Ve}#AklknfD z-E$qaJ%>#4?Wds@;}X0NH(C8_2{N1^?gJc(*X%;pWM4lTb;Dd#B-WxLu^l-}+!54( zx~x9=A-@X>Q7;&+2*hUleO`xJ<m-6`q{-g8-=2A{s=m!!-eUxV5AnK<#`j65oRHP4J6#v;s z{B>hiliyBbu!eF16}n?sg_p4ea~JtVHU){UYedcQ0aQPK!CLG_eUvH|`+hDg@gF6( z)Zbr^YQJb{!iT(t3U#!{8k{mOnYU4IlDW*cufk!J=b%>oPf^=*2dd*En1`RB?z?5z zbC>&bpc)IQpOqj(q}*C$z-}GJaf8+GHxHRdQFDGABiLznng2C=HT${FLbV@kSY&TD#Zai;Z!7%0jVK3~n!aq12)h-|PVx?v|YS&cZT|D1S zCZomHfLfi8p*n1~@{^cMc{8fR=TVDi7pCE#Q0>34ayN!3>%%sZbmw=1%tq2ttI*k! z>Vn6@DZTfRWl6iYgEis2jCZX8YsbA#+D3XmXbTSwoea*0M^?T@c`xbC?=3RBNd=_+ zB!zoD=`iURB;N9y2>dn}pE4r!hv4y)%--)%r@_16xs<%n>EQL0vgBhFj|YEG852IJ zEBsnWZ9!3FWay*dL^v(z2qy*0B3Yreh)_9Aa{gRLwbpHmZUwe(DO0-=C_Xj z)ua!DX{iOF_u8LGZH=~%t@&}!P-*b?gxZRDG*%HUt;~@~J)k4``F%o&W#< diff --git a/po/en_CA.po b/po/en_CA.po index 496778f..68e288c 100644 --- a/po/en_CA.po +++ b/po/en_CA.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2012-03-16 10:10+1100\n" +"POT-Creation-Date: 2012-03-16 13:23+1100\n" "PO-Revision-Date: 2012-03-16 10:12+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (Canadian)\n" diff --git a/po/en_GB.gmo b/po/en_GB.gmo index c879e96a542ade205b79d24551a433c8e70c47fc..9934aeaf0b3020375d4d2a8ffb7b3672b60446b2 100644 GIT binary patch delta 3838 zcmX}t3vg7`9mnx=W1u8qce4oyDGAvaVhCYFHmhJlLV^iMKn>tyd?626Fgy&A$G|jn zfk86N6ll41c-T5b9L8D*1e6L^8brkiBG_u{;0s$zEF+yv?Tlq=?f2Jn=+2z|oOABE z=brmNkK5ks9qRRxpJt^#ZTP)U$|ddZZ%mG7Om#rD#_S0jGYC5{3y8)9EA{ry@?K0vDp*csJ^S-OkVPhm?)q zm{OR$flMhyImQ`xj>8n{$D<}^0uo+xk8`2(N2n)n!x4B28I|cpO`1m>^y*<$xeS?i zGhrArrrDlBh2H%!jNwnQ8ehlB_&w^CCew>vWsP$es-t5V#IraKFJdKTvnFrByRZ;9 zU^?zY4WvsmRzl_^6^hjrj9_@UeNY8HMR}&mESo>!Mnd&1Gp9(bW$6sWpCR*Ro<*&y zqxgH;UBX_Qqk$i&+St?3UYta>>#5DA4bjX1P=>&+HXMZgXi4!GnhyDuc&@gC)jp{sQc%8bH4}E@GaCL zIgi?K7g1A?MmS_XYVK}Dg?=Kc!@J$}CC&}boz70wVt)hG{zH|MWWFJzj{Dcyk>)z9 zosT%%Fk(2eoUb`QMJ=xHQ4a_(!7AsY%2CwztwlxjUev%_FsV!%nIX6twHP~aICi0K zJdZcxm#+M8)OHKsZaa*iA~ha$e=}+TYh1Y|!3XElBNaN;=eP^4 zsO`1Um3N{#{59$U$DBQ=$bEzg>EAIQ1CwkyifTU%HDwPw7oz%GK8g72&DT?*k?lf- ztP?eWZq#D@1FEAw)Ihz-_R!A4I?AK54VPjE{tb2CPuNP@O~2x=2>UPR6XM8NcgRcGp-c0!_7USSX+r9=>{}8JEdQ>F#q9Sn;Ia{^|Ue^E;<^m;E^PbEY{1m_kQk)YJ_^O<9Sv#yJDy)F)5_--Sc* z1ctQ#|42rmx%|Hh=7-}ci}E1US}4ZRScx%QfYrDYnP&3=>Wy=oY-pRDEvSCBVGy4~ z4oTC6I>NugTX?=HoNhz(0H#xJ!w|M(3GP5Go|72C%c!{>FvEVFMxs7Wow$jZp1aRR z;=Tv%K5s@X@>Mtrx1v5y$1r(?iY>G3c3AVM{W`T{2KA><19=Y>vd^5~I>WQ=_8WzI z(>kogdvF;K*n$Ho|7V{4IAuI$&y{$>4rFG6`0MMmmI|%L)sNe+(=(`0e}YjAHQO6& zP}}Jdti|WC5dVTzIAD?8R`sYw_9PNzvjsK9pWtx3hV_`UIBCC5vliQqycYX)DnfOz z0(HYS%*RetN9Wx2E6)DQZ2JP#i&Uf9&&H9Mbk|=%ZO>DvelO{Q8k$ynV+7Tp9(4}P zMa}(MBv58A5?QkkWB8)0|JeDN^9$#fsJZXO5Sk~gna*UyWy(==UWdBjPFJ4qt}nwd z_3ND5ozFXuViwomc3yN|McwBuw`OC2auE*D{*RN}s*or#y zSEKIRit2E;E5CsKD8Gby@Nv`{I*ZwO4b?ulLS8QUnkU#iMa{94sOeg8*q#nN`Q0$%ZdjexB4^V!Qbp7`-nSCT4XI>#G!W&7y zCG95Z#q`p@^JBqM@0>p?I3(>ilr`Y}{@P%^ch>)9Fy615@=5=L;JCnXa{6s19rklV zW4!nLu0Xcm9Z2=(gob)u{+dwSd&xf#8t)zRzY68&yi3dJq(dZjzL`(br{oR4Aan8H zx5=F+T_9cmz3O*l7WaFH;%Wcg%sZk7$-PFZCG8-+Pttx@xV0_yTTf~uo$)7z3%$3F zB*KTHp@zhQxht2fxPR`Fm5J1v@kfHS>u&Jk{xxw$D^^akyyN{B3>Gcm6xYa tZ;H-LtZH7~-10=UVeX1VRivUk_WyR}Rj~@%9Z9c0Se8Oxue3I${1*_`+eH8X delta 3815 zcmXxl4Nz899>?)>5j9^P9uSd;cu6EBc<^}ul@|*Y)2tM-39_~tb|WFj7ciY^lD*|> z%36)>ZEL5pU31qdcTAwPm*?chc6;%5t!5N+-ustKILfb9`pb^Ev0-bI(2Z ze_n3;32)sA&p$dU{`ZDoKk0JPpNANe<{48EQmru?lZ+XSkK-uZies=F6LG(*{}huc zpK;|&Xsj;MF^qZ6GEAX72Q!TE&0S=&sA#nnW)td$9vp#v&V#59Kf_c!jT+c6p2{;# zCTajt{`4XBb*$Hl{JmT&%} zWZ0SPObznla{M^1Z2KO{N#UN|Un<)zOQXfV*)D_F)+gVojFd)tG}VI2@lu z4P-OsVFxNyhcO$yO#7U%nat=~DrTsHWwQ_05Udl-oFcK9r85#ALgvjphFVoy@c`}m z@dV|+P^snqSiUh8_$+EW96}A`b5z96I75U(Y26m_)d7J1W$tP^)U}WP4u?YP&4OO7y$PD0JUpIi?fe zLaarm)vU#8{1Xy&a|$(pP$}yK3vdeqU54ss^i*T!VJYhVb*T2wqo%eOFUL=j>%RHP zW=z`E_J$JFn^dE2XhH3R-?{5Om_hkNRL5sf?UJvt_Z6eA*CNZx+=rU`jW`Tez`WsNY z>P}Z~nMwTB;aVy*!oax&74lA0NZ&<;aKM#^UTfRuqNZ$;b2_TOxu`e49W}7!s0gk{ z4d7|iBHVs0@z;a#GZ}`i_K8(lHsNHiG zwLNpMv+Zk8i*Yetfo-n-uRa;h5VH@*<2UX?>Kt2Ng1X^$R3utak$46(~avYdG=ljkB&V$awR^NQ=Dn4@#U>qHsM9tmTs5u)n*P80gM-8kJ$Ki6+ zk@^SJly;yZ)9cDdQH$_v)LQU3r3$qFlgY%Wn1)la1({~E1NFvdQ6bN(w$4Fy)PxDR z3ON+b2Gr607M9?Ts0bC+*aN2)!<6eW51TQU=bLB9WMePtLC0_{#@$4jRka=;CZ;dk zVk0ndf!*g-s8wErS79USqZHst$_wvs+x1TSQL4ug)Neu!O9{*nt$FK1y{smiqaP_M@}{73nUF;1`X=UpJ;U z+3hqLD=GgP6}mUD9FJikX54ER*^Nka%|g^1ccJ?E4_4u~sE^W=MYf;AOYBGKf2c(| zZ>eqHwA8mDUr&WPdI8m7uk#b<1=O32S!Uap;RMPHQ0-Tvw&y0)Kzc9>|BJfsyt|&! zY|nuT%%#50Cqtx6D>7j7AjWWwtKa49cJ4;a`5p}8LFa(;JLk|AJJ+eG_BpOxfx2%t zCZS*FGEL40oR8ut8vN0@)43OQ<00pl7^3_GUV_7y+XpA3+GU|$Easeq+BIc3gy);< z$Y`-uqgH1Fs>5bi_Hi)f4X6$uM=hQ$n2i0X_QzfMTl6UF!#0t0@z+b{VbbfaLT5{o z3GN9c4BJVTC2d{_T0>bWZ@UJp9rF_D3DUlxBQ)Ood+aFVus9)g*e>cccoRIDkmdCSFC`QY-b3-t;CRB6P`9q| zYa?|8dEtrPdqHm~IoKbH50-^5_1c5BaIx1JydJLbUJcHLv(o-W%No)S61(5rP15J& ztss`TDCHmI-Y4xRUHrWkbR>=+{4T|Jf+LBuBiqUCCRLK2BK4EB=M{QBWJG}W07cSq^K-A7A-F+&5uQ+(cv}Kk@*cPo0c~% lT@smDe_um+c2P8D+m&X=rj$pEY1bL8+ELhfta)DC{{hfl;K~31 diff --git a/po/en_GB.po b/po/en_GB.po index 73cbf89..dd64c43 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -14,7 +14,7 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2012-03-16 10:10+1100\n" +"POT-Creation-Date: 2012-03-16 13:23+1100\n" "PO-Revision-Date: 2012-03-16 10:12+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: English (British)\n" diff --git a/po/en_US.gmo b/po/en_US.gmo index 216b6e8d1e54719e92a4028827890f953bec0d46..534c33243d7e7a01d288287a98c93b349560cdd1 100644 GIT binary patch delta 3838 zcmX}tdvKK19mesqWI;&S-6R+wK-fUQfMJttR&F7X#DrT_0!VSNA|hQd5I`{0qG4W* z0f#>{>Z=3MqC}BaOXQ}2S`-99ZVJ>(D}%yV8`MF@!P`_@`h7eHcjoNpob#UdyyyL$ z%lmVC;Q4a_?~}~n6NcYOQXkT$PR3*hj42DL)|mAf#$1W5n29^EJ08MxJmc!W!ETg; zG*Y{s{HcoqjNnM;M9iW*19Ob=%wjT8Dju>GrVVw&5lq8V&URFX7qJHhc$x;5jXc{F zq6SdGpI&4ds-GpOf!>eV_!w5;CT!sO<~*5JD(2IhZtTkN#^Ycdh)XbtYw&9P6JCV} zQSHA*4JeJU^us(<{aEaew_`r8boFhn{xIh7d~=?RMwUh|y>TGwhDuaNwWtWKLUp(i z)&39;!OxuOJ#Be3>i+o{!^bce_uwEr>rADSSb~ZKnG&3bdgCWi58UHCgS{vle`1F` zFNI72MOoxbIEP~g>PMj_XABZvbE9*f^Ip`Gn{fc{Lq=uJp(ZUr9Q5iLsB$4P?`BMI zW=yj^g$lj<9E{^5ScY%mIJ|^9EW`g$zaAO0d1@#t5#K;X+B3uKvMNE{cpGZJcvy}HQK7qnxRzo8 z7UEoFdd(A9gIkcO8#BW8lY>@ai58j5F+Y{Iazd=19 zJlZnYP*<+R1<%7Tuy~f_37@yJk<8O z$CV#Ob=Zn}z-H&0sK~vC3hCz<#gwtOoQG;(iJG!0&Y7tGYR3|Pz4_f#Xk^W(kZnK> zU$T4a5-q4m>_m$@y**iPM(z71=U-5Z z@F;RDc&6QE%va6}&Wp|;oIg1)Ia6-1AEzr&QljFqQIBjNl3!j1Qp}&rZz6)2O-qAFjl{Qz)~lHsC5^y8pK}64%YJ z`+OE^k=NnX*o68xZAR})Djt|=x5J`a?boRR)2QEt8pwWB$liCJcXpcPPDIq34#kl; z0q^7ijo6j)#oO)2$;`3m%Alkj$oM4j*Vkz&6($hTowgkhR1%7=bzmrlaP5 zDH15N7KyBR3gh^Ut3Tm<-}#aAW7OQA#t44r?6}mHy)2g*h??`Es2eI>d4{{5#0=_} zIUjVkIRA>7T;J_H?)(gO-}lbWciFYp3p;E74A#;e{YdlMS8=Z80y_+ zJGoh;9sa^lH0y10`mt=xOQgq1hy2!1eqf(}C{#4Ejq;16%fDC1Y$WkGvx}q%Ha>9?A+&CiY$ z1>Wj8t!=5_{iFuc5x+7cFK}Rc zGGj|DQk|STds$um^x1XGlEKlVwuj5_O9>?W=4-1)l*Eb?vG}muc%rlVF&tZTT;{E|Bd?)>@nt2sTmey$1cXo#F5at%fD$T%xsflm;p7;O+ggy5BB(n~+LKON z^x~*b+sjTmS!z?6K~yAG#`fwO1=E&VVYzD~Q%>pRRG7Ql_vbm@nZxIt^PJ~A=lP$P zXV}vlxOh6?ok;BeH^Z-+bR}u`Kx0w@#^eQ6Ys}UJV}{~3OvJr73=iNC>~i%dF^Ted zR~|%Tb&-l8%yAZDGUeGg${5cqCX-IZdRt+3pl&#bgYk&-D5}H%;BY*L8dxk(<(Vc8 zHGl|z^dc3gewLsHx)M`xBTmOBaUIV$J!E!Kv5?+$<3*f>DGW0kmtcRq569y}I0oBL z?N6Wv^c#-GB*LTm$(V^Z;8UX&Mb{xg?O%EB3>^DrsWO~yLQB+4aqaw5h)#0P4 z_6INzKXsZBwj4&?zYxQ?5i_tE$6>eg0$x9fiY$7Yhzn3}`~d2K&CV_yN%<`H!@(3} z$eH9E?&rj0c`;ncrACvJkA&BhI~O>Yp`PsFRoIG*#vDUU+Bwv#2Z)EtX~=w=eAHym zK)w2n7{z;V8or#$j8>BQkqW(1A-(8T>YPoej-JDKd;_Q85iG`jtjPi_#Vl;VEAUa& zKz3mcwxB}wC1zkC%|0hHjTzlU#Y|POY(B($305yNr%2q%(uu~jfL{o-()0ToiyA<%h;@Q__zVNBNA)vwnlW>*2zCE`sP<2zrnUpG#FNN%&-~A3 zOiHP}p#b$Jb5S=mp!UIbcl{uaqWn3kqI$1MpMv-nzK-u4S6c6qj9L~mCi-Z2Iu{#RlXC|zS)&OcGthbbn1V04x4Vvh0^0f zHJJ=t<9y8dI%-iJM?K)QEBCqbADHN&)Tf|AosU{8vz^sAobs)xMR*sc;e)9Ao=0yO znM1DPbJRBb9@XIm)Z$5=X*(!K4d_N!UV>hL!y47$ITnN#@xTiE)k#4e<`Go=4Aidr zlPlL&5Px-e7Zn;|lk*8w$e%-n^bjh9J+Ay;RQuFx?3Cp?r=a>PN4@!c)WGUc5xg5U zfUT%SxceI7uZ}vX&`7(HW7GT_r{hIjhozPFtJ99UaS?k++h{F+vatjE<7w3HIfL4s zsn^=}m8ivdD~?9b)$dYZ?8Z$}MeCwdCmelqd{=QpVB*N1x3 z&|>>$nOM&Q7GWIqoqx6;r7tjza?DaYkkP1*QWa)WKdaV$lC`VHep9B)Vo1YL54z`ZOq4VZM&hU7aQXokJ>f)IFRR?QZia> z6{s5*qB^|Il~>^a%J-liycxB49>*knAJzT~SMEi=NtgcZnShsn9b`6>-gFf@TM~?a zTQENMWwI=3^Qyl-n4bKuYp@JoBt1g<&~FKj4gAAD9-L6TkMi@R%fDC1>?LK9+DMw7 zdr1dLe<$&lmm=_%KO;Uj(COb9KRos|>NI%cKOCPPIO4w;KWV@rif{Yh#!m?z&=r17 zq!vFXG$HV@-w{mmyMq1w`p}3#v)>e&6lnF|3{4HZ?)Qb#Q$C{QJkm=fcE9-xNuQH< z{OFKn$sdsWgw#d4{A>4HhKwC>nBx0>&yZQ+{p8*tm60AJb(4xo3OygQOTP{LT}S$- zKR+QW@LuccgywMT)Uvhx0u%jLXO\n" "Language-Team: English\n" diff --git a/po/ru.gmo b/po/ru.gmo new file mode 100644 index 0000000000000000000000000000000000000000..a81810bbf9871c36978466d221f0d8f393fb0b40 GIT binary patch literal 38896 zcmdU%36xyrb?2XLWh?JnV#juP#1=@PZnR()AqmtHiwtUHNkA~B?dtC8?y{<@nyPAA zZI%EsU`H4vc4M;$Y-h6_ArQ2X5Dv*W6UQ^D@|-i1iO(-qAmZJ_QS`*S zqv(CWeZcnsp9B6Z@b`i50{%(3{x`t)a=wU0YWD&D(GaHt-w8Z7z)isSbAC1OBfuK) zB;c3B`L}^;{|CUg0)G_Xe+6p1{{j3t;G39CczqDa)KNcB^IyO}TE}*v#<>nCJZ}Yl z5O^=}0^qlRHv<0(xDWU_22;Pcf!xKwrNG6&>wt@Z4*^dDehqjE@b`df|JOj_^Hzv* zGVr57UB3|ci@;&vsleOA^>2sk-v?^_e+3j?Z)K1V0T%<+emzj*l!2np9YBruO`zKU zK5!ZE&jNhc2mE|3Q2jp#>;v8ljDg<;E&={&fCUCw#rZ1WO5iw9>wN^M`Mw+Ap8$WJ zbN%xcz=r}nDZq~gcxr&B2Y5z+s{%Y5_-6W_2Nd7d0U>>~Ex_>rZvYCfdw?GU{tgh7 zqrU)(pKpRlqRYF1I`0P}645%K+qIJ#&_!XeW zIRtzM@CU%NfjQQZs_1YNLiIM_ULY)u9s^3=o&)|n+Wjf;FE~HQMd`s~r$bBNw}8@< zzW@r4zXgh3iy(sFM*=(xh^R)F1GUZ)Q0v+WtTO%q;M+Jqc{%a}qxylM7+ndmgvT`S z@45a25R{{@ejFJE9tDcd(OE8UD}n0wS)lajmx1R4e-9|S{S-u94Llv#4;%x++UNn` z<-q+wNFGJ!_&6T{Zs2qc@G0=T1*ma8wkC=OftLW){~@5}JpdG6+rSS4{|2c0?^x?_ zX@DDnTE}OAYJVG0`tfAA{|CU2aQp=10Wnc_^1^6-Gj|2SJg^u4Qp!yeq7XWtwHSg~NR|Ee$5K)c#E^>Vz z1!4lDuK+dvGeGh04+H#jpyv4p;3>cuq1X5q15W~$frxbUrEvYXf$INfK-r7G12%yl zy#yTxJ`DVCz|U{;emg!9MMpS)3Ml>f?4|CH_5&N79|S^@Xz69Hj}@TC{SHv;_#+^y z9KCb1sZ?|UaDwyMaQ-Ur0?t2#GO69CfqlR)0~Z4i1GfVI6e#+f2@;?Z)qq=oF96p9 z-^$6SfSZ7z9(_HW|26QJbp4Z2bPe!HASNXGN8r`K6%2kQa5u0Fd=wrJO^p00Cxl5O#i*WHv#Vt@WB8d4)77+b=?0N z5YrRA;|iCri-D(dJ^>V+_5j8A=K}mA;OU(IJ@C`OQ&=QFqg}uf@IL}?2A+SF+sC6o z@$DZ2TmsQF?pC1Y*$Es5J^_>*yanRHx@a44IdC6P^7q34{|+d*h+zsQFd6}hPfq|> z0AB(A1Mpoi<*J`VmqGH^Am}KQ2#>cTB<}&94OIV608yprPT+s0{SSb*Lbz|$eBJ#J zX_ot2fa>>s;Cq4p3HWZ{-vBQJzNH>T-v(|1{s!=W0yW>04fhv60DciX-q-YTA7#)V zVfSAGYTaMG$>rlOfqND~JBZlN_10}Z-j9Kjqu@alQ|@33%F_E^kes@Ou*YN#JH0T>yL>D8Bs(@JaCe%$NN7o9~IDU+4M;;9}rk z0apRvyT|Rw#lRJu-v~Sd_#NO`z*m6sXYb$Za&Rv2JkDo<7Xl9gb^jlL=K@c<*Y)RW zpvJ!|!0!T=aQ?TzQ-B}2&)aVV!mj9MAmoZ}2THGgC7k~N$TFffQ0@LhfUf{oasKDP zj{!e;zmK~PD7h{HC6{}F9{?T-*MA87Am{%G6dgYBfZNS=KwbY7P)!)v{x_GU5?-8cn636p5XX3{Rn@b2yhbkagIwl zFon_M94~O_?@Js9IDUmgvM+g?<b_~#cmWFP)8xzGi-h4Zt3lHXtC_#(&C z9Le7|`0k_#wx+96!NvF^B$c z<+zdK4|Kv`fuqiGCC7Oj_i?P}c#PwF9Le7VKOW@x>2TpL;1Z6t9PiY%I36fgchsk+ znj^FEhT3$!8OL1QP@9}8R%heQrTTcOZkH~sHu<%sQk(@07AH#$yL?f(-e@M5)%9X- z#e=nGd{J$>I%;jwOPAG(qouBE+ltrcFI|3pn9n+0RjyXU`6acPxLLEAY|u^B#`M@& zd8AybHscM&#zc>+_0nj$8DCbOoNo!~{OO;Bo9&c;bMs~y(?i`sYR>w>8?{BXc zN6Xc5Baq!4EX|~Z(P)FUY+inEEDifC{N6TEtOo*RXX~#omMg{KiqDl@-_&SK2NHyS z`74IymRh|zR;!e2hKOShe$_^Cq*<<2<8n1#TychMuQiL6_{w5s+UMCmU9YZ=hi+Ir zI&_ou9=hhV(@u*oE5bJ2i#Z#*mOC0?qS%OsOQmW&S{i{yU^N`XBOacOn-ir@66Q(N z|GEb#6ozhCU#Y~!Mx)deF4vbFnPzbZD8c-CX{tCI*QT3|X0d9_snj4s|Ikfu$mH8u zpVYy~P#mw9SU7Wc0lTfBJahPXCnWNC=u@%2V^_)#j3OvHYz zHd8H)<}sW{+L76ec4d*uoM&l~_KT@lr%S}jEM~&=eX=k%ujB8URM0ZpZpXy^Lqos2+Vu)BN zS4;8YQR|ts7%P_;{y1+6uZE+Q^w;_zi1hlHL#3STg+%ww{5(}|mPg}pS;6Y`2qISeCpznggW7#Pb(Jn^-UIc_BBnjv(b;au;k`M2@_nG!7voZ%9WB4 zIJw`L9$u)4m|B#KC+kZ)*QN|>P=?;|Xsy(!o=V$F1)E*0#>M*h^dx55nVmMKX}J*> zCx^@9)3xcwdGS;Y&J33;{uxPYs!SjLxOcLo z^#dC=UU<>Pm)wZio|*_?Cie7F&Y;3jo;T5@UhrxtB2RZGJ)u5FtrPhm$J(Z-q$Se3I<$X2dmaHlOSXv~{oBdTewraX?bUdQa= zVPD>yf%J-@oBD=sI9EtxjfQSmvtj$z%hs*gunu>G#~CSBM@khK=$(TZL}-21hSu#v zC@4wCNP5?*&2p9KrD!H99i~yLAfFQdYlf~#0@O;WiAx%~78?49XEI>VF5&*F*SMeb zua`%Q)iUAXlwwE``l4FBTHL8C7?nmO=Hs1^ro`b5mtw*Z1-N7N+9Yb**wL?;<|1q? zhGsPfflAMQuDp;g?X(foHPWo%pHH-B@98A$GT;{7bxs#uT*5k+3GGIrOG@>T>52)- zsN_vi_oT$if{+Hb-K1@%OuVhoXu6JVX&}n4)e`Pil2+3MM_mIAV|{8f$7o=oANMzn z#TT#Ne4$jdF;yBVhoBG?tk`DlFZGUJK;CLl4vDo6|!0W>FyO_Q;H zQiE(WrZqY=i2g!XYn|9B4H1MtK^jkqlVp}9<*~S!kV5>YEp>@n+OI=CwhhwxGxXpJ$8u|$gApC_racSxei*+NC|0dAes=N+`w%VE6s`8^!P+f3OGq14_eqwe5YiFKpl~&mtarc zF(4JixMJwT{BdzS4u3=NYRAnh05|u?LyenH^Ix1~=h@|%k~u~MzkTpDBN3apwIQtO6XJG0%g-di=sj=yI7D#+_ogAH+Q~1^orqUPKXQigjESvyMnt-5?Sxdg*7G z+4(#tM8h$w_KcMgD|ZO}g)0cqYBC`sQoqz723ul7!$#u))FlW)n=qffNr6I2ZG}s~ zLlg+sPZSUm=^Y~gicYD@7jAi#L;-_rb~iD(Fns$20}&OoR=Jn-KP_odJWWz$SP$)E()0;dqtH#1E%snO9G6AVY zui#myYzvREb4H6osjA4wji%K#Z6QS7P1!=RfKIRobF5V=CKo3~FI;O3N{!Yh6ZN5xF6i8$O`?1y{1xbi#&A)lo)J0 zC;!ag^C|f+X{y{^@bHq66r9#uc;2YZf=w5j}+)$yFNkz7ei&D_$>Bn=EM0eko%3Ck!9Z{EoFH%gU|FG03tKn!J%A zL*eRR>@5ihfh8(Ro*p8$&ZIaKkyJ+XbV{Lnqrb3C{7z0~$#CEBuQ6kVarie)5Q(gy zq?q%>OF8dx_r_Wge1*)SdK2m*HMo-vS^T(xn~X6uKs`cYVig8CFbnc6t6{7Ri$u~a z=|C(AIm{1BjujHD_Gl$wW1*>%fT?;}F|n;7iDNY{HM%6xx10+%K~{~e_vA#@DxF)t zC7Iq-302SAn~sxs$>PRRY(rr~ZECh|Wq>6cbYWTiiP}Up{#22uy)-t4)aS>L`#3JE zwM_n*g~=7oq3ZEb-ylzE6M%8QoTsLnDXA#IaQGdwm3T2-Hg~v`1zD;>977H~DNM$A5*asYV@)zP4S}?9 z6)!;jet240vOg-&C>YsEDlC?!6fPdTBEFc4ah=q7%k(f&9}mMxUsYgEoZ2ddi|&~{ z?$R8j#*S_c>EQW;E&2?1Jz-KY*{2=hDPNJb;_4}tD*G}6X6o!~phQ?0yga^Y{noAP z2e)5MMB;h6$+LN1LQJg#iK-N5&V#&8s(`I~y%Muj(5p^4nGjj^aA0-fCALEb3wKOf zC3O{PjY1r$vWdHKs6SFui8@5AhX{?*|G>?YsFL)L5N!#M?C~a4$y^gbonM=W21(9g zgq~#9h{(l!xH&=>*wCQ1VtJ2&o%MFhwfAsQJ$j-22{Ao(SgK}F9apR&g~+)X(;w9vNN_YwGJ38Ul+<DDW@Z1;UA3-wT0*`7V~TnOy}MIM>; zM^`jV@re+xxqQp^O_vYGWck;|*XR+!wS`FTT!pA4U#B0)^N`9i*#7zVVU_gzhOo6F z)VR`iX7v{s!|olUe@L!8bHWCMB%0~e({ahS@#M`C8tvjpmrxvaBa2DTqi5q*_3Vve zrd8o*CdvpZUCk%SDp@vkvaKd*ZV6-3#*hd}q@EXf85QG1gT;d<^C(Lak?xQoHP99> znZ}!7#|>VNusB#)XwM4_koVJ$BoCBTGfS9vO}xb{-I{G%)^E6Qon}e1MV^Kp>o#h( zW?=n>OG8hE8CoBf^ZGJd3H)I(V+;-Cg9B+ZV%QlUNSu1-HHyTN;2`m+iL`@jagt{n z9xZtcgg;LU&tt*MQ^&DQ4HaeSUV_v^G&E>!tPA~^e_PmQE+MTCiYR^_%gMB7-d!^I$(oH|l?QZn4` z!Op?KD#csjN@;Sci9wkn`oOp39Y6iM(a4W2h48UU_#@F{fM#tV=F3D9*i%Ix5ih*TjK3pu{%T8M!_Z7mW|I%qiEq7C5mI_ z+O}#GLZt!M>d_-RCMn9B;$(Xzsp~M@nibk@FyLiW3kH3K*)0Nn&*tr6zH8QOdV6Ci zHIL?yuCyOE&rj%CurPGP^XrIsaaED~uaN6u+L{+G?90&0q&^q_+rVkV`9i z4Hv0=nI*LyylS$_5TZ(g)?hmFbxgy_?hml3D=bpo=WQBH2fC2*mRox1s+>W3tLGHy z-7CvH`Z6<}*J<58QwZ9)8nRP+yY745FuzG|1Im(5PKSA9tZjw4yB#;9;_%35X>5F= z{J9;K$!cxtI*MD#Mx~4CZBc5(7SowhebHbo`E_-v5sg!q-l^SztJBSp*)}Vzs&9L= zt&!|O^bJEB!VUxty=cQoxVo`4R-CRhuhizzMQhIsR|jj02CLyW^DVl1HnL1)(RzQl zsYjGDvmOOdPV>7Pe9yBL?aAentJ4&W^w1Q)JpZa>D!XdtSIMciGNj{b^RtmXy>dCv zQ_cUl17QIB3p3hXNo3mIHzr#cptj!bMrY;vMO&=EFmFBS{jK&OE}3M0|KQvF2||zY z!~IHWOiS(VKd@*+CxsSnpgq8t6z!ljiU$k_7Hvsgo<9br!Q_sS3FIJbrVD4E!8KpM zniA|~5eb0;i^&o>>1@Q-%VxP*DJ`Pr;mVs{8PL;dN+OlU(yZAf0h7WKV?+KH+{)U) zirfj?k?V>u3QHC*&JE^XIct~lqu@O5n%mjYHHOoehv?eRo(&Z)i}cw=lZLL-uxs6? zQXvChk6mNqp4M;-C2^?4%rB8tt4MZZvB%Be3PO+Vi_}W~AP%O%6Mq zvoqhQyro`K#iwu6Xy27kgObJSSk-K_>FoYh1uQKFy>D}4ygb@BKyA8jdu?_6iTTC7!{^E3D%jMhq&^g;F-M7&+X65n~EBltO>RWMEykgbrm8(u)v10jh8uo1^ zI@M%7+AUwbVx_m!#{51kWVJz2riScvl)K_JJ<(WKxQy^>nq;VNd#O0NI^H_XR$BHJ zC6`yn_36UqO`9*w7QCW=If6#yQ)Rx{DO6n#6V4zTELYF7Eu$o_Yp>XTQQtXPJK;t3 zx$nZTk92i>&M=QVwp6C6G4)ZVn1ln>DLZYfUB#YW`?+>Wb@7VjYuB!bPdO#l&*dkt zU9loQKVBZwobz>SS0=aCtUXgdt;g~;E0)JM-soLuvwSIiR?uhV((?*Y9JltgZ)rW< znrq(%+~0bx^>rmXjwY{tLtiA2f+SfYF{d-z3w&q#~Gz@rXN1lkO6qOeOFhDN0{}6WNG`M z6%7u=FaKuiAy&1w^*migw}UbLk23Ky%ygiAM|=0nhkc4iZTO>*^|luMX>=#39Q6f@ zyqvaow{Jg2Yp32zj4n*U5>|v0p}pU`evLcNfl!JT)7=xdzhFy$R%qD;WBDz#T&SB% zL4Gw73%ZHzFC=It!!iCGxEx7_W4Z0y7G9k0375kVDj*PgK<4%xnON-!r*lC(=p+)t z{g*^9N29xu?1nZvP4zeSl@&BUUYo+jk1HM8wfvLtibOqw(lYl9lD`)FXVvuVvZ1k7cy73n`GZ9o^v5Vn*|(67RREw@e-Gi zI>wOAgUN{?&SkvYugc3m;|li%Et4Sw*~5;mlO7?HeA`8q?`uc|)$JPs**Y?GQz3oD zN~{x&I%Kbfye9n)X~B|LF}zbW=m%www)dtqby2Y4xPd5qJ&1f@U!q-_4|!?rFCb!H zVgRoS_O*8*;K|hOyH9w4T<_N0>*{@Ies2l+3m_*yV{|uDA1sQk$SM9bl)^@|znF-k zSuI{4Q&_8iq_>zMdBUf$SBDt)ARdE4tM6&RGa!2CpNr&S43-HmwB(Wvk1QkS64+;b z9JvhS0X3E7nS(RtgwaQTkwij`X@M*94*JOmZium2W~yFfp1WhvmX(@AS9YxyR+W*L z4?Eg8NJNYgo|lnQK%n{D?Pw_yuIITSKO+5+92j;lw0HRka%W!*riw;*L)LHM0jP)q zFCTVvX_KL4-ZO{4bQN=&jt*LEu`tT!x`9X_5eD*&=wQ?U!*nTPg?XQZfE`mVi;3N8=Kaq$NS=wuN>|A1wnC3RbZ*i-AOK=7-;uuUL zCO82W)A|Ku{_ggj8WWkDF9=TFd8_D}gs>rKk8Rq~!;)lKVaV6!#)8b4*VUECLQl{; z%pnCKAUu#cOkFu57oq?bVRQjnU?|gRvoVSkPh`Mub}^v>P9iVqc@ldI8QF;xo&AnZ zp7_$k#QRw+O?M24P{Xk0bsVWSlXS54{5)=B-7}@cP?`87+*3^4!E(LS_VVHLARM#g z42;ygHRmrZ<|M?Mzkx_*>p$V4+qceNI~)(I&kd}X9RC?8>(jmg=p64trM@S?nqv-| z$f<&jG<9q5ZM|qJhWEpRNK+6db7SV{h+j>1ec4#En*g{GsSfyYg}S_bj`9w*7mK{Y!Xr zLHMt=FSR}iNfeKmyL1!TnGn-oz7SF=mk}h^k>a-wo?IYH3SEgWn49=Q?0_2gC~)*w zNxK(Aao{VhM_OMcR)3TM9&bI-+Shur_0+uAOS?PHd(D&v3g^h9#a{UTg3yY&(2>ta zWFMp(yNpp<2aK|JL|gaUUdYy?dL1(Ymp!e=@Nv+dMbJ(r^%>wHn0%1%0+wI_aqx4R z$;6ub`w1Ju)KTj`6MMy4co8EPx53VaQ=j|jEZx{0S+E(xR%k|6LsSwo2Z?}mO0-sI zB$n9GR;9d%smTC>8p(sS@9MP}MY8h-f8C?rD;gpPwjf1V^TLkwC0D&C3${uo<`9P5 zhSSd6PIR(BQ-ikeLR29^eiqRi#BsREqLVsRI+wjro1d)pxE`*AXu~KeHz%*{6)45) zrn3rB%tQsNG=F+a-H0cNt=LnG;3|zrhon76+Pmk!gxiIFNB_>(agU>Acrh14;C^1( zMam%oin*v_$w5y%BvB8DHO7@^v3qlEDLdA^1%~DY+LMeidnaQQKrVXBr7lKcC2+4mi7V|pK zpY#A`4l8eYbVtdu$JD)gLmQJ8Gfv2*=`S?s$_P{_zOVH}YmcNcSSyKdV&w9w4@szj zvx=j7y}5_DipC;Vrs=lcg2dPeDnBjXl;(LR&bplxo)x`xNjaM!WT=IpQtQK@@$c7>3+;8+JtP3~LlX%T$2ipPaC0d9u3{ z@gW&W3%4arhcK(58u)xj`4K$Xxi8xQhYGpobL{YxG)Wv|7b}$o#T(&p96d~k zL0cFFp%50a{vc#d%Egqy6(Q%!O2!q@M|EsCWYX4AJC*@ex~2-@QB|15KqfpOCdsTC zZ61Q9a}eW%oc0wm zWFZIQL2(catz>V@l*A|i6ly5QIGubyrWLsqwUf?Rmis0?@r*sbl9+c%82XB~YTQuwcbYS%7JeSr@J*N%0(Z zK{Rp2KMIX9)pU!7rAu|S7hz>8z`z{Dv#GPn#^Jek8f;@!^Z-mo!%T*m6*;V1nCoD{ zk}lomG?3=4n001o#fju_REzSbPBveOyLWyv&BanDw7e$n5r^bI*+_to!yPKVz`WD5kg!Vh z1VacO9$K(679_8M|C4W14Z$;P1V)S@{xI~lJUyAWm?4BW?OkHzx9MVmm?T)%CZ}(% zFCCs%Pq6mVEio*R86FA^Mm70IX!BTzSod;Ceny2@p$qK}*h>7tG!_m_;?|Q3Fr$Os zFau9mkaXpv7`@jR)D9!7Pb7qOtNClkGG+IU>k>NDRv3)1fbooWMYe9-qa~OFJ?lwG^=;y-KY+#fl_h6Hf6FM&YX;ms$ z8TWKgX<2GQAX#bmv@+zT;7VfW+P8B9luak?!HX_iXkbM?T;ML*SoyugVVMmG zTPbAV+*O+Wf5rmhFNWFKh`}$nVQ%FT3!?Rf4KulX%hwQ!Ub6jqS3kBbCo-C8>VF`? z)-8#QSJ?5PAnG~LCsk8gm$S*1yD1`3*ugE&FKFTJPVtmKvX-C5U#YX((!@P>6eM1~ z@w;dL7}9ylY;UR zOk&|;URM|g@nN-yEYiXcZ6vx~l3{U364Bl%*OlRedrqoN?zwlv04>_YQ4D&K3mt)@ z=pm;FrYs#JtvB+5ZZWx*m?NirPM(yKa&gs$b?pchJB4bR&PW0S#1D3pNl!aI;sK44 zrzoJA#+S5Lc|EWBLZxR=tOAy_%VKfFk#2@WOF_C7&vPM<%$RR&vUE@`nxdv8xpN~E zV$OWJ{RTZhQWG^u@?DbWK)HsVS1%K#Ww0wB(eP z)MNE!lh#wT)ou&tHJhgfW3yIVHT?l)t5M-UB{7t56pXg0gQctFvnLevZEpilvdMsZ ze)+^llcvh&85^_-CrN>9BcZ}t*6W1|?T7&@{+CVAE}}V&-RsjR^T$>=Enn320H|v) zRSo8SHO0lx%&+t=x8ujSi-8n=N+d|Fg{&}k;Y^v|-W>`7xeu!lNIZrgf1vdQV&NuO zj#Oz~5X-Cq$_?9Ok;FaU8x+!9(IS|!R0>rg-N%B>FfrO4FfSD4u{-P@B4dgY1M0Lt z&ON-yPv)ttr0Hx&IHZc5`)wuDl34I??~hDc_4Z-&o47N_N{@%qOWDU>lC(j~I?}#J ztsZMVjYOElJuR9@wh!<;LyV;y?b;A_n2BSOcI_CG7v7b;)8A{98q-nIpz$f^H9mJ-qxb4>33N>gW9645@hJgI|vfd=pA>!>YplQqrpHW?0pY+3@ z@o)*-mbdX%zg3*blW1;29M9uJB`sf)L4wHN#fKH-sA-<_z?^2Fim$OB4(Q4s$31F zOe7389=r)Zt`#jQBvtGJU~mOo)(8XgxJHO zor+M@YQ$=JEQvIqK+#52z)p}2=;KGyGgvyn2-pQKbqw$(y~FMCUdxw7q1IU`|g!eL9_uqdpD(1^DT!zKJ|7QdyWgPcxcWrP0Y zFVu4JyP^?1g(w}#Tc*j!w~To%-bAL%o^({wzFEEm{(1dttj5*GLf5NG)6pV z{zX!JP{zQX4R{{z_AN)6tPU0IfZsEfk<7p7j+lxyYfw<`)629AR|_7MCAqR;^`QL1 zU%66buji$nhO83H=`5{K#LmN2p=*UjJ%oRl3}_F>!>w;WLx z3lnE6YdzhU5zdJcubF5zr&gbF#>~u2|9Ev;uc@BFcfa(_uf`eUQG{!to{QG;9eGD_J*U?G;ilD&Pk6wXU3lw@Gmdcop=Z^(@c!B&%|gx*CdpX7Pk% z;+GIH9!({m_A-sO*?IeiQ7qabl(Yw{@-g92TaLSqnc42FFk@1z1kMn5DKx z;WAezOQI5MXGjMk% z&BtYgOqDV7UPe(#B#(Mp48eYRg#?6IiBUtPXsJJ!P<j|nMPjY-MeBo_=HFklSY*&4* zRw{QQs}=(6BpV49R`H2~_8=YRnQ5+=!Ca=jy5{B9gIbGyKd$vKERYS(RSDq^fsA(V z#@gik)z)`fzZyO(2V3rAJ$v}H+yYTf_CQXt9-)Rg75koCAJgdNXh{P8mBUg(<7;LSQI&pb%FZ`1Sh$HxBDfZ+$#aTr^y`O~Fo% zCbxQfrQL6%;Bp)bev&}e873=#el7LCM$vyh;97%mlD*nXiT|tX<_V1`O!dZCc~5NL zD103QoENWo^^QI3%(%+6gS58D!4@aFdkL;$l>5bi+`|DXg7$gCoqXnB?dJ<;(?AS9x5L07OM0 zL1*%sAm+uGBXOU3O&aCg6u*^X#l9)3V9KfI+KKFHu_EeT#%C&p+tPk%BZ56|x&9O# zw%=m9w54w=rIaa2g-guA5Z6Zc9{W1y%fu_r^1qpbaW~vOOkBvsOR5| zOG3U>T++KO=moJrpt~f*gBUT7sy=P`f%X(=n(XoOz$hgB^l;1ijN0$wbe@G#M@5#5 zmOY^g*AhF^+MmSISP6=3GB{>Vv|~X#Ys~OS%_J=P6oJ&bhjrGC9FL@q3L$B#ZXz5W zCT!NRC(T3)o)tnvj4Y#yiAaJ`z#?b_*Z83wIf|lfP#*HrN){1jBTr6E!<6XLzei~; z`OPOOMcOABRNqjLi?UC%WczLy$grTYWt4{Gaspu=eCHOo-YH8+VX{nS;cO>Ody-5? zk7M=cpTShX-Wg>lNxNyK8;g)!cvz?9!zkzhfnWF6EEk$QO{Hv;)k3LUy13(^MAjzj zHkkjqC2v%=*s`z(pTky>m`BLE@+4}4URRI>(_@TpF0 zQu-otnpi3J3`D%zXkXRT;~B(Kp?VrW$~Nc~(z&da5{}&7sMOHN_$g7hK;ag7hOR!Q zAYo*56qDTRqetrGpW?KI=6BU3mO>gv-ym$+_c@QVLpnpg>L9z4mQgTb^9?~~H|zw? zBc+qYaC|>0LEc^}aIZkLq|}&FtaVWR{j;B~eXKG0nwZ6W@;1&n7%+cp zRQ5?wn_He%c1(C`X$ep>sj_^}m>_em72rX>WO<3pk>GlJm24`BzrcKS0``+l1?&;7AQq}hE?hlhL z)GmTtPotXl^aB5>sP+&x{xIsL`Z9GHNpO2t@@jnc-BMyx2%}2x{`}`k>6ZU+jRhD| zR(UkOiD0q5G+d6GJXqh?;pKhRK3&(MC_7nk>G;AdByP6{D8kd!2~Reo7L zIoaJLaZ6>ReYbXnJkA7?En-O2C7j3(?f1`fVgaMplibEc1hXSo$1EWu5^DCBZ)Uq& zWR*PS@mL)y8HMbPYR#L4FTr`r0@w@Y$?RGoE}nH^7E_sK!l<=RZ5hOt=#L??wXt`~ zke}V3Hvs3$Z0`9VmoF-wT3znkP(dOS;&s#tx&J;tPMYmmh)I&E~OU z#jVJQ<#@Se=1FP~q2^Iud85pN2W)DyB%5NXzdPP>Kf^HlDyn~&Cppi37u6&b7CM>` zJk7=R5S)EQT$+mtnQM&5*ksJu$`ihl+Kpc!k6(_x9ZZ_HD*wP~7RaV7$=+(2%O=b* zBy{Y-id@g0jOe)ku-4vs=GgKQ5RfDw5yas#FEKrpQTnT67K_H_%Jp?Cg_=Be!9Np5 l?1ptv4%4DX{CrhadIs$HsA^zU_90b$zBW6PjnFr^{tq#m$b0|* literal 0 HcmV?d00001 diff --git a/po/ru.po b/po/ru.po index 0b688d5..af3e0b8 100644 --- a/po/ru.po +++ b/po/ru.po @@ -15,7 +15,7 @@ msgid "" msgstr "" "Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2012-03-16 10:10+1100\n" +"POT-Creation-Date: 2012-03-16 13:23+1100\n" "PO-Revision-Date: 2012-03-16 10:12+1100\n" "Last-Translator: John Zaitseff \n" "Language-Team: Russian\n" diff --git a/po/trader.pot b/po/trader.pot index 7323258..e4b197c 100644 --- a/po/trader.pot +++ b/po/trader.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: trader 7.2\n" +"Project-Id-Version: trader 7.3\n" "Report-Msgid-Bugs-To: J.Zaitseff@zap.org.au\n" -"POT-Creation-Date: 2011-08-29 10:48+1000\n" +"POT-Creation-Date: 2012-03-16 13:23+1100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -191,8 +191,9 @@ msgstr "" #. vertical line. The first ("." in English) is used for empty #. space, the second ("+") for outposts, the third ("*") for stars, #. the remaining for the eight companies. Do not change or translate -#. anything after the vertical line. -#: src/globals.c:90 +#. anything after the vertical line. Double-width characters ARE +#. handled correctly. +#: src/globals.c:91 msgid ".+*ABCDEFGH|output|MapVals" msgstr "" @@ -201,7 +202,8 @@ msgstr "" #. before the ASCII vertical line. The first character corresponds #. to the first character in the "input|GameMoves" string, and so on. #. Do not change or translate anything after the vertical line. -#: src/globals.c:100 +#. Double-width characters ARE handled correctly. +#: src/globals.c:102 msgid "abcdefghijklmnopqrst|output|GameMoves" msgstr "" @@ -210,35 +212,35 @@ msgstr "" #. on the gender of the player, it may be simpler to list cardinal #. numbers instead (eg, "No. 1"). Up to five characters are allowed #. (see ORDINAL_COLS in src/intf.h). -#: src/globals.c:111 +#: src/globals.c:113 msgid "1st" msgstr "" -#: src/globals.c:112 +#: src/globals.c:114 msgid "2nd" msgstr "" -#: src/globals.c:113 +#: src/globals.c:115 msgid "3rd" msgstr "" -#: src/globals.c:114 +#: src/globals.c:116 msgid "4th" msgstr "" -#: src/globals.c:115 +#: src/globals.c:117 msgid "5th" msgstr "" -#: src/globals.c:116 +#: src/globals.c:118 msgid "6th" msgstr "" -#: src/globals.c:117 +#: src/globals.c:119 msgid "7th" msgstr "" -#: src/globals.c:118 +#: src/globals.c:120 msgid "8th" msgstr "" @@ -274,7 +276,7 @@ msgctxt "input|ContinueGame" msgid "Cc" msgstr "" -#: src/game.c:341 src/move.c:380 +#: src/game.c:341 src/move.c:386 msgid "Enter game number [^{1^}-^{9^}] or ^{^} to cancel: " msgstr "" @@ -339,7 +341,7 @@ msgstr "" #. TRANSLATORS: "Player" is used as a column title in a #. table containing all player names. -#: src/game.c:606 src/move.c:847 +#: src/game.c:606 src/move.c:855 msgctxt "subtitle" msgid "Player" msgstr "" @@ -455,38 +457,38 @@ msgctxt "label" msgid "Total value: " msgstr "" -#: src/game.c:800 src/exch.c:323 +#: src/game.c:800 src/exch.c:322 msgctxt "label" msgid "Current cash: " msgstr "" -#: src/game.c:807 src/exch.c:331 +#: src/game.c:807 src/exch.c:330 msgctxt "label" msgid "Current debt: " msgstr "" -#: src/game.c:813 src/exch.c:336 +#: src/game.c:813 src/exch.c:335 msgctxt "label" msgid "Interest rate: " msgstr "" -#: src/move.c:235 src/exch.c:183 +#: src/move.c:239 src/exch.c:182 msgid "^{<1>^} Display stock portfolio" msgstr "" -#: src/move.c:237 +#: src/move.c:241 msgid "^{<2>^} Declare bankruptcy" msgstr "" -#: src/move.c:239 +#: src/move.c:243 msgid "^{<3>^} Save and end the game" msgstr "" -#: src/move.c:241 +#: src/move.c:245 msgid "^{^} Quit the game" msgstr "" -#: src/move.c:245 +#: src/move.c:249 #, c-format msgid "Select move [^[%lc^]-^[%lc^]/^{1^}-^{3^}/^{^}]: " msgstr "" @@ -494,65 +496,67 @@ msgstr "" #. TRANSLATORS: "Move" refers to the choice of #. moves made by the current player (out of a #. selection of 20 moves). -#: src/move.c:277 +#: src/move.c:282 #, c-format msgid "Move ^{%lc^}" msgstr "" -#: src/move.c:297 +#: src/move.c:303 msgid "^{<2>^} (Declare bankruptcy)" msgstr "" -#: src/move.c:306 +#: src/move.c:312 msgid "^{<3>^} (Save and end the game)" msgstr "" -#: src/move.c:327 +#: src/move.c:333 msgid "^{^} (Quit the game)" msgstr "" -#: src/move.c:342 +#: src/move.c:348 msgid "Are you sure? [^{Y^}/^{N^}] " msgstr "" -#: src/move.c:359 src/move.c:437 +#: src/move.c:365 src/move.c:443 #, c-format msgid "Saving game %d... " msgstr "" -#: src/move.c:667 src/move.c:674 src/move.c:1018 src/move.c:1052 +#: src/move.c:673 src/move.c:681 src/move.c:1026 src/move.c:1062 msgid " Bankruptcy Court " msgstr "" -#: src/move.c:668 +#. TRANSLATORS: %ls is the player's name. +#: src/move.c:675 #, c-format msgid "%ls has been declared bankrupt by the Interstellar Trading Bank." msgstr "" -#: src/move.c:675 +#. TRANSLATORS: %ls is the player's name. +#: src/move.c:683 #, c-format msgid "%ls has declared bankruptcy." msgstr "" -#: src/move.c:743 +#: src/move.c:751 msgid " New Company " msgstr "" -#: src/move.c:744 +#: src/move.c:752 #, c-format msgid "" "A new company has been formed!\n" "Its name is ^{%ls^}." msgstr "" -#: src/move.c:803 +#: src/move.c:811 #, c-format msgid "" "^{%ls^} has just merged into ^{%ls^}.\n" "Please note the following transactions:\n" msgstr "" -#: src/move.c:809 +#: src/move.c:817 msgid " Company Merger " msgstr "" @@ -563,14 +567,14 @@ msgstr "" #. the same length and must contain a trailing space for the #. display routines to work correctly. The maximum length of #. each label is 36 characters. -#: src/move.c:829 +#: src/move.c:837 msgctxt "label" msgid "Old stock: " msgstr "" #. TRANSLATORS: "New stock" refers to the company that has -#. absorbed another due to a merger. -#: src/move.c:840 +#. absorbed the other due to a merger. +#: src/move.c:848 msgctxt "label" msgid "New Stock: " msgstr "" @@ -580,7 +584,7 @@ msgstr "" #. symbol in the current locale. The maximum column width is #. 12 characters INCLUDING the currency symbol (see #. MERGE_BONUS_COLS in src/intf.h). -#: src/move.c:854 +#: src/move.c:862 #, c-format msgctxt "subtitle" msgid "Bonus (%ls)" @@ -589,7 +593,7 @@ msgstr "" #. TRANSLATORS: "Total" refers to the total number of shares in #. the new company after a merger. The maximum column width is #. 8 characters (see MERGE_TOTAL_STOCK_COLS in src/intf.h). -#: src/move.c:859 +#: src/move.c:867 msgctxt "subtitle" msgid "Total" msgstr "" @@ -598,7 +602,7 @@ msgstr "" #. player receives in the surviving company after a merger. #. The maximum column width is 8 characters (see #. MERGE_NEW_STOCK_COLS in src/intf.h). -#: src/move.c:866 +#: src/move.c:874 msgctxt "subtitle" msgid "New" msgstr "" @@ -606,12 +610,13 @@ msgstr "" #. TRANSLATORS: "Old" refers to how many shares each player had #. in the company ceasing existence. The maximum column width #. is 8 characters (see MERGE_OLD_STOCK_COLS in src/intf.h). -#: src/move.c:872 +#: src/move.c:880 msgctxt "subtitle" msgid "Old" msgstr "" -#: src/move.c:1019 +#. TRANSLATORS: %ls represents the company name. +#: src/move.c:1028 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -619,7 +624,8 @@ msgid "" "^{All assets have been taken to repay outstanding loans.^}" msgstr "" -#: src/move.c:1041 +#. TRANSLATORS: %ls represents the company name. +#: src/move.c:1051 #, c-format msgid "" "%ls has been declared bankrupt by the Interstellar Trading Bank.\n" @@ -635,7 +641,7 @@ msgstr "" #. least one trailing space for the display #. routines to work correctly. The maximum #. length is 28 characters. -#: src/move.c:1069 +#: src/move.c:1079 msgctxt "label" msgid "Amount paid per share: " msgstr "" @@ -644,16 +650,16 @@ msgstr "" #. share price of a company before it was forced #. into bankruptcy by the Bank. This label must be #. the same width as "Amount paid per share". -#: src/move.c:1077 +#: src/move.c:1087 msgctxt "label" msgid "Old share value: " msgstr "" -#: src/move.c:1170 src/exch.c:320 +#: src/move.c:1180 src/exch.c:319 msgid " Interstellar Trading Bank " msgstr "" -#: src/move.c:1172 +#: src/move.c:1182 #, c-format msgid "" "Your debt has amounted to %N!\n" @@ -688,19 +694,19 @@ msgid "" "issued" msgstr "" -#: src/exch.c:185 +#: src/exch.c:184 msgid "^{<2>^} Display galaxy map" msgstr "" -#: src/exch.c:187 +#: src/exch.c:186 msgid "^{<3>^} Visit the Trading Bank" msgstr "" -#: src/exch.c:189 +#: src/exch.c:188 msgid "^{<4>^} Exit the Stock Exchange" msgstr "" -#: src/exch.c:192 +#: src/exch.c:191 msgid "Enter selection [^[Company letter^]/^{1^}-^{4^}]: " msgstr "" @@ -713,7 +719,7 @@ msgstr "" #. #. Note that some of these labels are used for both the Player #. Status window and the Trading Bank window. -#: src/exch.c:350 +#: src/exch.c:349 msgctxt "label" msgid "Credit limit: " msgstr "" @@ -722,56 +728,56 @@ msgstr "" #. from the Bank" menu options must all be the same length #. (ie, padded with trailing spaces as required). The maximum #. length is 72 characters. -#: src/exch.c:365 +#: src/exch.c:364 msgid "^{<1>^} Borrow money " msgstr "" -#: src/exch.c:367 +#: src/exch.c:366 msgid "^{<2>^} Repay debt " msgstr "" -#: src/exch.c:369 +#: src/exch.c:368 msgid "^{<3>^} Exit from the Bank" msgstr "" -#: src/exch.c:372 +#: src/exch.c:371 msgid "Enter selection [^{1^}-^{3^}]: " msgstr "" -#: src/exch.c:425 +#: src/exch.c:424 msgid " Insufficient Credit Limit " msgstr "" -#: src/exch.c:426 +#: src/exch.c:425 msgid "The Bank will not lend you any more money." msgstr "" -#: src/exch.c:446 +#: src/exch.c:445 msgid "How much do you wish to borrow? " msgstr "" -#: src/exch.c:478 +#: src/exch.c:477 msgid " No Debt " msgstr "" -#: src/exch.c:479 +#: src/exch.c:478 msgid "You have no debt to repay." msgstr "" -#: src/exch.c:483 +#: src/exch.c:482 msgid " No Cash " msgstr "" -#: src/exch.c:484 +#: src/exch.c:483 msgid "You have no cash with which to repay the debt!" msgstr "" -#: src/exch.c:504 +#: src/exch.c:503 msgid "How much do you wish to repay? " msgstr "" #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:580 +#: src/exch.c:579 #, c-format msgid " Stock Transaction in %ls " msgstr "" @@ -784,27 +790,27 @@ msgstr "" #. and must have at least one trailing space for the output #. routines to work correctly. The maximum length of each #. label is 22 characters. -#: src/exch.c:591 +#: src/exch.c:590 msgctxt "label|Stock A" msgid "Shares issued: " msgstr "" #. TRANSLATORS: "Shares left" is the number of shares that are #. left to be purchased in the current company. -#: src/exch.c:599 +#: src/exch.c:598 msgctxt "label|Stock A" msgid "Shares left: " msgstr "" #. TRANSLATORS: "Price per share" is the cost of each share in #. the current company. -#: src/exch.c:606 +#: src/exch.c:605 msgctxt "label|Stock A" msgid "Price per share: " msgstr "" #. TRANSLATORS: "Return" is the share return as a percentage. -#: src/exch.c:612 +#: src/exch.c:611 msgctxt "label|Stock A" msgid "Return: " msgstr "" @@ -817,109 +823,109 @@ msgstr "" #. least one trailing space for the display routines to work #. correctly. The maximum length of each label is 18 #. characters. -#: src/exch.c:625 +#: src/exch.c:624 msgctxt "label|Stock B" msgid "Current holdings: " msgstr "" #. TRANSLATORS: "Percentage owned" is the current player's #. percentage ownership in this particular company. -#: src/exch.c:632 +#: src/exch.c:631 msgctxt "label|Stock B" msgid "Percentage owned: " msgstr "" -#: src/exch.c:637 +#: src/exch.c:636 msgctxt "label|Stock B" msgid "Current cash: " msgstr "" -#: src/exch.c:648 +#: src/exch.c:647 msgid "^{<1>^} Buy stock from company" msgstr "" -#: src/exch.c:650 +#: src/exch.c:649 msgid "^{<2>^} Sell stock back to company" msgstr "" -#: src/exch.c:652 +#: src/exch.c:651 msgid "^{<3>^} Bid company to issue more shares" msgstr "" -#: src/exch.c:654 +#: src/exch.c:653 msgid "^{<4>^} Exit to the Stock Exchange" msgstr "" -#: src/exch.c:657 +#: src/exch.c:656 msgid "Enter selection [^{1^}-^{4^}]: " msgstr "" -#: src/exch.c:713 +#: src/exch.c:712 msgid " No Shares Available " msgstr "" -#: src/exch.c:714 +#: src/exch.c:713 msgid "No more shares are available for purchase." msgstr "" -#: src/exch.c:718 +#: src/exch.c:717 msgid " Insufficient Cash " msgstr "" -#: src/exch.c:719 +#: src/exch.c:718 msgid "" "You do not have enough cash\n" "to purchase additional shares." msgstr "" -#: src/exch.c:730 +#: src/exch.c:729 #, c-format msgid "You can purchase ^{one^} share." msgid_plural "You can purchase up to ^{%'ld^} shares." msgstr[0] "" msgstr[1] "" -#: src/exch.c:736 +#: src/exch.c:735 msgid "How many shares do you wish to purchase? " msgstr "" -#: src/exch.c:757 +#: src/exch.c:756 msgid " No Shares " msgstr "" -#: src/exch.c:758 +#: src/exch.c:757 msgid "You do not have any shares to sell." msgstr "" -#: src/exch.c:765 +#: src/exch.c:764 #, c-format msgid "You can sell ^{one^} share." msgid_plural "You can sell up to ^{%'ld^} shares." msgstr[0] "" msgstr[1] "" -#: src/exch.c:771 +#: src/exch.c:770 msgid "How many shares do you wish to sell? " msgstr "" -#: src/exch.c:799 +#: src/exch.c:798 msgid " No Shares Issued " msgstr "" #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:801 +#: src/exch.c:800 #, c-format msgid "" "%ls has refused\n" "to issue more shares." msgstr "" -#: src/exch.c:806 +#: src/exch.c:805 msgid " Shares Issued " msgstr "" #. TRANSLATORS: %ls represents the company name. -#: src/exch.c:808 +#: src/exch.c:807 #, c-format msgid "" "%ls has issued\n" @@ -1241,7 +1247,7 @@ msgstr "" #. TRANSLATORS: The reason the user is not asked "Press any #. key to continue" is historical: many, many people used to #. ask "where is the key?" :-) -#: src/help.c:473 src/intf.c:3024 +#: src/help.c:473 src/intf.c:3035 msgid "[ Press to continue ] " msgstr "" @@ -1274,16 +1280,26 @@ msgstr "" msgid "Star Traders" msgstr "" -#: src/intf.c:1264 +#: src/intf.c:1265 msgid "mkchstr_conv: NUL" msgstr "" -#: src/intf.c:1567 +#: src/intf.c:1568 #, c-format msgid "mkchstr: `%s'" msgstr "" -#: src/intf.c:2024 src/intf.c:2069 +#. TRANSLATORS: This string specifies the keycodes used to insert the +#. default value into the input string, if entered as the very first +#. character. Ideally, it should contain an easily-accessible +#. keycode that would NOT be used in ordinary input. Digits, ".", +#. ",", "+" and "-" are definitely NOT acceptable. +#: src/intf.c:2020 +msgctxt "input|DefaultValue" +msgid "=;" +msgstr "" + +#: src/intf.c:2034 src/intf.c:2079 #, c-format msgid "gettxline: illegal character in string: `%ls'" msgstr "" @@ -1292,12 +1308,12 @@ msgstr "" #. "input|No" contain the keycodes used to determine whether a #. user is answering "Yes" or "No" in response to some question. #. Both upper and lower-case versions should be present. -#: src/intf.c:2941 +#: src/intf.c:2952 msgctxt "input|Yes" msgid "Yy" msgstr "" -#: src/intf.c:2943 +#: src/intf.c:2954 msgctxt "input|No" msgid "Nn" msgstr "" @@ -1305,12 +1321,12 @@ msgstr "" #. TRANSLATORS: The strings "Yes" and "No" are printed as a #. response to user input in answer to questions like "Are you #. sure? [Y/N] " -#: src/intf.c:2994 +#: src/intf.c:3005 msgctxt "answer" msgid "Yes" msgstr "" -#: src/intf.c:2996 +#: src/intf.c:3007 msgctxt "answer" msgid "No" msgstr ""