commit 130fc6d97bce96bc042bdaa6329b82d00f6316d5
parent 22211a1267f136c4b55bc2298bc9de19d5973f9f
Author: Louis Burda <quent.burda@gmail.com>
Date: Mon, 17 May 2021 21:23:49 +0200
renamed to STLDoctor
Diffstat:
6 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/README.md b/README.md
@@ -1,5 +1,5 @@
-Enowars5 PrintDoc
-=================
+Enowars5 STLDoctor
+==================
-An stl file info service.
+An STL file inspection service 🔍.
diff --git a/service/src/Makefile b/service/src/Makefile
@@ -2,13 +2,13 @@ CFLAGS = -g -I .
.PHONY: all clean
-all: printdoc
+all: stldoctor
clean:
- rm -f printdoc *.o
+ rm -f stldoctor *.o
%.o: %.c %.h
$(CC) -c -o $@ $< $(CFLAGS) $(LDLIBS)
-printdoc: printdoc.c stlfile.o util.o
+stldoctor: main.c stlfile.o util.o
$(CC) -o $@ $^ $(CFLAGS) $(LDLIBS)
diff --git a/service/src/printdoc.c b/service/src/main.c
diff --git a/service/src/msgs/welcome b/service/src/msgs/welcome
@@ -1,2 +1,2 @@
-Welcome to PrintDoc!
+Welcome to STLDoctor!
Submit a stl file and we'll analyze it!
diff --git a/service/src/stldoctor b/service/src/stldoctor
Binary files differ.
diff --git a/service/src/stlfile.c b/service/src/stlfile.c
@@ -251,7 +251,7 @@ int
parse_file(struct parseinfo *info, char *buf, size_t len)
{
int status;
- const char *tmp;
+ const char *resp;
char *bp;
if (info->valid) free_info(info);
@@ -270,12 +270,12 @@ parse_file(struct parseinfo *info, char *buf, size_t len)
if (status == FAIL) return FAIL;
if (!info->modelname) {
- tmp = ask("Please enter your model name:\n");
- if (strlen(tmp) < 4) {
+ resp = ask("Please enter your model name:\n");
+ if (strlen(resp) < 4) {
fprintf(stderr, "Model name is too short!\n");
return FAIL;
}
- info->modelname = checkp(strdup(tmp));
+ info->modelname = checkp(strdup(resp));
}
info->hash = checkp(strdup(mhash(info->modelname, -1)));