@@ -824,7 +824,7 @@ def main():
824
824
groups = parse_header (processed_h , skip_complex = False )
825
825
text = create_header_text (groups )
826
826
with open (final_h , "w" ) as f :
827
- f .write ("\n " .join (text ))
827
+ f .write ("\n " .join (text ) + " \n " )
828
828
829
829
# Create final header file (arm64)
830
830
# Replace all variadic arguments (...) with "char *"
@@ -833,20 +833,20 @@ def main():
833
833
patt = re .compile (r"^(extern GrB_Info .*\(.*)(\.\.\.)(\);)$" )
834
834
text = [patt .sub (r"\1char *\3" , line ) for line in orig_text ]
835
835
with open (final_arm64_h , "w" ) as f :
836
- f .write ("\n " .join (text ))
836
+ f .write ("\n " .join (text ) + " \n " )
837
837
838
838
# Create final header file (no complex)
839
839
print (f"Step 5: parse header file to create { final_no_complex_h } " )
840
840
groups_no_complex = parse_header (processed_h , skip_complex = True )
841
841
text = create_header_text (groups_no_complex )
842
842
with open (final_no_complex_h , "w" ) as f :
843
- f .write ("\n " .join (text ))
843
+ f .write ("\n " .join (text ) + " \n " )
844
844
845
845
# Create source
846
846
print (f"Step 6: create { source_c } " )
847
847
text = create_source_text (groups )
848
848
with open (source_c , "w" ) as f :
849
- f .write ("\n " .join (text ))
849
+ f .write ("\n " .join (text ) + " \n " )
850
850
851
851
# Check defines
852
852
print ("Step 7: check #define definitions" )
0 commit comments