Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/branches/primop-branch-3/NOTES/HISTORY
ViewVC logotype

Diff of /sml/branches/primop-branch-3/NOTES/HISTORY

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

revision 1188, Wed Apr 17 15:17:31 2002 UTC revision 1189, Fri May 10 20:40:33 2002 UTC
# Line 14  Line 14 
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16  Name: Matthias Blume  Name: Matthias Blume
17    Date: 2002/05/10 16:40:00 EDT
18    Tag: blume-20020510-erg-textio
19    Description:
20    
21    Applied the following bugfix provided by Emden Gansner:
22    
23        Output is corrupted when outputSubstr is used rather than output.
24    
25        The problem occurs when a substring
26    
27            ss = (s, dataStart, dataLen)
28    
29        where dataStart > 0, fills a stream buffer with avail bytes left.
30        avail bytes of s, starting at index dataStart, are copied into the
31        buffer, the buffer is flushed, and then the remaining dataLen-avail
32        bytes of ss are copied into the beginning of the buffer. Instead of
33        starting this copy at index dataStart+avail in s, the current code
34        starts the copy at index avail.
35    
36        Fix:
37        In text-io-fn.sml, change line 695 from
38             val needsFlush = copyVec(v, avail, dataLen-avail, buf, 0)
39        to
40             val needsFlush = copyVec(v, dataStart+avail, dataLen-avail, buf, 0)
41    
42    ----------------------------------------------------------------------
43    Name: Matthias Blume
44  Date: 2002/04/12 13:55:00 EDT  Date: 2002/04/12 13:55:00 EDT
45  Tag: blume-20020412-assyntax  Tag: blume-20020412-assyntax
46  Description:  Description:

Legend:
Removed from v.1188  
changed lines
  Added in v.1189

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0