extern void AsmNewSrcNotify( a_window *src, mod_handle mod, bool track ) { asm_window *asw; a_window *wnd; for( wnd = WndNext( NULL ); wnd != NULL; wnd = WndNext( wnd ) ) { if( WndClass( wnd ) != WND_ASSEMBLY ) continue; asw = WndAsm( wnd ); if( track != asw->track ) continue; if( mod != asw->mod ) continue; if( asw->src != NULL ) continue; SrcJoinAsm( src, wnd ); AsmJoinSrc( wnd, src ); break; } }
extern void SrcNewAsmNotify( a_window *asw, mod_handle mod, bool track ) { file_window *file; a_window *wnd; for( wnd = WndNext( NULL ); wnd != NULL; wnd = WndNext( wnd ) ) { if( WndClass( wnd ) != WND_SOURCE ) continue; file = WndFile( wnd ); if( track != file->track ) continue; if( mod != file->mod ) continue; if( file->asw != NULL ) continue; AsmJoinSrc( asw, wnd ); SrcJoinAsm( wnd, asw ); break; } }