This repository was archived by the owner on Oct 1, 2024. It is now read-only.
Commit 3e0e546
committed
Fix line-oriented callbacks
stdoutcb/stderrcb assume that an input string is a single line, but
in fact it can contain multiple lines, or even be a part of a line.
One of the consequence is that cocopa fails to parse compiler output
when it contains long lines (#1275).
This patch fixes the issue by introducing a buffer to accumulate
received data before passing them to callbacks.
Fixes #1275.1 parent 0890134 commit 3e0e546
1 file changed
+22
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
749 | | - | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
750 | 768 | | |
751 | 769 | | |
752 | 770 | | |
| |||
758 | 776 | | |
759 | 777 | | |
760 | 778 | | |
761 | | - | |
762 | | - | |
| 779 | + | |
| 780 | + | |
763 | 781 | | |
764 | 782 | | |
765 | 783 | | |
| |||
784 | 802 | | |
785 | 803 | | |
786 | 804 | | |
787 | | - | |
| 805 | + | |
788 | 806 | | |
789 | 807 | | |
790 | 808 | | |
| |||
0 commit comments