mysymbol.h File Reference

Go to the source code of this file.

Data Structures

struct  mysymbol

Defines

#define mysymbol_export(func)   struct mysymbol __mysymbol_##func __attribute__ ((unused,__section__ (".mysymbol"))) = {#func,func,0};

Functions

static void * find_mysymbol (struct mysymbol *head, char *name)

Variables

struct mysymbol * mysymbol_head
struct mysymbol * mysymbol_tail


Define Documentation

#define mysymbol_export ( func   )     struct mysymbol __mysymbol_##func __attribute__ ((unused,__section__ (".mysymbol"))) = {#func,func,0};

Definition at line 9 of file mysymbol.h.


Function Documentation

static void* find_mysymbol ( struct mysymbol *  head,
char *  name 
) [static]

Definition at line 12 of file mysymbol.h.

References mysymbol.func, mysymbol.name, and mysymbol.next.

Referenced by initcmd().

00013 {
00014  struct mysymbol *p;
00015  for(p=head;p;p=p->next)
00016   if(!strcmp(name,p->name)) break;
00017   return p?p->func:0;
00018 }


Variable Documentation

Definition at line 34 of file cmdparser.c.

Referenced by cmd_import().

Definition at line 35 of file cmdparser.c.


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