X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_tokeniser.c;h=1fa28b03fcc21756fbf97ed0a30dbc052593d395;hb=e89b21b07607ae485f56b32f3e67f83f528f2ae6;hp=619a4898ae143b3201524d355511a51d435d08e4;hpb=c12c6c380fa37b6a0d28ce98fdcda487a8aca76d;p=melted diff --git a/src/framework/mlt_tokeniser.c b/src/framework/mlt_tokeniser.c index 619a489..1fa28b0 100644 --- a/src/framework/mlt_tokeniser.c +++ b/src/framework/mlt_tokeniser.c @@ -1,7 +1,10 @@ -/* - * mlt_tokeniser.c -- String tokeniser - * Copyright (C) 2002-2003 Ushodaya Enterprises Limited - * Author: Charles Yates +/** + * \file mlt_tokeniser.c + * \brief string tokeniser + * \see mlt_tokeniser_s + * + * Copyright (C) 2002-2009 Ushodaya Enterprises Limited + * \author Charles Yates * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -74,7 +77,7 @@ static int mlt_tokeniser_append( mlt_tokeniser tokeniser, char *token ) /** Parse a string by splitting on the delimiter provided. */ -int mlt_tokeniser_parse_new( mlt_tokeniser tokeniser, char *string, char *delimiter ) +int mlt_tokeniser_parse_new( mlt_tokeniser tokeniser, char *string, const char *delimiter ) { int count = 0; int length = strlen( string ); @@ -126,7 +129,7 @@ int mlt_tokeniser_parse_new( mlt_tokeniser tokeniser, char *string, char *delimi count = 0 - ( count - 1 ); mlt_tokeniser_append( tokeniser, token ); } - + free( token ); return count; }