changed allocator to take context.allocator
This commit is contained in:
parent
37c60d901f
commit
4a6c705e77
@ -1,6 +1,5 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "base:runtime"
|
|
||||||
import "core:fmt"
|
import "core:fmt"
|
||||||
import "core:os"
|
import "core:os"
|
||||||
import "core:strings"
|
import "core:strings"
|
||||||
@ -13,7 +12,10 @@ CSS_PREFIX :: "<head><link rel=\"stylesheet\" href=\"./css/style.css\">\n"
|
|||||||
MASTODON_PREFIX :: "<a rel=me href=https://linuxrocks.online/@simonkellet></a>\n"
|
MASTODON_PREFIX :: "<a rel=me href=https://linuxrocks.online/@simonkellet></a>\n"
|
||||||
|
|
||||||
|
|
||||||
walk_tree_and_get_md_names :: proc(path: string, allocator: runtime.Allocator) -> [dynamic]string {
|
walk_tree_and_get_md_names :: proc(
|
||||||
|
path: string,
|
||||||
|
allocator := context.allocator,
|
||||||
|
) -> [dynamic]string {
|
||||||
|
|
||||||
files := make([dynamic]string, allocator)
|
files := make([dynamic]string, allocator)
|
||||||
|
|
||||||
@ -73,7 +75,7 @@ walk_tree :: proc(path: string) -> []u8 {
|
|||||||
|
|
||||||
parse_file_md_to_html :: proc(
|
parse_file_md_to_html :: proc(
|
||||||
filename: string,
|
filename: string,
|
||||||
allocator: runtime.Allocator,
|
allocator := context.allocator,
|
||||||
) -> (
|
) -> (
|
||||||
parsed: string,
|
parsed: string,
|
||||||
err: os.Error,
|
err: os.Error,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user