Changeset 240b2e4 in mainline for common/include/uchar.h


Ignore:
Timestamp:
2025-04-13T19:05:55Z (3 months ago)
Author:
GitHub <noreply@…>
Children:
c7c6afd
Parents:
62e3411 (diff), 28c39f3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Wayne Thornton <wmthornton-dev@…> (2025-04-13 19:05:55)
git-committer:
GitHub <noreply@…> (2025-04-13 19:05:55)
Message:

Merge branch 'HelenOS:master' into master

File:
1 moved

Legend:

Unmodified
Added
Removed
  • common/include/uchar.h

    r62e3411 r240b2e4  
    11/*
    2  * Copyright (c) 2020 Martin Decky
     2 * Copyright (c) 2025 Jiří Zárevúcky
    33 * All rights reserved.
    44 *
     
    3636#define _LIBC_UCHAR_H_
    3737
     38#include <_bits/mbstate_t.h>
     39#include <_bits/size_t.h>
    3840#include <_bits/uchar.h>
     41#include <stdint.h>
     42
     43size_t mbrtoc8(char8_t *__restrict pc8, const char *__restrict s, size_t n,
     44    mbstate_t *__restrict ps);
     45size_t c8rtomb(char *__restrict s, char8_t c8, mbstate_t *__restrict ps);
     46size_t mbrtoc16(char16_t *__restrict pc16, const char *__restrict s, size_t n,
     47    mbstate_t *__restrict ps);
     48size_t c16rtomb(char *__restrict s, char16_t c16, mbstate_t *__restrict ps);
     49size_t mbrtoc32(char32_t *__restrict pc32, const char *__restrict s, size_t n,
     50    mbstate_t *__restrict ps);
     51size_t c32rtomb(char *__restrict s, char32_t c32, mbstate_t *__restrict ps);
     52
     53#ifdef _HELENOS_SOURCE
     54#define UCHAR_ILSEQ      ((size_t) -1)
     55#define UCHAR_INCOMPLETE ((size_t) -2)
     56#define UCHAR_CONTINUED  ((size_t) -3)
     57#endif
    3958
    4059#endif
Note: See TracChangeset for help on using the changeset viewer.