This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

pending/1243: print_doc_line ignores stream arg


>Number:         1243
>Category:       pending
>Synopsis:       print_doc_line ignores stream arg
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   unknown
>Arrival-Date:   Sun Jun 15 02:48:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 What _should_ print_doc_line be doing here (<<<)?
 Should all callers be passing in a ui_out instead of a ui_file?
 
 /* Print only the first line of STR on STREAM.  */
 void
 print_doc_line (struct ui_file *stream, char *str)
 {
   static char *line_buffer = 0;
   static int line_size;
   register char *p;
 
   if (!line_buffer)
     {
       line_size = 80;
       line_buffer = (char *) xmalloc (line_size);
     }
 
   p = str;
   while (*p && *p != '\n' && *p != '.' && *p != ',')
     p++;
   if (p - str > line_size - 1)
     {
       line_size = p - str + 1;
       xfree (line_buffer);
       line_buffer = (char *) xmalloc (line_size);
     }
   strncpy (line_buffer, str, p - str);
   line_buffer[p - str] = '\0';
   if (islower (line_buffer[0]))
     line_buffer[0] = toupper (line_buffer[0]);
   ui_out_text (uiout, line_buffer); <<<
 }
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]