lean4-htt/stage0/src/runtime
Henrik Böving 7776852d22
feat: revamp file IO, this time Windows compatible (#4950)
This implements a naive version of `getline` because Windows does not
have `getline`. Given the fact that `FILE` has buffered IO, calling
`fgetc` in a loop is not as big of a performance hazard as it might seem
at first glance.

The proper solution to this would of course be to have our own buffered
IO so we are fully in charge of the buffer. In this situation we could
check the entire buffer for a newline at once instead of char by char.
However that is not going to happen for the near future so I propose we
stay with this implementation. If reading individual lines of a file
does truly end up being the performance bottle neck we have already
won^^.
2024-08-07 22:33:37 +02:00
..
alloc.cpp chore: update stage0 2024-05-23 17:26:21 +02:00
alloc.h chore: update stage0 2024-08-07 18:24:42 +02:00
allocprof.cpp chore: update stage0 2021-09-07 08:26:55 -07:00
allocprof.h chore: update stage0 2021-09-07 08:26:55 -07:00
apply.cpp chore: update stage0 2022-11-09 12:04:58 -08:00
apply.h chore: update stage0 2024-02-25 11:44:42 -08:00
array_ref.h chore: update stage0 2024-08-04 19:11:50 +00:00
buffer.h chore: update stage0 2021-11-30 16:49:34 -08:00
CMakeLists.txt chore: update stage0 2024-03-15 16:30:21 +00:00
compact.cpp chore: update stage0 2024-03-11 17:22:37 +00:00
compact.h chore: update stage0 2024-02-25 11:44:42 -08:00
debug.cpp chore: update stage0 2021-11-23 06:23:06 -08:00
debug.h chore: update stage0 2024-02-25 11:44:42 -08:00
exception.cpp chore: update stage0 2021-09-07 08:26:55 -07:00
exception.h chore: update stage0 2024-02-25 11:44:42 -08:00
flet.h chore: update stage0 2021-09-07 08:26:55 -07:00
hash.cpp chore: update stage0 2022-12-01 20:18:14 -08:00
hash.h chore: update stage0 2022-12-01 20:18:14 -08:00
init_module.cpp chore: update stage0 2024-02-25 11:44:42 -08:00
init_module.h chore: update stage0 2024-02-25 11:44:42 -08:00
int64.h chore: update stage0 2021-09-07 08:26:55 -07:00
interrupt.cpp chore: update stage0 2024-07-03 07:48:23 +00:00
interrupt.h chore: update stage0 2024-07-03 07:48:23 +00:00
io.cpp feat: revamp file IO, this time Windows compatible (#4950) 2024-08-07 22:33:37 +02:00
io.h chore: update stage0 2024-02-25 11:44:42 -08:00
list_ref.h chore: update stage0 2024-08-04 19:11:50 +00:00
load_dynlib.cpp chore: update stage0 2022-04-06 19:43:07 +02:00
load_dynlib.h chore: update stage0 2024-02-25 11:44:42 -08:00
memory.cpp chore: update stage0 2023-02-08 12:11:41 +01:00
memory.h chore: update stage0 2024-02-25 11:44:42 -08:00
mpn.cpp chore: update stage0 2021-10-26 20:19:27 +02:00
mpn.h chore: update stage0 2021-10-26 20:19:27 +02:00
mpz.cpp chore: update stage0 2024-02-19 12:47:04 -08:00
mpz.h chore: update stage0 2024-02-25 11:44:42 -08:00
mutex.cpp chore: update stage0 2022-09-07 13:24:19 -07:00
mutex.h chore: update stage0 2022-09-07 13:24:19 -07:00
object.cpp chore: update stage0 2024-06-19 20:21:34 +02:00
object.h feat: revamp file IO, this time Windows compatible (#4950) 2024-08-07 22:33:37 +02:00
object_ref.cpp chore: update stage0 2021-09-07 08:26:55 -07:00
object_ref.h chore: update stage0 2024-08-04 19:11:50 +00:00
option_ref.h chore: update stage0 2024-08-04 19:11:50 +00:00
optional.h chore: update stage0 2024-08-04 19:11:50 +00:00
pair_ref.h chore: update stage0 2021-09-07 08:26:55 -07:00
platform.cpp chore: update stage0 2023-11-02 23:21:47 +01:00
platform.h chore: update stage0 2021-09-07 08:26:55 -07:00
process.cpp chore: update stage0 2024-07-29 08:58:49 +10:00
process.h chore: update stage0 2021-09-07 08:26:55 -07:00
sharecommon.cpp chore: update stage0 2024-08-01 06:54:29 +00:00
sharecommon.h fix: LEAN_EXPORT in sharecommon (#4893) 2024-08-01 13:03:25 +02:00
sstream.h chore: update stage0 2021-09-07 08:26:55 -07:00
stack_overflow.cpp chore: update stage0 2023-10-26 10:47:14 +02:00
stack_overflow.h chore: update stage0 2021-09-07 08:26:55 -07:00
stackinfo.cpp chore: update stage0 2024-02-25 11:44:42 -08:00
stackinfo.h chore: update stage0 2024-02-25 11:44:42 -08:00
string_ref.h chore: update stage0 2024-08-04 19:11:50 +00:00
thread.cpp chore: update stage0 2024-08-05 17:53:40 +00:00
thread.h chore: update stage0 2024-03-11 17:22:37 +00:00
utf8.cpp chore: update stage0 2024-06-19 20:21:34 +02:00
utf8.h chore: update stage0 2024-06-19 20:21:34 +02:00