/[jscoverage]/trunk/stream.c
ViewVC logotype

Diff of /trunk/stream.c

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

revision 92 by siliconforks, Wed May 7 04:21:22 2008 UTC revision 102 by siliconforks, Sat May 31 07:07:27 2008 UTC
# Line 19  Line 19 
19    
20  #define _GNU_SOURCE  #define _GNU_SOURCE
21    
22    #include <config.h>
23    
24  #include "stream.h"  #include "stream.h"
25    
26  #include <stdarg.h>  #include <stdarg.h>
# Line 59  Line 61 
61    }    }
62    
63    if (new_capacity != stream->capacity) {    if (new_capacity != stream->capacity) {
64      stream->data = xrealloc(stream->data, stream->capacity);      stream->data = xrealloc(stream->data, new_capacity);
65      stream->capacity = new_capacity;      stream->capacity = new_capacity;
66    }    }
67    
# Line 103  Line 105 
105    free(stream->data);    free(stream->data);
106    free(stream);    free(stream);
107  }  }
108    
109    void Stream_reset(Stream * stream) {
110      stream->length = 0;
111    }

Legend:
Removed from v.92  
changed lines
  Added in v.102

  ViewVC Help
Powered by ViewVC 1.1.24