test.c File Reference

#include <cmdparser.h>

Include dependency graph for test.c:

Go to the source code of this file.

Functions

void add_cmd (struct mycmd *mycmd)
int cmd_mytest (int argc, char **argv)
void initcmd (struct mysymbol *head)
 mycmd_init (mytest, cmd_mytest,"cmds","mytest")

Variables

struct mycmd * mycmd_head


Function Documentation

void add_cmd ( struct mycmd *  mycmd  ) 

Definition at line 49 of file cmdparser.c.

References mycmd.next.

Referenced by initcmd().

00050 {
00051  printf("add cmd %x\n",mycmd);
00052  mycmd_tail->next = mycmd;
00053  mycmd_tail = mycmd;
00054 }

int cmd_mytest ( int  argc,
char **  argv 
)

Definition at line 3 of file test.c.

00004 {
00005 printf("mytest\n");
00006 return 0;
00007 }

void initcmd ( struct mysymbol *  head  ) 

Definition at line 15 of file test.c.

References add_cmd(), and find_mysymbol().

Referenced by cmd_import().

00016 {
00017 void (*add_cmd)(struct mycmd *mycmd);
00018 add_cmd = find_mysymbol(head,"add_cmd");
00019 add_cmd( &__mycmd_mytest);
00020 }

Here is the call graph for this function:

mycmd_init ( mytest  ,
cmd_mytest  ,
"cmds"  ,
"mytest"   
)


Variable Documentation

struct mycmd* mycmd_head

Definition at line 16 of file cmdparser.c.

Referenced by command_generator(), and fileman_completion().


Generated on Fri Nov 5 07:24:47 2010 for ejtag debug tools for loongson 232 cpu by  doxygen 1.5.6