"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/buf.c" between
flex-2.6.3.tar.gz and flex-2.6.4.tar.gz

About: Flex ("Fast Lexical Analyzer") is a tool for generating scanners/tokenizers.

buf.c  (flex-2.6.3):buf.c  (flex-2.6.4)
skipping to change at line 258 skipping to change at line 258
buf->elts = buf->elts =
allocate_array ((int) n_alloc, buf->elt_size); allocate_array ((int) n_alloc, buf->elt_size);
else else
buf->elts = buf->elts =
reallocate_array (buf->elts, (int) n_alloc, reallocate_array (buf->elts, (int) n_alloc,
buf->elt_size); buf->elt_size);
buf->nmax = n_alloc; buf->nmax = n_alloc;
} }
memcpy (buf->elts + (size_t) buf->nelts * buf->elt_size, ptr, memcpy ((char *) buf->elts + (size_t) buf->nelts * buf->elt_size, ptr,
(size_t) n_elem * buf->elt_size); (size_t) n_elem * buf->elt_size);
buf->nelts += n_elem; buf->nelts += n_elem;
return buf; return buf;
} }
/* vim:set tabstop=8 softtabstop=4 shiftwidth=4: */ /* vim:set tabstop=8 softtabstop=4 shiftwidth=4: */
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS