Vn display of Summary lines

Greg Lee lee at uhccux.uhcc.hawaii.edu
Thu Jan 19 05:04:22 AEST 1989


Vn doesn't display 'Summary:' lines when you read an article.  Here
are patches to make it do so.
		Greg, lee at uhccux.uhcc.hawaii.edu

*** old-std.h	Wed Jan 18 08:55:57 1989
--- std.h	Wed Jan 18 07:53:35 1989
***************
*** 41,45
  #define LHDLEN 7
  #define NHEAD "Newsgroups: "
  #define NHDLEN 12
  
  #define CHFIRST "FSL"	/* first char's of those used in page display */

--- 41,48 -----
  #define LHDLEN 7
  #define NHEAD "Newsgroups: "
  #define NHDLEN 12
+ /* added -- gl */
+ #define SUHEAD "Summary: "
+ #define SUHDLEN 9
  
  #define CHFIRST "FSL"	/* first char's of those used in page display */
*** old-std.c	Wed Jan 18 08:56:47 1989
--- std.c	Wed Jan 18 08:24:39 1989
***************
*** 57,62
  static char *DIS_head = DISHEAD;
  static char *L_head = LHEAD;
  static char *N_head = NHEAD;
  
  static char *Fpfix = FPFIX;
  

--- 57,64 -----
  static char *DIS_head = DISHEAD;
  static char *L_head = LHEAD;
  static char *N_head = NHEAD;
+ /* added -- gl */
+ static char *SU_head = SUHEAD;
  
  static char *Fpfix = FPFIX;
  
***************
*** 1034,1039
  		{
  			buf [strlen(buf)-1] = '\0';
  			hdr->lines = atoi(buf+LHDLEN);
  			(hdr->show)[hdr->show_num] = str_tstore(Pool,buf);
  			++(hdr->show_num);
  			continue;

--- 1036,1050 -----
  		{
  			buf [strlen(buf)-1] = '\0';
  			hdr->lines = atoi(buf+LHDLEN);
+ 			(hdr->show)[hdr->show_num] = str_tstore(Pool,buf);
+ 			++(hdr->show_num);
+ 			continue;
+ 		}
+ /* added to display Summary line.  -- gl */
+ 		if (strncmp(buf,SU_head,SUHDLEN) == 0)
+ 		{
+ 			buf [strlen(buf)-1] = '\0';
+ 			hdr->lines = atoi(buf+SUHDLEN);
  			(hdr->show)[hdr->show_num] = str_tstore(Pool,buf);
  			++(hdr->show_num);
  			continue;



More information about the Comp.sources.bugs mailing list