[BACK]Return to xx.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / window

Diff for /src/usr.bin/window/Attic/xx.c between version 1.4 and 1.5

version 1.4, 1998/04/26 22:49:10 version 1.5, 2001/11/19 19:02:18
Line 86 
Line 86 
   
 xxreset1()  xxreset1()
 {  {
         register struct xx *xp, *xq;          struct xx *xp, *xq;
   
         for (xp = xx_head; xp != 0; xp = xq) {          for (xp = xx_head; xp != 0; xp = xq) {
                 xq = xp->link;                  xq = xp->link;
Line 115 
Line 115 
 struct xx *  struct xx *
 xxalloc()  xxalloc()
 {  {
         register struct xx *xp;          struct xx *xp;
   
         if (xxbufp > xxbufe)          if (xxbufp > xxbufe)
                 abort();                  abort();
Line 134 
Line 134 
 }  }
   
 xxfree(xp)  xxfree(xp)
         register struct xx *xp;          struct xx *xp;
 {  {
         xp->link = xx_freelist;          xp->link = xx_freelist;
         xx_freelist = xp;          xx_freelist = xp;
Line 142 
Line 142 
   
 xxmove(row, col)  xxmove(row, col)
 {  {
         register struct xx *xp = xx_tail;          struct xx *xp = xx_tail;
   
         if (xp == 0 || xp->cmd != xc_move) {          if (xp == 0 || xp->cmd != xc_move) {
                 xp = xxalloc();                  xp = xxalloc();
Line 154 
Line 154 
   
 xxscroll(dir, top, bot)  xxscroll(dir, top, bot)
 {  {
         register struct xx *xp = xx_tail;          struct xx *xp = xx_tail;
   
         if (xp != 0 && xp->cmd == xc_scroll &&          if (xp != 0 && xp->cmd == xc_scroll &&
             xp->arg1 == top && xp->arg2 == bot &&              xp->arg1 == top && xp->arg2 == bot &&
Line 171 
Line 171 
   
 xxinschar(row, col, c, m)  xxinschar(row, col, c, m)
 {  {
         register struct xx *xp;          struct xx *xp;
   
         xp = xxalloc();          xp = xxalloc();
         xp->cmd = xc_inschar;          xp->cmd = xc_inschar;
Line 183 
Line 183 
   
 xxinsspace(row, col)  xxinsspace(row, col)
 {  {
         register struct xx *xp = xx_tail;          struct xx *xp = xx_tail;
   
         if (xp != 0 && xp->cmd == xc_insspace && xp->arg0 == row &&          if (xp != 0 && xp->cmd == xc_insspace && xp->arg0 == row &&
             col >= xp->arg1 && col <= xp->arg1 + xp->arg2) {              col >= xp->arg1 && col <= xp->arg1 + xp->arg2) {
Line 199 
Line 199 
   
 xxdelchar(row, col)  xxdelchar(row, col)
 {  {
         register struct xx *xp = xx_tail;          struct xx *xp = xx_tail;
   
         if (xp != 0 && xp->cmd == xc_delchar &&          if (xp != 0 && xp->cmd == xc_delchar &&
             xp->arg0 == row && xp->arg1 == col) {              xp->arg0 == row && xp->arg1 == col) {
Line 215 
Line 215 
   
 xxclear()  xxclear()
 {  {
         register struct xx *xp;          struct xx *xp;
   
         xxreset1();          xxreset1();
         xp = xxalloc();          xp = xxalloc();
Line 224 
Line 224 
   
 xxclreos(row, col)  xxclreos(row, col)
 {  {
         register struct xx *xp = xxalloc();          struct xx *xp = xxalloc();
   
         xp->cmd = xc_clreos;          xp->cmd = xc_clreos;
         xp->arg0 = row;          xp->arg0 = row;
Line 233 
Line 233 
   
 xxclreol(row, col)  xxclreol(row, col)
 {  {
         register struct xx *xp = xxalloc();          struct xx *xp = xxalloc();
   
         xp->cmd = xc_clreol;          xp->cmd = xc_clreol;
         xp->arg0 = row;          xp->arg0 = row;
Line 243 
Line 243 
 xxwrite(row, col, p, n, m)  xxwrite(row, col, p, n, m)
         char *p;          char *p;
 {  {
         register struct xx *xp;          struct xx *xp;
   
         if (xxbufp + n + 1 > xxbufe)          if (xxbufp + n + 1 > xxbufe)
                 xxflush(0);                  xxflush(0);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5