godot/modules/gdscript
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
..
doc_classes doc: Sync classref with current source 2021-01-04 14:33:44 +01:00
editor Highlight control flow keywords with a different color 2021-05-05 22:38:12 +02:00
icons Optimize SVG using svgcleaner --multipass 2020-10-25 10:02:37 +01:00
language_server Merge pull request #47776 from Razoric480/foreport 2021-05-06 20:46:18 +02:00
tests Make all file access 64-bit (uint64_t) 2021-05-17 15:06:19 +02:00
config.py Unregister GDScriptFunctionState class 2020-11-26 21:39:54 -03:00
gdscript.cpp Make all file access 64-bit (uint64_t) 2021-05-17 15:06:19 +02:00
gdscript.h Highlight control flow keywords with a different color 2021-05-05 22:38:12 +02:00
gdscript_analyzer.cpp GDScript: Add support for builtin static method calls 2021-05-16 11:54:33 -03:00
gdscript_analyzer.h GDScript: Implement lambdas compilation and runtime 2021-04-28 11:09:38 -03:00
gdscript_byte_codegen.cpp GDScript: Add support for builtin static method calls 2021-05-16 11:54:33 -03:00
gdscript_byte_codegen.h GDScript: Add support for builtin static method calls 2021-05-16 11:54:33 -03:00
gdscript_cache.cpp Make all file access 64-bit (uint64_t) 2021-05-17 15:06:19 +02:00
gdscript_cache.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
gdscript_codegen.h GDScript: Add support for builtin static method calls 2021-05-16 11:54:33 -03:00
gdscript_compiler.cpp GDScript: Add support for builtin static method calls 2021-05-16 11:54:33 -03:00
gdscript_compiler.h GDScript: Implement lambdas compilation and runtime 2021-04-28 11:09:38 -03:00
gdscript_disassembler.cpp GDScript: Add support for builtin static method calls 2021-05-16 11:54:33 -03:00
gdscript_editor.cpp Merge pull request #47776 from Razoric480/foreport 2021-05-06 20:46:18 +02:00
gdscript_function.cpp GDScript: Implement lambdas compilation and runtime 2021-04-28 11:09:38 -03:00
gdscript_function.h GDScript: Add support for builtin static method calls 2021-05-16 11:54:33 -03:00
gdscript_lambda_callable.cpp GDScript: Implement lambdas compilation and runtime 2021-04-28 11:09:38 -03:00
gdscript_lambda_callable.h GDScript: Implement lambdas compilation and runtime 2021-04-28 11:09:38 -03:00
gdscript_parser.cpp GDScript: Fix crash when base of an attribute is invalid 2021-04-28 11:09:40 -03:00
gdscript_parser.h GDScript: Implement lambdas compilation and runtime 2021-04-28 11:09:38 -03:00
gdscript_tokenizer.cpp Merge pull request #46714 from HaSa1002/fix-gdscript-underscore-strict 2021-05-06 20:19:45 +02:00
gdscript_tokenizer.h GDScript: Add lambda syntax parsing 2021-04-28 10:56:16 -03:00
gdscript_utility_functions.cpp Rename Array.invert() to Array.reverse() 2021-03-21 10:20:08 +00:00
gdscript_utility_functions.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
gdscript_vm.cpp GDScript: Add support for builtin static method calls 2021-05-16 11:54:33 -03:00
gdscript_warning.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
gdscript_warning.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
register_types.cpp Add runner for GDScript testing 2021-04-08 09:34:59 -03:00
register_types.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
SCsub Register GDScript test tools as test commands to run via command-line 2020-09-02 01:43:26 +03:00