home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / C / JAZLIB / JZPSHSCR.C < prev    next >
Text File  |  1993-12-01  |  626b  |  33 lines

  1. #include <jzscreen.h>
  2. #include <jaz.h>
  3.  
  4. extern TSTKHEAD GSTKHEAD;
  5. extern THEADER GWNDHEAD;
  6. extern int GNUM;
  7.  
  8. jzpshscr()
  9. {
  10.   TWINDOW *wptr;            /* work window pointer */
  11.  
  12.   wptr = jzappend(&GWNDHEAD,0,0,0,25,80,GNUM++); /* save current screen */
  13.  
  14.   jzpush(&GSTKHEAD,&wptr,sizeof(TWINDOW *));      /* save pointer address */
  15.  
  16. }
  17.  
  18. jzpopscr()
  19. {
  20.  
  21.   TWINDOW *wptr;
  22.  
  23.   wptr = (TWINDOW *) 0;     /* initialize the address */
  24.  
  25.   jzpop(&GSTKHEAD,&wptr,0);    /* restore pointer address */
  26.  
  27.   if (wptr) {
  28.     jzrstwnd(wptr);          /* restore window */
  29.     jzclswnd(wptr->number);      /* delete window from list */
  30.   }
  31. }
  32.  
  33.