@@ -315,6 +315,7 @@ def groupby(index, seq):
315
315
"GxB" ,
316
316
"CMPLX" ,
317
317
"CMPLXF" ,
318
+ "GB_GLOBAL" ,
318
319
"GB_PUBLIC" ,
319
320
"GB_restrict" ,
320
321
"GRAPHBLAS_H" ,
@@ -364,21 +365,21 @@ def get_groups(ast):
364
365
365
366
seen = set ()
366
367
groups = {}
367
- vals = {x for x in lines if "extern GrB_Info GxB" in x } - seen
368
- vals |= {x for x in lines if "extern " in x and " GxB_Iterator" in x and "GB" not in x } - seen
368
+ vals = {x for x in lines if "GrB_Info GxB" in x } - seen
369
+ vals |= {x for x in lines if "GxB_Iterator" in x and "GB" not in x } - seen
369
370
seen .update (vals )
370
371
groups ["GxB methods" ] = sorted (vals , key = sort_key )
371
372
372
- vals = {x for x in lines if "extern GrB_Info GrB" in x } - seen
373
+ vals = {x for x in lines if "GrB_Info GrB" in x } - seen
373
374
seen .update (vals )
374
375
groups ["GrB methods" ] = sorted (vals , key = sort_key )
375
376
376
- vals = {x for x in lines if "extern GrB_Info GB" in x } - seen
377
- vals |= {x for x in lines if "extern " in x and "GxB_Iterator " in x and "GB" in x } - seen
377
+ vals = {x for x in lines if "GrB_Info GB" in x } - seen
378
+ vals |= {x for x in lines if "GxB_Iterator " in x and "GB " in x and "typedef" not in x } - seen
378
379
seen .update (vals )
379
380
groups ["GB methods" ] = sorted (vals , key = sort_key )
380
381
381
- missing_methods = {x for x in lines if "extern GrB_Info " in x } - seen
382
+ missing_methods = {x for x in lines if "GrB_Info " in x } - seen
382
383
assert not missing_methods , ", " .join (sorted (missing_methods ))
383
384
384
385
vals = {x for x in lines if "extern GrB" in x } - seen
@@ -584,7 +585,7 @@ def __init__(self):
584
585
self .functions = []
585
586
586
587
def visit_Decl (self , node ):
587
- if isinstance (node .type , c_ast .FuncDecl ) and node .storage == ["extern" ]:
588
+ if isinstance (node .type , c_ast .FuncDecl ) and node .storage == []:
588
589
self .functions .append (node )
589
590
590
591
def handle_function_node (node ):
0 commit comments