godot/editor
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
..
collada Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
doc Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
fileserver Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
icons Add physical_scancode (keyboard layout independent keycodes) to InputEventKey and InputMap. 2021-05-06 23:19:45 +03:00
import Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
plugins text-editor: fix Clicking warning doesn't center around line 2021-05-13 23:22:54 +02:00
translations i18n: Sync translations with Weblate 2021-05-14 13:23:57 +02:00
animation_bezier_editor.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
animation_bezier_editor.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
animation_track_editor_plugins.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
animation_track_editor_plugins.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
animation_track_editor.cpp Add animation reset track feature 2021-05-09 09:40:16 +02:00
animation_track_editor.h Add animation reset track feature 2021-05-09 09:40:16 +02:00
array_property_edit.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
array_property_edit.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
audio_stream_preview.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
audio_stream_preview.h Modernize atomics 2021-02-18 12:23:25 +01:00
code_editor.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
code_editor.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
connections_dialog.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
connections_dialog.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
create_dialog.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
create_dialog.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
dependency_editor.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
dependency_editor.h Style: Set clang-format Standard to c++14 2021-05-04 14:45:15 +02:00
dictionary_property_edit.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
dictionary_property_edit.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
editor_about.cpp Merge pull request #48450 from Calinou/version-click-to-copy-3.x 2021-05-04 17:55:43 +02:00
editor_about.h Make it possible to copy the Godot version identifier by clicking it 2021-05-04 16:38:17 +02:00
editor_asset_installer.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_asset_installer.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_atlas_packer.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_atlas_packer.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
editor_audio_buses.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_audio_buses.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
editor_autoload_settings.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_autoload_settings.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
editor_builders.py SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
editor_data.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_data.h Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_dir_dialog.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_dir_dialog.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
editor_export.cpp Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
editor_export.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
editor_feature_profile.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_feature_profile.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_file_dialog.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_file_dialog.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_file_system.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_file_system.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
editor_folding.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_folding.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_fonts.cpp Improve editor text appearance in (un)zoomed GraphEdit-based editors 2021-02-06 19:24:05 +01:00
editor_fonts.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
editor_help_search.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_help_search.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_help.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_help.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_inspector.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_inspector.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_layouts_dialog.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_layouts_dialog.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_log.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_log.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_network_profiler.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_network_profiler.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_node.cpp Keep custom editor theme when changing editor settings 2021-05-14 10:34:48 +02:00
editor_node.h Remove plugin from enabled if there's an error 2021-05-14 10:34:05 +02:00
editor_path.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_path.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_plugin_settings.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_plugin_settings.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_plugin.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_plugin.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
editor_profiler.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_profiler.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_properties_array_dict.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_properties_array_dict.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_properties.cpp Fix EditorPropertyEasing capturing drag events originated outside of it 2021-05-13 23:22:06 +02:00
editor_properties.h Improved Inspector Sub-Resource Editing 2021-02-18 05:43:19 -06:00
editor_resource_preview.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_resource_preview.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_run_native.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_run_native.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_run_script.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
editor_run_script.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_run.cpp Implement the %command% placeholder in the Main Run Args setting 2021-05-09 17:47:38 +02:00
editor_run.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
editor_scale.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_scale.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
editor_sectioned_inspector.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_sectioned_inspector.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_settings.cpp Tweak the setting hint for the custom editor theme setting 2021-05-09 17:14:36 +02:00
editor_settings.h Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_spin_slider.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_spin_slider.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
editor_sub_scene.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_sub_scene.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
editor_themes.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
editor_themes.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
editor_vcs_interface.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
editor_vcs_interface.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
export_template_manager.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
export_template_manager.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
filesystem_dock.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
filesystem_dock.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
find_in_files.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
find_in_files.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
groups_editor.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
groups_editor.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
import_defaults_editor.cpp Style: Set clang-format Standard to c++14 2021-05-04 14:45:15 +02:00
import_defaults_editor.h Backport the Import Defaults Editor 2021-02-24 17:50:42 -03:00
import_dock.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
import_dock.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
inspector_dock.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
inspector_dock.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
multi_node_edit.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
multi_node_edit.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
node_dock.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
node_dock.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
pane_drag.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
pane_drag.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
plugin_config_dialog.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
plugin_config_dialog.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
progress_dialog.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
progress_dialog.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
project_export.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
project_export.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
project_manager.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
project_manager.h Make it possible to copy the Godot version identifier by clicking it 2021-05-04 16:38:17 +02:00
project_settings_editor.cpp Add physical_scancode (keyboard layout independent keycodes) to InputEventKey and InputMap. 2021-05-06 23:19:45 +03:00
project_settings_editor.h Add physical_scancode (keyboard layout independent keycodes) to InputEventKey and InputMap. 2021-05-06 23:19:45 +03:00
property_editor.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
property_editor.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
property_selector.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
property_selector.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
quick_open.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
quick_open.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
register_exporters.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
rename_dialog.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
rename_dialog.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
reparent_dialog.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
reparent_dialog.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
run_settings_dialog.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
run_settings_dialog.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
scene_tree_dock.cpp Add ctrl+shift+a to instance scene in scenetree dock 2021-05-09 17:47:38 +02:00
scene_tree_dock.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
scene_tree_editor.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
scene_tree_editor.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
script_create_dialog.cpp Update size when updating ScriptCreateDialog 2021-05-05 18:10:17 -04:00
script_create_dialog.h Style: Set clang-format Standard to c++14 2021-05-04 14:45:15 +02:00
script_editor_debugger.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
script_editor_debugger.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
settings_config_dialog.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
settings_config_dialog.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
spatial_editor_gizmos.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
spatial_editor_gizmos.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00