debugging
This commit is contained in:
parent
c619cc2cb9
commit
b4135f04f1
3 changed files with 13 additions and 10 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include "flayer.h"
|
||||
#include "samterm.h"
|
||||
|
||||
int protodebug;
|
||||
int cursorfd;
|
||||
int plumbfd = -1;
|
||||
int input;
|
||||
|
|
@ -126,7 +127,7 @@ again:
|
|||
if(block & (1<<RResize))
|
||||
alts[RResize].op = CHANNOP;
|
||||
|
||||
if(0) print("waitforio %c%c%c%c%c\n",
|
||||
if(protodebug) print("waitforio %c%c%c%c%c\n",
|
||||
"h-"[alts[RHost].op == CHANNOP],
|
||||
"k-"[alts[RKeyboard].op == CHANNOP],
|
||||
"m-"[alts[RMouse].op == CHANNOP],
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@ rcv(void)
|
|||
static int i = 0;
|
||||
static int errs = 0;
|
||||
|
||||
if(0) print("rcv in\n");
|
||||
if(protodebug) print("rcv in\n");
|
||||
while((c=rcvchar()) != -1){
|
||||
if(0) print(".");
|
||||
if(protodebug) print(".");
|
||||
switch(state){
|
||||
case 0:
|
||||
h.type = c;
|
||||
|
|
@ -81,10 +81,10 @@ if(0) print(".");
|
|||
}
|
||||
break;
|
||||
}
|
||||
if(0) print(":");
|
||||
if(protodebug) print(":");
|
||||
}
|
||||
|
||||
if(0) print("rcv out\n");
|
||||
if(protodebug) print("rcv out\n");
|
||||
}
|
||||
|
||||
Text *
|
||||
|
|
|
|||
|
|
@ -56,6 +56,8 @@ enum Resource
|
|||
NRes,
|
||||
};
|
||||
|
||||
extern int protodebug;
|
||||
|
||||
extern Text **text;
|
||||
extern uchar **name;
|
||||
extern ushort *tag;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue