summaryrefslogtreecommitdiff
path: root/support/cpp/libcpp/files.c
diff options
context:
space:
mode:
authorspth <spth@4a8a32a2-be11-0410-ad9d-d568d2c75423>2015-10-08 10:57:39 +0000
committerspth <spth@4a8a32a2-be11-0410-ad9d-d568d2c75423>2015-10-08 10:57:39 +0000
commit73f2c9e9097ffd0fb709a0331b95226c3d326f29 (patch)
treeb50abc02839affac62801c0fa9025a1df718fcde /support/cpp/libcpp/files.c
parent8e2035b157b685cfc0a1ff5cbd45f117a0a3e425 (diff)
Drop cpp support for Borland C.
git-svn-id: https://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@9349 4a8a32a2-be11-0410-ad9d-d568d2c75423
Diffstat (limited to 'support/cpp/libcpp/files.c')
-rw-r--r--support/cpp/libcpp/files.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/support/cpp/libcpp/files.c b/support/cpp/libcpp/files.c
index 7c8e01cf2..456c0b0f1 100644
--- a/support/cpp/libcpp/files.c
+++ b/support/cpp/libcpp/files.c
@@ -606,13 +606,11 @@ read_file_guts (cpp_reader *pfile, _cpp_file *file)
SSIZE_MAX to be much smaller than the actual range of the
type. Use INTTYPE_MAXIMUM unconditionally to ensure this
does not bite us. */
-#ifndef __BORLANDC__
if (file->st.st_size > INTTYPE_MAXIMUM (ssize_t))
{
cpp_error (pfile, CPP_DL_ERROR, "%s is too large", file->path);
return false;
}
-#endif
size = file->st.st_size;
}
@@ -643,18 +641,9 @@ read_file_guts (cpp_reader *pfile, _cpp_file *file)
return false;
}
-#ifndef __BORLANDC__
- /* For some reason, even though we opened with O_BINARY,
- * Borland C++ seems to insist on doing CR/LF -> LF
- * translations for us, which results in the file appearing
- * shorter than stat told us it should be.
- *
- * This sucks, but don't bother throwing a warning.
- */
if (regular && total != size && STAT_SIZE_RELIABLE (file->st))
cpp_error (pfile, CPP_DL_WARNING,
"%s is shorter than expected", file->path);
-#endif
file->buffer = _cpp_convert_input (pfile,
CPP_OPTION (pfile, input_charset),