summaryrefslogtreecommitdiffstats
path: root/gl/streq.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/streq.h')
-rw-r--r--gl/streq.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gl/streq.h b/gl/streq.h
index 8593de6d..505fc4ae 100644
--- a/gl/streq.h
+++ b/gl/streq.h
@@ -1,5 +1,5 @@
1/* Optimized string comparison. 1/* Optimized string comparison.
2 Copyright (C) 2001-2002, 2007, 2009-2024 Free Software Foundation, Inc. 2 Copyright (C) 2001-2002, 2007, 2009-2026 Free Software Foundation, Inc.
3 3
4 This file is free software: you can redistribute it and/or modify 4 This file is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as 5 it under the terms of the GNU Lesser General Public License as
@@ -26,7 +26,7 @@ extern "C" {
26#endif 26#endif
27 27
28 28
29/* STREQ_OPT allows to optimize string comparison with a small literal string. 29/* STREQ_OPT optimizes string comparison with a small literal string.
30 STREQ_OPT (s, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0) 30 STREQ_OPT (s, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0)
31 is semantically equivalent to 31 is semantically equivalent to
32 strcmp (s, "EUC-KR") == 0 32 strcmp (s, "EUC-KR") == 0
@@ -39,7 +39,7 @@ extern "C" {
39static inline int 39static inline int
40streq9 (const char *s1, const char *s2) 40streq9 (const char *s1, const char *s2)
41{ 41{
42 return strcmp (s1 + 9, s2 + 9) == 0; 42 return streq (s1 + 9, s2 + 9);
43} 43}
44 44
45static inline int 45static inline int