/
niceSOFT
/
nettle
Обзор
Документация
Войти
/
niceSOFT
/
nettle
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
getopt.c
47 строк
1 KB
Niels Möller
Rearrange getopt files to use gnulib copies.
03 янв 2026, 21:36
03 янв 2026, 21:36
a62f088
Код
Авторство
О чём код?
/* Wrapper for gnulib getopt.c Copyright (C) 2025 Niels Möller This file is part of GNU Nettle. GNU Nettle is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. or * the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. or both in parallel, as here. GNU Nettle 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 copies of the GNU General Public License and the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/. */ /* Must include some C library header file for definition of __GLIBC__ */ #include <stdlib.h> #define GETOPT_INTERFACE_VERSION 2 #if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2 # include <gnu-versions.h> # if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION # define ELIDE_CODE # endif #endif #ifndef ELIDE_CODE # define _(msg) msg # define _GL_UNUSED UNUSED # include "lib/getopt.c" #endif /* !ELIDE_CODE */