Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gcc 14 #167

Merged
merged 2 commits into from
Dec 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 3 additions & 20 deletions aldor/aldor/src/ccode.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,42 +343,25 @@ ccoPr(CCode cco)

/* dump the buffered output and stop the buffering */

#if 0
cc += ccoPutsFileOnly("\n#if 0\n");
cc += ccoPutsFileOnly(BufferOutput);
cc += ccoPutsFileOnly("\n#endif\n");
#endif
#if 0
if (strcmp(BufferOutput,"extern FiWord fputc();\n") == 0)
{
if (wrote_fputc == 0)
{
cc += ccoPutsFileOnly("extern int fputc(); /* Signature patched in ccode.c:ccoPr */ \n");
wrote_fputc = 1;
}
}
else
#endif

if (strcmp(BufferOutput,"extern FiWord fputc();") == 0)
{
if (wrote_fputc == 0)
{
cc += ccoPutsFileOnly("extern int fputc(); /* Signature patched in ccode.c:ccoPr */");
cc += ccoPutsFileOnly("extern int fputc(FiWord, FiWord); /* Signature patched in ccode.c:ccoPr [1]*/");
wrote_fputc = 1;
}
}
else if (strcmp(BufferOutput,"extern FiWord fputc(FiWord P0, FiWord P1);") == 0)
{
if (wrote_fputc == 0)
{
cc += ccoPutsFileOnly("extern int fputc(FiWord P0, FiWord P1); /* Signature patched in ccode.c:ccoPr */");
cc += ccoPutsFileOnly("extern int fputc(FiWord P0, FiWord P1); /* Signature patched in ccode.c:ccoPr [2] */");
wrote_fputc = 1;
}
}
else if (strcmp(BufferOutput,"extern FiWord fputs();") == 0)
{
cc += ccoPutsFileOnly("extern int fputs(); /* Signature patched in ccode.c:ccoPr */");
cc += ccoPutsFileOnly("extern int fputs(FiWord, FiWord); /* Signature patched in ccode.c:ccoPr [3]*/");
}
else
{
Expand Down