Compare commits

...

5 Commits

Author SHA1 Message Date
Egan Ford 9af2b2d8fd new bins from tests, hack to dwine to sleep 1 sec before test 2023-10-26 14:57:08 -06:00
datajerk f3991f4cd1
Merge pull request #3 from ryandesign/ryandesign-cc
Allow Makefile compiler to be set with CC variable
2023-10-26 14:54:07 -06:00
datajerk d74542dd56
Merge pull request #2 from ryandesign/ryandesign-strict-prototypes
Fix issues found with -Wstrict-prototypes
2023-10-26 14:53:26 -06:00
Ryan Schmidt 11281905bd Allow Makefile compiler to be set with CC variable 2023-10-25 23:03:40 -05:00
Ryan Schmidt a54024f82a Fix issues found with -Wstrict-prototypes 2023-10-25 22:43:55 -05:00
11 changed files with 13 additions and 13 deletions

View File

@ -19,28 +19,28 @@ c2d.h: c2d.h.0 asm/loader.s asm/bar.s makeheader cc65-2.13.3/bin/cl65
./makeheader
bin/c2d_arm: c2d.c c2d.h
gcc -Wall -Wno-missing-braces -I. -O3 -target arm64-apple-macos11 -o $@ $< -lm
$(CC) -Wall -Wno-missing-braces -I. -O3 -target arm64-apple-macos11 -o $@ $< -lm
bin/text2page_arm: text2page.c
gcc -Wall -O3 -target arm64-apple-macos11 -o $@ $< -lm
$(CC) -Wall -O3 -target arm64-apple-macos11 -o $@ $< -lm
bin/page2text_arm: page2text.c
gcc -Wall -O3 -target arm64-apple-macos11 -o $@ $< -lm
$(CC) -Wall -O3 -target arm64-apple-macos11 -o $@ $< -lm
bin/mandelbrotgr_arm: mandelbrotgr.c
gcc -Wall -O3 -target arm64-apple-macos11 -o $@ $< -lm
$(CC) -Wall -O3 -target arm64-apple-macos11 -o $@ $< -lm
bin/c2d_x86: c2d.c c2d.h
gcc -Wall -Wno-missing-braces -I. -O3 -target x86_64-apple-macos10.12 -o $@ $< -lm
$(CC) -Wall -Wno-missing-braces -I. -O3 -target x86_64-apple-macos10.12 -o $@ $< -lm
bin/text2page_x86: text2page.c
gcc -Wall -O3 -target -x86_64-apple-macos10.12 -o $@ $< -lm
$(CC) -Wall -O3 -target -x86_64-apple-macos10.12 -o $@ $< -lm
bin/page2text_x86: page2text.c
gcc -Wall -O3 -target x86_64-apple-macos10.12 -o $@ $< -lm
$(CC) -Wall -O3 -target x86_64-apple-macos10.12 -o $@ $< -lm
bin/mandelbrotgr_x86: mandelbrotgr.c
gcc -Wall -O3 -target x86_64-apple-macos10.12 -o $@ $< -lm
$(CC) -Wall -O3 -target x86_64-apple-macos10.12 -o $@ $< -lm
bin/c2d: bin/c2d_x86 bin/c2d_arm
lipo -create -output $@ $<

BIN
bin/c2d

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

4
c2d.c
View File

@ -49,7 +49,7 @@ Bugs:
#define MONITOR 1
#define LOADER "loader"
void usage();
void usage(void);
char *getext(char *filename);
int main(int argc, char **argv)
@ -346,7 +346,7 @@ char *getext(char *filename)
return (rval);
}
void usage()
void usage(void)
{
fprintf(stderr, "%s", usagetext);
}

2
dwine
View File

@ -1,4 +1,4 @@
#!/bin/bash
set -x
docker run --rm -it -v $PWD:/pwd wine32 bash -c "cd /pwd && wine $*"
docker run --rm -it -v $PWD:/pwd wine32 bash -c "cd /pwd && sleep 1 && wine $*"

View File

@ -2,7 +2,7 @@
#define MASK 0x7F
int main()
int main(int argc, char **argv)
{
int i, j, k, line;
char screen[24][40];

View File

@ -3,7 +3,7 @@
#define NORMAL 0x80
#define BLINK 0x40
int main()
int main(int argc, char **argv)
{
char c;
int i, j, k, line = 0;