Kill most warnings in lib/DtTerm.

Mostly missing headers, explicit parentheses and new prototypes.

Some Caveats:
* I haven't compile-tested the SVR4 getpty file, it might need another tweak
* There were operator precedence bugs in TermPrimCursor.c and TermPrimRender.c
  (^ vs. !=).  This might change behaviour, but at least I haven't experienced
  any crashes ...
* This adds a little more dependencies for include ordering, but unless we
  want to play the "headers that include headers that include headers..." game,
  this is unavoidable.
This commit is contained in:
Pascal Stumpf
2013-07-22 12:34:15 +02:00
committed by Jon Trulson
parent 8f98ac92cd
commit dc0e8ea74d
43 changed files with 437 additions and 285 deletions

View File

@@ -47,12 +47,12 @@ static StateTableRec stateStart;
static StateEntryRec
startTable[] =
{
0x07, 0x07, &stateStart, _DtTermPrimParseBell, /* ring the bell */
0x08, 0x08, &stateStart, _DtTermPrimParseBackspace, /* backspace */
0x09, 0x09, &stateStart, _DtTermPrimParseTab, /* horizontal tab */
0x0A, 0x0A, &stateStart, _DtTermPrimParseLF, /* newline */
0x0D, 0x0D, &stateStart, _DtTermPrimParseCR, /* carriage return */
0x00, 0xFF, &stateStart, _DtTermPrimParseWriteChar, /* write to dpy */
{ 0x07, 0x07, &stateStart, _DtTermPrimParseBell, }, /* ring the bell */
{ 0x08, 0x08, &stateStart, _DtTermPrimParseBackspace, }, /* backspace */
{ 0x09, 0x09, &stateStart, _DtTermPrimParseTab, }, /* horizontal tab */
{ 0x0A, 0x0A, &stateStart, _DtTermPrimParseLF, }, /* newline */
{ 0x0D, 0x0D, &stateStart, _DtTermPrimParseCR, }, /* carriage return */
{ 0x00, 0xFF, &stateStart, _DtTermPrimParseWriteChar, }, /* write to dpy */
};
static StateTableRec stateStart = {True, startTable};