pass arena to generate_blog_md_file proc
This commit is contained in:
parent
ff7c60bded
commit
0fc4e6180b
@ -29,7 +29,7 @@ main :: proc() {
|
|||||||
|
|
||||||
start := time.tick_now() //start timer for footer
|
start := time.tick_now() //start timer for footer
|
||||||
|
|
||||||
generate_blog_md_file(directory)
|
generate_blog_md_file(directory, arena_alloc)
|
||||||
|
|
||||||
md_files := walk_tree_and_get_md_names(directory, arena_alloc)
|
md_files := walk_tree_and_get_md_names(directory, arena_alloc)
|
||||||
for file, i in md_files {
|
for file, i in md_files {
|
||||||
@ -60,8 +60,9 @@ main :: proc() {
|
|||||||
if file_err != nil {
|
if file_err != nil {
|
||||||
fmt.eprintfln("ERROR: Could not open file %s: %s", file, os.error_string(file_err))
|
fmt.eprintfln("ERROR: Could not open file %s: %s", file, os.error_string(file_err))
|
||||||
}
|
}
|
||||||
|
|
||||||
write_prefixs_to_html_file(file)
|
write_prefixs_to_html_file(file)
|
||||||
os.write_string(file, html)
|
os.write_string(file, html) //WRITE PAGE
|
||||||
|
|
||||||
switch trimmed_filename {
|
switch trimmed_filename {
|
||||||
case "index":
|
case "index":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user