ReactOS 0.4.15-dev-7953-g1f49173
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 234 of file cmdtable.c.

235{
236 LPCOMMAND cmdptr;
237 INT y;
238
239 y = 0;
240 cmdptr = cmds;
241 while (cmdptr->name)
242 {
243 if (!(cmdptr->flags & CMD_HIDE))
244 {
245 if (++y == 8)
246 {
247 ConOutPuts(cmdptr->name);
248 ConOutChar(_T('\n'));
249 y = 0;
250 }
251 else
252 {
253 ConOutPrintf (_T("%-10s"), cmdptr->name);
254 }
255 }
256
257 cmdptr++;
258 }
259
260 if (y != 0)
261 ConOutChar(_T('\n'));
262}
#define CMD_HIDE
Definition: cmd.h:142
VOID ConOutChar(TCHAR c)
Definition: console.c:123
#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
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().