More fixes in 2001/bellard

Fixed supplementary program to add a newline after printing the first
line: else the output of both lines were merged and hard to read.

Updated Makefile to always compile the supplementary program.

Modified thanks-for-fixes.md wrt this entry including fixing the link to
the supplementary program (it did not specify the directory: it just had
the file name itself).
This commit is contained in:
Cody Boone Ferguson committed 2023-07-17 04:27:50 -07:00
1 parent d8f2cfc6f8
commit 702ba38194
3 files changed
+24 -17

No files matched your search

+3 -3
View File
@@ -113,8 +113,8 @@ ENTRY= bellard
PROG= ${ENTRY}
#
OBJ= ${PROG}.o
DATA= bellard.otccex.c
TARGET= ${PROG}
DATA=
TARGET= ${PROG} ${PROG}.otccex
#
ALT_OBJ=
ALT_TARGET=
@@ -134,7 +134,7 @@ all: data ${TARGET}
${PROG}: ${PROG}.c
@echo "WARNING: ${PROG}.c must be compiled as 32-bit to use with the entry itself;"
@echo "if you cannot use -m32 this will NOT work!"
${CC} ${CFLAGS} -m32 $< -o $@ ${LDFLAGS}
${CC} ${CFLAGS} -m32 $< -o $@ ${LDFLAGS} || :
${PROG}.otccex: ${PROG}.otccex.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
+1 -1
View File
@@ -107,7 +107,7 @@ main(int argc, char **argv)
} else {
print_num(fib(n), base);
}
printf("fact(%d) with base %d = ", base, n);
printf("\nfact(%d) with base %d = ", base, n);
if (n > 12) {
printf("Overflow");
} else {