mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
doc: tidy function signature, improve api parser
This commit is contained in:
parent
b49b524c9b
commit
1934b58658
@ -160,15 +160,21 @@ def createIndex(btstackfolder, apis, githubfolder):
|
||||
functions[ref_function.group(1)] = codeReference(ref_function.group(1), githubfolder, api_tuple[0], linenr)
|
||||
continue
|
||||
|
||||
function = re.match('(.*?)\(.*\(*.*;\n', line)
|
||||
function = re.match('(.*?)\s*\(.*\(*.*;\n', line)
|
||||
if function:
|
||||
parts = function.group(1).split(" ");
|
||||
name = parts[len(parts)-1]
|
||||
if len(name) == 0:
|
||||
print(parts);
|
||||
sys.exit(10)
|
||||
functions[name] = codeReference( name, githubfolder, api_tuple[0], linenr)
|
||||
continue
|
||||
|
||||
function = re.match('.(.*?)\(.*\(*.*', line)
|
||||
function = re.match('.(.*?)\s*\(.*\(*.*', line)
|
||||
if function:
|
||||
if len(name) == 0:
|
||||
print(parts);
|
||||
sys.exit(10)
|
||||
parts = function.group(1).split(" ");
|
||||
name = parts[len(parts)-1]
|
||||
multiline_function_def = 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user