ceptr
 All Data Structures Files Functions Variables Typedefs Macros Modules Pages

implementation file for symbol and structure definition functions More...

#include "tree.h"
#include "stream.h"
#include "def.h"
#include "semtrex.h"
#include "ansicolor.h"
Include dependency graph for def.c:

Go to the source code of this file.

#define MAX_HASHES   10
 
#define MAX_LEVEL   100
 
char __d_extra_buf [100]
 
TG_cursor = NULL
 
int semeq (SemanticID s1, SemanticID s2)
 
SemanticAddr _d_get_def_addr (T *def)
 
SemanticID _d_define (SemTable *sem, T *def, SemanticType semtype, Context c)
 
void __d_validate_symbol (SemTable *sem, Symbol s, char *n)
 
void __d_validate_structure (SemTable *sem, Structure s, char *n)
 
void __d_set_symbol_structure (T *symbols, Symbol sym, Structure s)
 
void __d_set_structure_def (T *structures, Structure s, T *def)
 
Symbol _d_define_symbol (SemTable *sem, Structure s, char *label, Context c)
 
Structure _d_define_structure (SemTable *sem, char *label, T *structure_def, Context c)
 
Structure _d_define_structure_v (SemTable *sem, char *label, Context c, int num_params,...)
 
T_d_make_vstruc_def (SemTable *sem, char *label, int num_params, va_list params)
 
Structure __d_get_symbol_structure (T *symbols, Symbol s)
 
size_t _d_get_symbol_size (SemTable *sem, Symbol s, void *surface)
 
size_t _sys_structure_size (int id, void *surface)
 
size_t _d_get_structure_size (SemTable *sem, Structure s, void *surface)
 
void __d_tsig (SemTable *sem, T *code, T *tsig, TreeHash *hashes)
 
T_d_make_process_def (T *code, char *name, char *intention, T *signature, T *link)
 
Process _d_define_process (SemTable *sem, T *code, char *name, char *intention, T *signature, T *link, Context c)
 
Protocol _d_define_protocol (SemTable *sem, T *def, Context c)
 
T__d_build_def_semtrex (SemTable *sem, T *def, T *stx)
 
T_d_build_def_semtrex (SemTable *sem, Symbol s, T *parent)
 
SemanticID _d_define_receptor (SemTable *sem, char *label, T *definitions, Context c)
 
SemanticID __d_define_receptor (SemTable *sem, T *def, Context c)
 
Context _d_get_receptor_context (SemTable *sem, SemanticID r)
 
char * __t2s (SemTable *sem, T *t, int indent)
 
char * _indent_line (int level, char *buf)
 
char * __t_dump (SemTable *sem, T *t, int level, char *buf)
 

Detailed Description

implementation file for symbol and structure definition functions

Todo:
refactor symbol/structure/process definition mechanisms into a general definitional form

Definition in file def.c.