1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-05-31 08:31:41 +05:30

relicense everything under CC0-1.0 or Unlicense, add SPDX ID

This commit is contained in:
2024-07-15 00:03:15 +03:00
parent dbc03ae915
commit 068591cd8e
41 changed files with 82 additions and 41 deletions

View File

@@ -6,7 +6,8 @@
* TODO: Use fixed point arithmetics * TODO: Use fixed point arithmetics
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include "clock_hr_microsec.h" #include "clock_hr_microsec.h"

View File

@@ -2,7 +2,8 @@
* clock_hr_microsec.h * clock_hr_microsec.h
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#ifndef _CLOCK_HR_MICROSEC_H #ifndef _CLOCK_HR_MICROSEC_H

View File

@@ -2,7 +2,8 @@
* bool-operations.c * bool-operations.c
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include <inttypes.h> #include <inttypes.h>

View File

@@ -9,7 +9,8 @@
* - exponential growth of time * - exponential growth of time
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include <limits.h> #include <limits.h>

View File

@@ -32,7 +32,8 @@
* *
* The license information of the added code and this modification: * The license information of the added code and this modification:
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include <ctype.h> #include <ctype.h>

View File

@@ -23,7 +23,8 @@
* TODO: Test: Automate the test verification * TODO: Test: Automate the test verification
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include <errno.h> #include <errno.h>

View File

@@ -2,7 +2,8 @@
* static-vs-dynamic-mem-alloc.c * static-vs-dynamic-mem-alloc.c
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include <stdint.h> #include <stdint.h>

View File

@@ -14,7 +14,8 @@
* the input reading loop to avoid input queues * the input reading loop to avoid input queues
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include "freadln.h" #include "freadln.h"

View File

@@ -2,7 +2,8 @@
* freadln.h * freadln.h
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#ifndef _FREADLN_H #ifndef _FREADLN_H

View File

@@ -2,7 +2,8 @@
* fwrite_le.c * fwrite_le.c
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include "fwrite_le.h" #include "fwrite_le.h"

View File

@@ -2,7 +2,8 @@
* fwrite_le.h * fwrite_le.h
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#ifndef _FWRITE_LE_H #ifndef _FWRITE_LE_H

View File

@@ -2,7 +2,8 @@
* pure_getline.c * pure_getline.c
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include "pure_getline.h" #include "pure_getline.h"

View File

@@ -2,7 +2,8 @@
* pure_getline.h * pure_getline.h
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#ifndef _PURE_GETLINE_H #ifndef _PURE_GETLINE_H

View File

@@ -2,7 +2,8 @@
* brexit.c * brexit.c
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#if !(defined(unix) || defined(__unix) || defined(__unix__) || \ #if !(defined(unix) || defined(__unix) || defined(__unix__) || \

View File

@@ -4,7 +4,8 @@
* NOTE: PulseAudio: Pipe STDOUT of this program to aplay -c 1 -f U8 -r 44100 * NOTE: PulseAudio: Pipe STDOUT of this program to aplay -c 1 -f U8 -r 44100
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include <stdio.h> #include <stdio.h>

View File

@@ -2,7 +2,8 @@
* extol.c [joke!] * extol.c [joke!]
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include <stdbool.h> #include <stdbool.h>

View File

@@ -4,7 +4,8 @@
* A modern C version of extol.c * A modern C version of extol.c
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include <stdbool.h> #include <stdbool.h>

View File

@@ -4,7 +4,8 @@
* Useful for showing big-endian hexadecimal dumps on little-endian machines * Useful for showing big-endian hexadecimal dumps on little-endian machines
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#define BE_TO_LE_PTR(base, size, i) \ #define BE_TO_LE_PTR(base, size, i) \

View File

@@ -6,7 +6,8 @@
* NOTE: This code will work only on a computer that uses bits. * NOTE: This code will work only on a computer that uses bits.
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#ifndef _OPT_INT_DIV_H #ifndef _OPT_INT_DIV_H

View File

@@ -4,7 +4,8 @@
* "Optimized integer division" * "Optimized integer division"
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include "opt_int_div.h" #include "opt_int_div.h"

View File

@@ -10,7 +10,8 @@
* f=lib/memset_explicit.c;hb=refs/heads/stable-202301 * f=lib/memset_explicit.c;hb=refs/heads/stable-202301
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#ifndef _SAFE_MEM_H #ifndef _SAFE_MEM_H

View File

@@ -2,7 +2,8 @@
* safe_mem.test.c * safe_mem.test.c
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include <stdio.h> #include <stdio.h>

View File

@@ -2,7 +2,8 @@
* asprintf.c * asprintf.c
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include "asprintf.h" #include "asprintf.h"

View File

@@ -2,7 +2,8 @@
* asprintf.h * asprintf.h
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#ifndef _ASPRINTF_H #ifndef _ASPRINTF_H

View File

@@ -2,7 +2,8 @@
* portable_basename.c * portable_basename.c
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include "portable_basename.h" #include "portable_basename.h"

View File

@@ -2,7 +2,8 @@
* portable_basename.h * portable_basename.h
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#ifndef _PORTABLE_BASENAME_H #ifndef _PORTABLE_BASENAME_H

View File

@@ -4,7 +4,8 @@
* Also compile `portable_basename.c` and `../benchmarking/clock_hr_microsec.c` * Also compile `portable_basename.c` and `../benchmarking/clock_hr_microsec.c`
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include <inttypes.h> #include <inttypes.h>

View File

@@ -4,7 +4,8 @@
* TODO: Add the ability to replace from the end * TODO: Add the ability to replace from the end
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include "str_replace.h" #include "str_replace.h"

View File

@@ -2,7 +2,8 @@
* str_replace.h * str_replace.h
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#ifndef _STR_REPLACE_H #ifndef _STR_REPLACE_H

View File

@@ -2,7 +2,8 @@
* string_case.c * string_case.c
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#include "string_case.h" #include "string_case.h"

View File

@@ -2,7 +2,8 @@
* string_case.h * string_case.h
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#ifndef _STRING_CASE_H #ifndef _STRING_CASE_H

View File

@@ -7,7 +7,8 @@
* *
* The following license information applies for the modifications: * The following license information applies for the modifications:
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Unlicense * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
#if !(defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || \ #if !(defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || \

View File

@@ -2,7 +2,8 @@
* busy-loop-delay.js * busy-loop-delay.js
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Creative Commons Zero 1.0 Universal * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
let measureEpoch = () => Number(new Date()) let measureEpoch = () => Number(new Date())

View File

@@ -15,7 +15,8 @@
* headers * headers
* *
* Author: Intel A80486DX2-66 * Author: Intel A80486DX2-66
* License: Creative Commons Zero 1.0 Universal * License: Creative Commons Zero 1.0 Universal or Unlicense
* SPDX-License-Identifier: CC0-1.0 OR Unlicense
*/ */
const generateAudio = t => { const generateAudio = t => {

View File

@@ -7,7 +7,8 @@
# The video game Baldi's Basics Plus is created by Basically Games # The video game Baldi's Basics Plus is created by Basically Games
# #
# Author: Intel A80486DX2-66 # Author: Intel A80486DX2-66
# License: Unlicense # License: Creative Commons Zero 1.0 Universal or Unlicense
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
from dotenv import load_dotenv from dotenv import load_dotenv
from os import environ, listdir, makedirs from os import environ, listdir, makedirs

View File

@@ -3,7 +3,8 @@
# generate_C_lang_token.py # generate_C_lang_token.py
# #
# Author: Intel A80486DX2-66 # Author: Intel A80486DX2-66
# License: Unlicense # License: Creative Commons Zero 1.0 Universal or Unlicense
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
from random import choice from random import choice
from string import ascii_lowercase, ascii_uppercase, digits from string import ascii_lowercase, ascii_uppercase, digits

View File

@@ -5,7 +5,8 @@
# TODO: Add interactive mode # TODO: Add interactive mode
# #
# Author: Intel A80486DX2-66 # Author: Intel A80486DX2-66
# License: Unlicense # License: Creative Commons Zero 1.0 Universal or Unlicense
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
from datetime import datetime from datetime import datetime
from difflib import unified_diff from difflib import unified_diff

View File

@@ -3,7 +3,8 @@
# ASCII_to_CJK.py # ASCII_to_CJK.py
# #
# Author: Intel A80486DX2-66 # Author: Intel A80486DX2-66
# License: Unlicense # License: Creative Commons Zero 1.0 Universal or Unlicense
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
ASCII_to_CJK = { ASCII_to_CJK = {
" ": "\u3000", " ": "\u3000",

View File

@@ -3,6 +3,7 @@
# base64_text_decode.py # base64_text_decode.py
# #
# Author: Intel A80486DX2-66 # Author: Intel A80486DX2-66
# License: Unlicense # License: Creative Commons Zero 1.0 Universal or Unlicense
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
print(__import__("base64").b64decode(input()).decode()) print(__import__("base64").b64decode(input()).decode())

View File

@@ -3,7 +3,8 @@
# get_unix_epoch_seconds.py # get_unix_epoch_seconds.py
# #
# Author: Intel A80486DX2-66 # Author: Intel A80486DX2-66
# License: Unlicense # License: Creative Commons Zero 1.0 Universal or Unlicense
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
print(__import__("math").floor(__import__("datetime").datetime.now().\ print(__import__("math").floor(__import__("datetime").datetime.now().\
timestamp())) timestamp()))

View File

@@ -3,7 +3,8 @@
# year_2038_bug.py # year_2038_bug.py
# #
# Author: Intel A80486DX2-66 # Author: Intel A80486DX2-66
# License: Unlicense # License: Creative Commons Zero 1.0 Universal or Unlicense
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
from ctypes import c_int, sizeof from ctypes import c_int, sizeof
from datetime import datetime, timedelta from datetime import datetime, timedelta