mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 21:10:30 +00:00
core:os -> core:os/old && core:os/os2 -> core:os
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user