ReactOS 0.4.15-dev-8434-g155a7c7
cmdtable.c File Reference
#include "precomp.h"
Include dependency graph for cmdtable.c:

Go to the source code of this file.

Functions

VOID PrintCommandList (VOID)
 

Variables

COMMAND cmds []
 

Function Documentation

◆ PrintCommandList()

VOID PrintCommandList ( VOID  )

Definition at line 230 of file cmdtable.c.

231{
232 LPCOMMAND cmdptr;
233 INT y;
234
235 y = 0;
236 cmdptr = cmds;
237 while (cmdptr->name)
238 {
239 if (!(cmdptr->flags & CMD_HIDE))
240 {
241 if (++y == 8)
242 {
243 ConOutPuts(cmdptr->name);
244 ConOutChar(_T('\n'));
245 y = 0;
246 }
247 else
248 {
249 ConOutPrintf (_T("%-10s"), cmdptr->name);
250 }
251 }
252
253 cmdptr++;
254 }
255
256 if (y != 0)
257 ConOutChar(_T('\n'));
258}
#define CMD_HIDE
Definition: cmd.h:142
#define ConOutPrintf(szStr,...)
Definition: console.h:41
#define ConOutPuts(szStr)
Definition: console.h:29
COMMAND cmds[]
Definition: cmdtable.c:28
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
VOID ConOutChar(TCHAR c)
Definition: util.c:233
INT flags
Definition: cmdcons.c:28
LPSTR name
Definition: cmdcons.c:27
int32_t INT
Definition: typedefs.h:58
#define _T(x)
Definition: vfdio.h:22

Referenced by CommandShowCommands().

Variable Documentation

◆ cmds

COMMAND cmds[]

Definition at line 28 of file cmdtable.c.

Referenced by PrintCommandList().