Loading...
--- Libc/Libc-1725.40.4/locale/setinvalidrune.c
+++ Libc/Libc-262/locale/setinvalidrune.c
@@ -34,36 +34,11 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/lib/libc/locale/setinvalidrune.c,v 1.3 2002/09/24 09:25:37 tjr Exp $");
-
-#include "xlocale_private.h"
-
#include <rune.h>
-#include "mblocal.h"
-#include "runedepreciated.h"
void
-setinvalidrune(rune_t ir)
+setinvalidrune(ir)
+ rune_t ir;
{
- struct xlocale_ctype *rl;
- static int warn_depreciated = 1;
- locale_t loc = __current_locale();
-
- if (warn_depreciated) {
- warn_depreciated = 0;
- fprintf(stderr, __rune_depreciated_msg, "setinvalidrune");
- }
-
- rl = (void *)loc->components[XLC_CTYPE];
- if (rl->_CurrentRuneLocale->__invalid_rune != ir) {
- struct xlocale_ctype *new = (struct xlocale_ctype *)malloc(rl->__datasize);
- if (!new)
- return;
- *new = *rl;
- new->header.header.retain_count = 1;
- new->_CurrentRuneLocale->__invalid_rune = ir;
- xlocale_release(rl);
- loc->components[XLC_CTYPE] = (void *)new;
- }
+ _INVALID_RUNE = ir;
}