-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:tristanisham/fan
- Loading branch information
Showing
18 changed files
with
46 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"cmake.configureOnOpen": true | ||
"cmake.configureOnOpen": true, | ||
"files.eol": "\n" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
FAN_LIB=./lang build/debug/fan "$@" | ||
|
||
# Check for the existence of the fan executable in different directories | ||
if [[ -x "./build/debug/fan" ]]; then | ||
FAN_EXEC="./build/debug/fan" | ||
elif [[ -x "./build/release/fan" ]]; then | ||
FAN_EXEC="./build/release/fan" | ||
else | ||
FAN_EXEC="./build/fan" | ||
fi | ||
|
||
# Execute the fan command with the given arguments | ||
FAN_LIB=./lang $FAN_EXEC "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -271,4 +271,6 @@ namespace encoding { | |
void md_to_html(WrenVM* vm); | ||
} | ||
|
||
|
||
|
||
} // namespace lib |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import "std/encoding" for Markdown | ||
import "std/fs" for Fs, Path | ||
|
||
var files = Fs.listAllRecursive(Fs.cwd()) | ||
|
||
// List of markdown files in the directory | ||
var mdFiles = [] | ||
|
||
for (i in files) { | ||
if (Path.ext(i) == "md") { | ||
System.print(i) | ||
mdFiles.add(i) | ||
} | ||
} | ||
|
||
System.print(mdFiles.count) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Check for the existence of the fan executable in different directories | ||
if [[ -x "./build/debug/fan" ]]; then | ||
FAN_EXEC="./build/debug/fan" | ||
elif [[ -x "./build/release/fan" ]]; then | ||
FAN_EXEC="./build/release/fan" | ||
else | ||
FAN_EXEC="./build/fan" | ||
fi | ||
|
||
FAN_LIB=./lang valgrind --leak-check=full \ | ||
--show-leak-kinds=all \ | ||
--track-origins=yes \ | ||
--verbose \ | ||
--leak-check=full \ | ||
--log-file=build/valgrind-out.txt \ | ||
./build/fan $@ | ||
$(FAN_EXEC) $@ |