advpack: Rewrite get_parameter so that it can handle empty parameters [RESEND]

Alexandre Julliard julliard at winehq.org
Tue Apr 4 04:53:32 CDT 2006


"James Hawkins" <truiken at gmail.com> writes:

> Changelog:
> * Rewrite get_parameter so that it can handle empty parameters.

You are still parsing the whole string for every parameter, this is
O(n^2) which isn't very nice. What you want is a strtok-style
function to retrieve parameters sequentially.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list