提交 6cec7bc5 编写于 作者: R Rich Felker

remove comments on copyright status from UTF-8 implementation files

despite clarifications made to the COPYRIGHT file in commit
f0a61399, there continues to be
confusion about whether the permissions granted actually apply to all
files. I am the sole author of these files and clearly intend, and
have always intended, for the grant of permission to apply to them.
上级 1e6fc0b6
/*
* This code was written by Rich Felker in 2010; no copyright is claimed.
* This code is in the public domain. Attribution is appreciated but
* unnecessary.
*/
#include "internal.h" #include "internal.h"
#define C(x) ( x<2 ? -1 : ( R(0x80,0xc0) | x ) ) #define C(x) ( x<2 ? -1 : ( R(0x80,0xc0) | x ) )
......
/*
* This code was written by Rich Felker in 2010; no copyright is claimed.
* This code is in the public domain. Attribution is appreciated but
* unnecessary.
*/
#define bittab __fsmu8 #define bittab __fsmu8
#include <stdint.h> #include <stdint.h>
......
/*
* This code was written by Rich Felker in 2010; no copyright is claimed.
* This code is in the public domain. Attribution is appreciated but
* unnecessary.
*/
#include <stdlib.h> #include <stdlib.h>
int mblen(const char *s, size_t n) int mblen(const char *s, size_t n)
......
/*
* This code was written by Rich Felker in 2010; no copyright is claimed.
* This code is in the public domain. Attribution is appreciated but
* unnecessary.
*/
#include <wchar.h> #include <wchar.h>
size_t mbrlen(const char *restrict s, size_t n, mbstate_t *restrict st) size_t mbrlen(const char *restrict s, size_t n, mbstate_t *restrict st)
......
/*
* This code was written by Rich Felker in 2010; no copyright is claimed.
* This code is in the public domain. Attribution is appreciated but
* unnecessary.
*/
#include <stdlib.h> #include <stdlib.h>
#include <wchar.h> #include <wchar.h>
#include <errno.h> #include <errno.h>
......
/*
* This code was written by Rich Felker in 2010; no copyright is claimed.
* This code is in the public domain. Attribution is appreciated but
* unnecessary.
*/
#include <wchar.h> #include <wchar.h>
int mbsinit(const mbstate_t *st) int mbsinit(const mbstate_t *st)
......
/*
* This code was written by Rich Felker in 2010; no copyright is claimed.
* This code is in the public domain. Attribution is appreciated but
* unnecessary.
*/
#include <wchar.h> #include <wchar.h>
size_t mbsnrtowcs(wchar_t *restrict wcs, const char **restrict src, size_t n, size_t wn, mbstate_t *restrict st) size_t mbsnrtowcs(wchar_t *restrict wcs, const char **restrict src, size_t n, size_t wn, mbstate_t *restrict st)
......
/*
* This code was written by Rich Felker in 2010; no copyright is claimed.
* This code is in the public domain. Attribution is appreciated but
* unnecessary.
*/
#include <stdint.h> #include <stdint.h>
#include <wchar.h> #include <wchar.h>
#include <errno.h> #include <errno.h>
......
/*
* This code was written by Rich Felker in 2010; no copyright is claimed.
* This code is in the public domain. Attribution is appreciated but
* unnecessary.
*/
#include <stdlib.h> #include <stdlib.h>
#include <wchar.h> #include <wchar.h>
#include <errno.h> #include <errno.h>
......
/*
* This code was written by Rich Felker in 2010; no copyright is claimed.
* This code is in the public domain. Attribution is appreciated but
* unnecessary.
*/
#include <stdlib.h> #include <stdlib.h>
#include <wchar.h> #include <wchar.h>
#include <errno.h> #include <errno.h>
......
/*
* This code was written by Rich Felker in 2010; no copyright is claimed.
* This code is in the public domain. Attribution is appreciated but
* unnecessary.
*/
#include <wchar.h> #include <wchar.h>
size_t wcsnrtombs(char *restrict dst, const wchar_t **restrict wcs, size_t wn, size_t n, mbstate_t *restrict st) size_t wcsnrtombs(char *restrict dst, const wchar_t **restrict wcs, size_t wn, size_t n, mbstate_t *restrict st)
......
/*
* This code was written by Rich Felker in 2010; no copyright is claimed.
* This code is in the public domain. Attribution is appreciated but
* unnecessary.
*/
#include <wchar.h> #include <wchar.h>
size_t wcsrtombs(char *restrict s, const wchar_t **restrict ws, size_t n, mbstate_t *restrict st) size_t wcsrtombs(char *restrict s, const wchar_t **restrict ws, size_t n, mbstate_t *restrict st)
......
/*
* This code was written by Rich Felker in 2010; no copyright is claimed.
* This code is in the public domain. Attribution is appreciated but
* unnecessary.
*/
#include <stdlib.h> #include <stdlib.h>
#include <wchar.h> #include <wchar.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册