@@ -315,6 +315,7 @@ def groupby(index, seq):
315315 "GxB" ,
316316 "CMPLX" ,
317317 "CMPLXF" ,
318+ "GB_GLOBAL" ,
318319 "GB_PUBLIC" ,
319320 "GB_restrict" ,
320321 "GRAPHBLAS_H" ,
@@ -364,21 +365,21 @@ def get_groups(ast):
364365
365366 seen = set ()
366367 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
369370 seen .update (vals )
370371 groups ["GxB methods" ] = sorted (vals , key = sort_key )
371372
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
373374 seen .update (vals )
374375 groups ["GrB methods" ] = sorted (vals , key = sort_key )
375376
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
378379 seen .update (vals )
379380 groups ["GB methods" ] = sorted (vals , key = sort_key )
380381
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
382383 assert not missing_methods , ", " .join (sorted (missing_methods ))
383384
384385 vals = {x for x in lines if "extern GrB" in x } - seen
@@ -584,7 +585,7 @@ def __init__(self):
584585 self .functions = []
585586
586587 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 == []:
588589 self .functions .append (node )
589590
590591 def handle_function_node (node ):
0 commit comments