1
0
mirror of https://github.com/PDP-10/PCC20.git synced 2026-01-13 07:09:47 +00:00
2018-10-25 11:25:56 +02:00

44 lines
667 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# include "cc.h"
/*
C Compiler
Routines common to phases M and E
Copyright (c) 1977 by Alan Snyder
rcstore
*/
/**********************************************************************
RCSTORE - Read CSTORE routine
**********************************************************************/
int rcstore ()
{extern char *fn_cstore, cstore[];
char *cp, c, *ep;
int f;
f = copen (fn_cstore, MREAD, BINARY);
if (f == OPENLOSS)
{cprint ("Unable to open '%s'.\n", fn_cstore);
return (TRUE);
}
cp = cstore;
ep = &cstore[cssiz];
while (cp < ep)
{c = cgetc (f);
if (c <= 0 && ceof (f)) break;
*cp++ = c;
}
cclose (f);
return (FALSE);
}