Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tarot
tarot
Commits
f3ac013b
Commit
f3ac013b
authored
Oct 11, 2019
by
Vivien Kraus
Browse files
Fix the compiler
It did not use the card name in =tarot_string_to_card_c=!
parent
3959a05e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libtarot/test/test-compiler.xslt
View file @
f3ac013b
...
...
@@ -169,7 +169,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</xsl:template>
<xsl:template
match=
"tarot:card"
mode=
"game"
>
<xsl:text>


{


TarotCard card = tarot_string_to_card_c (
""
)


assert (card != ((TarotCard) (-1)));


event = tarot_game_event_alloc_card (card);


}
</xsl:text>
<xsl:text>


{


TarotCard card = tarot_string_to_card_c (
"
</xsl:text>
<xsl:value-of
select=
"@card"
/>
<xsl:text>
"
);


assert (card != ((TarotCard) (-1)));


event = tarot_game_event_alloc_card (card);


}
</xsl:text>
<xsl:call-template
name=
"add-the-event"
/>
</xsl:template>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment