diff options
-rw-r--r-- | doc/ChangeLog | 4 | ||||
-rw-r--r-- | doc/gawk.info | 741 | ||||
-rw-r--r-- | doc/gawk.texi | 23 | ||||
-rw-r--r-- | doc/gawktexi.in | 23 | ||||
-rw-r--r-- | po/zh_CN.po | 179 |
5 files changed, 494 insertions, 476 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog index abd8cdfe..fce2f3c6 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2016-07-12 Arnold D. Robbins <arnold@skeeve.com> + + * gawktexi.in (Auto-set): Add example use of multiply function. + 2016-06-30 Arnold D. Robbins <arnold@skeeve.com> * gawk.1: Typo fix. Thanks to Antonio Giovanni Colombo diff --git a/doc/gawk.info b/doc/gawk.info index 2a190873..0c2c9597 100644 --- a/doc/gawk.info +++ b/doc/gawk.info @@ -10746,6 +10746,19 @@ they are not special: return SYMTAB[variable] *= amount } + You would use it like this: + + BEGIN { + answer = 10.5 + multiply("answer", 4) + print "The answer is", answer + } + + When run, this produces: + + $ gawk -f answer.awk + -| The answer is 42 + NOTE: In order to avoid severe time-travel paradoxes,(2) neither 'FUNCTAB' nor 'SYMTAB' is available as an element within the 'SYMTAB' array. @@ -33036,7 +33049,7 @@ Index * dark corner, field separators: Full Line Fields. (line 22) * dark corner, FILENAME variable: Getline Notes. (line 19) * dark corner, FILENAME variable <1>: Auto-set. (line 108) -* dark corner, FNR/NR variables: Auto-set. (line 344) +* dark corner, FNR/NR variables: Auto-set. (line 357) * dark corner, format-control characters: Control Letters. (line 18) * dark corner, format-control characters <1>: Control Letters. (line 93) @@ -33593,7 +33606,7 @@ Index (line 12) * FNR variable: Records. (line 6) * FNR variable <1>: Auto-set. (line 118) -* FNR variable, changing: Auto-set. (line 344) +* FNR variable, changing: Auto-set. (line 357) * for statement: For Statement. (line 6) * for statement, looping over arrays: Scanning an Array. (line 20) * fork() extension function: Extension Sample Fork. @@ -34247,7 +34260,7 @@ Index * not Boolean-logic operator: Boolean Ops. (line 6) * NR variable: Records. (line 6) * NR variable <1>: Auto-set. (line 143) -* NR variable, changing: Auto-set. (line 344) +* NR variable, changing: Auto-set. (line 357) * null strings: awk split records. (line 114) * null strings <1>: Regexp Field Splitting. (line 43) @@ -34846,7 +34859,7 @@ Index (line 106) * sidebar, Changing FS Does Not Affect the Fields: Full Line Fields. (line 14) -* sidebar, Changing NR and FNR: Auto-set. (line 342) +* sidebar, Changing NR and FNR: Auto-set. (line 355) * sidebar, Controlling Output Buffering with system(): I/O Functions. (line 164) * sidebar, Escape Sequences for Metacharacters: Escape Sequences. @@ -35466,365 +35479,365 @@ Node: Exit Statement438161 Node: Built-in Variables440564 Node: User-modified441697 Node: Auto-set449283 -Ref: Auto-set-Footnote-1463670 -Ref: Auto-set-Footnote-2463876 -Node: ARGC and ARGV463932 -Node: Pattern Action Summary468145 -Node: Arrays470575 -Node: Array Basics471904 -Node: Array Intro472748 -Ref: figure-array-elements474723 -Ref: Array Intro-Footnote-1477427 -Node: Reference to Elements477555 -Node: Assigning Elements480019 -Node: Array Example480510 -Node: Scanning an Array482269 -Node: Controlling Scanning485291 -Ref: Controlling Scanning-Footnote-1490690 -Node: Numeric Array Subscripts491006 -Node: Uninitialized Subscripts493190 -Node: Delete494809 -Ref: Delete-Footnote-1497561 -Node: Multidimensional497618 -Node: Multiscanning500713 -Node: Arrays of Arrays502304 -Node: Arrays Summary507071 -Node: Functions509164 -Node: Built-in510202 -Node: Calling Built-in511283 -Node: Numeric Functions513279 -Ref: Numeric Functions-Footnote-1518112 -Ref: Numeric Functions-Footnote-2518469 -Ref: Numeric Functions-Footnote-3518517 -Node: String Functions518789 -Ref: String Functions-Footnote-1542293 -Ref: String Functions-Footnote-2542421 -Ref: String Functions-Footnote-3542669 -Node: Gory Details542756 -Ref: table-sub-escapes544547 -Ref: table-sub-proposed546066 -Ref: table-posix-sub547429 -Ref: table-gensub-escapes548970 -Ref: Gory Details-Footnote-1549793 -Node: I/O Functions549947 -Ref: table-system-return-values556529 -Ref: I/O Functions-Footnote-1558509 -Ref: I/O Functions-Footnote-2558657 -Node: Time Functions558777 -Ref: Time Functions-Footnote-1569282 -Ref: Time Functions-Footnote-2569350 -Ref: Time Functions-Footnote-3569508 -Ref: Time Functions-Footnote-4569619 -Ref: Time Functions-Footnote-5569731 -Ref: Time Functions-Footnote-6569958 -Node: Bitwise Functions570224 -Ref: table-bitwise-ops570818 -Ref: Bitwise Functions-Footnote-1575156 -Node: Type Functions575329 -Node: I18N Functions577990 -Node: User-defined579641 -Node: Definition Syntax580446 -Ref: Definition Syntax-Footnote-1586133 -Node: Function Example586204 -Ref: Function Example-Footnote-1589126 -Node: Function Caveats589148 -Node: Calling A Function589666 -Node: Variable Scope590624 -Node: Pass By Value/Reference593618 -Node: Return Statement597117 -Node: Dynamic Typing600096 -Node: Indirect Calls601026 -Ref: Indirect Calls-Footnote-1611277 -Node: Functions Summary611405 -Node: Library Functions614110 -Ref: Library Functions-Footnote-1617717 -Ref: Library Functions-Footnote-2617860 -Node: Library Names618031 -Ref: Library Names-Footnote-1621491 -Ref: Library Names-Footnote-2621714 -Node: General Functions621800 -Node: Strtonum Function622903 -Node: Assert Function625925 -Node: Round Function629251 -Node: Cliff Random Function630792 -Node: Ordinal Functions631808 -Ref: Ordinal Functions-Footnote-1634871 -Ref: Ordinal Functions-Footnote-2635123 -Node: Join Function635333 -Ref: Join Function-Footnote-1637103 -Node: Getlocaltime Function637303 -Node: Readfile Function641045 -Node: Shell Quoting643017 -Node: Data File Management644418 -Node: Filetrans Function645050 -Node: Rewind Function649146 -Node: File Checking651051 -Ref: File Checking-Footnote-1652385 -Node: Empty Files652586 -Node: Ignoring Assigns654565 -Node: Getopt Function656115 -Ref: Getopt Function-Footnote-1667584 -Node: Passwd Functions667784 -Ref: Passwd Functions-Footnote-1676623 -Node: Group Functions676711 -Ref: Group Functions-Footnote-1684608 -Node: Walking Arrays684815 -Node: Library Functions Summary687823 -Node: Library Exercises689229 -Node: Sample Programs689694 -Node: Running Examples690464 -Node: Clones691192 -Node: Cut Program692416 -Node: Egrep Program702345 -Ref: Egrep Program-Footnote-1709857 -Node: Id Program709967 -Node: Split Program713647 -Ref: Split Program-Footnote-1717106 -Node: Tee Program717235 -Node: Uniq Program720025 -Node: Wc Program727451 -Ref: Wc Program-Footnote-1731706 -Node: Miscellaneous Programs731800 -Node: Dupword Program733013 -Node: Alarm Program735043 -Node: Translate Program739898 -Ref: Translate Program-Footnote-1744463 -Node: Labels Program744733 -Ref: Labels Program-Footnote-1748084 -Node: Word Sorting748168 -Node: History Sorting752240 -Node: Extract Program754075 -Node: Simple Sed761604 -Node: Igawk Program764678 -Ref: Igawk Program-Footnote-1779009 -Ref: Igawk Program-Footnote-2779211 -Ref: Igawk Program-Footnote-3779333 -Node: Anagram Program779448 -Node: Signature Program782510 -Node: Programs Summary783757 -Node: Programs Exercises784971 -Ref: Programs Exercises-Footnote-1789100 -Node: Advanced Features789191 -Node: Nondecimal Data791181 -Node: Array Sorting792772 -Node: Controlling Array Traversal793472 -Ref: Controlling Array Traversal-Footnote-1801839 -Node: Array Sorting Functions801957 -Ref: Array Sorting Functions-Footnote-1807048 -Node: Two-way I/O807244 -Ref: Two-way I/O-Footnote-1813794 -Ref: Two-way I/O-Footnote-2813981 -Node: TCP/IP Networking814063 -Node: Profiling817181 -Ref: Profiling-Footnote-1825674 -Node: Advanced Features Summary825997 -Node: Internationalization827841 -Node: I18N and L10N829321 -Node: Explaining gettext830008 -Ref: Explaining gettext-Footnote-1835031 -Ref: Explaining gettext-Footnote-2835216 -Node: Programmer i18n835381 -Ref: Programmer i18n-Footnote-1840236 -Node: Translator i18n840285 -Node: String Extraction841079 -Ref: String Extraction-Footnote-1842211 -Node: Printf Ordering842297 -Ref: Printf Ordering-Footnote-1845083 -Node: I18N Portability845147 -Ref: I18N Portability-Footnote-1847603 -Node: I18N Example847666 -Ref: I18N Example-Footnote-1850472 -Node: Gawk I18N850545 -Node: I18N Summary851190 -Node: Debugger852531 -Node: Debugging853553 -Node: Debugging Concepts853994 -Node: Debugging Terms855803 -Node: Awk Debugging858378 -Node: Sample Debugging Session859284 -Node: Debugger Invocation859818 -Node: Finding The Bug861204 -Node: List of Debugger Commands867682 -Node: Breakpoint Control869015 -Node: Debugger Execution Control872709 -Node: Viewing And Changing Data876071 -Node: Execution Stack879445 -Node: Debugger Info881082 -Node: Miscellaneous Debugger Commands885153 -Node: Readline Support890241 -Node: Limitations891137 -Ref: Limitations-Footnote-1895368 -Node: Debugging Summary895419 -Node: Arbitrary Precision Arithmetic896698 -Node: Computer Arithmetic898114 -Ref: table-numeric-ranges901705 -Ref: Computer Arithmetic-Footnote-1902427 -Node: Math Definitions902484 -Ref: table-ieee-formats905798 -Ref: Math Definitions-Footnote-1906401 -Node: MPFR features906506 -Node: FP Math Caution908223 -Ref: FP Math Caution-Footnote-1909295 -Node: Inexactness of computations909664 -Node: Inexact representation910624 -Node: Comparing FP Values911984 -Node: Errors accumulate913066 -Node: Getting Accuracy914499 -Node: Try To Round917209 -Node: Setting precision918108 -Ref: table-predefined-precision-strings918805 -Node: Setting the rounding mode920635 -Ref: table-gawk-rounding-modes921009 -Ref: Setting the rounding mode-Footnote-1924417 -Node: Arbitrary Precision Integers924596 -Ref: Arbitrary Precision Integers-Footnote-1929513 -Node: POSIX Floating Point Problems929662 -Ref: POSIX Floating Point Problems-Footnote-1933544 -Node: Floating point summary933582 -Node: Dynamic Extensions935772 -Node: Extension Intro937325 -Node: Plugin License938591 -Node: Extension Mechanism Outline939388 -Ref: figure-load-extension939827 -Ref: figure-register-new-function941392 -Ref: figure-call-new-function942484 -Node: Extension API Description944546 -Node: Extension API Functions Introduction946078 -Node: General Data Types950937 -Ref: General Data Types-Footnote-1956892 -Node: Memory Allocation Functions957191 -Ref: Memory Allocation Functions-Footnote-1960036 -Node: Constructor Functions960135 -Node: Registration Functions961880 -Node: Extension Functions962565 -Node: Exit Callback Functions965188 -Node: Extension Version String966438 -Node: Input Parsers967101 -Node: Output Wrappers976983 -Node: Two-way processors981495 -Node: Printing Messages983760 -Ref: Printing Messages-Footnote-1984931 -Node: Updating ERRNO985084 -Node: Requesting Values985823 -Ref: table-value-types-returned986560 -Node: Accessing Parameters987443 -Node: Symbol Table Access988678 -Node: Symbol table by name989190 -Node: Symbol table by cookie991211 -Ref: Symbol table by cookie-Footnote-1995363 -Node: Cached values995427 -Ref: Cached values-Footnote-1998934 -Node: Array Manipulation999025 -Ref: Array Manipulation-Footnote-11000116 -Node: Array Data Types1000153 -Ref: Array Data Types-Footnote-11002811 -Node: Array Functions1002903 -Node: Flattening Arrays1006761 -Node: Creating Arrays1013669 -Node: Redirection API1018438 -Node: Extension API Variables1021269 -Node: Extension Versioning1021902 -Ref: gawk-api-version1022339 -Node: Extension API Informational Variables1024095 -Node: Extension API Boilerplate1025159 -Node: Finding Extensions1028973 -Node: Extension Example1029532 -Node: Internal File Description1030330 -Node: Internal File Ops1034410 -Ref: Internal File Ops-Footnote-11046172 -Node: Using Internal File Ops1046312 -Ref: Using Internal File Ops-Footnote-11048695 -Node: Extension Samples1048969 -Node: Extension Sample File Functions1050498 -Node: Extension Sample Fnmatch1058147 -Node: Extension Sample Fork1059634 -Node: Extension Sample Inplace1060852 -Node: Extension Sample Ord1064062 -Node: Extension Sample Readdir1064898 -Ref: table-readdir-file-types1065787 -Node: Extension Sample Revout1066592 -Node: Extension Sample Rev2way1067181 -Node: Extension Sample Read write array1067921 -Node: Extension Sample Readfile1069863 -Node: Extension Sample Time1070958 -Node: Extension Sample API Tests1072306 -Node: gawkextlib1072798 -Node: Extension summary1075245 -Node: Extension Exercises1078947 -Node: Language History1080444 -Node: V7/SVR3.11082100 -Node: SVR41084252 -Node: POSIX1085686 -Node: BTL1087065 -Node: POSIX/GNU1087794 -Node: Feature History1093656 -Node: Common Extensions1108026 -Node: Ranges and Locales1109309 -Ref: Ranges and Locales-Footnote-11113925 -Ref: Ranges and Locales-Footnote-21113952 -Ref: Ranges and Locales-Footnote-31114187 -Node: Contributors1114408 -Node: History summary1119977 -Node: Installation1121357 -Node: Gawk Distribution1122301 -Node: Getting1122785 -Node: Extracting1123746 -Node: Distribution contents1125384 -Node: Unix Installation1131478 -Node: Quick Installation1132160 -Node: Shell Startup Files1134574 -Node: Additional Configuration Options1135652 -Node: Configuration Philosophy1137457 -Node: Non-Unix Installation1139826 -Node: PC Installation1140284 -Node: PC Binary Installation1141604 -Node: PC Compiling1143456 -Ref: PC Compiling-Footnote-11146480 -Node: PC Testing1146589 -Node: PC Using1147769 -Node: Cygwin1151883 -Node: MSYS1152653 -Node: VMS Installation1153154 -Node: VMS Compilation1153945 -Ref: VMS Compilation-Footnote-11155174 -Node: VMS Dynamic Extensions1155232 -Node: VMS Installation Details1156917 -Node: VMS Running1159170 -Node: VMS GNV1163449 -Node: VMS Old Gawk1164184 -Node: Bugs1164655 -Node: Other Versions1168852 -Node: Installation summary1175436 -Node: Notes1176494 -Node: Compatibility Mode1177359 -Node: Additions1178141 -Node: Accessing The Source1179066 -Node: Adding Code1180501 -Node: New Ports1186720 -Node: Derived Files1191208 -Ref: Derived Files-Footnote-11196693 -Ref: Derived Files-Footnote-21196728 -Ref: Derived Files-Footnote-31197326 -Node: Future Extensions1197440 -Node: Implementation Limitations1198098 -Node: Extension Design1199281 -Node: Old Extension Problems1200435 -Ref: Old Extension Problems-Footnote-11201953 -Node: Extension New Mechanism Goals1202010 -Ref: Extension New Mechanism Goals-Footnote-11205374 -Node: Extension Other Design Decisions1205563 -Node: Extension Future Growth1207676 -Node: Old Extension Mechanism1208512 -Node: Notes summary1210275 -Node: Basic Concepts1211457 -Node: Basic High Level1212138 -Ref: figure-general-flow1212420 -Ref: figure-process-flow1213105 -Ref: Basic High Level-Footnote-11216406 -Node: Basic Data Typing1216591 -Node: Glossary1219919 -Node: Copying1251865 -Node: GNU Free Documentation License1289404 -Node: Index1314522 +Ref: Auto-set-Footnote-1463936 +Ref: Auto-set-Footnote-2464142 +Node: ARGC and ARGV464198 +Node: Pattern Action Summary468411 +Node: Arrays470841 +Node: Array Basics472170 +Node: Array Intro473014 +Ref: figure-array-elements474989 +Ref: Array Intro-Footnote-1477693 +Node: Reference to Elements477821 +Node: Assigning Elements480285 +Node: Array Example480776 +Node: Scanning an Array482535 +Node: Controlling Scanning485557 +Ref: Controlling Scanning-Footnote-1490956 +Node: Numeric Array Subscripts491272 +Node: Uninitialized Subscripts493456 +Node: Delete495075 +Ref: Delete-Footnote-1497827 +Node: Multidimensional497884 +Node: Multiscanning500979 +Node: Arrays of Arrays502570 +Node: Arrays Summary507337 +Node: Functions509430 +Node: Built-in510468 +Node: Calling Built-in511549 +Node: Numeric Functions513545 +Ref: Numeric Functions-Footnote-1518378 +Ref: Numeric Functions-Footnote-2518735 +Ref: Numeric Functions-Footnote-3518783 +Node: String Functions519055 +Ref: String Functions-Footnote-1542559 +Ref: String Functions-Footnote-2542687 +Ref: String Functions-Footnote-3542935 +Node: Gory Details543022 +Ref: table-sub-escapes544813 +Ref: table-sub-proposed546332 +Ref: table-posix-sub547695 +Ref: table-gensub-escapes549236 +Ref: Gory Details-Footnote-1550059 +Node: I/O Functions550213 +Ref: table-system-return-values556795 +Ref: I/O Functions-Footnote-1558775 +Ref: I/O Functions-Footnote-2558923 +Node: Time Functions559043 +Ref: Time Functions-Footnote-1569548 +Ref: Time Functions-Footnote-2569616 +Ref: Time Functions-Footnote-3569774 +Ref: Time Functions-Footnote-4569885 +Ref: Time Functions-Footnote-5569997 +Ref: Time Functions-Footnote-6570224 +Node: Bitwise Functions570490 +Ref: table-bitwise-ops571084 +Ref: Bitwise Functions-Footnote-1575422 +Node: Type Functions575595 +Node: I18N Functions578256 +Node: User-defined579907 +Node: Definition Syntax580712 +Ref: Definition Syntax-Footnote-1586399 +Node: Function Example586470 +Ref: Function Example-Footnote-1589392 +Node: Function Caveats589414 +Node: Calling A Function589932 +Node: Variable Scope590890 +Node: Pass By Value/Reference593884 +Node: Return Statement597383 +Node: Dynamic Typing600362 +Node: Indirect Calls601292 +Ref: Indirect Calls-Footnote-1611543 +Node: Functions Summary611671 +Node: Library Functions614376 +Ref: Library Functions-Footnote-1617983 +Ref: Library Functions-Footnote-2618126 +Node: Library Names618297 +Ref: Library Names-Footnote-1621757 +Ref: Library Names-Footnote-2621980 +Node: General Functions622066 +Node: Strtonum Function623169 +Node: Assert Function626191 +Node: Round Function629517 +Node: Cliff Random Function631058 +Node: Ordinal Functions632074 +Ref: Ordinal Functions-Footnote-1635137 +Ref: Ordinal Functions-Footnote-2635389 +Node: Join Function635599 +Ref: Join Function-Footnote-1637369 +Node: Getlocaltime Function637569 +Node: Readfile Function641311 +Node: Shell Quoting643283 +Node: Data File Management644684 +Node: Filetrans Function645316 +Node: Rewind Function649412 +Node: File Checking651317 +Ref: File Checking-Footnote-1652651 +Node: Empty Files652852 +Node: Ignoring Assigns654831 +Node: Getopt Function656381 +Ref: Getopt Function-Footnote-1667850 +Node: Passwd Functions668050 +Ref: Passwd Functions-Footnote-1676889 +Node: Group Functions676977 +Ref: Group Functions-Footnote-1684874 +Node: Walking Arrays685081 +Node: Library Functions Summary688089 +Node: Library Exercises689495 +Node: Sample Programs689960 +Node: Running Examples690730 +Node: Clones691458 +Node: Cut Program692682 +Node: Egrep Program702611 +Ref: Egrep Program-Footnote-1710123 +Node: Id Program710233 +Node: Split Program713913 +Ref: Split Program-Footnote-1717372 +Node: Tee Program717501 +Node: Uniq Program720291 +Node: Wc Program727717 +Ref: Wc Program-Footnote-1731972 +Node: Miscellaneous Programs732066 +Node: Dupword Program733279 +Node: Alarm Program735309 +Node: Translate Program740164 +Ref: Translate Program-Footnote-1744729 +Node: Labels Program744999 +Ref: Labels Program-Footnote-1748350 +Node: Word Sorting748434 +Node: History Sorting752506 +Node: Extract Program754341 +Node: Simple Sed761870 +Node: Igawk Program764944 +Ref: Igawk Program-Footnote-1779275 +Ref: Igawk Program-Footnote-2779477 +Ref: Igawk Program-Footnote-3779599 +Node: Anagram Program779714 +Node: Signature Program782776 +Node: Programs Summary784023 +Node: Programs Exercises785237 +Ref: Programs Exercises-Footnote-1789366 +Node: Advanced Features789457 +Node: Nondecimal Data791447 +Node: Array Sorting793038 +Node: Controlling Array Traversal793738 +Ref: Controlling Array Traversal-Footnote-1802105 +Node: Array Sorting Functions802223 +Ref: Array Sorting Functions-Footnote-1807314 +Node: Two-way I/O807510 +Ref: Two-way I/O-Footnote-1814060 +Ref: Two-way I/O-Footnote-2814247 +Node: TCP/IP Networking814329 +Node: Profiling817447 +Ref: Profiling-Footnote-1825940 +Node: Advanced Features Summary826263 +Node: Internationalization828107 +Node: I18N and L10N829587 +Node: Explaining gettext830274 +Ref: Explaining gettext-Footnote-1835297 +Ref: Explaining gettext-Footnote-2835482 +Node: Programmer i18n835647 +Ref: Programmer i18n-Footnote-1840502 +Node: Translator i18n840551 +Node: String Extraction841345 +Ref: String Extraction-Footnote-1842477 +Node: Printf Ordering842563 +Ref: Printf Ordering-Footnote-1845349 +Node: I18N Portability845413 +Ref: I18N Portability-Footnote-1847869 +Node: I18N Example847932 +Ref: I18N Example-Footnote-1850738 +Node: Gawk I18N850811 +Node: I18N Summary851456 +Node: Debugger852797 +Node: Debugging853819 +Node: Debugging Concepts854260 +Node: Debugging Terms856069 +Node: Awk Debugging858644 +Node: Sample Debugging Session859550 +Node: Debugger Invocation860084 +Node: Finding The Bug861470 +Node: List of Debugger Commands867948 +Node: Breakpoint Control869281 +Node: Debugger Execution Control872975 +Node: Viewing And Changing Data876337 +Node: Execution Stack879711 +Node: Debugger Info881348 +Node: Miscellaneous Debugger Commands885419 +Node: Readline Support890507 +Node: Limitations891403 +Ref: Limitations-Footnote-1895634 +Node: Debugging Summary895685 +Node: Arbitrary Precision Arithmetic896964 +Node: Computer Arithmetic898380 +Ref: table-numeric-ranges901971 +Ref: Computer Arithmetic-Footnote-1902693 +Node: Math Definitions902750 +Ref: table-ieee-formats906064 +Ref: Math Definitions-Footnote-1906667 +Node: MPFR features906772 +Node: FP Math Caution908489 +Ref: FP Math Caution-Footnote-1909561 +Node: Inexactness of computations909930 +Node: Inexact representation910890 +Node: Comparing FP Values912250 +Node: Errors accumulate913332 +Node: Getting Accuracy914765 +Node: Try To Round917475 +Node: Setting precision918374 +Ref: table-predefined-precision-strings919071 +Node: Setting the rounding mode920901 +Ref: table-gawk-rounding-modes921275 +Ref: Setting the rounding mode-Footnote-1924683 +Node: Arbitrary Precision Integers924862 +Ref: Arbitrary Precision Integers-Footnote-1929779 +Node: POSIX Floating Point Problems929928 +Ref: POSIX Floating Point Problems-Footnote-1933810 +Node: Floating point summary933848 +Node: Dynamic Extensions936038 +Node: Extension Intro937591 +Node: Plugin License938857 +Node: Extension Mechanism Outline939654 +Ref: figure-load-extension940093 +Ref: figure-register-new-function941658 +Ref: figure-call-new-function942750 +Node: Extension API Description944812 +Node: Extension API Functions Introduction946344 +Node: General Data Types951203 +Ref: General Data Types-Footnote-1957158 +Node: Memory Allocation Functions957457 +Ref: Memory Allocation Functions-Footnote-1960302 +Node: Constructor Functions960401 +Node: Registration Functions962146 +Node: Extension Functions962831 +Node: Exit Callback Functions965454 +Node: Extension Version String966704 +Node: Input Parsers967367 +Node: Output Wrappers977249 +Node: Two-way processors981761 +Node: Printing Messages984026 +Ref: Printing Messages-Footnote-1985197 +Node: Updating ERRNO985350 +Node: Requesting Values986089 +Ref: table-value-types-returned986826 +Node: Accessing Parameters987709 +Node: Symbol Table Access988944 +Node: Symbol table by name989456 +Node: Symbol table by cookie991477 +Ref: Symbol table by cookie-Footnote-1995629 +Node: Cached values995693 +Ref: Cached values-Footnote-1999200 +Node: Array Manipulation999291 +Ref: Array Manipulation-Footnote-11000382 +Node: Array Data Types1000419 +Ref: Array Data Types-Footnote-11003077 +Node: Array Functions1003169 +Node: Flattening Arrays1007027 +Node: Creating Arrays1013935 +Node: Redirection API1018704 +Node: Extension API Variables1021535 +Node: Extension Versioning1022168 +Ref: gawk-api-version1022605 +Node: Extension API Informational Variables1024361 +Node: Extension API Boilerplate1025425 +Node: Finding Extensions1029239 +Node: Extension Example1029798 +Node: Internal File Description1030596 +Node: Internal File Ops1034676 +Ref: Internal File Ops-Footnote-11046438 +Node: Using Internal File Ops1046578 +Ref: Using Internal File Ops-Footnote-11048961 +Node: Extension Samples1049235 +Node: Extension Sample File Functions1050764 +Node: Extension Sample Fnmatch1058413 +Node: Extension Sample Fork1059900 +Node: Extension Sample Inplace1061118 +Node: Extension Sample Ord1064328 +Node: Extension Sample Readdir1065164 +Ref: table-readdir-file-types1066053 +Node: Extension Sample Revout1066858 +Node: Extension Sample Rev2way1067447 +Node: Extension Sample Read write array1068187 +Node: Extension Sample Readfile1070129 +Node: Extension Sample Time1071224 +Node: Extension Sample API Tests1072572 +Node: gawkextlib1073064 +Node: Extension summary1075511 +Node: Extension Exercises1079213 +Node: Language History1080710 +Node: V7/SVR3.11082366 +Node: SVR41084518 +Node: POSIX1085952 +Node: BTL1087331 +Node: POSIX/GNU1088060 +Node: Feature History1093922 +Node: Common Extensions1108292 +Node: Ranges and Locales1109575 +Ref: Ranges and Locales-Footnote-11114191 +Ref: Ranges and Locales-Footnote-21114218 +Ref: Ranges and Locales-Footnote-31114453 +Node: Contributors1114674 +Node: History summary1120243 +Node: Installation1121623 +Node: Gawk Distribution1122567 +Node: Getting1123051 +Node: Extracting1124012 +Node: Distribution contents1125650 +Node: Unix Installation1131744 +Node: Quick Installation1132426 +Node: Shell Startup Files1134840 +Node: Additional Configuration Options1135918 +Node: Configuration Philosophy1137723 +Node: Non-Unix Installation1140092 +Node: PC Installation1140550 +Node: PC Binary Installation1141870 +Node: PC Compiling1143722 +Ref: PC Compiling-Footnote-11146746 +Node: PC Testing1146855 +Node: PC Using1148035 +Node: Cygwin1152149 +Node: MSYS1152919 +Node: VMS Installation1153420 +Node: VMS Compilation1154211 +Ref: VMS Compilation-Footnote-11155440 +Node: VMS Dynamic Extensions1155498 +Node: VMS Installation Details1157183 +Node: VMS Running1159436 +Node: VMS GNV1163715 +Node: VMS Old Gawk1164450 +Node: Bugs1164921 +Node: Other Versions1169118 +Node: Installation summary1175702 +Node: Notes1176760 +Node: Compatibility Mode1177625 +Node: Additions1178407 +Node: Accessing The Source1179332 +Node: Adding Code1180767 +Node: New Ports1186986 +Node: Derived Files1191474 +Ref: Derived Files-Footnote-11196959 +Ref: Derived Files-Footnote-21196994 +Ref: Derived Files-Footnote-31197592 +Node: Future Extensions1197706 +Node: Implementation Limitations1198364 +Node: Extension Design1199547 +Node: Old Extension Problems1200701 +Ref: Old Extension Problems-Footnote-11202219 +Node: Extension New Mechanism Goals1202276 +Ref: Extension New Mechanism Goals-Footnote-11205640 +Node: Extension Other Design Decisions1205829 +Node: Extension Future Growth1207942 +Node: Old Extension Mechanism1208778 +Node: Notes summary1210541 +Node: Basic Concepts1211723 +Node: Basic High Level1212404 +Ref: figure-general-flow1212686 +Ref: figure-process-flow1213371 +Ref: Basic High Level-Footnote-11216672 +Node: Basic Data Typing1216857 +Node: Glossary1220185 +Node: Copying1252131 +Node: GNU Free Documentation License1289670 +Node: Index1314788 End Tag Table diff --git a/doc/gawk.texi b/doc/gawk.texi index a4a1e8d7..64d72b7a 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -15386,9 +15386,28 @@ function multiply(variable, amount) @} @end example +@noindent +You would use it like this: + +@example +BEGIN @{ + answer = 10.5 + multiply("answer", 4) + print "The answer is", answer +@} +@end example + +@noindent +When run, this produces: + +@example +$ @kbd{gawk -f answer.awk} +@print{} The answer is 42 +@end example + @quotation NOTE -In order to avoid severe time-travel paradoxes,@footnote{Not to mention difficult -implementation issues.} neither @code{FUNCTAB} nor @code{SYMTAB} +In order to avoid severe time-travel paradoxes,@footnote{Not to mention +difficult implementation issues.} neither @code{FUNCTAB} nor @code{SYMTAB} is available as an element within the @code{SYMTAB} array. @end quotation @end table diff --git a/doc/gawktexi.in b/doc/gawktexi.in index e5177ca2..c205c1d5 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -14714,9 +14714,28 @@ function multiply(variable, amount) @} @end example +@noindent +You would use it like this: + +@example +BEGIN @{ + answer = 10.5 + multiply("answer", 4) + print "The answer is", answer +@} +@end example + +@noindent +When run, this produces: + +@example +$ @kbd{gawk -f answer.awk} +@print{} The answer is 42 +@end example + @quotation NOTE -In order to avoid severe time-travel paradoxes,@footnote{Not to mention difficult -implementation issues.} neither @code{FUNCTAB} nor @code{SYMTAB} +In order to avoid severe time-travel paradoxes,@footnote{Not to mention +difficult implementation issues.} neither @code{FUNCTAB} nor @code{SYMTAB} is available as an element within the @code{SYMTAB} array. @end quotation @end table diff --git a/po/zh_CN.po b/po/zh_CN.po index ff6f04d6..4a195283 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -8,10 +8,10 @@ # msgid "" msgstr "" -"Project-Id-Version: gawk 4.1.1d\n" +"Project-Id-Version: gawk 4.1.3h\n" "Report-Msgid-Bugs-To: bug-gawk@gnu.org\n" -"POT-Creation-Date: 2016-05-30 16:00-0400\n" -"PO-Revision-Date: 2016-01-31 13:28+0800\n" +"POT-Creation-Date: 2016-06-17 09:51+0300\n" +"PO-Revision-Date: 2016-07-09 13:42+0800\n" "Last-Translator: Tianze Wang <zwpwjwtz@126.com>\n" "Language-Team: Chinese (simplified) <i18n-zh@googlegroups.com>\n" "Language: zh_CN\n" @@ -19,7 +19,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Poedit 1.8.6\n" +"X-Generator: Poedit 1.8.7.1\n" #: array.c:259 #, c-format @@ -344,9 +344,8 @@ msgid "backslash not last character on line" msgstr "反斜杠不是行的最后一个字符" #: awkgram.y:3235 awkgram.y:3237 -#, fuzzy msgid "multidimensional arrays are a gawk extension" -msgstr "间接函数调用是一个 gawk 扩展" +msgstr "多维数组是一个 gawk 扩展" #: awkgram.y:3262 msgid "POSIX does not allow operator `**='" @@ -516,8 +515,7 @@ msgid "division by zero attempted in `%%'" msgstr "在“%%”中试图除 0" #: awkgram.y:5062 -msgid "" -"cannot assign a value to the result of a field post-increment expression" +msgid "cannot assign a value to the result of a field post-increment expression" msgstr "无法将值赋给字段后增表达式" #: awkgram.y:5065 @@ -554,9 +552,9 @@ msgid "fflush: cannot flush: file `%s' opened for reading, not writing" msgstr "fflush:无法使用:文件“%s”以只读方式打开,不可写" #: builtin.c:241 -#, fuzzy, c-format +#, c-format msgid "fflush: cannot flush: two-way pipe `%s' has closed write end" -msgstr "fflush:无法使用:管道“%s”以只读方式打开,不可写" +msgstr "fflush:无法刷新:双向管道“%s”的写入端已被关闭" #: builtin.c:247 #, c-format @@ -706,7 +704,7 @@ msgstr "printf:没有参数" #: builtin.c:1676 msgid "printf: attempt to write to closed write end of two-way pipe" -msgstr "" +msgstr "printf:试图向写入端已被关闭的双向管道中写入数据" #: builtin.c:1713 msgid "sqrt: received non-numeric argument" @@ -758,8 +756,7 @@ msgstr "substr:开始坐标 %g 超出字符串尾部" #: builtin.c:1831 #, c-format -msgid "" -"substr: length %g at start index %g exceeds length of first argument (%lu)" +msgid "substr: length %g at start index %g exceeds length of first argument (%lu)" msgstr "substr:在开始坐标 %2$g 下长度 %1$g 超出第一个参数的长度 (%3$lu)" #: builtin.c:1903 @@ -804,7 +801,7 @@ msgstr "system:收到非字符串参数" #: builtin.c:2165 builtin.c:2234 msgid "print: attempt to write to closed write end of two-way pipe" -msgstr "" +msgstr "print:试图向写入端已被关闭的双向管道中写入数据" #: builtin.c:2252 #, c-format @@ -853,119 +850,119 @@ msgstr "gensub:第三个参数“%.*s”被当作 1" msgid "gensub: third argument %g treated as 1" msgstr "gensub:第三个参数 %g 被当作 1" -#: builtin.c:3096 +#: builtin.c:3100 #, c-format msgid "%s: can be called indirectly only with two arguments" msgstr "%s:间接调用时只能传递两个参数" -#: builtin.c:3186 +#: builtin.c:3190 #, c-format msgid "indirect call to %s requires at least two arguments" msgstr "间接调用 %s 需要传递至少两个参数" -#: builtin.c:3238 +#: builtin.c:3242 msgid "lshift: received non-numeric first argument" msgstr "lshift:第一个参数不是数字" -#: builtin.c:3240 +#: builtin.c:3244 msgid "lshift: received non-numeric second argument" msgstr "lshift:第二个参数不是数字" -#: builtin.c:3246 +#: builtin.c:3250 #, c-format msgid "lshift(%f, %f): negative values will give strange results" msgstr "lshift(%f, %f):负值会得到奇怪的结果" -#: builtin.c:3248 +#: builtin.c:3252 #, c-format msgid "lshift(%f, %f): fractional values will be truncated" msgstr "lshift(%f, %f):小数部分会被截断" -#: builtin.c:3250 +#: builtin.c:3254 #, c-format msgid "lshift(%f, %f): too large shift value will give strange results" msgstr "lshift(%f, %f):过大的移位会得到奇怪的结果" -#: builtin.c:3275 +#: builtin.c:3279 msgid "rshift: received non-numeric first argument" msgstr "rshift:第一个参数不是数字" -#: builtin.c:3277 +#: builtin.c:3281 msgid "rshift: received non-numeric second argument" msgstr "rshift:第二个参数不是数字" -#: builtin.c:3283 +#: builtin.c:3287 #, c-format msgid "rshift(%f, %f): negative values will give strange results" msgstr "rshift(%f, %f):负值会得到奇怪的结果" -#: builtin.c:3285 +#: builtin.c:3289 #, c-format msgid "rshift(%f, %f): fractional values will be truncated" msgstr "rshift(%f, %f):小数部分会被截断" -#: builtin.c:3287 +#: builtin.c:3291 #, c-format msgid "rshift(%f, %f): too large shift value will give strange results" msgstr "rshift(%f, %f):过大的移位会得到奇怪的结果" -#: builtin.c:3312 mpfr.c:988 +#: builtin.c:3316 mpfr.c:988 msgid "and: called with less than two arguments" msgstr "and:调用时传递的参数不足2个" -#: builtin.c:3317 +#: builtin.c:3321 #, c-format msgid "and: argument %d is non-numeric" msgstr "and:参数 %d 不是数值" -#: builtin.c:3321 +#: builtin.c:3325 #, c-format msgid "and: argument %d negative value %g will give strange results" msgstr "and:参数 %d 负值 %g 会得到奇怪的结果" -#: builtin.c:3344 mpfr.c:1020 +#: builtin.c:3348 mpfr.c:1020 msgid "or: called with less than two arguments" msgstr "or:调用时传递的参数不足2个" -#: builtin.c:3349 +#: builtin.c:3353 #, c-format msgid "or: argument %d is non-numeric" msgstr "or:参数 %d 不是数值" -#: builtin.c:3353 +#: builtin.c:3357 #, c-format msgid "or: argument %d negative value %g will give strange results" msgstr "or:参数 %d 负值 %g 会得到奇怪的结果" -#: builtin.c:3375 mpfr.c:1051 +#: builtin.c:3379 mpfr.c:1051 msgid "xor: called with less than two arguments" msgstr "xor:调用时传递的参数不足2个" -#: builtin.c:3381 +#: builtin.c:3385 #, c-format msgid "xor: argument %d is non-numeric" msgstr "xor:参数 %d 不是数值" -#: builtin.c:3385 +#: builtin.c:3389 #, c-format msgid "xor: argument %d negative value %g will give strange results" msgstr "xor:参数 %d 负值 %g 会得到奇怪的结果" -#: builtin.c:3410 mpfr.c:807 +#: builtin.c:3414 mpfr.c:807 msgid "compl: received non-numeric argument" msgstr "compl:收到非数字参数" -#: builtin.c:3416 +#: builtin.c:3420 #, c-format msgid "compl(%f): negative value will give strange results" msgstr "compl(%f):负值会得到奇怪的结果" -#: builtin.c:3418 +#: builtin.c:3422 #, c-format msgid "compl(%f): fractional value will be truncated" msgstr "compl(%f):小数部分会被截断" -#: builtin.c:3587 +#: builtin.c:3592 #, c-format msgid "dcgettext: `%s' is not a valid locale category" msgstr "dcgettext:“%s”不是一个有效的区域目录" @@ -1071,14 +1068,11 @@ msgid "non-zero integer value" msgstr "非零整数值" #: command.y:818 -msgid "" -"backtrace [N] - print trace of all or N innermost (outermost if N < 0) " -"frames." +msgid "backtrace [N] - print trace of all or N innermost (outermost if N < 0) frames." msgstr "backtrace [N] - 显示所有或最近 N 层 (若 N < 0,则显示最远 N 层) 调用。" #: command.y:820 -msgid "" -"break [[filename:]N|function] - set breakpoint at the specified location." +msgid "break [[filename:]N|function] - set breakpoint at the specified location." msgstr "break [[文件名:]N|函数] - 在指定处设置断点。" #: command.y:822 @@ -1086,9 +1080,7 @@ msgid "clear [[filename:]N|function] - delete breakpoints previously set." msgstr "clear [[文件名:]N|函数] - 删除之前设置的断点。" #: command.y:824 -msgid "" -"commands [num] - starts a list of commands to be executed at a " -"breakpoint(watchpoint) hit." +msgid "commands [num] - starts a list of commands to be executed at a breakpoint(watchpoint) hit." msgstr "commands [编号] - 在断点 (监视点) 处执行一系列命令。" #: command.y:826 @@ -1132,9 +1124,8 @@ msgid "eval stmt|[p1, p2, ...] - evaluate awk statement(s)." msgstr "eval 语句|[p1, p2, ...] - 对 awk 语句求值。" #: command.y:846 -#, fuzzy msgid "exit - (same as quit) exit debugger." -msgstr "quit - 退出调试器。" +msgstr "exit - (与 quit 相同)退出调试器。" #: command.y:848 msgid "finish - execute until selected stack frame returns." @@ -1153,12 +1144,8 @@ msgid "ignore N COUNT - set ignore-count of breakpoint number N to COUNT." msgstr "ignore N 次数 - 设置忽略断点 N 的次数。" #: command.y:856 -msgid "" -"info topic - source|sources|variables|functions|break|frame|args|locals|" -"display|watch." -msgstr "" -"info 主题 - 查看 info 信息,主题可以为 source|sources|variables|functions|" -"break|frame|args|locals|display|watch。" +msgid "info topic - source|sources|variables|functions|break|frame|args|locals|display|watch." +msgstr "info 主题 - 查看 info 信息,主题可以为 source|sources|variables|functions|break|frame|args|locals|display|watch。" #: command.y:858 msgid "list [-|+|[filename:]lineno|function|range] - list specified line(s)." @@ -1169,8 +1156,7 @@ msgid "next [COUNT] - step program, proceeding through subroutine calls." msgstr "next [次数] - 单步运行程序,并且步过子调用。" #: command.y:862 -msgid "" -"nexti [COUNT] - step one instruction, but proceed through subroutine calls." +msgid "nexti [COUNT] - step one instruction, but proceed through subroutine calls." msgstr "nexti [次数] - 单运行一步指令,但步过其子调用。" #: command.y:864 @@ -1206,8 +1192,7 @@ msgid "set var = value - assign value to a scalar variable." msgstr "set 变量 = 值 - 给标量变量赋值。" #: command.y:882 -msgid "" -"silent - suspends usual message when stopped at a breakpoint/watchpoint." +msgid "silent - suspends usual message when stopped at a breakpoint/watchpoint." msgstr "silent - 在断点/监视点处中断时,隐藏常规消息。" #: command.y:884 @@ -1235,9 +1220,7 @@ msgid "undisplay [N] - remove variable(s) from automatic display list." msgstr "undisplay [N] - 从自动显示列表中移除指定变量。" #: command.y:896 -msgid "" -"until [[filename:]N|function] - execute until program reaches a different " -"line or line N within current frame." +msgid "until [[filename:]N|function] - execute until program reaches a different line or line N within current frame." msgstr "until [[文件名:]N|函数] - 在当前层中执行,在下一行或第 N 行处暂停。" #: command.y:898 @@ -1253,12 +1236,8 @@ msgid "watch var - set a watchpoint for a variable." msgstr "watch 变量 - 为变量设置监视点。" #: command.y:904 -msgid "" -"where [N] - (same as backtrace) print trace of all or N innermost (outermost " -"if N < 0) frames." -msgstr "" -"where [N] - (与backtrace相同) 显示所有或最近 N 层 (若 N < 0,则显示最远 N " -"层) 调用。" +msgid "where [N] - (same as backtrace) print trace of all or N innermost (outermost if N < 0) frames." +msgstr "where [N] - (与backtrace相同) 显示所有或最近 N 层 (若 N < 0,则显示最远 N 层) 调用。" #: command.y:1016 debug.c:401 msg.c:135 #, c-format @@ -1820,8 +1799,8 @@ msgstr "当前上下文中不允许“%s”;语句已忽略" msgid "No symbol `%s' in current context" msgstr "当前上下文中找不到符号“%s”" -#: dfa.c:1040 dfa.c:1043 dfa.c:1062 dfa.c:1072 dfa.c:1084 dfa.c:1111 dfa.c:1120 -#: dfa.c:1123 dfa.c:1128 dfa.c:1149 dfa.c:1152 +#: dfa.c:1040 dfa.c:1043 dfa.c:1062 dfa.c:1072 dfa.c:1084 dfa.c:1111 +#: dfa.c:1120 dfa.c:1123 dfa.c:1128 dfa.c:1149 dfa.c:1152 msgid "unbalanced [" msgstr "[ 不配对" @@ -1975,8 +1954,7 @@ msgstr "load_ext:无法打开库“%s”(%s)\n" #: ext.c:81 #, c-format -msgid "" -"load_ext: library `%s': does not define `plugin_is_GPL_compatible' (%s)\n" +msgid "load_ext: library `%s': does not define `plugin_is_GPL_compatible' (%s)\n" msgstr "load_ext:库“%s”:未定义“plugin_is_GPL_compatible”(%s)\n" #: ext.c:87 @@ -2004,8 +1982,7 @@ msgstr "extension:无法打开库“%s”(%s)" #: ext.c:163 #, c-format -msgid "" -"extension: library `%s': does not define `plugin_is_GPL_compatible' (%s)" +msgid "extension: library `%s': does not define `plugin_is_GPL_compatible' (%s)" msgstr "extension:库“%s”:未定义“plugin_is_GPL_compatible”(%s)" #: ext.c:167 @@ -2103,9 +2080,8 @@ msgid "stat: bad parameters" msgstr "stat:参数有误" #: extension/filefuncs.c:527 -#, fuzzy msgid "statvfs: called with wrong number of arguments" -msgstr "stat:调用时的参数个数有误" +msgstr "statvfs:调用时的参数个数有误" #: extension/filefuncs.c:598 #, c-format @@ -2498,7 +2474,7 @@ msgstr "给“FS”传递了空字符串,应为 gawk 扩展" msgid "old awk does not support regexps as value of `FS'" msgstr "老 awk 不支持把“FS”设置为正则表达式" -#: field.c:1380 +#: field.c:1384 msgid "`FPAT' is a gawk extension" msgstr "“FPAT”是 gawk 扩展" @@ -2652,8 +2628,7 @@ msgid "can't redirect to `%s' (%s)" msgstr "无法重定向到“%s”(%s)" #: io.c:1084 -msgid "" -"reached system limit for open files: starting to multiplex file descriptors" +msgid "reached system limit for open files: starting to multiplex file descriptors" msgstr "打开的文件数达到系统限制:开始复用文件描述符" #: io.c:1100 @@ -2826,7 +2801,7 @@ msgstr "无法为“%s”创建子进程(fork:%s)" #: io.c:2493 msgid "getline: attempt to read from closed read end of two-way pipe" -msgstr "" +msgstr "getline:试图从读取端已被关闭的双向管道中读取数据" #: io.c:2795 msgid "register_input_parser: received NULL pointer" @@ -2848,8 +2823,7 @@ msgstr "register_output_parser:指针为空" #: io.c:2878 #, c-format -msgid "" -"output wrapper `%s' conflicts with previously installed output wrapper `%s'" +msgid "output wrapper `%s' conflicts with previously installed output wrapper `%s'" msgstr "输出解析器“%s”与之前设置的“%s”相冲突" #: io.c:2885 @@ -2863,9 +2837,7 @@ msgstr "register_output_processor:指针为空" #: io.c:2935 #, c-format -msgid "" -"two-way processor `%s' conflicts with previously installed two-way processor " -"`%s'" +msgid "two-way processor `%s' conflicts with previously installed two-way processor `%s'" msgstr "双向处理器“%s”与之前设置的“%s”相冲突" #: io.c:2944 @@ -3135,9 +3107,7 @@ msgstr "" msgid "" "You should have received a copy of the GNU General Public License\n" "along with this program. If not, see http://www.gnu.org/licenses/.\n" -msgstr "" -"你应该收到程序附带的一份 GNU 通用公共许可证(GPL)。如果没有收到,请参看 " -"http://www.gnu.org/licenses/ 。\n" +msgstr "你应该收到程序附带的一份 GNU 通用公共许可证(GPL)。如果没有收到,请参看 http://www.gnu.org/licenses/ 。\n" #: main.c:699 msgid "-Ft does not set FS to tab in POSIX awk" @@ -3276,39 +3246,35 @@ msgstr "%s:第 %d 个参数 %Zd 为负值,会得到奇怪的结果" msgid "cmd. line:" msgstr "命令行:" -#: node.c:418 +#: node.c:431 msgid "backslash at end of string" msgstr "字符串尾部的反斜杠" -#: node.c:497 +#: node.c:510 #, c-format msgid "old awk does not support the `\\%c' escape sequence" msgstr "老 awk 不支持“\\%c”转义序列" -#: node.c:548 +#: node.c:561 msgid "POSIX does not allow `\\x' escapes" msgstr "POSIX 不允许“\\x”转义符" -#: node.c:554 +#: node.c:567 msgid "no hex digits in `\\x' escape sequence" msgstr "“\\x”转义序列中没有十六进制数" -#: node.c:576 +#: node.c:589 #, c-format -msgid "" -"hex escape \\x%.*s of %d characters probably not interpreted the way you " -"expect" +msgid "hex escape \\x%.*s of %d characters probably not interpreted the way you expect" msgstr "十六进制转义符 \\x%.*s 表示的 %d 个字符可能不会被如期望情况解释" -#: node.c:591 +#: node.c:604 #, c-format msgid "escape sequence `\\%c' treated as plain `%c'" msgstr "转义序列“\\%c”被当作单纯的“%c”" -#: node.c:728 -msgid "" -"Invalid multibyte data detected. There may be a mismatch between your data " -"and your locale." +#: node.c:741 +msgid "Invalid multibyte data detected. There may be a mismatch between your data and your locale." msgstr "检测到了无效的多字节数据。可能你的数据和区域设置不匹配。" #: posix/gawkmisc.c:177 @@ -3462,12 +3428,12 @@ msgstr "未匹配的 ) 或 \\)" msgid "No previous regular expression" msgstr "前面没有正则表达式" -#: symbol.c:678 +#: symbol.c:680 #, c-format msgid "function `%s': can't use function `%s' as a parameter name" msgstr "函数“%s”:无法将函数名“%s”作为参数名" -#: symbol.c:810 +#: symbol.c:812 msgid "can not pop main context" msgstr "无法弹出 main 的上下文" @@ -3546,8 +3512,7 @@ msgstr "无法弹出 main 的上下文" #~ msgid "xor(%lf, %lf): fractional values will be truncated" #~ msgstr "xor(%lf, %lf): 小数部分会被截断" -#~ msgid "" -#~ "for loop: array `%s' changed size from %ld to %ld during loop execution" +#~ msgid "for loop: array `%s' changed size from %ld to %ld during loop execution" #~ msgstr "for loop: 数组“%s”在循环执行时大小从 %ld 改变为 %ld" #~ msgid "`break' outside a loop is not portable" @@ -3571,9 +3536,7 @@ msgstr "无法弹出 main 的上下文" #~ msgid "statement has no effect" #~ msgstr "表达式无任何作用" -#~ msgid "" -#~ "concatenation: side effects in one expression have changed the length of " -#~ "another!" +#~ msgid "concatenation: side effects in one expression have changed the length of another!" #~ msgstr "concatenation: 一个表达式的额外效应已改变另一个的长度!" #~ msgid "assignment used in conditional context" |