mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-22 01:31:33 +00:00
Fixed printf() warnings in a02.c
This commit is contained in:
parent
14b689dc69
commit
62430453cc
3
a02.c
3
a02.c
@ -61,7 +61,7 @@ FILE *incfil; //Include File Pointer
|
|||||||
|
|
||||||
/* Print Usage Info and Exit */
|
/* Print Usage Info and Exit */
|
||||||
void usage(char* appnam) {
|
void usage(char* appnam) {
|
||||||
printf("Usage: %s [opts] asmfile objfile [lstfile]\n");
|
printf("Usage: %s [opts] asmfile objfile [lstfile]\n", appnam);
|
||||||
printf(" Opts: -p - Commodore PRG format\n");
|
printf(" Opts: -p - Commodore PRG format\n");
|
||||||
printf(" -d - Output Debug Info\n");
|
printf(" -d - Output Debug Info\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
@ -390,7 +390,6 @@ void asminf(void) {
|
|||||||
if (debug) puts("Assembling INCLUDE Pseudo-Op");
|
if (debug) puts("Assembling INCLUDE Pseudo-Op");
|
||||||
if (incfil) xerror("Nested INCLUDE not Allowed", "");
|
if (incfil) xerror("Nested INCLUDE not Allowed", "");
|
||||||
if (!cpychr('"')) xerror("File Name Must be Quoted", "");
|
if (!cpychr('"')) xerror("File Name Must be Quoted", "");
|
||||||
printf("%d: '%p'\n", linptr, *linptr);
|
|
||||||
while (*linptr && !cpychr('"')) {
|
while (*linptr && !cpychr('"')) {
|
||||||
char c = *linptr; if (c == '/') c = '\\'; //Reverse Slashes for DOS/Windows
|
char c = *linptr; if (c == '/') c = '\\'; //Reverse Slashes for DOS/Windows
|
||||||
incnam[incidx++] = c;
|
incnam[incidx++] = c;
|
||||||
|
Loading…
Reference in New Issue
Block a user