Skip to content

Commit

Permalink
Renamed getopt
Browse files Browse the repository at this point in the history
  • Loading branch information
proh14 authored and Sigmanificient committed Apr 22, 2024
1 parent e1547e8 commit f694cae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/global/getopt.c → src/global/cgetopt.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "./cano_getopt.h"
// Reimplementation of GNU getopt by proh14 and cobbcoding

#include "./cgetopt.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions src/global/cano_getopt.h → src/global/cgetopt.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/shared.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/ ?= ../../

SRC += $/src/global/getopt.c
SRC += $/src/global/cgetopt.c

include $/base.mk
include $/commons.mk

0 comments on commit f694cae

Please sign in to comment.