@@ -261,6 +261,7 @@ def groupby(index, seq):
261261}
262262
263263DEFINES = {
264+ "GrB_INDEX_MAX" ,
264265 "GxB_STDC_VERSION" ,
265266 "GxB_IMPLEMENTATION_MAJOR" ,
266267 "GxB_IMPLEMENTATION_MINOR" ,
@@ -290,6 +291,13 @@ def groupby(index, seq):
290291 "GxB_BEGIN" ,
291292 "GxB_END" ,
292293 "GxB_INC" ,
294+ "GxB_FAST_IMPORT" ,
295+ "GxB_MAX_NAME_LEN" ,
296+ "GxB_COMPRESSION_DEFAULT" ,
297+ "GxB_COMPRESSION_INTEL" ,
298+ "GxB_COMPRESSION_LZ4" ,
299+ "GxB_COMPRESSION_LZ4HC" ,
300+ "GxB_COMPRESSION_NONE" ,
293301}
294302
295303CHAR_DEFINES = {
@@ -321,6 +329,9 @@ def groupby(index, seq):
321329 "GxB_cuda_malloc" ,
322330 "GxB_cuda_free" ,
323331}
332+ IGNORE_ENUMS = {
333+ "memory_order" ,
334+ }
324335
325336
326337class VisitEnumTypedef (c_generator .CGenerator ):
@@ -360,7 +371,7 @@ def get_groups(ast):
360371 groups ["GB methods" ] = sorted (vals , key = sort_key )
361372
362373 missing_methods = {x for x in lines if "extern GrB_Info " in x } - seen
363- assert not missing_methods
374+ assert not missing_methods , ", " . join ( sorted ( missing_methods ))
364375
365376 vals = {x for x in lines if "extern GrB" in x } - seen
366377 seen .update (vals )
@@ -379,7 +390,7 @@ def get_groups(ast):
379390 groups ["GrB const" ] = sorted (vals , key = sort_key )
380391
381392 missing_const = {x for x in lines if "extern const" in x } - seen
382- assert not missing_const
393+ assert not missing_const , ", " . join ( sorted ( missing_const ))
383394
384395 vals = {x for x in lines if "typedef" in x and "GxB" in x and "(" not in x } - seen
385396 seen .update (vals )
@@ -390,7 +401,7 @@ def get_groups(ast):
390401 groups ["GrB typedef" ] = sorted (vals , key = sort_key )
391402
392403 missing_typedefs = {x for x in lines if "typedef" in x and "GB" in x and "(" not in x } - seen
393- assert not missing_typedefs
404+ assert not missing_typedefs , ", " . join ( sorted ( missing_typedefs ))
394405 assert all (x .endswith (";" ) for x in seen ) # sanity check
395406
396407 g = VisitEnumTypedef ()
@@ -408,14 +419,15 @@ def get_groups(ast):
408419 groups ["GxB typedef enums" ] = sorted (vals , key = lambda x : sort_key (x .rsplit ("}" , 1 )[- 1 ]))
409420
410421 missing_enums = set (enums ) - set (groups ["GrB typedef enums" ]) - set (groups ["GxB typedef enums" ])
411- assert not missing_enums
422+ missing_enums = {x for x in missing_enums if not any (y in x for y in IGNORE_ENUMS )}
423+ assert not missing_enums , ", " .join (sorted (missing_enums ))
412424
413425 vals = {x for x in lines if "typedef" in x and "GxB" in x } - seen
414426 seen .update (vals )
415427 groups ["GxB typedef funcs" ] = sorted (vals , key = sort_key )
416428
417429 vals = {x for x in lines if "typedef" in x and "GrB" in x } - seen
418- assert not vals
430+ assert not vals , ", " . join ( sorted ( vals ))
419431 groups ["not seen" ] = sorted (set (lines ) - seen , key = sort_key )
420432 for group in groups ["not seen" ]:
421433 assert "extern" not in group , group
0 commit comments