core:os -> core:os/old && core:os/os2 -> core:os

This commit is contained in:
Jeroen van Rijn
2026-02-09 15:50:21 +01:00
parent 8ed264680b
commit e7dbabf668
169 changed files with 1716 additions and 1718 deletions

View File

@@ -6,7 +6,7 @@ Example:
import "core:fmt"
import "core:encoding/csv"
import os "core:os/os2"
import "core:os"
// Requires keeping the entire CSV file in memory at once
iterate_csv_from_string :: proc(filename: string) {

View File

@@ -2,7 +2,7 @@
#+build !js
package encoding_hxa
import os "core:os/os2"
import "core:os"
read_from_file :: proc(filename: string, print_error := false, allocator := context.allocator, loc := #caller_location) -> (file: File, err: Read_Error) {
context.allocator = allocator

View File

@@ -3,7 +3,7 @@
package encoding_ini
import "base:runtime"
import os "core:os/os2"
import "core:os"
load_map_from_path :: proc(path: string, allocator: runtime.Allocator, options := DEFAULT_OPTIONS) -> (m: Map, err: runtime.Allocator_Error, ok: bool) {
data, data_err := os.read_entire_file(path, allocator)

View File

@@ -2,7 +2,7 @@
#+build !js
package encoding_xml
import os "core:os/os2"
import "core:os"
// Load an XML file
load_from_file :: proc(filename: string, options := DEFAULT_OPTIONS, error_handler := default_error_handler, allocator := context.allocator) -> (doc: ^Document, err: Error) {