aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/entity/example/entity_example.odin
diff options
context:
space:
mode:
authorFourteenBrush <naessensarthur2@protonmail.com>2024-01-25 10:15:25 +0100
committerFourteenBrush <naessensarthur2@protonmail.com>2024-01-25 10:15:25 +0100
commit967ccfc7ccc0f76c653ff4bb625bac60e89a7904 (patch)
treef989a0f99337c7a0c93ee84249d73ec0c33e306d /core/encoding/entity/example/entity_example.odin
parent712ae1c5ac73493498aa8e5076d91a6558337117 (diff)
parent9cfd4a953e2a7d19237891993b643b2d1477f8b3 (diff)
Merge branch 'master' of https://github.com/FourteenBrush/Odin
Diffstat (limited to 'core/encoding/entity/example/entity_example.odin')
-rw-r--r--core/encoding/entity/example/entity_example.odin8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/encoding/entity/example/entity_example.odin b/core/encoding/entity/example/entity_example.odin
index 6301eb263..1a6b8e9ba 100644
--- a/core/encoding/entity/example/entity_example.odin
+++ b/core/encoding/entity/example/entity_example.odin
@@ -47,8 +47,6 @@ _entities :: proc() {
}
_main :: proc() {
- using fmt
-
options := xml.Options{ flags = { .Ignore_Unsupported, .Intern_Comments, .Unbox_CDATA, .Decode_SGML_Entities }}
doc, _ := xml.parse(#load("test.html"), options)
@@ -58,8 +56,6 @@ _main :: proc() {
}
main :: proc() {
- using fmt
-
track: mem.Tracking_Allocator
mem.tracking_allocator_init(&track, context.allocator)
context.allocator = mem.tracking_allocator(&track)
@@ -68,9 +64,9 @@ main :: proc() {
_entities()
if len(track.allocation_map) > 0 {
- println()
+ fmt.println()
for _, v in track.allocation_map {
- printf("%v Leaked %v bytes.\n", v.location, v.size)
+ fmt.printf("%v Leaked %v bytes.\n", v.location, v.size)
}
}
} \ No newline at end of file