summaryrefslogtreecommitdiffstats
path: root/utilities
diff options
context:
space:
mode:
authorAkira Yokosawa <akiyks@gmail.com>2018-12-23 13:43:57 +0900
committerPaul E. McKenney <paulmck@linux.ibm.com>2018-12-24 12:27:32 -0800
commit02e9c44068ddc1f5c0d0efd3eb769c331a2eeb3c (patch)
tree2d221dfa0f2f1f0d39edfa853ab68d8238c57668 /utilities
parentd85198a75b98ae8a236d22823f1da546c33b7f57 (diff)
downloadperfbook-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-xutilities/fcvextract.pl10
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=[^,\]]+,?// ;