gbranden pushed a commit to branch master
in repository groff.

commit 777a5f9e13c0a9f6373e69073c914fe815ef485d
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Jul 29 17:55:56 2026 -0500

    src/preproc/tbl/table.cpp: Note future directions.
    
    Also annotate null pointer literals with `nullptr` comment to ease any
    future transition to C++11, which defines it as a keyword.
    
    Also annotate zero literals used as false Boolean values.
---
 src/preproc/tbl/table.cpp | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/preproc/tbl/table.cpp b/src/preproc/tbl/table.cpp
index a3ff27704..bd0abcda6 100644
--- a/src/preproc/tbl/table.cpp
+++ b/src/preproc/tbl/table.cpp
@@ -129,7 +129,7 @@ void set_modifier(const entry_modifier *);
 int find_decimal_point(const char *, char, const char *);
 
 string an_empty_string;
-int location_force_filename = 0;
+int location_force_filename = 0; // TODO: boolify
 
 void printfs(const char *,
             const string &arg1 = an_empty_string,
@@ -1076,16 +1076,17 @@ void restore_inline_modifier(const entry_modifier *m)
 struct stuff {
   stuff *next;
   int row;                     // occurs before row 'row'
-  char printed;                        // has it been printed?
+  char printed;                        // has it been printed?  TODO: boolify
 
   stuff(int);
   virtual void print(table *) = 0;
   virtual ~stuff();
-  virtual int is_single_line() { return 0; };
-  virtual int is_double_line() { return 0; };
+  virtual int is_single_line() { return 0; }; // TODO: boolify
+  virtual int is_double_line() { return 0; }; // TODO: boolify
 };
 
-stuff::stuff(int r) : next(0), row(r), printed(0)
+stuff::stuff(int r)
+: next(0 /* nullptr */), row(r), printed(0 /* false */)
 {
 }
 

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to