• Andrew Gabbasov's avatar
    udf: Remove struct ustr as non-needed intermediate storage · 9293fcfb
    Andrew Gabbasov authored
    Although 'struct ustr' tries to structurize the data by combining
    the string and its length, it doesn't actually make much benefit,
    since it saves only one parameter, but introduces an extra copying
    of the whole buffer, serving as an intermediate storage. It looks
    quite inefficient and not actually needed.
    
    This commit gets rid of the struct ustr by changing the parameters
    of some functions appropriately.
    
    Also, it removes using 'dstring' type, since it doesn't make much
    sense too.
    
    Just using the occasion, add a 'const' qualifier to udf_get_filename
    to make consistent parameters sets.
    Signed-off-by: default avatarAndrew Gabbasov <andrew_gabbasov@mentor.com>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    9293fcfb
unicode.c 8.22 KB