1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Add int ferror(FILE *)

llvm-svn: 14194
This commit is contained in:
Brian Gaeke 2004-06-16 02:56:40 +00:00
parent 9f7f63256d
commit 19d2a396da

View File

@ -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) {