diff options
author | Akira Yokosawa <akiyks@gmail.com> | 2018-12-23 13:43:57 +0900 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-12-24 12:27:32 -0800 |
commit | 02e9c44068ddc1f5c0d0efd3eb769c331a2eeb3c (patch) | |
tree | 2d221dfa0f2f1f0d39edfa853ab68d8238c57668 /utilities | |
parent | d85198a75b98ae8a236d22823f1da546c33b7f57 (diff) | |
download | perfbook-02e9c44068ddc1f5c0d0efd3eb769c331a2eeb3c.tar.gz |
fcvextract.pl: Make 'keepcomment=no' as default
This change removes comments in Listings 4.8 and 9.5, which were
inadvertently sneaked in during the scheme update.
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'utilities')
-rwxr-xr-x | utilities/fcvextract.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utilities/fcvextract.pl b/utilities/fcvextract.pl index 2ad201fd..71e761dc 100755 --- a/utilities/fcvextract.pl +++ b/utilities/fcvextract.pl @@ -90,8 +90,8 @@ # on the line. # # By default, comment blocks of the form "/* ... */" in C language -# code will be kept in the extracted snippet. To omit those blocks, -# put an option "keepcomment=no" to \begin{snippet} meta command. +# code will be removed in the extracted snippet. To keep those blocks, +# put an option "keepcomment=yes" to \begin{snippet} meta command. # # Also, this script recognizes #ifndef -- #else -- #endif conditional # of the following form to allow alternative code for snippet: @@ -130,7 +130,7 @@ my $file_name; my $func_name; my $label; my $env_name = "VerbatimL" ; -my $keepcomment = 1; +my $keepcomment = 0; my $incomment = 0; my $ifndef = 0; my $other_opts; @@ -256,8 +256,8 @@ while($line = <>) { $esc_close = "\}" ; } if ($line =~ /keepcomment=([^,\]]+).\]/) { - if ($1 eq "no") { - $keepcomment = 0; + if ($1 eq "yes") { + $keepcomment = 1; } $_ = $line; s/keepcomment=[^,\]]+,?// ; |