Code style fixes. No functional changes.
Fix for some code style issues pointed out by Axel. Thanks.
This commit is contained in:
@@ -286,6 +286,7 @@ BasicTerminalBuffer::InsertChar(const char* c)
|
|||||||
return InsertChar(UTF8Char(c), 1);
|
return InsertChar(UTF8Char(c), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BasicTerminalBuffer::InsertChar(const char* c, int32 length)
|
BasicTerminalBuffer::InsertChar(const char* c, int32 length)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -383,11 +383,11 @@ TermParse::EscParse()
|
|||||||
int row;
|
int row;
|
||||||
int column;
|
int column;
|
||||||
|
|
||||||
/* default encoding system is UTF8 */
|
// default encoding system is UTF8
|
||||||
int *groundtable = gUTF8GroundTable;
|
int *groundtable = gUTF8GroundTable;
|
||||||
int *parsestate = gUTF8GroundTable;
|
int *parsestate = gUTF8GroundTable;
|
||||||
|
|
||||||
/* handle alternative character sets G0 - G4 */
|
// handle alternative character sets G0 - G4
|
||||||
const char** graphSets[4] = { NULL, NULL, NULL, NULL };
|
const char** graphSets[4] = { NULL, NULL, NULL, NULL };
|
||||||
int curGL = 0;
|
int curGL = 0;
|
||||||
int curGR = 0;
|
int curGR = 0;
|
||||||
@@ -422,12 +422,12 @@ TermParse::EscParse()
|
|||||||
if (curGraphSet != NULL) {
|
if (curGraphSet != NULL) {
|
||||||
int offset = c - (c < 128 ? 0x20 : 0xA0);
|
int offset = c - (c < 128 ? 0x20 : 0xA0);
|
||||||
if (offset >= 0 && offset < 96
|
if (offset >= 0 && offset < 96
|
||||||
&& (curGraphSet[offset] != 0)) {
|
&& curGraphSet[offset] != 0) {
|
||||||
fBuffer->InsertChar(curGraphSet[offset]);
|
fBuffer->InsertChar(curGraphSet[offset]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fBuffer->InsertChar((char)(c));
|
fBuffer->InsertChar((char)c);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CASE_PRINT_GR:
|
case CASE_PRINT_GR:
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
* Siarzhuk Zharski, [email protected]
|
* Siarzhuk Zharski, [email protected]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
|
|
||||||
#include "VTparse.h"
|
#include "VTparse.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user