groff-commit
[Top][All Lists]
Advanced

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

[groff] 11/30: src/include/stringclass.h: Add include guard.


From: G. Branden Robinson
Subject: [groff] 11/30: src/include/stringclass.h: Add include guard.
Date: Sun, 22 Dec 2024 19:39:17 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 20729574d3ebe112dd8c499eafeef7da4f651070
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Dec 21 16:12:44 2024 -0600

    src/include/stringclass.h: Add include guard.
    
    * src/include/stringclass.h: Introduce `GROFF_STRINGCLASS_H` include
      guard.
---
 ChangeLog                 | 5 +++++
 src/include/stringclass.h | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 45b01eba6..789cc4809 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-12-21  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/include/stringclass.h: Introduce `GROFF_STRINGCLASS_H`
+       include guard.
+
 2024-12-21  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/utils/tfmtodit/tfmtodit.cpp (main): Throw assertion on
diff --git a/src/include/stringclass.h b/src/include/stringclass.h
index eefface17..445b44152 100644
--- a/src/include/stringclass.h
+++ b/src/include/stringclass.h
@@ -16,6 +16,9 @@ for more details.
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
+#ifndef GROFF_STRINGCLASS_H
+#define GROFF_STRINGCLASS_H
+
 #include <assert.h>
 #include <string.h> // memcmp(), strlen()
 #include <stdio.h> // FILE
@@ -194,6 +197,8 @@ void put_string(const string &, FILE *);
 
 string as_string(int);
 
+#endif // GROFF_STRINGCLASS_H
+
 // Local Variables:
 // fill-column: 72
 // mode: C++



reply via email to

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