Module Name: src Committed By: riastradh Date: Thu Aug 15 22:23:17 UTC 2024
Modified Files: src/lib/libc/locale: c8rtomb.c mbrtoc8.c Log Message: c8rtomb(3), mbrtoc8(3): Use namespace.h to get private aliases. This way applications defining the symbols c32rtomb or mbrtoc32 won't clobber our private definitions, which are slightly more constrained about their use of mbstate_t than is obvious from the interface contract. PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/libc/locale/c8rtomb.c \ src/lib/libc/locale/mbrtoc8.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/locale/c8rtomb.c diff -u src/lib/libc/locale/c8rtomb.c:1.1 src/lib/libc/locale/c8rtomb.c:1.2 --- src/lib/libc/locale/c8rtomb.c:1.1 Thu Aug 15 21:19:45 2024 +++ src/lib/libc/locale/c8rtomb.c Thu Aug 15 22:23:17 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: c8rtomb.c,v 1.1 2024/08/15 21:19:45 riastradh Exp $ */ +/* $NetBSD: c8rtomb.c,v 1.2 2024/08/15 22:23:17 riastradh Exp $ */ /*- * Copyright (c) 2024 The NetBSD Foundation, Inc. @@ -55,7 +55,9 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: c8rtomb.c,v 1.1 2024/08/15 21:19:45 riastradh Exp $"); +__RCSID("$NetBSD: c8rtomb.c,v 1.2 2024/08/15 22:23:17 riastradh Exp $"); + +#include "namespace.h" #include <assert.h> #include <errno.h> Index: src/lib/libc/locale/mbrtoc8.c diff -u src/lib/libc/locale/mbrtoc8.c:1.1 src/lib/libc/locale/mbrtoc8.c:1.2 --- src/lib/libc/locale/mbrtoc8.c:1.1 Thu Aug 15 21:19:45 2024 +++ src/lib/libc/locale/mbrtoc8.c Thu Aug 15 22:23:17 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: mbrtoc8.c,v 1.1 2024/08/15 21:19:45 riastradh Exp $ */ +/* $NetBSD: mbrtoc8.c,v 1.2 2024/08/15 22:23:17 riastradh Exp $ */ /*- * Copyright (c) 2024 The NetBSD Foundation, Inc. @@ -72,7 +72,9 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: mbrtoc8.c,v 1.1 2024/08/15 21:19:45 riastradh Exp $"); +__RCSID("$NetBSD: mbrtoc8.c,v 1.2 2024/08/15 22:23:17 riastradh Exp $"); + +#include "namespace.h" #include <assert.h> #include <errno.h>