Lines Matching refs:atom
1966 atom_t *atom; in atom_string() local
1973 if ((atom = dict_get(_pv_atoms, s)) == NULL) { in atom_string()
1974 if ((atom = calloc(1, sizeof (atom_t))) == NULL) { in atom_string()
1979 if ((atom->a_string = strdup(s)) == NULL) { in atom_string()
1981 free(atom); in atom_string()
1985 (void) dict_put(_pv_atoms, atom->a_string, atom); in atom_string()
1987 atom->a_count++; in atom_string()
1989 return (atom->a_string); in atom_string()
2000 atom_t *atom; in atom_free() local
2003 if ((atom = dict_get(_pv_atoms, s)) != NULL) { in atom_free()
2004 if (--atom->a_count == 0) { in atom_free()
2006 free(atom->a_string); in atom_free()
2007 free(atom); in atom_free()