~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to erts/emulator/beam/atom.h

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    byte* name;      /* name of atom */
37
37
} Atom;
38
38
 
39
 
extern Uint reserved_atom_space;
40
 
extern Uint atom_space;
41
 
 
42
 
extern IndexTable atom_table;
43
 
 
44
 
#define atom_tab(i)       ((Atom*) atom_table.table[i])
45
 
#define atom_table_size   atom_table.sz
46
 
 
47
 
Eterm am_atom_put(byte*, int);
48
 
EXTERN_FUNCTION(int, atom_erase, (byte*, int));
49
 
EXTERN_FUNCTION(int, atom_static_put, (byte*, int));
50
 
EXTERN_FUNCTION(void, init_atom_table, (_VOID_));
51
 
EXTERN_FUNCTION(void, atom_info, (CIO));
52
 
EXTERN_FUNCTION(void, dump_atoms, (CIO));
53
 
 
 
39
extern IndexTable erts_atom_table;
 
40
 
 
41
ERTS_GLB_INLINE Atom* atom_tab(Uint i);
 
42
 
 
43
#if ERTS_GLB_INLINE_INCL_FUNC_DEF
 
44
ERTS_GLB_INLINE Atom*
 
45
atom_tab(Uint i)
 
46
{
 
47
    return (Atom *) erts_index_lookup(&erts_atom_table, i);
 
48
}
 
49
#endif
 
50
int atom_table_size(void);      /* number of elements */
 
51
int atom_table_sz(void);        /* table size in bytes, excluding stored objects */
 
52
 
 
53
Eterm am_atom_put(const char*, int); /* most callers pass plain char*'s */
 
54
int atom_erase(byte*, int);
 
55
int atom_static_put(byte*, int);
 
56
void init_atom_table(void);
 
57
void atom_info(int, void *);
 
58
void dump_atoms(int, void *);
 
59
int erts_atom_get(byte* name, int len, Eterm* ap);
 
60
void erts_atom_get_text_space_sizes(Uint *reserved, Uint *used);
54
61
#endif
55
62