This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH v2] Fix tokenize function and test.
On 06/17/2009 04:50 PM, Przemyslaw Pawelczyk wrote:
> Previous implementation was error-prone, because allowed returning empty
> tokens (mimiced strsep()), which is fine if there is a NULL semantic.
> Unfortunately SystemTap doesn't provide it in scripts and has only blank
> string (""), therefore testing against it was misleading.
> The solution is to return only non-empty tokens (mimic strtok()).
>
> * tapset/string.stp: Fix tokenize.
> * testsuite/systemtap.string/tokenize.stp: Improve and add case with
> more than one delimiter in the delim string.
> * testsuite/systemtap.string/tokenize.exp: Ditto.
> * stapfuncs.3stap.in: Update tokenize description.
> * doc/langref.tex: Ditto.
> ---
Applied, thanks!
Josh