Branch: Tag:

1998-10-16

1998-10-16 17:14:19 by Niels Möller <nisse@lysator.liu.se>

renamed get_line ->read_line. Other bugfixes

Rev: lib/modules/Protocols.pmod/Line.pmod:1.8

1:   /* -  * $Id: Line.pmod,v 1.7 1998/10/16 15:34:58 grubba Exp $ +  * $Id: Line.pmod,v 1.8 1998/10/16 17:14:19 nisse Exp $    *    * Line-buffered protocol handling.    *
82:       static string read_buffer = "";    -  static string get_line() +  static string read_line()    {    int i = search(read_buffer, "\r\n");    if (i == -1) {
102:       string line;    -  while( (line = get_line()) ) +  while( (line = read_line()) )    _handle_command(line);    }   
220:    inherit simple;       function handle_literal = 0; +  function handle_line = 0; +     int literal_length;      #if 0
245:       handler(literal);    } else { -  string line = get_line(); +  string line = read_line();    if (line) -  handle_command(line); +  handle_line(line);    else    break;    }