Fix typo and and comment

This commit is contained in:
jean-pierre charras 2017-09-29 07:58:15 +02:00
parent 5b2248fad8
commit 5731acc97c
2 changed files with 6 additions and 9 deletions

View File

@ -89,15 +89,12 @@ void X2_ATTRIBUTE::DbgListPrms()
wxLogMessage( m_Prms.Item( ii ) );
}
/*
* parse a TF command and fill m_Prms by the parameters found.
* aFile = a FILE* ptr to the current Gerber file.
* buff = the buffer containing current Gerber data (GERBER_BUFZ size)
* text = a pointer to the first char to read in Gerber data
*/
bool X2_ATTRIBUTE::ParseAttribCmd( FILE* aFile, char *aBuffer, int aBuffSize, char* &aText,
int& aLineNum )
{
// parse a TF command and fill m_Prms by the parameters found.
// the "%TF" (start of command) is already read by the caller
bool ok = true;
wxString data;
@ -122,7 +119,7 @@ bool X2_ATTRIBUTE::ParseAttribCmd( FILE* aFile, char *aBuffer, int aBuffSize, ch
aText++;
break;
case ',': // End of parameter
case ',': // End of parameter (separator)
aText++;
m_Prms.Add( data );
data.Empty();

View File

@ -96,7 +96,7 @@ public:
* @param aText = a pointer to the first char to read from Gerber data stored in aBuffer
* After parsing, text points the last char of the command line ('%') (X2 mode)
* or the end of line if the line does not contain '%' or aBuffer == NULL (X1 mode)
* @oaram aLineNum = a point to the current line number of aFile
* @param aLineNum = a point to the current line number of aFile
* @return true if no error.
*/
bool ParseAttribCmd( FILE* aFile, char *aBuffer, int aBuffSize, char* &aText, int& aLineNum );