Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dspinella:zlib-ng-staging
cscope
cscope-egrep.out.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cscope-egrep.out.patch of Package cscope
# on sources that have '\r\n' in them, egrep produces no output # strip the carriage return out of the output # rcoe@wi.rr.com # --- cscope-15.7a/src/egrep.y 2008-03-12 15:43:56.000000000 -0500 +++ cscope-15.7a.orig/src/egrep.y 2011-06-09 15:32:08.809669622 -0500 @@ -612,12 +612,22 @@ succeed: fprintf(output, format, file, lnum); if (p <= nlp) { - while (nlp < buf_end) + while (nlp < buf_end) { + if ('\r' == *nlp) { + nlp++; + continue; + } putc(*nlp++, output); + } nlp = buf; } - while (nlp < p) + while (nlp < p) { + if ('\r' == *nlp) { + nlp++; + continue; + } putc(*nlp++, output); + } lnum++; nlp = p; if (out[cstat = istat] == 0)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor