[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, feature/fix-comments, updated. gawk-4.1.
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, feature/fix-comments, updated. gawk-4.1.0-3487-g5c7402f |
Date: |
Wed, 17 Oct 2018 10:43:26 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, feature/fix-comments has been updated
via 5c7402f68fb31d70f78243c4d6d9c30a8e8aa9da (commit)
from b5f87dcdaff84e5e72684bb1a8fe0160981a66ae (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=5c7402f68fb31d70f78243c4d6d9c30a8e8aa9da
commit 5c7402f68fb31d70f78243c4d6d9c30a8e8aa9da
Author: Arnold D. Robbins <address@hidden>
Date: Wed Oct 17 17:42:51 2018 +0300
Distinguish print $0 from print. Doc updates. Fix case and default.
diff --git a/ChangeLog b/ChangeLog
index fa51a09..26d7daf 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-10-17 Arnold D. Robbins <address@hidden>
+
+ * NEWS: Updated.
+ * awkgram.y (Grammar): Distinguish `print' and `print $0' in
+ what gets profiled / pretty-printed.
+ * profile.c (pprint): For case and default, add final newline
+ if there is no comment to print.
+
2018-10-16 Arnold D. Robbins <address@hidden>
* awkgram.y (Grammar): Improve comment handling for many plain
diff --git a/NEWS b/NEWS
index d0a7f8d..6cf03b7 100644
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,10 @@ Changes from 4.2.x to 5.0.0
3. The code now makes some stronger assumptions about a C99 environment.
+4. Comment handling in the pretty-printer has been reworked almost completely
+from scratch. As a result, comments in many corner cases that were previously
+lost are now included in the formatted output.
+
Changes from 4.2.1 to 4.2.2
---------------------------
diff --git a/awkgram.c b/awkgram.c
index ba43d80..171f189 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -2882,7 +2882,7 @@ regular_loop:
* which is faster for these two cases.
*/
- if ((yyvsp[-3])->opcode == Op_K_print &&
+ if (do_optimize && (yyvsp[-3])->opcode == Op_K_print &&
((yyvsp[-1]) == NULL
|| ((yyvsp[-1])->lasti->opcode == Op_field_spec
&& (yyvsp[-1])->nexti->nexti->nexti ==
(yyvsp[-1])->lasti
diff --git a/awkgram.y b/awkgram.y
index a46d7f2..5aad5af 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -1047,7 +1047,7 @@ simple_stmt
* which is faster for these two cases.
*/
- if ($1->opcode == Op_K_print &&
+ if (do_optimize && $1->opcode == Op_K_print &&
($3 == NULL
|| ($3->lasti->opcode == Op_field_spec
&& $3->nexti->nexti->nexti == $3->lasti
diff --git a/doc/ChangeLog b/doc/ChangeLog
index e3b2a0b..8441236 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,9 @@
+2018-10-17 Arnold D. Robbins <address@hidden>
+
+ * gawktexi.in (Profiling): Revise example for pattern without
+ action and note that the profiler distinguishes `print' and
+ `print $0'.
+
2018-09-23 Arnold D. Robbins <address@hidden>
* gawktexi.in (Extracting): Note that patch levels above
diff --git a/doc/gawk.info b/doc/gawk.info
index d0cfc5b..c6c578c 100644
--- a/doc/gawk.info
+++ b/doc/gawk.info
@@ -20781,10 +20781,11 @@ representation. Also, things such as:
come out as:
/foo/ {
- print $0
+ print
}
-which is correct, but possibly unexpected.
+which is correct, but possibly unexpected. (If a program uses both
+'print $0' and plain 'print', that distinction is retained.)
Besides creating profiles when a program has completed, 'gawk' can
produce a profile while it is running. This is useful if your 'awk'
@@ -34134,7 +34135,7 @@ Index
* dump debugger command: Miscellaneous Debugger Commands.
(line 9)
* dupword.awk program: Dupword Program. (line 31)
-* dynamic profiling: Profiling. (line 177)
+* dynamic profiling: Profiling. (line 178)
* dynamically loaded extensions: Dynamic Extensions. (line 6)
* e debugger command (alias for enable): Breakpoint Control. (line 73)
* EBCDIC: Ordinal Functions. (line 45)
@@ -34523,7 +34524,7 @@ Index
* G., Daniel Richard: Acknowledgments. (line 60)
* G., Daniel Richard <1>: Maintainers. (line 14)
* Garfinkle, Scott: Contributors. (line 35)
-* gawk program, dynamic profiling: Profiling. (line 177)
+* gawk program, dynamic profiling: Profiling. (line 178)
* gawk version: Auto-set. (line 241)
* gawk, ARGIND variable in: Other Arguments. (line 15)
* gawk, awk and: Preface. (line 21)
@@ -34728,7 +34729,7 @@ Index
* history expansion, in debugger: Readline Support. (line 6)
* histsort.awk program: History Sorting. (line 25)
* Hughes, Phil: Acknowledgments. (line 43)
-* HUP signal, for dynamic profiling: Profiling. (line 209)
+* HUP signal, for dynamic profiling: Profiling. (line 210)
* hyphen (-), - operator: Precedence. (line 51)
* hyphen (-), - operator <1>: Precedence. (line 57)
* hyphen (-), -- operator: Increment Ops. (line 48)
@@ -34810,7 +34811,7 @@ Index
* installing gawk: Installation. (line 6)
* instruction tracing, in debugger: Debugger Info. (line 90)
* int: Numeric Functions. (line 24)
-* INT signal (MS-Windows): Profiling. (line 212)
+* INT signal (MS-Windows): Profiling. (line 213)
* integer array indices: Numeric Array Subscripts.
(line 31)
* integers, arbitrary precision: Arbitrary Precision Integers.
@@ -34866,7 +34867,7 @@ Index
* Kernighan, Brian <8>: Other Versions. (line 13)
* Kernighan, Brian <9>: Basic Data Typing. (line 54)
* Kernighan, Brian <10>: Glossary. (line 204)
-* kill command, dynamic profiling: Profiling. (line 186)
+* kill command, dynamic profiling: Profiling. (line 187)
* Knights, jedi: Undocumented. (line 6)
* Kwok, Conrad: Contributors. (line 35)
* l debugger command (alias for list): Miscellaneous Debugger Commands.
@@ -35380,7 +35381,7 @@ Index
* PROCINFO, values of sorted_in: Controlling Scanning.
(line 26)
* profiling awk programs: Profiling. (line 6)
-* profiling awk programs, dynamically: Profiling. (line 177)
+* profiling awk programs, dynamically: Profiling. (line 178)
* program identifiers: Auto-set. (line 193)
* program, definition of: Getting Started. (line 21)
* programming conventions, --non-decimal-data option: Nondecimal Data.
@@ -35417,7 +35418,7 @@ Index
* QuikTrim Awk: Other Versions. (line 135)
* quit debugger command: Miscellaneous Debugger Commands.
(line 100)
-* QUIT signal (MS-Windows): Profiling. (line 212)
+* QUIT signal (MS-Windows): Profiling. (line 213)
* quoting in gawk command lines: Long. (line 26)
* quoting in gawk command lines, tricks for: Quoting. (line 91)
* quoting, for small awk programs: Comments. (line 27)
@@ -35707,15 +35708,15 @@ Index
(line 130)
* sidebar, Using \n in Bracket Expressions of Dynamic Regexps: Computed
Regexps.
(line 58)
-* SIGHUP signal, for dynamic profiling: Profiling. (line 209)
-* SIGINT signal (MS-Windows): Profiling. (line 212)
-* signals, HUP/SIGHUP, for profiling: Profiling. (line 209)
-* signals, INT/SIGINT (MS-Windows): Profiling. (line 212)
-* signals, QUIT/SIGQUIT (MS-Windows): Profiling. (line 212)
-* signals, USR1/SIGUSR1, for profiling: Profiling. (line 186)
+* SIGHUP signal, for dynamic profiling: Profiling. (line 210)
+* SIGINT signal (MS-Windows): Profiling. (line 213)
+* signals, HUP/SIGHUP, for profiling: Profiling. (line 210)
+* signals, INT/SIGINT (MS-Windows): Profiling. (line 213)
+* signals, QUIT/SIGQUIT (MS-Windows): Profiling. (line 213)
+* signals, USR1/SIGUSR1, for profiling: Profiling. (line 187)
* signature program: Signature Program. (line 6)
-* SIGQUIT signal (MS-Windows): Profiling. (line 212)
-* SIGUSR1 signal, for dynamic profiling: Profiling. (line 186)
+* SIGQUIT signal (MS-Windows): Profiling. (line 213)
+* SIGUSR1 signal, for dynamic profiling: Profiling. (line 187)
* silent debugger command: Debugger Execution Control.
(line 10)
* sin: Numeric Functions. (line 75)
@@ -35995,7 +35996,7 @@ Index
* user-modifiable variables: User-modified. (line 6)
* users, information about, printing: Id Program. (line 6)
* users, information about, retrieving: Passwd Functions. (line 16)
-* USR1 signal, for dynamic profiling: Profiling. (line 186)
+* USR1 signal, for dynamic profiling: Profiling. (line 187)
* values, numeric: Basic Data Typing. (line 13)
* values, string: Basic Data Typing. (line 13)
* variable assignments and input files: Other Arguments. (line 26)
@@ -36463,218 +36464,218 @@ Ref: Two-way I/O-Footnote-1835052
Ref: Two-way I/O-Footnote-2835239
Node: TCP/IP Networking835321
Node: Profiling838439
-Ref: Profiling-Footnote-1847111
-Node: Advanced Features Summary847434
-Node: Internationalization849278
-Node: I18N and L10N850758
-Node: Explaining gettext851445
-Ref: Explaining gettext-Footnote-1857337
-Ref: Explaining gettext-Footnote-2857522
-Node: Programmer i18n857687
-Ref: Programmer i18n-Footnote-1862636
-Node: Translator i18n862685
-Node: String Extraction863479
-Ref: String Extraction-Footnote-1864611
-Node: Printf Ordering864697
-Ref: Printf Ordering-Footnote-1867483
-Node: I18N Portability867547
-Ref: I18N Portability-Footnote-1870003
-Node: I18N Example870066
-Ref: I18N Example-Footnote-1872872
-Node: Gawk I18N872945
-Node: I18N Summary873590
-Node: Debugger874931
-Node: Debugging875954
-Node: Debugging Concepts876395
-Node: Debugging Terms878204
-Node: Awk Debugging880779
-Node: Sample Debugging Session881685
-Node: Debugger Invocation882219
-Node: Finding The Bug883605
-Node: List of Debugger Commands890083
-Node: Breakpoint Control891416
-Node: Debugger Execution Control895110
-Node: Viewing And Changing Data898472
-Node: Execution Stack901846
-Node: Debugger Info903483
-Node: Miscellaneous Debugger Commands907554
-Node: Readline Support912616
-Node: Limitations913512
-Node: Debugging Summary915621
-Node: Arbitrary Precision Arithmetic916900
-Node: Computer Arithmetic918385
-Ref: table-numeric-ranges922151
-Ref: table-floating-point-ranges922644
-Ref: Computer Arithmetic-Footnote-1923302
-Node: Math Definitions923359
-Ref: table-ieee-formats926675
-Ref: Math Definitions-Footnote-1927278
-Node: MPFR features927383
-Node: FP Math Caution929101
-Ref: FP Math Caution-Footnote-1930173
-Node: Inexactness of computations930542
-Node: Inexact representation931502
-Node: Comparing FP Values932862
-Node: Errors accumulate934103
-Node: Getting Accuracy935536
-Node: Try To Round938246
-Node: Setting precision939145
-Ref: table-predefined-precision-strings939842
-Node: Setting the rounding mode941672
-Ref: table-gawk-rounding-modes942046
-Ref: Setting the rounding mode-Footnote-1945977
-Node: Arbitrary Precision Integers946156
-Ref: Arbitrary Precision Integers-Footnote-1949331
-Node: Checking for MPFR949480
-Node: POSIX Floating Point Problems950954
-Ref: POSIX Floating Point Problems-Footnote-1955239
-Node: Floating point summary955277
-Node: Dynamic Extensions957467
-Node: Extension Intro959020
-Node: Plugin License960286
-Node: Extension Mechanism Outline961083
-Ref: figure-load-extension961522
-Ref: figure-register-new-function963087
-Ref: figure-call-new-function964179
-Node: Extension API Description966241
-Node: Extension API Functions Introduction967883
-Node: General Data Types973423
-Ref: General Data Types-Footnote-1981784
-Node: Memory Allocation Functions982083
-Ref: Memory Allocation Functions-Footnote-1986293
-Node: Constructor Functions986392
-Node: Registration Functions989978
-Node: Extension Functions990663
-Node: Exit Callback Functions995878
-Node: Extension Version String997128
-Node: Input Parsers997791
-Node: Output Wrappers1010512
-Node: Two-way processors1015024
-Node: Printing Messages1017289
-Ref: Printing Messages-Footnote-11018460
-Node: Updating ERRNO1018613
-Node: Requesting Values1019352
-Ref: table-value-types-returned1020089
-Node: Accessing Parameters1021025
-Node: Symbol Table Access1022260
-Node: Symbol table by name1022772
-Node: Symbol table by cookie1024561
-Ref: Symbol table by cookie-Footnote-11028746
-Node: Cached values1028810
-Ref: Cached values-Footnote-11032346
-Node: Array Manipulation1032499
-Ref: Array Manipulation-Footnote-11033590
-Node: Array Data Types1033627
-Ref: Array Data Types-Footnote-11036285
-Node: Array Functions1036377
-Node: Flattening Arrays1040875
-Node: Creating Arrays1047851
-Node: Redirection API1052618
-Node: Extension API Variables1055451
-Node: Extension Versioning1056162
-Ref: gawk-api-version1056591
-Node: Extension GMP/MPFR Versioning1058322
-Node: Extension API Informational Variables1059950
-Node: Extension API Boilerplate1061023
-Node: Changes from API V11064997
-Node: Finding Extensions1066569
-Node: Extension Example1067128
-Node: Internal File Description1067926
-Node: Internal File Ops1072006
-Ref: Internal File Ops-Footnote-11083356
-Node: Using Internal File Ops1083496
-Ref: Using Internal File Ops-Footnote-11085879
-Node: Extension Samples1086153
-Node: Extension Sample File Functions1087682
-Node: Extension Sample Fnmatch1095331
-Node: Extension Sample Fork1096818
-Node: Extension Sample Inplace1098036
-Node: Extension Sample Ord1101253
-Node: Extension Sample Readdir1102089
-Ref: table-readdir-file-types1102978
-Node: Extension Sample Revout1103783
-Node: Extension Sample Rev2way1104372
-Node: Extension Sample Read write array1105112
-Node: Extension Sample Readfile1107054
-Node: Extension Sample Time1108149
-Node: Extension Sample API Tests1109497
-Node: gawkextlib1109989
-Node: Extension summary1112907
-Node: Extension Exercises1116609
-Node: Language History1118107
-Node: V7/SVR3.11119763
-Node: SVR41121915
-Node: POSIX1123349
-Node: BTL1124729
-Node: POSIX/GNU1125458
-Node: Feature History1131236
-Node: Common Extensions1147095
-Node: Ranges and Locales1148378
-Ref: Ranges and Locales-Footnote-11152994
-Ref: Ranges and Locales-Footnote-21153021
-Ref: Ranges and Locales-Footnote-31153256
-Node: Contributors1153477
-Node: History summary1159422
-Node: Installation1160802
-Node: Gawk Distribution1161746
-Node: Getting1162230
-Node: Extracting1163193
-Node: Distribution contents1164831
-Node: Unix Installation1171311
-Node: Quick Installation1171993
-Node: Shell Startup Files1174407
-Node: Additional Configuration Options1175496
-Node: Configuration Philosophy1177661
-Node: Non-Unix Installation1180030
-Node: PC Installation1180490
-Node: PC Binary Installation1181328
-Node: PC Compiling1181763
-Node: PC Using1182880
-Node: Cygwin1186095
-Node: MSYS1187194
-Node: VMS Installation1187695
-Node: VMS Compilation1188486
-Ref: VMS Compilation-Footnote-11189715
-Node: VMS Dynamic Extensions1189773
-Node: VMS Installation Details1191458
-Node: VMS Running1193711
-Node: VMS GNV1197990
-Node: VMS Old Gawk1198725
-Node: Bugs1199196
-Node: Bug address1199859
-Node: Usenet1202651
-Node: Maintainers1203428
-Node: Other Versions1204689
-Node: Installation summary1211247
-Node: Notes1212449
-Node: Compatibility Mode1213243
-Node: Additions1214025
-Node: Accessing The Source1214950
-Node: Adding Code1216387
-Node: New Ports1222606
-Node: Derived Files1227094
-Ref: Derived Files-Footnote-11232740
-Ref: Derived Files-Footnote-21232775
-Ref: Derived Files-Footnote-31233373
-Node: Future Extensions1233487
-Node: Implementation Limitations1234145
-Node: Extension Design1235328
-Node: Old Extension Problems1236472
-Ref: Old Extension Problems-Footnote-11237990
-Node: Extension New Mechanism Goals1238047
-Ref: Extension New Mechanism Goals-Footnote-11241411
-Node: Extension Other Design Decisions1241600
-Node: Extension Future Growth1243713
-Node: Notes summary1244549
-Node: Basic Concepts1245724
-Node: Basic High Level1246405
-Ref: figure-general-flow1246687
-Ref: figure-process-flow1247372
-Ref: Basic High Level-Footnote-11250673
-Node: Basic Data Typing1250858
-Node: Glossary1254186
-Node: Copying1286024
-Node: GNU Free Documentation License1323567
-Node: Index1348687
+Ref: Profiling-Footnote-1847194
+Node: Advanced Features Summary847517
+Node: Internationalization849361
+Node: I18N and L10N850841
+Node: Explaining gettext851528
+Ref: Explaining gettext-Footnote-1857420
+Ref: Explaining gettext-Footnote-2857605
+Node: Programmer i18n857770
+Ref: Programmer i18n-Footnote-1862719
+Node: Translator i18n862768
+Node: String Extraction863562
+Ref: String Extraction-Footnote-1864694
+Node: Printf Ordering864780
+Ref: Printf Ordering-Footnote-1867566
+Node: I18N Portability867630
+Ref: I18N Portability-Footnote-1870086
+Node: I18N Example870149
+Ref: I18N Example-Footnote-1872955
+Node: Gawk I18N873028
+Node: I18N Summary873673
+Node: Debugger875014
+Node: Debugging876037
+Node: Debugging Concepts876478
+Node: Debugging Terms878287
+Node: Awk Debugging880862
+Node: Sample Debugging Session881768
+Node: Debugger Invocation882302
+Node: Finding The Bug883688
+Node: List of Debugger Commands890166
+Node: Breakpoint Control891499
+Node: Debugger Execution Control895193
+Node: Viewing And Changing Data898555
+Node: Execution Stack901929
+Node: Debugger Info903566
+Node: Miscellaneous Debugger Commands907637
+Node: Readline Support912699
+Node: Limitations913595
+Node: Debugging Summary915704
+Node: Arbitrary Precision Arithmetic916983
+Node: Computer Arithmetic918468
+Ref: table-numeric-ranges922234
+Ref: table-floating-point-ranges922727
+Ref: Computer Arithmetic-Footnote-1923385
+Node: Math Definitions923442
+Ref: table-ieee-formats926758
+Ref: Math Definitions-Footnote-1927361
+Node: MPFR features927466
+Node: FP Math Caution929184
+Ref: FP Math Caution-Footnote-1930256
+Node: Inexactness of computations930625
+Node: Inexact representation931585
+Node: Comparing FP Values932945
+Node: Errors accumulate934186
+Node: Getting Accuracy935619
+Node: Try To Round938329
+Node: Setting precision939228
+Ref: table-predefined-precision-strings939925
+Node: Setting the rounding mode941755
+Ref: table-gawk-rounding-modes942129
+Ref: Setting the rounding mode-Footnote-1946060
+Node: Arbitrary Precision Integers946239
+Ref: Arbitrary Precision Integers-Footnote-1949414
+Node: Checking for MPFR949563
+Node: POSIX Floating Point Problems951037
+Ref: POSIX Floating Point Problems-Footnote-1955322
+Node: Floating point summary955360
+Node: Dynamic Extensions957550
+Node: Extension Intro959103
+Node: Plugin License960369
+Node: Extension Mechanism Outline961166
+Ref: figure-load-extension961605
+Ref: figure-register-new-function963170
+Ref: figure-call-new-function964262
+Node: Extension API Description966324
+Node: Extension API Functions Introduction967966
+Node: General Data Types973506
+Ref: General Data Types-Footnote-1981867
+Node: Memory Allocation Functions982166
+Ref: Memory Allocation Functions-Footnote-1986376
+Node: Constructor Functions986475
+Node: Registration Functions990061
+Node: Extension Functions990746
+Node: Exit Callback Functions995961
+Node: Extension Version String997211
+Node: Input Parsers997874
+Node: Output Wrappers1010595
+Node: Two-way processors1015107
+Node: Printing Messages1017372
+Ref: Printing Messages-Footnote-11018543
+Node: Updating ERRNO1018696
+Node: Requesting Values1019435
+Ref: table-value-types-returned1020172
+Node: Accessing Parameters1021108
+Node: Symbol Table Access1022343
+Node: Symbol table by name1022855
+Node: Symbol table by cookie1024644
+Ref: Symbol table by cookie-Footnote-11028829
+Node: Cached values1028893
+Ref: Cached values-Footnote-11032429
+Node: Array Manipulation1032582
+Ref: Array Manipulation-Footnote-11033673
+Node: Array Data Types1033710
+Ref: Array Data Types-Footnote-11036368
+Node: Array Functions1036460
+Node: Flattening Arrays1040958
+Node: Creating Arrays1047934
+Node: Redirection API1052701
+Node: Extension API Variables1055534
+Node: Extension Versioning1056245
+Ref: gawk-api-version1056674
+Node: Extension GMP/MPFR Versioning1058405
+Node: Extension API Informational Variables1060033
+Node: Extension API Boilerplate1061106
+Node: Changes from API V11065080
+Node: Finding Extensions1066652
+Node: Extension Example1067211
+Node: Internal File Description1068009
+Node: Internal File Ops1072089
+Ref: Internal File Ops-Footnote-11083439
+Node: Using Internal File Ops1083579
+Ref: Using Internal File Ops-Footnote-11085962
+Node: Extension Samples1086236
+Node: Extension Sample File Functions1087765
+Node: Extension Sample Fnmatch1095414
+Node: Extension Sample Fork1096901
+Node: Extension Sample Inplace1098119
+Node: Extension Sample Ord1101336
+Node: Extension Sample Readdir1102172
+Ref: table-readdir-file-types1103061
+Node: Extension Sample Revout1103866
+Node: Extension Sample Rev2way1104455
+Node: Extension Sample Read write array1105195
+Node: Extension Sample Readfile1107137
+Node: Extension Sample Time1108232
+Node: Extension Sample API Tests1109580
+Node: gawkextlib1110072
+Node: Extension summary1112990
+Node: Extension Exercises1116692
+Node: Language History1118190
+Node: V7/SVR3.11119846
+Node: SVR41121998
+Node: POSIX1123432
+Node: BTL1124812
+Node: POSIX/GNU1125541
+Node: Feature History1131319
+Node: Common Extensions1147178
+Node: Ranges and Locales1148461
+Ref: Ranges and Locales-Footnote-11153077
+Ref: Ranges and Locales-Footnote-21153104
+Ref: Ranges and Locales-Footnote-31153339
+Node: Contributors1153560
+Node: History summary1159505
+Node: Installation1160885
+Node: Gawk Distribution1161829
+Node: Getting1162313
+Node: Extracting1163276
+Node: Distribution contents1164914
+Node: Unix Installation1171394
+Node: Quick Installation1172076
+Node: Shell Startup Files1174490
+Node: Additional Configuration Options1175579
+Node: Configuration Philosophy1177744
+Node: Non-Unix Installation1180113
+Node: PC Installation1180573
+Node: PC Binary Installation1181411
+Node: PC Compiling1181846
+Node: PC Using1182963
+Node: Cygwin1186178
+Node: MSYS1187277
+Node: VMS Installation1187778
+Node: VMS Compilation1188569
+Ref: VMS Compilation-Footnote-11189798
+Node: VMS Dynamic Extensions1189856
+Node: VMS Installation Details1191541
+Node: VMS Running1193794
+Node: VMS GNV1198073
+Node: VMS Old Gawk1198808
+Node: Bugs1199279
+Node: Bug address1199942
+Node: Usenet1202734
+Node: Maintainers1203511
+Node: Other Versions1204772
+Node: Installation summary1211330
+Node: Notes1212532
+Node: Compatibility Mode1213326
+Node: Additions1214108
+Node: Accessing The Source1215033
+Node: Adding Code1216470
+Node: New Ports1222689
+Node: Derived Files1227177
+Ref: Derived Files-Footnote-11232823
+Ref: Derived Files-Footnote-21232858
+Ref: Derived Files-Footnote-31233456
+Node: Future Extensions1233570
+Node: Implementation Limitations1234228
+Node: Extension Design1235411
+Node: Old Extension Problems1236555
+Ref: Old Extension Problems-Footnote-11238073
+Node: Extension New Mechanism Goals1238130
+Ref: Extension New Mechanism Goals-Footnote-11241494
+Node: Extension Other Design Decisions1241683
+Node: Extension Future Growth1243796
+Node: Notes summary1244632
+Node: Basic Concepts1245807
+Node: Basic High Level1246488
+Ref: figure-general-flow1246770
+Ref: figure-process-flow1247455
+Ref: Basic High Level-Footnote-11250756
+Node: Basic Data Typing1250941
+Node: Glossary1254269
+Node: Copying1286107
+Node: GNU Free Documentation License1323650
+Node: Index1348770
End Tag Table
diff --git a/doc/gawk.texi b/doc/gawk.texi
index 6c21333..df8fcc8 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -29118,12 +29118,14 @@ come out as:
@example
/foo/ @{
- print $0
+ print
@}
@end example
@noindent
which is correct, but possibly unexpected.
+(If a program uses both @samp{print $0} and plain
address@hidden, that distinction is retained.)
@cindex profiling @command{awk} programs, dynamically
@cindex @command{gawk} program, dynamic profiling
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index a3aa29b..b0aa0ee 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -28131,12 +28131,14 @@ come out as:
@example
/foo/ @{
- print $0
+ print
@}
@end example
@noindent
which is correct, but possibly unexpected.
+(If a program uses both @samp{print $0} and plain
address@hidden, that distinction is retained.)
@cindex profiling @command{awk} programs, dynamically
@cindex @command{gawk} program, dynamic profiling
diff --git a/profile.c b/profile.c
index 3a4ec04..7e603dc 100644
--- a/profile.c
+++ b/profile.c
@@ -957,7 +957,8 @@ cleanup:
fprintf(prof_fp, "\n");
print_comment(pc->comment,
indent_level);
}
- }
+ } else
+ fprintf(prof_fp, "\n");
pprint(pc->stmt_start->nexti, pc->stmt_end->nexti,
NO_PPRINT_FLAGS);
indent_out();
break;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 +
NEWS | 4 +
awkgram.c | 2 +-
awkgram.y | 2 +-
doc/ChangeLog | 6 +
doc/gawk.info | 463 ++++++++++++++++++++++++++++----------------------------
doc/gawk.texi | 4 +-
doc/gawktexi.in | 4 +-
profile.c | 3 +-
9 files changed, 260 insertions(+), 236 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, feature/fix-comments, updated. gawk-4.1.0-3487-g5c7402f,
Arnold Robbins <=