gbranden pushed a commit to branch master
in repository groff.
commit ae7e8fbdea6623615df34e28a9130e66816d7af9
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Sep 1 03:45:15 2025 -0500
src/roff/troff/node.h: Fix code style nit.
Make order of `asciify` member function declarations in
`line_start_node`, `space_node`, `word_space_node`,
`unbreakable_space_node`, `vertical_size_node`, hmotion_node`,
`space_char_hmotion_node`, and `left_italic_corrected_node` match other
classes.
---
src/roff/troff/node.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/roff/troff/node.h b/src/roff/troff/node.h
index c7321a319..01ff7a98c 100644
--- a/src/roff/troff/node.h
+++ b/src/roff/troff/node.h
@@ -180,12 +180,12 @@ struct breakpoint {
class line_start_node : public node {
public:
line_start_node() {}
+ void asciify(macro *);
node *copy() { return new line_start_node; }
bool is_same_as(node *);
bool causes_tprint();
bool is_tag();
const char *type();
- void asciify(macro *);
};
class space_node : public node {
@@ -199,6 +199,7 @@ protected:
node * = 0 /* nullptr */);
public:
space_node(hunits, color *, node * = 0 /* nullptr */);
+ void asciify(macro *);
node *copy();
int nspaces();
hunits width();
@@ -215,7 +216,6 @@ public:
void split(int, node **, node **);
void ascii_print(ascii_output_file *);
bool is_same_as(node *);
- void asciify(macro *);
const char *type();
bool causes_tprint();
bool is_tag();
@@ -244,12 +244,12 @@ public:
word_space_node(hunits, color *, width_list *,
node * /* x */ = 0 /* nullptr */);
~word_space_node();
+ void asciify(macro *);
node *copy();
bool need_reread(bool *);
bool set_unformat_flag();
void tprint(troff_output_file *);
bool is_same_as(node *);
- void asciify(macro *);
const char *type();
bool did_space_merge(hunits, hunits, hunits);
bool causes_tprint();
@@ -263,11 +263,11 @@ class unbreakable_space_node : public word_space_node {
public:
unbreakable_space_node(hunits, color *,
node * /* x */ = 0 /* nullptr */);
+ void asciify(macro *);
node *copy();
bool need_reread(bool *);
void tprint(troff_output_file *);
bool is_same_as(node *);
- void asciify(macro *);
const char *type();
bool causes_tprint();
bool is_tag();
@@ -332,8 +332,8 @@ class vertical_size_node : public node {
public:
vertical_size_node(vunits, statem *, int);
vertical_size_node(vunits);
- void set_vertical_size(vertical_size *);
void asciify(macro *);
+ void set_vertical_size(vertical_size *);
node *copy();
bool set_unformat_flag();
bool is_same_as(node *);
@@ -363,10 +363,10 @@ public:
hmotion_node(hunits i, bool flag1, bool flag2, color *c,
node *nxt = 0 /* nullptr */)
: node(nxt), n(i), was_tab(flag1), unformat(flag2), col(c) {}
+ void asciify(macro *);
node *copy();
bool need_reread(bool *);
bool set_unformat_flag();
- void asciify(macro *);
void tprint(troff_output_file *);
hunits width();
void ascii_print(ascii_output_file *);
@@ -387,8 +387,8 @@ public:
space_char_hmotion_node(hunits, color *, statem *, int,
node * /* nxt */ = 0 /* nullptr */);
node *copy();
- void ascii_print(ascii_output_file *);
void asciify(macro *);
+ void ascii_print(ascii_output_file *);
void tprint(troff_output_file *);
bool is_same_as(node *);
const char *type();
@@ -510,9 +510,9 @@ public:
left_italic_corrected_node(node * /* xx */ = 0 /* nullptr */);
left_italic_corrected_node(statem *, int,
node * /* xx */ = 0 /* nullptr */);
+ void asciify(macro *);
void tprint(troff_output_file *);
void ascii_print(ascii_output_file *);
- void asciify(macro *);
node *copy();
bool is_same_as(node *);
const char *type();
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit