]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libga68: Make _libga68_u32_cmp static master trunk
authorPietro Monteiro <pietro@sociotechnical.xyz>
Tue, 16 Dec 2025 12:48:06 +0000 (07:48 -0500)
committerPietro Monteiro <pietro@sociotechnical.xyz>
Tue, 16 Dec 2025 12:48:06 +0000 (07:48 -0500)
_libga68_u32_cmp is only used in the same translation unit, so make it
static.

libga68/ChangeLog:

* ga68-unistr.c (_libga68_u32_cmp): Add `static' specifier.
* ga68.h (_libga68_u32_cmp): Remove prototype.

libga68/ga68-unistr.c
libga68/ga68.h

index 7f2cb97de70b57751bf8a4fa092dd75fdc34ffd0..1b6f46afee39785b8136ee51fbe6a570154d5acc 100644 (file)
@@ -56,7 +56,7 @@
 /* Compare two UCS-4 strings of same lenght, lexicographically.
    Return -1, 0 or 1.  */
 
-int
+static int
 _libga68_u32_cmp (const uint32_t *s1, size_t stride1,
                  const uint32_t *s2, size_t stride2,
                  size_t n)
index 764ea2b3ce790d1ef0fca03511b8c3301e412522..ed8b71fce79e2f1f8ac7e07799b222b27e550415 100644 (file)
@@ -104,9 +104,6 @@ long long int _libga68_posixlseek (int fd, long long int offset, int whence);
 
 /* ga68-unistr.c  */
 
-int _libga68_u32_cmp (const uint32_t *s1, size_t stride1,
-                     const uint32_t *s2, size_t stride2,
-                     size_t n);
 int _libga68_u32_cmp2 (const uint32_t *s1, size_t n1, size_t stride1,
                       const uint32_t *s2, size_t n2, size_t stride2);
 int _libga68_u8_uctomb (uint8_t *s, uint32_t uc, ptrdiff_t n);