Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
genksyms.h File Reference
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  string_list
 
struct  symbol
 

Macros

#define YYSTYPE   yystype
 
#define xmalloc(size)
 
#define xstrdup(str)
 

Typedefs

typedef struct string_list ** yystype
 

Enumerations

enum  symbol_type {
  SYM_NORMAL, SYM_TYPEDEF, SYM_ENUM, SYM_STRUCT,
  SYM_UNION, SYM_ENUM_CONST, S_UNKNOWN, S_BOOLEAN,
  S_TRISTATE, S_INT, S_HEX, S_STRING,
  S_OTHER
}
 
enum  symbol_status { STATUS_UNCHANGED, STATUS_DEFINED, STATUS_MODIFIED }
 

Functions

struct symbolfind_symbol (const char *name, enum symbol_type ns, int exact)
 
struct symboladd_symbol (const char *name, enum symbol_type type, struct string_list *defn, int is_extern)
 
void export_symbol (const char *)
 
void free_node (struct string_list *list)
 
void free_list (struct string_list *s, struct string_list *e)
 
struct string_listcopy_node (struct string_list *)
 
struct string_listcopy_list_range (struct string_list *start, struct string_list *end)
 
int yylex (void)
 
int yyparse (void)
 
void error_with_pos (const char *,...)
 

Variables

int cur_line
 
charcur_filename
 
charsource_file
 
int in_source_file
 

Macro Definition Documentation

#define xmalloc (   size)
Value:
({ void *__ptr = malloc(size); \
if(!__ptr && size != 0) { \
fprintf(stderr, "out of memory\n"); \
exit(1); \
} \
__ptr; })

Definition at line 81 of file genksyms.h.

#define xstrdup (   str)
Value:
({ char *__str = strdup(str); \
if (!__str) { \
fprintf(stderr, "out of memory\n"); \
exit(1); \
} \
__str; })

Definition at line 87 of file genksyms.h.

#define YYSTYPE   yystype

Definition at line 58 of file genksyms.h.

Typedef Documentation

Definition at line 57 of file genksyms.h.

Enumeration Type Documentation

Enumerator:
STATUS_UNCHANGED 
STATUS_DEFINED 
STATUS_MODIFIED 

Definition at line 33 of file genksyms.h.

Enumerator:
SYM_NORMAL 
SYM_TYPEDEF 
SYM_ENUM 
SYM_STRUCT 
SYM_UNION 
SYM_ENUM_CONST 
S_UNKNOWN 
S_BOOLEAN 
S_TRISTATE 
S_INT 
S_HEX 
S_STRING 
S_OTHER 

Definition at line 28 of file genksyms.h.

Function Documentation

struct symbol* add_symbol ( const char name,
enum symbol_type  type,
struct string_list defn,
int  is_extern 
)
read

Definition at line 322 of file genksyms.c.

struct string_list* copy_list_range ( struct string_list start,
struct string_list end 
)
read

Definition at line 391 of file genksyms.c.

struct string_list* copy_node ( struct string_list )
read

Definition at line 380 of file genksyms.c.

void error_with_pos ( const char ,
  ... 
)

Definition at line 714 of file genksyms.c.

void export_symbol ( const char )

Definition at line 645 of file genksyms.c.

struct symbol* find_symbol ( const char name,
enum symbol_type  ns,
int  exact 
)
read

Definition at line 167 of file genksyms.c.

void free_list ( struct string_list s,
struct string_list e 
)

Definition at line 342 of file genksyms.c.

void free_node ( struct string_list list)

Definition at line 336 of file genksyms.c.

int yylex ( void  )
int yyparse ( void  )

Variable Documentation

char* cur_filename

Definition at line 43 of file genksyms.c.

int cur_line

Definition at line 42 of file genksyms.c.

int in_source_file

Definition at line 44 of file genksyms.c.

char * source_file

Definition at line 43 of file genksyms.c.