mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add int ferror(FILE *)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
694ffc0850
commit
59108d3d40
@ -636,6 +636,14 @@ GenericValue lle_X_ungetc(FunctionType *M, const vector<GenericValue> &Args) {
|
||||
return GV;
|
||||
}
|
||||
|
||||
// int ferror (FILE *stream);
|
||||
GenericValue lle_X_ferror(FunctionType *M, const vector<GenericValue> &Args) {
|
||||
assert(Args.size() == 1);
|
||||
GenericValue GV;
|
||||
GV.IntVal = ferror (getFILE(GVTOP(Args[0])));
|
||||
return GV;
|
||||
}
|
||||
|
||||
// int fprintf(FILE *,sbyte *, ...) - a very rough implementation to make output
|
||||
// useful.
|
||||
GenericValue lle_X_fprintf(FunctionType *M, const vector<GenericValue> &Args) {
|
||||
|
Loading…
Reference in New Issue
Block a user