core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

symbol_table.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include "symbol_table.h"
#include "hash_table.h"

Data Structures

struct  symbol
struct  symbol_header
struct  scope_level
 Element of the scope stack. More...
struct  _mesa_symbol_table
struct  _mesa_symbol_table_iterator


static void check_symbol_table (struct _mesa_symbol_table *table)
void _mesa_symbol_table_pop_scope (struct _mesa_symbol_table *table)
void _mesa_symbol_table_push_scope (struct _mesa_symbol_table *table)
static struct symbol_headerfind_symbol (struct _mesa_symbol_table *table, const char *name)
_mesa_symbol_table_iterator_ctor (struct _mesa_symbol_table *table, int name_space, const char *name)
void _mesa_symbol_table_iterator_dtor (struct _mesa_symbol_table_iterator *iter)
void * _mesa_symbol_table_iterator_get (struct _mesa_symbol_table_iterator *iter)
int _mesa_symbol_table_iterator_next (struct _mesa_symbol_table_iterator *iter)
void * _mesa_symbol_table_find_symbol (struct _mesa_symbol_table *table, int name_space, const char *name)
int _mesa_symbol_table_add_symbol (struct _mesa_symbol_table *table, int name_space, const char *name, void *declaration)
struct _mesa_symbol_table_mesa_symbol_table_ctor (void)
void _mesa_symbol_table_dtor (struct _mesa_symbol_table *table)

Function Documentation

int _mesa_symbol_table_add_symbol ( struct _mesa_symbol_table table,
int  name_space,
const char *  name,
void *  declaration 

struct _mesa_symbol_table* _mesa_symbol_table_ctor ( void   )  [read]

void _mesa_symbol_table_dtor ( struct _mesa_symbol_table table  ) 

void* _mesa_symbol_table_find_symbol ( struct _mesa_symbol_table table,
int  name_space,
const char *  name 

struct _mesa_symbol_table_iterator* _mesa_symbol_table_iterator_ctor ( struct _mesa_symbol_table table,
int  name_space,
const char *  name 
) [read]

void _mesa_symbol_table_iterator_dtor ( struct _mesa_symbol_table_iterator iter  ) 

void* _mesa_symbol_table_iterator_get ( struct _mesa_symbol_table_iterator iter  ) 

int _mesa_symbol_table_iterator_next ( struct _mesa_symbol_table_iterator iter  ) 

void _mesa_symbol_table_pop_scope ( struct _mesa_symbol_table table  ) 

void _mesa_symbol_table_push_scope ( struct _mesa_symbol_table table  ) 

static void check_symbol_table ( struct _mesa_symbol_table table  )  [static]

static struct symbol_header* find_symbol ( struct _mesa_symbol_table table,
const char *  name 
) [static, read]

Generated on Sun Sep 27 06:48:02 2009 for Mesa Vertex and Fragment Program code by  doxygen 1.5.4