@@ -799,7 +799,7 @@ def main():
799799
800800 # final files used by cffi (with and without complex numbers)
801801 final_h = os .path .join (thisdir , "suitesparse_graphblas.h" )
802- final_arm64_h = os .path .join (thisdir , "suitesparse_graphblas_arm64.h" )
802+ # final_arm64_h = os.path.join(thisdir, "suitesparse_graphblas_arm64.h")
803803 final_no_complex_h = os .path .join (thisdir , "suitesparse_graphblas_no_complex.h" )
804804 source_c = os .path .join (thisdir , "source.c" )
805805
@@ -827,30 +827,31 @@ def main():
827827 with open (final_h , "w" ) as f :
828828 f .write ("\n " .join (text ) + "\n " )
829829
830- # Create final header file (arm64)
831- # Replace all variadic arguments (...) with "char *"
832- print (f"Step 4: parse header file to create { final_arm64_h } " )
833- orig_text = text
834- patt = re .compile (r"^(extern GrB_Info .*\(.*)(\.\.\.)(\);)$" )
835- text = [patt .sub (r"\1char *\3" , line ) for line in orig_text ]
836- with open (final_arm64_h , "w" ) as f :
837- f .write ("\n " .join (text ) + "\n " )
830+ # NOTE:suitesparse_graphblas.h and suitesparse_graphblas_arm64.h are the same now
831+ # # Create final header file (arm64)
832+ # # Replace all variadic arguments (...) with "char *"
833+ # print(f"Step 4: parse header file to create {final_arm64_h}")
834+ # orig_text = text
835+ # patt = re.compile(r"^(extern GrB_Info .*\(.*)(\.\.\.)(\);)$")
836+ # text = [patt.sub(r"\1char *\3", line) for line in orig_text]
837+ # with open(final_arm64_h, "w") as f:
838+ # f.write("\n".join(text) + "\n")
838839
839840 # Create final header file (no complex)
840- print (f"Step 5 : parse header file to create { final_no_complex_h } " )
841+ print (f"Step 4 : parse header file to create { final_no_complex_h } " )
841842 groups_no_complex = parse_header (processed_h , skip_complex = True )
842843 text = create_header_text (groups_no_complex )
843844 with open (final_no_complex_h , "w" ) as f :
844845 f .write ("\n " .join (text ) + "\n " )
845846
846847 # Create source
847- print (f"Step 6 : create { source_c } " )
848+ print (f"Step 5 : create { source_c } " )
848849 text = create_source_text (groups )
849850 with open (source_c , "w" ) as f :
850851 f .write ("\n " .join (text ) + "\n " )
851852
852853 # Check defines
853- print ("Step 7 : check #define definitions" )
854+ print ("Step 6 : check #define definitions" )
854855 with open (graphblas_h ) as f :
855856 text = f .read ()
856857 define_lines = re .compile (r".*?#define\s+\w+\s+" )
0 commit comments