DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T a

⟦2cc239e55⟧ TextFile

    Length: 1025 (0x401)
    Types: TextFile
    Names: »addch.c.pat«

Derivation

└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen
    └─ ⟦this⟧ »cph85dist/new_curses/addch.c.pat« 

TextFile

*** libcurses42/addch.c	Thu Nov 17 11:03:10 1983
--- libcurses/addch.c	Wed Jul 24 13:30:58 1985
***************
*** 19,22
  # endif
! 	if (y >= win->_maxy || x >= win->_maxx || y < 0 || x < 0)
! 		return ERR;
  	switch (c) {

--- 19,25 -----
  # endif
! #ifdef slowway
! 	/* These tests 'cannot happen'.  What about win==NULL?! */
! 	if (y < 0 || y >= win->_maxy || x < 0 || x >= win->_maxx)
! 		return (ERR);
! #endif
  	switch (c) {
***************
*** 38,40
  			c |= _STANDOUT;
! 		set_ch(win, y, x, c, NULL);
  		for (wp = win->_nextp; wp != win; wp = wp->_nextp)

--- 41,55 -----
  			c |= _STANDOUT;
! #ifdef	slowway
! 		set_ch(win, y, x, c, (WINDOW *)NULL);
! #else
! 		/* rti-sel!trt: efficiency hack */
! 		if (win->_y[y][x] != c) {
! 			if (win->_firstch[y] == _NOCHANGE)
! 				win->_firstch[y] = win->_lastch[y] = x;
! 			else if (x > win->_lastch[y])
! 				win->_lastch[y] = x;
! 			else if (x < win->_firstch[y])
! 				win->_firstch[y] = x;
! 		}
! #endif
  		for (wp = win->_nextp; wp != win; wp = wp->_nextp)