[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 50/54: src/roff/troff/input.cpp: Use Boolean literals.
From: |
Keith Marshall |
Subject: |
[groff] 50/54: src/roff/troff/input.cpp: Use Boolean literals. |
Date: |
Sat, 23 Oct 2021 16:57:36 -0400 (EDT) |
keithmarshall pushed a commit to branch dev-gropdf-boxes
in repository groff.
commit fea5e653f57041422f743d13d66bb57ff758d8f3
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Apr 20 01:56:14 2021 +1000
src/roff/troff/input.cpp: Use Boolean literals.
* src/roff/troff/input.cpp (source, source_quietly, macro_source,
macro_source_quietly): Use idiomatic Boolean literals.
---
ChangeLog | 6 ++++++
src/roff/troff/input.cpp | 8 ++++----
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ddef1f1..86be337 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-04-19 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/roff/troff/input.cpp (source, source_quietly,
+ macro_source, macro_source_quietly): Use idiomatic Boolean
+ literals.
+
2021-04-17 G. Branden Robinson <g.branden.robinson@gmail.com>
* doc/groff.texi: Drop workarounds for Texinfo pre-5.0 versions;
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 80733d1..c2b2910 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -5981,7 +5981,7 @@ void do_source(bool quietly)
void source()
{
- do_source(0 /* not quietly*/ );
+ do_source(false /* not quietly*/ );
}
// .soquiet: like .so, but silently ignore files that can't be opened
@@ -5989,7 +5989,7 @@ void source()
void source_quietly()
{
- do_source(1 /* quietly */ );
+ do_source(true /* quietly */ );
}
// like .so but use popen()
@@ -7844,7 +7844,7 @@ void do_macro_source(bool quietly)
void macro_source()
{
- do_macro_source(0 /* not quietly (if WARN_FILE enabled) */ );
+ do_macro_source(false /* not quietly (if WARN_FILE enabled) */ );
}
// .msoquiet: like .mso, but silently ignore files that can't be opened
@@ -7852,7 +7852,7 @@ void macro_source()
void macro_source_quietly()
{
- do_macro_source(1 /* quietly */ );
+ do_macro_source(true /* quietly */ );
}
static void process_input_file(const char *name)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 50/54: src/roff/troff/input.cpp: Use Boolean literals.,
Keith Marshall <=