qse/ase/stx/symbol.h

41 lines
822 B
C
Raw Normal View History

2005-05-17 16:18:56 +00:00
/*
2007-03-22 11:21:59 +00:00
* $Id: symbol.h,v 1.9 2007-03-22 11:19:28 bacon Exp $
2005-05-17 16:18:56 +00:00
*/
2007-03-22 11:21:59 +00:00
#ifndef _ASE_STX_SYMBOL_H_
#define _ASE_STX_SYMBOL_H_
2005-05-17 16:18:56 +00:00
2007-03-22 11:21:59 +00:00
#include <ase/stx/stx.h>
2005-05-17 16:18:56 +00:00
2007-03-22 11:21:59 +00:00
#define ASE_STX_SYMLINK_SIZE 2
#define ASE_STX_SYMLINK_LINK 0
#define ASE_STX_SYMLINK_SYMBOL 1
2005-05-21 15:55:50 +00:00
2007-03-22 11:21:59 +00:00
struct ase_stx_symlink_t
2005-05-23 14:43:03 +00:00
{
2007-03-22 11:21:59 +00:00
ase_stx_objhdr_t header;
ase_word_t link;
ase_word_t symbol;
2005-05-23 14:43:03 +00:00
};
2007-03-22 11:21:59 +00:00
typedef struct ase_stx_symlink_t ase_stx_symlink_t;
2005-05-23 14:43:03 +00:00
2005-05-17 16:18:56 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2007-03-22 11:21:59 +00:00
ase_word_t ase_stx_new_symbol_link (ase_stx_t* stx, ase_word_t sym);
2005-05-23 15:51:03 +00:00
2007-03-22 11:21:59 +00:00
ase_word_t ase_stx_new_symbol (
ase_stx_t* stx, const ase_char_t* name);
ase_word_t ase_stx_new_symbolx (
ase_stx_t* stx, const ase_char_t* name, ase_word_t len);
void ase_stx_traverse_symbol_table (
ase_stx_t* stx, void (*func) (ase_stx_t*,ase_word_t,void*), void* data);
2005-05-18 04:01:51 +00:00
2005-05-17 16:18:56 +00:00
#ifdef __cplusplus
}
#endif
#endif