2021-08-13 10:20:45 +00:00
|
|
|
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│
|
|
|
|
│vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│
|
|
|
|
╞══════════════════════════════════════════════════════════════════════════════╡
|
|
|
|
│ Python 3 │
|
|
|
|
│ https://docs.python.org/3/license.html │
|
|
|
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
2021-08-18 21:21:30 +00:00
|
|
|
#include "libc/bits/bits.h"
|
|
|
|
#include "libc/bits/weaken.h"
|
|
|
|
#include "libc/stdio/append.internal.h"
|
|
|
|
#include "libc/str/str.h"
|
2021-08-12 07:42:14 +00:00
|
|
|
#include "third_party/python/Include/pylifecycle.h"
|
2021-08-10 17:26:13 +00:00
|
|
|
/* clang-format off */
|
|
|
|
|
2021-08-18 21:21:30 +00:00
|
|
|
asm(".ident\t\"\\n\\n\
|
|
|
|
Python 3.6 (https://docs.python.org/3/license.html)\\n\
|
|
|
|
Copyright (c) 2001-2021 Python Software Foundation.\\n\
|
|
|
|
All Rights Reserved.\\n\
|
|
|
|
Copyright (c) 2000 BeOpen.com.\\n\
|
|
|
|
All Rights Reserved.\\n\
|
|
|
|
Copyright (c) 1995-2001 Corporation for National Research Initiatives.\\n\
|
|
|
|
All Rights Reserved.\\n\
|
|
|
|
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.\\n\
|
|
|
|
All Rights Reserved.\"");
|
2021-08-08 04:08:33 +00:00
|
|
|
|
2021-08-18 21:21:30 +00:00
|
|
|
extern const char kLegalNotices[];
|
2021-08-08 04:08:33 +00:00
|
|
|
|
|
|
|
const char *
|
|
|
|
Py_GetCopyright(void)
|
|
|
|
{
|
2021-08-18 21:21:30 +00:00
|
|
|
const char *p;
|
|
|
|
static bool once;
|
|
|
|
static char *res;
|
|
|
|
if (cmpxchg(&once, 0, 1)) {
|
|
|
|
appends(&res, "");
|
|
|
|
for (p = *weaken(kLegalNotices); *p; p += strlen(p) + 1) {
|
|
|
|
appends(&res, p);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return res;
|
2021-08-08 04:08:33 +00:00
|
|
|
}
|