Skip to content
Snippets Groups Projects
Commit a5019da8 authored by Jonathan Schöbel's avatar Jonathan Schöbel
Browse files

TextSegment: changed allocation semantics

A text_segment allocates memory in terms of chunks, this is now also
done, when created from a string, but this means that we can't rely on
strdup anymore, as it takes care of the allocation. Calling malloc
ourselves shouldn't be such an overhead as at least glibc's strdup
performs the exact same steps. Actually we should be spare a strlen call
now, so it should be more perfomant.
parent e1ac3d78
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment