11.07.2015 Views

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

typedefstruct sc_buf_s{struct sc_buf_s *link; /* forward link */struct sc_buf_s *back; /* backward link */unsigned int first_item; /* first in this buffer */unsigned int last_item; /* last in this buffer */char item[SC_BYTES+1]; /* start of buffer */} sc_buf_t;#define SC_OVERHEAD (int)(sizeof (sc_buf_t) - SC_BYTES - 1)/* Every scroll header has an item altsc_id which is a pointer toa scroll_t. scroll_t has an item scrolldata. A structure ofscrolldata depends on a scrolling method. If memory-based scrollingis used, the structure of scrolling data is: */typedefstruct scr_data_s{sc_buf_t *first_buff;sc_buf_t *cur_buff;unsigned int i_per_buff;} scr_data_t;/* To store offscreen data, buffers are acquired as needed. Buffersare linked into a chain whose head is stored in the memberfirst_buff in the structure above. Each buffer holds the same numberof items, determined by the formula above. *//* FUNCTIONS IN THIS MODULE */int sm_mbscroll PROTO((altsc_t *, int));static int SMLOCAL mb_initscr PROTO((altsc_t *));static int SMLOCAL mb_getitem PROTO((altsc_t *));static int SMLOCAL mb_putitem PROTO((altsc_t *));static int SMLOCAL mb_insitem PROTO((altsc_t *));static int SMLOCAL mb_delitem PROTO((altsc_t *));static int SMLOCAL mb_setluid PROTO((altsc_t *));static int SMLOCAL mb_rlsscrl PROTO((altsc_t *));static char * SMLOCAL mb_getptr PROTO((altsc_t *));static sc_buf_t * SMLOCAL mb_addscbuf PROTO((altsc_t *,sc_buf_t *));static int SMLOCAL mb_incluid PROTO((altsc_t *, scr_data_t *,unsigned int));A-10 JAM Documentation: Alternative Scrolling

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!