Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields  

Toy Command Interpreter
[Toy Memory Manager Interface]


Modules

High-level memory management commands

Typedefs

typedef enum AddressType_e AddressType_e
 Enumerated type to define valid type of address operators.

typedef enum CommandType_e CommandType_e
 Enumerated type of valid commands for the commandfile parser.

typedef enum ArgType_e ArgType_e
 Enumereated type listing valid kinds of arguments.


Functions

ErrMessage_t TMM_ParseLine (const char *strIn, ToyMM *tm, int line)
 Parses a line from a config file.


Variables

const char ** Arguments []
 String table used by the commandfile parser.


Detailed Description

Executes the high-level commands given in a line of text.

Typedef Documentation

typedef enum AddressType_e AddressType_e
 

Enumerated type to define valid type of address operators.

typedef enum ArgType_e ArgType_e
 

Enumereated type listing valid kinds of arguments.

typedef enum CommandType_e CommandType_e
 

Enumerated type of valid commands for the commandfile parser.


Function Documentation

ErrMessage_t TMM_ParseLine const char *    strIn,
ToyMM  ,
int    line
 

Parses a line from a config file.

This is the function that makes things happen. When processing a line of text it:

  1. Calls the Parsing module to convert the text to tokens
  2. Checks line syntax
  3. Extracts variables from the text
  4. Executes the specified command and returns it's error code

Definition at line 159 of file ToyParseCmd.c.

References CheckLineSyntax(), ErrMessage_t, FreeType(), LineToTypes(), MAX_PROCESSES, ToyMM::memSize, TokenType::subtype, TMM_AllocateHeap(), TMM_EnablePaging(), TMM_FreeHeap(), TMM_PrintAllMemory(), TMM_PrintFrames(), TMM_PrintHeap(), TMM_PrintInvertedPageTable(), TMM_PrintPages(), TMM_PrintPageTable(), TMM_PrintProcessMemory(), TMM_PrintProcessTable(), TMM_ReallocateHeap(), TMM_StoreInteger(), TMM_StoreString(), TMM_TerminateProcess(), TMM_WatchPaging(), and TokenType::token.

Referenced by main(), and TMM_ParseFilePtr().


Variable Documentation

const char** Arguments[]
 

String table used by the commandfile parser.

Definition at line 103 of file ToyParseCmd.h.


Generated on Fri Apr 4 14:29:08 2003 for ToyMem by doxygen1.3-rc3