|
/******************************************************************************
Copyright (c) 2004 TanteM - Grobbendonk, Belgium
Module Name: commandTable.h
Abstract: File contains the table holding all supported commands
Author: Dominique Bijnens (dobi)
Revision History:
Date Who What
-------- ---------- -----------------------------------------------------------
21/09/04 dobi Version 1.0
*******************************************************************************/
#pragma once
#include "macros.h" // Always include this header first
#include "commands.h" // Should contain the prototypes of your commands !!
/////////////////////////////////////////////////////////////////////////////////
// To add an entry, create a new CMD_ENTRY specifiying:
//
// 1. The name of the command
// 2. The availability of command parameters. FALSE means 'no parameters'
// 3. The function implementing your command. Notice the QUIT command having
// no function specified. This is a special case.
// 4. Some comments
//
// Function prototype: void (*ProcessingFunc)(TCHAR *)
//
// ATTENTION: a. NEVER remove the 'quit' and '?' entry from the table
// b. The 'quit' entry should ALWAYS be the first entry
// c. The '?' entry should be the second one
//
/////////////////////////////////////////////////////////////////////////////////
START_COMMAND_TABLE
CMD_ENTRY("q", FALSE, NULL, "Quit command")
CMD_ENTRY("?", FALSE, NULL, "Help me please")
CMD_ENTRY("cls", FALSE, clsCmd, "Clear screen")
// PUT HERE YOUR OWN COMMAND ENTRIES
// ALWAYS LEAVE FIRST TWO COMMANDS IN PLACE !!
END_COMMAND_TABLE
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.