INNER CODE UNIT · Python

main

cadaver/turso3d · ThirdParty/SDL/src/dynapi/gendynapi.py:50

def main():

    # Parse 'sdl_dynapi_procs_h' file to find existing functions
    existing_procs = find_existing_procs()

    # Get list of SDL headers
    sdl_list_includes = get_header_list()

    reg_externC = re.compile(r'.*extern[ "]*C[ "].*')
    reg_comment_remove_content = re.compile(r'\/\*.*\*/')
    reg_parsing_function = re.compile(r'(.*SDLCALL[^\(\)]*) ([a-zA-Z0-9_]+) *\((.*)\) *;.*')

    #eg:
    # void (SDLCALL *callback)(void*, int)
    # \1(\2)\3
    reg_parsing_callback = re.compile(r'([^\(\)]*)\(([^\(\)]+)\)(.*)')

    for filename in sdl_list_includes:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…