URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 82 |
Rev 143 |
Line 967... |
Line 967... |
while (line_end-1 > line_start )
|
while (line_end-1 > line_start )
|
{
|
{
|
/* Eat leading whitespaces. This is essential because while
|
/* Eat leading whitespaces. This is essential because while
|
wrapping lines, there will often be a whitespace at beginning
|
wrapping lines, there will often be a whitespace at beginning
|
of line */
|
of line */
|
while ( isspace(*(text+line_start)) )
|
/* JPB patch to cast argument */
|
|
while (isspace ((int) (*(text+line_start))) )
|
{ line_start++; }
|
{ line_start++; }
|
|
|
if ((line_end - line_start) > colwidth )
|
if ((line_end - line_start) > colwidth )
|
{ line_end = line_start + colwidth; }
|
{ line_end = line_start + colwidth; }
|
|
|
/* Find last whitespace, that fits into line */
|
/* Find last whitespace, that fits into line */
|
while ( ( line_end > line_start )
|
while ( ( line_end > line_start )
|
&& ( line_end - line_start > colwidth )
|
&& ( line_end - line_start > colwidth )
|
&& !isspace(*(text+line_end)))
|
&& !isspace ((int) (*(text+line_end))))
|
{ line_end--; }
|
{ line_end--; }
|
|
|
/* Do not print trailing whitespace. If this text
|
/* Do not print trailing whitespace. If this text
|
has got only one line, line_end now points to the
|
has got only one line, line_end now points to the
|
last char due to initialization. */
|
last char due to initialization. */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.