Skip to content
  • Gary V. Vaughan's avatar
    Rewrite dynamic structure initializations to runtime assignment · 66dbfd55
    Gary V. Vaughan authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Unfortunately, there are still plenty of production systems with
    vendor compilers that choke unless all compound declarations can be
    determined statically at compile time, for example hpux10.20 (I can
    provide a comprehensive list of our supported platforms that exhibit
    this problem if necessary).
    
    This patch simply breaks apart any compound declarations with dynamic
    initialisation expressions, and moves the initialisation until after
    the last declaration in the same block, in all the places necessary to
    have the offending compilers accept the code.
    
    Signed-off-by: default avatarGary V. Vaughan <gary@thewrittenword.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    66dbfd55