Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move helper functions out of the matrixy.pir driver file and into src…
…/internals/*
- Loading branch information
1 parent
9821908
commit 264840d
Showing
4 changed files
with
39 additions
and
32 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
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,12 @@ | ||
|
||
.namespace [] | ||
|
||
.sub '!hash' | ||
.param pmc fields :slurpy :named | ||
.return (fields) | ||
.end | ||
|
||
.sub '_new_empty_array' | ||
$P0 = new 'ResizablePMCArray' | ||
.return($P0) | ||
.end |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.namespace [] | ||
|
||
.sub '_terminator_has_semicolon' | ||
.param string term | ||
$S0 = substr term, 0, 1 | ||
if $S0 == ';' goto has_semicolon | ||
.return(0) | ||
has_semicolon: | ||
.return(1) | ||
.end |