@@ -824,7 +824,7 @@ def main():
824824    groups  =  parse_header (processed_h , skip_complex = False )
825825    text  =  create_header_text (groups )
826826    with  open (final_h , "w" ) as  f :
827-         f .write ("\n " .join (text ))
827+         f .write ("\n " .join (text )  +   " \n " 
828828
829829    # Create final header file (arm64) 
830830    # Replace all variadic arguments (...) with "char *" 
@@ -833,20 +833,20 @@ def main():
833833    patt  =  re .compile (r"^(extern GrB_Info .*\(.*)(\.\.\.)(\);)$" )
834834    text  =  [patt .sub (r"\1char *\3" , line ) for  line  in  orig_text ]
835835    with  open (final_arm64_h , "w" ) as  f :
836-         f .write ("\n " .join (text ))
836+         f .write ("\n " .join (text )  +   " \n " 
837837
838838    # Create final header file (no complex) 
839839    print (f"Step 5: parse header file to create { final_no_complex_h }  )
840840    groups_no_complex  =  parse_header (processed_h , skip_complex = True )
841841    text  =  create_header_text (groups_no_complex )
842842    with  open (final_no_complex_h , "w" ) as  f :
843-         f .write ("\n " .join (text ))
843+         f .write ("\n " .join (text )  +   " \n " 
844844
845845    # Create source 
846846    print (f"Step 6: create { source_c }  )
847847    text  =  create_source_text (groups )
848848    with  open (source_c , "w" ) as  f :
849-         f .write ("\n " .join (text ))
849+         f .write ("\n " .join (text )  +   " \n " 
850850
851851    # Check defines 
852852    print ("Step 7: check #define definitions" )
0 commit comments