From f694cae764611af0b34d7c56bc8e025fd44e475e Mon Sep 17 00:00:00 2001 From: Hoorad Farrokh Date: Mon, 22 Apr 2024 12:06:33 +1200 Subject: [PATCH] Renamed getopt --- src/global/{getopt.c => cgetopt.c} | 4 +++- src/global/{cano_getopt.h => cgetopt.h} | 4 ++-- src/shared.mk | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) rename src/global/{getopt.c => cgetopt.c} (98%) rename src/global/{cano_getopt.h => cgetopt.h} (93%) diff --git a/src/global/getopt.c b/src/global/cgetopt.c similarity index 98% rename from src/global/getopt.c rename to src/global/cgetopt.c index 529dfdc..f67a890 100644 --- a/src/global/getopt.c +++ b/src/global/cgetopt.c @@ -1,4 +1,6 @@ -#include "./cano_getopt.h" +// Reimplementation of GNU getopt by proh14 and cobbcoding + +#include "./cgetopt.h" #include #include #include diff --git a/src/global/cano_getopt.h b/src/global/cgetopt.h similarity index 93% rename from src/global/cano_getopt.h rename to src/global/cgetopt.h index e5732a5..70dd2fd 100644 --- a/src/global/cano_getopt.h +++ b/src/global/cgetopt.h @@ -1,6 +1,6 @@ // Reimplementation of GNU getopt by proh14 and cobbcoding -#ifndef _GETOPT_H_ -#define _GETOPT_H_ +#ifndef _CGETOPT_H_ +#define _CGETOPT_H_ #define no_argument 0 #define required_argument 1 diff --git a/src/shared.mk b/src/shared.mk index 987ff08..fd7f5ee 100644 --- a/src/shared.mk +++ b/src/shared.mk @@ -1,6 +1,6 @@ / ?= ../../ -SRC += $/src/global/getopt.c +SRC += $/src/global/cgetopt.c include $/base.mk include $/commons.mk