Browse Source

Add missing packages to `examples/all`

gingerBill 2 years ago
parent
commit
9b15bda055

+ 0 - 3
core/debug/pe/section.odin

@@ -1,8 +1,5 @@
 package debug_pe
 
-import "core:runtime"
-import "core:io"
-
 Section_Header32 :: struct {
 	name:                    [8]u8,
 	virtual_size:            u32le,

+ 3 - 2
core/text/match/strlib.odin

@@ -266,6 +266,7 @@ match_balance :: proc(ms: ^Match_State, s, p: int) -> (unused: int, err: Error)
 		return INVALID, .Invalid_Pattern_Capture
 	}
 
+
 	schar, ssize := utf8_peek(ms.src[s:]) or_return
 	pchar, psize := utf8_peek(ms.pattern[p:]) or_return
 
@@ -274,9 +275,9 @@ match_balance :: proc(ms: ^Match_State, s, p: int) -> (unused: int, err: Error)
 		return INVALID, .OK
 	}
 
-	s_begin := s
 	cont := 1
-	s := s + ssize
+	s := s
+	s += ssize
 	begin := pchar
 	end, _ := utf8_peek(ms.pattern[p + psize:]) or_return
 

+ 0 - 2
core/text/table/table.odin

@@ -9,12 +9,10 @@
 package text_table
 
 import "core:io"
-import "core:os"
 import "core:fmt"
 import "core:mem"
 import "core:mem/virtual"
 import "core:runtime"
-import "core:strings"
 
 Cell :: struct {
 	text: string,

+ 18 - 1
examples/all/all_main.odin

@@ -19,6 +19,8 @@ import priority_queue   "core:container/priority_queue"
 import queue            "core:container/queue"
 import small_array      "core:container/small_array"
 import lru              "core:container/lru"
+import list             "core:container/intrusive/list"
+import topological_sort "core:container/topological_sort"
 
 import crypto           "core:crypto"
 import blake            "core:crypto/blake"
@@ -48,6 +50,8 @@ import crypto_util      "core:crypto/util"
 import whirlpool        "core:crypto/whirlpool"
 import x25519           "core:crypto/x25519"
 
+import pe               "core:debug/pe"
+
 import dynlib           "core:dynlib"
 import net              "core:net"
 
@@ -58,9 +62,11 @@ import hxa              "core:encoding/hxa"
 import json             "core:encoding/json"
 import varint           "core:encoding/varint"
 import xml              "core:encoding/xml"
+import endian           "core:encoding/endian"
 
 import fmt              "core:fmt"
 import hash             "core:hash"
+import xxhash           "core:hash/xxhash"
 
 import image            "core:image"
 import netpbm           "core:image/netpbm"
@@ -80,9 +86,10 @@ import glm              "core:math/linalg/glsl"
 import hlm              "core:math/linalg/hlsl"
 import noise            "core:math/noise"
 import rand             "core:math/rand"
+import ease             "core:math/ease"
 
 import mem              "core:mem"
-// import virtual        "core:mem/virtual"
+import virtual          "core:mem/virtual"
 
 import ast              "core:odin/ast"
 import doc_format       "core:odin/doc-format"
@@ -91,6 +98,8 @@ import odin_parser      "core:odin/parser"
 import odin_printer     "core:odin/printer"
 import odin_tokenizer   "core:odin/tokenizer"
 
+import spall            "core:prof/spall"
+
 import os               "core:os"
 
 import slashpath        "core:path/slashpath"
@@ -137,6 +146,8 @@ _ :: priority_queue
 _ :: queue
 _ :: small_array
 _ :: lru
+_ :: list
+_ :: topological_sort
 _ :: crypto
 _ :: blake
 _ :: blake2b
@@ -164,6 +175,7 @@ _ :: tiger2
 _ :: crypto_util
 _ :: whirlpool
 _ :: x25519
+_ :: pe
 _ :: dynlib
 _ :: net
 _ :: base32
@@ -173,8 +185,10 @@ _ :: hxa
 _ :: json
 _ :: varint
 _ :: xml
+_ :: endian
 _ :: fmt
 _ :: hash
+_ :: xxhash
 _ :: image
 _ :: netpbm
 _ :: png
@@ -191,7 +205,9 @@ _ :: glm
 _ :: hlm
 _ :: noise
 _ :: rand
+_ :: ease
 _ :: mem
+_ :: virtual
 _ :: ast
 _ :: doc_format
 _ :: odin_format
@@ -199,6 +215,7 @@ _ :: odin_parser
 _ :: odin_printer
 _ :: odin_tokenizer
 _ :: os
+_ :: spall
 _ :: slashpath
 _ :: filepath
 _ :: reflect