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

Diff for /src/usr.bin/talk/display.c between version 1.15 and 1.16

version 1.15, 2009/10/27 23:59:44 version 1.16, 2010/08/12 23:31:29
Line 41 
Line 41 
 xwin_t  his_win;  xwin_t  his_win;
 WINDOW  *line_win;  WINDOW  *line_win;
   
 int     curses_initialized = 0;  int     curses_initialized;
 int     high_print = 0;  int     high_print;
 bool    smooth_scroll = FALSE;  bool    smooth_scroll;
   
 /*  /*
  * max HAS to be a function, it is called with   * max HAS to be a function, it is called with
  * a argument of the form --foo at least once.   * an argument of the form --foo at least once.
  */   */
 int  int
 max(a,b)  max(int a, int b)
         int a, b;  
 {  {
   
         return (a > b ? a : b);          return (a > b ? a : b);
Line 62 
Line 61 
  * characters while we are at it.   * characters while we are at it.
  */   */
 void  void
 display(win, text, size)  display(xwin_t *win, char *text, int size)
         xwin_t *win;  
         char *text;  
         int size;  
 {  {
         int i;          int i;
         char cch;          char cch;
Line 160 
Line 156 
  * Read the character at the indicated position in win   * Read the character at the indicated position in win
  */   */
 int  int
 readwin(win, line, col)  readwin(WINDOW *win, int line, int col)
         WINDOW *win;  
         int line, col;  
 {  {
         int oldline, oldcol;          int oldline, oldcol;
         int c;          int c;
Line 179 
Line 173 
  * so that the current position is obvious   * so that the current position is obvious
  */   */
 void  void
 xscroll(win, flag)  xscroll(xwin_t *win, int flag)
         xwin_t *win;  
         int flag;  
 {  {
   
         if (flag == -1) {          if (flag == -1) {

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16