From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail-a.sr.ht; dkim=pass header.d=johnnyrichard.com header.i=@johnnyrichard.com Received: from out-175.mta1.migadu.com (out-175.mta1.migadu.com [95.215.58.175]) by mail-a.sr.ht (Postfix) with ESMTPS id 9314D20274 for <~johnnyrichard/olang-devel@lists.sr.ht>; Thu, 22 Feb 2024 17:26:04 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1708622764; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=85xpeyJZzg+0/bTNSMKo/5NgkXnQsLLHhCuuGIGhHBA=; b=mIfKTgs/Cx7QX83wN2R8mwH6l4vJS/9TQg9TeeO8god4SdXp/Y9l4ufWIi34RzUapXLn1u hp11V0KEfMiIbd15xsQ5Rq43gNXMoZPLasHtaFADXBFH0sDYlrLH9WYE5NHHGoaD+Y6Z0Z G0XTIpd/fHrjyUAJr6myXPk4eA03Kcqv4dbQ3TLHTUf5WM/12SndAgVPSTzoPisl71fYK1 +eTvGKzEAgTxwgfBbpPsokGeERR8Gq0FI4WM+wQFziBrHUeFzUm5SqUnXImAzswuRS9vKV cKUX+HAXj1USdnWM/svDTeNjOTLG5INRfQDupPfmTaK5Npc3gUcHtF9Ric4Z9A== From: Johnny Richard To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Johnny Richard Subject: [PATCH olang] build: rename 0c.c file to main.c Date: Thu, 22 Feb 2024 19:24:27 +0100 Message-ID: <20240222182506.76822-1-johnny@johnnyrichard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-TUID: ze/rgTv07HIk In order to make the source code easy to follow by someone who are not involved on the development, we are renaming the 0c.c file (which is the compiler main entrypoint) to main.c, so then anyone can guess what is the role of this file. Given that we still have a single executable in our code base, I think it's fine to name the file as main.c. Signed-off-by: Johnny Richard --- src/{0c.c => main.c} | 0 tests/unit/Makefile | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename src/{0c.c => main.c} (100%) diff --git a/src/0c.c b/src/main.c similarity index 100% rename from src/0c.c rename to src/main.c diff --git a/tests/unit/Makefile b/tests/unit/Makefile index 7c6a8b3..498bf98 100644 --- a/tests/unit/Makefile +++ b/tests/unit/Makefile @@ -1,6 +1,6 @@ SRCS := $(wildcard *_test.c) OBJS := $(patsubst %_test.c, %_test.o, $(SRCS)) -SUBJECT_OBJS := $(filter-out ../../build/0c.o, $(wildcard ../../build/*.o)) +SUBJECT_OBJS := $(filter-out ../../build/main.o, $(wildcard ../../build/*.o)) CFLAGS := -I../../src -I../shared TESTS := $(patsubst %_test.c, %_test, $(SRCS)) EXEC_TESTS := $(patsubst %_test, ./%_test, $(TESTS)) -- 2.43.2