godot/modules
Pedro J. Estébanez 817ffc01e1
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-16 17:52:31 +02:00
..
bmp fix misaligned loads in bmp loader 2021-05-11 10:44:21 +02:00
bullet Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
camera iOS Modules: separate main platform code from modules 2021-01-14 15:30:00 +03:00
csg Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
cvtt Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
dds Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
denoise SCons: Add explicit dependencies on thirdparty code in cloned env 2021-04-29 16:57:00 +02:00
enet Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
etc Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
fbx Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
freetype SCons: Add explicit dependencies on thirdparty code in cloned env 2021-04-29 16:57:00 +02:00
gdnative Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
gdscript Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
gridmap Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
hdr Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
jpg Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
jsonrpc Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
lightmapper_cpu SCons: Disable embree-based modules on x86 (32-bit) 2021-05-05 18:01:45 +02:00
mbedtls Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
minimp3 Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
mobile_vr Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
mono Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
ogg SCons: Add explicit dependencies on thirdparty code in cloned env 2021-04-29 16:57:00 +02:00
opensimplex Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
opus SCons: Add explicit dependencies on thirdparty code in cloned env 2021-04-29 16:57:00 +02:00
pvr Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
raycast Merge pull request #48485 from JFonS/3.x_embree_aarch64 2021-05-05 18:35:04 +02:00
recast Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
regex Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
squish Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
stb_vorbis Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
svg Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
tga Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
theora Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
tinyexr Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
upnp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
vhacd Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
visual_script VisualScript: Fix wrongly setting default value on property hint change 2021-05-13 22:37:31 +02:00
vorbis SCons: Add explicit dependencies on thirdparty code in cloned env 2021-04-29 16:57:00 +02:00
webm Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
webp Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
webrtc Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
websocket Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
webxr Fixes #48178: WebXR broken when built with Emscripten 2.0.13 or later 2021-04-29 12:30:36 +02:00
xatlas_unwrap Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
register_module_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00