From 9b672ff535a281bba3e336c34c76f584edc46e52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Fri, 3 Jun 2022 11:51:11 +0800 Subject: [PATCH] add file headers --- base1432.c | 19 +++++++++++++++++-- base1464.c | 19 +++++++++++++++++-- base16384.c | 17 +++++++++++++++++ base16384.h | 18 ++++++++++++++++-- 4 files changed, 67 insertions(+), 6 deletions(-) diff --git a/base1432.c b/base1432.c index d4c9063..44bed16 100644 --- a/base1432.c +++ b/base1432.c @@ -1,5 +1,20 @@ -// base1432.c -// fumiama 20220319 +/* base1432.c + * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). + * Copyright (c) 2022 Fumiama Minamoto. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifdef __cosmopolitan // always le # define be16toh(x) bswap_16(x) # define be32toh(x) bswap_32(x) diff --git a/base1464.c b/base1464.c index 7aa180f..d96fbf8 100644 --- a/base1464.c +++ b/base1464.c @@ -1,5 +1,20 @@ -// base1464.c -// fumiama 20211029 +/* base1464.c + * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). + * Copyright (c) 2022 Fumiama Minamoto. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include #include #include diff --git a/base16384.c b/base16384.c index d901dd0..c811527 100644 --- a/base16384.c +++ b/base16384.c @@ -1,3 +1,20 @@ +/* base16384.c + * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). + * Copyright (c) 2022 Fumiama Minamoto. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef __cosmopolitan #include #include diff --git a/base16384.h b/base16384.h index 45d8e94..2a4469c 100644 --- a/base16384.h +++ b/base16384.h @@ -1,8 +1,22 @@ #ifndef _BASE14_H_ #define _BASE14_H_ -// base14.h -// fumiama 20220319 +/* base16384.h + * This file is part of the base16384 distribution (https://github.com/fumiama/base16384). + * Copyright (c) 2022 Fumiama Minamoto. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ // encode_len calc min buf size to fill encode result int encode_len(int dlen) {