From c8ac7ac727b648652e4d0151bbf0dfc534c7e49b Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Mon, 15 Apr 2024 15:28:45 -0400 Subject: [PATCH] Much cleanup to better match lesson text --- lcthw/{ex1 => }/.gitignore | 1 + lcthw/{ex2 => }/Makefile | 5 +++-- lcthw/{ex1 => }/ex1.c | 0 lcthw/ex2/.gitignore | 1 - lcthw/ex2/ex1.c | 12 ------------ lcthw/{ex3 => }/ex3.c | 0 lcthw/ex3/.gitignore | 1 - 7 files changed, 4 insertions(+), 16 deletions(-) rename lcthw/{ex1 => }/.gitignore (50%) rename lcthw/{ex2 => }/Makefile (54%) rename lcthw/{ex1 => }/ex1.c (100%) delete mode 100644 lcthw/ex2/.gitignore delete mode 100644 lcthw/ex2/ex1.c rename lcthw/{ex3 => }/ex3.c (100%) delete mode 100644 lcthw/ex3/.gitignore diff --git a/lcthw/ex1/.gitignore b/lcthw/.gitignore similarity index 50% rename from lcthw/ex1/.gitignore rename to lcthw/.gitignore index 2d697d2..6d21d2b 100644 --- a/lcthw/ex1/.gitignore +++ b/lcthw/.gitignore @@ -1 +1,2 @@ ex1 +ex3 diff --git a/lcthw/ex2/Makefile b/lcthw/Makefile similarity index 54% rename from lcthw/ex2/Makefile rename to lcthw/Makefile index c5e5824..05981d7 100644 --- a/lcthw/ex2/Makefile +++ b/lcthw/Makefile @@ -1,9 +1,10 @@ CFLAGS ?= -Wall -g -all: ex1 +all: ex1 ex3 clean: - rm -f ex1 + rm -f ex1 ex3 test: ./ex1 + ./ex3 diff --git a/lcthw/ex1/ex1.c b/lcthw/ex1.c similarity index 100% rename from lcthw/ex1/ex1.c rename to lcthw/ex1.c diff --git a/lcthw/ex2/.gitignore b/lcthw/ex2/.gitignore deleted file mode 100644 index 2d697d2..0000000 --- a/lcthw/ex2/.gitignore +++ /dev/null @@ -1 +0,0 @@ -ex1 diff --git a/lcthw/ex2/ex1.c b/lcthw/ex2/ex1.c deleted file mode 100644 index b37124b..0000000 --- a/lcthw/ex2/ex1.c +++ /dev/null @@ -1,12 +0,0 @@ -#include - -/* This is a comment. */ -int main(int argc, char *argv[]) -{ - int distance = 100; - - // this is also a comment - printf("You are %d miles away.\n", distance); - - return 0; -} diff --git a/lcthw/ex3/ex3.c b/lcthw/ex3.c similarity index 100% rename from lcthw/ex3/ex3.c rename to lcthw/ex3.c diff --git a/lcthw/ex3/.gitignore b/lcthw/ex3/.gitignore deleted file mode 100644 index 2ea718c..0000000 --- a/lcthw/ex3/.gitignore +++ /dev/null @@ -1 +0,0 @@ -ex3