/[pcre]/code/trunk/pcretest.c
ViewVC logotype

Diff of /code/trunk/pcretest.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 535 by ph10, Thu Jun 3 19:18:24 2010 UTC revision 537 by ph10, Tue Jun 8 15:28:26 2010 UTC
# Line 1786  while (!done) Line 1786  while (!done)
1786        {        {
1787        if (extend_inputline(infile, buffer + len, "data> ") == NULL)        if (extend_inputline(infile, buffer + len, "data> ") == NULL)
1788          {          {
1789          if (len > 0) break;          if (len > 0)    /* Reached EOF without hitting a newline */
1790              {
1791              fprintf(outfile, "\n");
1792              break;
1793              }
1794          done = 1;          done = 1;
1795          goto CONTINUE;          goto CONTINUE;
1796          }          }
# Line 2081  while (!done) Line 2085  while (!done)
2085        }        }
2086      *q = 0;      *q = 0;
2087      len = (int)(q - dbuffer);      len = (int)(q - dbuffer);
2088    
2089      /* Move the data to the end of the buffer so that a read over the end of      /* Move the data to the end of the buffer so that a read over the end of
2090      the buffer will be seen by valgrind, even if it doesn't cause a crash. If      the buffer will be seen by valgrind, even if it doesn't cause a crash. If
2091      we are using the POSIX interface, we must include the terminating zero. */      we are using the POSIX interface, we must include the terminating zero. */

Legend:
Removed from v.535  
changed lines
  Added in v.537

  ViewVC Help
Powered by ViewVC 1.1.5