Code style fixes. No functional changes.

Fix for some code style issues pointed out by Axel. Thanks.
This commit is contained in:
Siarzhuk Zharski
2013-03-29 14:10:46 +01:00
parent e13f5676a0
commit e0fcd62916
3 changed files with 6 additions and 4 deletions
+1
View File
@@ -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)
{ {
+4 -4
View File
@@ -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:
+1
View File
@@ -9,6 +9,7 @@
* Siarzhuk Zharski, zharik@gmx.li * Siarzhuk Zharski, zharik@gmx.li
*/ */
#include <SupportDefs.h> #include <SupportDefs.h>
#include "VTparse.h" #include "VTparse.h"