gbranden pushed a commit to branch branden-2023-07-05 in repository groff. commit 1bdf2e8a3a7ed35c66194a90c176b3a7bbe4d58a Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Fri Apr 7 21:33:10 2023 -0500
src/preproc/eqn/box.cpp: Fix code style nits. * Annotate null pointers with `nullptr` comment to ease any future transition to C++11, which defines it as a keyword. * Drop trailing spaces on input lines. * Wrap overlong input line. --- src/preproc/eqn/box.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/preproc/eqn/box.cpp b/src/preproc/eqn/box.cpp index 5f6343eeb..b3395a3fb 100644 --- a/src/preproc/eqn/box.cpp +++ b/src/preproc/eqn/box.cpp @@ -23,12 +23,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ const char *current_roman_font; -char *gfont = 0; -char *grfont = 0; -char *gbfont = 0; +char *gfont = 0 /* nullptr */; +char *grfont = 0 /* nullptr */; +char *gbfont = 0 /* nullptr */; int gsize = 0; -int script_size_reduction = -1; // negative means reduce by a percentage +int script_size_reduction = -1; // negative means reduce by a percentage int positive_space = -1; int negative_space = -1; @@ -435,7 +435,7 @@ int box::right_is_italic() void box::hint(unsigned) { } - + void box::handle_char_type(int, int) { } @@ -499,7 +499,8 @@ int pointer_box::compute_metrics(int style) void pointer_box::compute_subscript_kern() { p->compute_subscript_kern(); - printf(".nr " SUB_KERN_FORMAT " \\n[" SUB_KERN_FORMAT "]\n", uid, p->uid); + printf(".nr " SUB_KERN_FORMAT " \\n[" SUB_KERN_FORMAT "]\n", uid, + p->uid); } void pointer_box::compute_skew() _______________________________________________ Groff-commit mailing list Groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit