Skip to content

Commit

Permalink
Merge pull request #423 from lioncash/dsp-clarification
Browse files Browse the repository at this point in the history
Clarify what FindBrackets does in the DSP assembler
  • Loading branch information
delroth committed May 28, 2014
2 parents 3c722b6 + 4cb111e commit 0602dac
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Source/Core/Core/DSP/DSPAssembler.cpp
Expand Up @@ -268,8 +268,18 @@ s32 DSPAssembler::ParseValue(const char *str)
return val;
}

// Modifies both src and dst!
// What does it do, really??
// This function splits the given src string into three parts:
// - Text before the first opening ('(') parenthesis
// - Text within the first and last opening ('(') and closing (')') parentheses.
// - If text follows after these parentheses, then this is what is returned from the function.
//
// Note that the first opening parenthesis and the last closing parenthesis are discarded from the string.
// For example: Say "Test (string) 1234" is the string passed in as src.
//
// - src will become "Test "
// - dst will become "string"
// - Returned string from the function will be " 1234"
//
char *DSPAssembler::FindBrackets(char *src, char *dst)
{
s32 len = (s32) strlen(src);
Expand Down

0 comments on commit 0602dac

Please sign in to comment.