godot/core
Pedro J. Estébanez 469fa47e06
Make all file access 64-bit (uint64_t)
This changes the types of a big number of variables.

General rules:
- Using `uint64_t` in general. We also considered `int64_t` but eventually
  settled on keeping it unsigned, which is also closer to what one would expect
  with `size_t`/`off_t`.
- We only keep `int64_t` for `seek_end` (takes a negative offset from the end)
  and for the `Variant` bindings, since `Variant::INT` is `int64_t`. This means
  we only need to guard against passing negative values in `core_bind.cpp`.
- Using `uint32_t` integers for concepts not needing such a huge range, like
  pages, blocks, etc.

In addition:
- Improve usage of integer types in some related places; namely, `DirAccess`,
  core binds.

Note:
- On Windows, `_ftelli64` reports invalid values when using 32-bit MinGW with
  version < 8.0. This was an upstream bug fixed in 8.0. It breaks support for
  big files on 32-bit Windows builds made with that toolchain. We might add a
  workaround.

Fixes #44363.
Fixes godotengine/godot-proposals#400.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2021-05-17 15:06:19 +02:00
..
config Implement the %command% placeholder in the Main Run Args setting 2021-05-07 00:05:02 +02:00
crypto Style: Apply clang-tidy's readability-braces-around-statements 2021-04-05 14:09:59 +02:00
debugger Rename IP_Unix, IP_Address and TCP_Server to remove underscores 2021-05-06 02:52:01 +02:00
error Modernize atomics 2021-02-18 17:12:46 +01:00
input Make printing of InputEvents consistent 2021-05-15 13:55:22 +01:00
io Make all file access 64-bit (uint64_t) 2021-05-17 15:06:19 +02:00
math Dynamic BVH broadphase in 2D & 3D Godot Physics 2021-05-10 16:28:55 -07:00
object Highlight control flow keywords with a different color 2021-05-05 22:38:12 +02:00
os Make all file access 64-bit (uint64_t) 2021-05-17 15:06:19 +02:00
string Check PHashTranslation generate p_from is valid 2021-05-03 20:40:21 +05:00
templates Dynamic BVH broadphase in 2D & 3D Godot Physics 2021-05-10 16:28:55 -07:00
variant GDNative: Fix size mismatch on 32-bit platforms for Signal and Callable 2021-05-11 20:25:01 +02:00
core_bind.cpp Make all file access 64-bit (uint64_t) 2021-05-17 15:06:19 +02:00
core_bind.h Make all file access 64-bit (uint64_t) 2021-05-17 15:06:19 +02:00
core_builders.py Update AUTHORS and DONORS list 2020-08-14 00:06:51 +02:00
core_constants.cpp Rename some more global enums (Key, Joy, MIDI) 2021-03-23 07:13:23 -04:00
core_constants.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
core_string_names.cpp Removed _change_notify 2021-02-10 19:31:24 -03:00
core_string_names.h Removed _change_notify 2021-02-10 19:31:24 -03:00
doc_data.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
doc_data.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
register_core_types.cpp Rename IP_Unix, IP_Address and TCP_Server to remove underscores 2021-05-06 02:52:01 +02:00
register_core_types.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
SCsub Fixed build with SCRIPT_AES256_ENCRYPTION_KEY set 2021-05-14 14:53:13 +02:00
typedefs.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
version.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00