MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / CmdWindow

Function CmdWindow

source/Debugger/Debug.cpp:7835–7862  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

7833
7834//===========================================================================
7835Update_t CmdWindow (int nArgs)
7836{
7837 if (!nArgs)
7838 return Help_Arg_1( CMD_WINDOW );
7839
7840 int iParam;
7841 char *pName = g_aArgs[1].sArg;
7842 int nFound = FindParam( pName, MATCH_EXACT, iParam, _PARAM_WINDOW_BEGIN, _PARAM_WINDOW_END );
7843 if (nFound)
7844 {
7845 switch (iParam)
7846 {
7847 case PARAM_CODE : return CmdWindowViewCode(0) ; break;
7848 case PARAM_CONSOLE: return CmdWindowViewConsole(0); break;
7849 case PARAM_DATA : return CmdWindowViewData(0) ; break;
7850// case PARAM_INFO : CmdWindowInfo(); break;
7851 case PARAM_SOURCE : return CmdWindowViewSource(0) ; break;
7852 case PARAM_SYMBOLS: return CmdWindowViewSymbols(0); break;
7853 default:
7854 return Help_Arg_1( CMD_WINDOW );
7855 break;
7856 }
7857 }
7858
7859 WindowUpdateConsoleDisplayedSize();
7860
7861 return UPDATE_ALL;
7862}
7863
7864//===========================================================================
7865Update_t CmdWindowLast (int nArgs)

Callers

nothing calls this directly

Calls 8

Help_Arg_1Function · 0.85
FindParamFunction · 0.85
CmdWindowViewCodeFunction · 0.85
CmdWindowViewConsoleFunction · 0.85
CmdWindowViewDataFunction · 0.85
CmdWindowViewSourceFunction · 0.85
CmdWindowViewSymbolsFunction · 0.85

Tested by

no test coverage detected