groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 19/25: [troff]: Trivially refactor.


From: G. Branden Robinson
Subject: [groff] 19/25: [troff]: Trivially refactor.
Date: Sat, 4 Nov 2023 01:02:57 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit f6dc53f6d972439c0fdb0498dd963e7085f1d985
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Nov 3 19:43:27 2023 -0500

    [troff]: Trivially refactor.
    
    * src/roff/troff/env.cpp: Drop parameter names from prototypes, in
      keeping with the Stroustrup-style C++ used in most of groff.
    
    See commit a62c1f7535, 2021-11-21.
---
 ChangeLog              |  5 +++++
 src/roff/troff/env.cpp | 12 ++++++------
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3904e9c81..2221f21a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-11-03  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/roff/troff/env.cpp: Drop parameter names from prototypes,
+       in keeping with the Stroustrup-style C++ used in most of groff.
+
 2023-11-03  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/roff/troff/env.cpp: Clarify diagnostic and trivially
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 39d502f47..30a6d82a7 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -3559,7 +3559,7 @@ struct trie_node;
 
 class trie {
   trie_node *tp;
-  virtual void do_match(int len, void *val) = 0;
+  virtual void do_match(int, void *) = 0;
   virtual void do_delete(void *) = 0;
   void delete_trie_node(trie_node *);
 public:
@@ -3567,7 +3567,7 @@ public:
   virtual ~trie();             // virtual to shut up g++
   void insert(const char *, int, void *);
   // find calls do_match for each match it finds
-  void find(const char *pat, int patlen);
+  void find(const char *, int);
   void clear();
 };
 
@@ -3575,14 +3575,14 @@ class hyphen_trie : private trie {
   int *h;
   void do_match(int i, void *v);
   void do_delete(void *v);
-  void insert_pattern(const char *pat, int patlen, int *num);
-  void insert_hyphenation(dictionary *ex, const char *pat, int patlen);
+  void insert_pattern(const char *, int, int *);
+  void insert_hyphenation(dictionary *, const char *, int);
   int hpf_getc(FILE *f);
 public:
   hyphen_trie() {}
   ~hyphen_trie() {}
-  void hyphenate(const char *word, int len, int *hyphens);
-  void read_patterns_file(const char *name, int append, dictionary *ex);
+  void hyphenate(const char *, int, int *);
+  void read_patterns_file(const char *, int, dictionary *);
 };
 
 struct hyphenation_language {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]