mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
Moved scalar scanning-related parameters to a struct.
Renamed the valid/possible tokens to a single variable status with enums valid, invalid, and unverified.
This commit is contained in:
parent
ff99f85a6d
commit
5f8252ee6f
10 changed files with 104 additions and 50 deletions
|
@ -26,7 +26,7 @@ namespace YAML
|
|||
INPUT.column = 0;
|
||||
|
||||
PopIndentTo(-1);
|
||||
ValidateAllSimpleKeys();
|
||||
VerifyAllSimpleKeys();
|
||||
|
||||
m_simpleKeyAllowed = false;
|
||||
m_endedStream = true;
|
||||
|
@ -38,7 +38,7 @@ namespace YAML
|
|||
template <> DocumentStartToken *Scanner::ScanToken(DocumentStartToken *pToken)
|
||||
{
|
||||
PopIndentTo(INPUT.column);
|
||||
ValidateAllSimpleKeys();
|
||||
VerifyAllSimpleKeys();
|
||||
m_simpleKeyAllowed = false;
|
||||
|
||||
// eat
|
||||
|
@ -50,7 +50,7 @@ namespace YAML
|
|||
template <> DocumentEndToken *Scanner::ScanToken(DocumentEndToken *pToken)
|
||||
{
|
||||
PopIndentTo(-1);
|
||||
ValidateAllSimpleKeys();
|
||||
VerifyAllSimpleKeys();
|
||||
m_simpleKeyAllowed = false;
|
||||
|
||||
// eat
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue