texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Gavin D. Smith
Date: Mon, 23 Dec 2024 09:47:47 -0500 (EST)

branch: master
commit d99f86987c7eca911af03ca08734e6741b2adac8
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Mon Dec 23 14:28:26 2024 +0000

    Remove or move system.h defines.
    
    * system.h (STREQ, STRCASEEQ. STRNCASEEQ): Remove.
    * info/info.h (STREQ): Add.
---
 ChangeLog   | 7 +++++++
 info/info.h | 2 ++
 system.h    | 5 -----
 3 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3f1dd51990..81c77e83ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-12-23  Gavin Smith <gavinsmith0123@gmail.com>
+
+       Remove or move system.h defines.
+
+       * system.h (STREQ, STRCASEEQ. STRNCASEEQ): Remove.
+       * info/info.h (STREQ): Add.
+
 2024-12-23  Gavin Smith <gavinsmith0123@gmail.com>
 
        Version updating script
diff --git a/info/info.h b/info/info.h
index 294ca26d9f..66259d7689 100644
--- a/info/info.h
+++ b/info/info.h
@@ -23,6 +23,8 @@
 /* System dependencies.  */
 #include "system.h"
 
+#define STREQ(s1,s2) (strcmp (s1, s2) == 0)
+
 struct window_struct;
 typedef void COMMAND_FUNCTION (struct window_struct *window, int count);
 
diff --git a/system.h b/system.h
index 2041676c40..2a392280b3 100644
--- a/system.h
+++ b/system.h
@@ -173,11 +173,6 @@ extern int kill (pid_t, int);
 /* Some systems don't declare this function in pwd.h. */
 struct passwd *getpwnam (const char *name);
 
-/* For convenience.  */
-#define STREQ(s1,s2) (strcmp (s1, s2) == 0)
-#define STRCASEEQ(s1,s2) (strcasecmp (s1, s2) == 0)
-#define STRNCASEEQ(s1,s2,n) (strncasecmp (s1, s2, n) == 0)
-
 #ifndef TEXINFO_PRINTFLIKE
 # ifdef __GNUC__
 #  define TEXINFO_PRINTFLIKE(fmt,narg) __attribute__ ((__format__ (__printf__, 
fmt, narg)))



reply via email to

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