11.07.2015 Views

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

*}sc_buf = f_buf;}while ((ret_buf = sc_buf->link) &&item > (int)(sc_buf = ret_buf)->last_item){}sc_data->cur_buff = sc_buf;return ret_buf;NAME: mb_incluid - Ensures sufficient allocated space to holddesired item.SYNOPSIS:new_luid = mb_incluid (as_ptr, scroll, desired_new_luid)int new_luid;altsc_t *as_ptr;scr_data_t *scroll;unsigned int desired_new_luid;DESCRIPTION: Calls mb_addscbuf in a loop to increaselargest_used_item_id until it meets or surpasses desired value.RETURNS: new_luid = smaller of desired_new_luid and amount of spacewhich could be allocated.*/static int SMLOCALmb_incluid (as_ptr, scroll, new_luid)altsc_t *as_ptr;scr_data_t *scroll;unsigned int new_luid;{sc_buf_t *new_buf;sc_buf_t *last_buf;unsigned int retval;retval = new_luid;last_buf = scroll->cur_buff;do{if (!(new_buf = mb_addscbuf(as_ptr, last_buf))){if (last_buf)retval = last_buf->last_item;A-20 JAM Documentation: Alternative Scrolling

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

Saved successfully!

Ooh no, something went wrong!