• Mattias Engdegård's avatar
    Allow ENCODE_FILE and DECODE_FILE to use no-copy conversion · a79019c1
    Mattias Engdegård authored
    They already did return their argument under some circumstances;
    this change broadens it to further reduce allocation in common cases
    (bug#40407).
    
    * src/coding.c (convert_string_nocopy): New function.
    (decode_file_name, encode_file_name): Use convert_string_nocopy.
    * src/coding.h (ENCODE_FILE, DECODE_FILE): Note the nocopy semantics.
    a79019c1