summaryrefslogtreecommitdiff
path: root/navit/atom.c
diff options
context:
space:
mode:
authorPierre Grandin <grandinp@gmail.com>2019-06-04 10:14:17 -0600
committerPierre Grandin <grandinp@gmail.com>2019-06-04 10:14:17 -0600
commit92a5169423e470e4d1a5f4237cb2112266998d28 (patch)
treebee5f13203e0a0d99c8f6962c82deef9fe772b6e /navit/atom.c
parent5304cda121782db8e1e5e4685ae10780cce36394 (diff)
parentda3e1e0c186dfd6c6566f798811a27d001a7fb1d (diff)
downloadnavit-audio.tar.gz
Merge branch 'trunk' into audioaudio
Diffstat (limited to 'navit/atom.c')
-rw-r--r--navit/atom.c36
1 files changed, 15 insertions, 21 deletions
diff --git a/navit/atom.c b/navit/atom.c
index de11ce8bc..087729972 100644
--- a/navit/atom.c
+++ b/navit/atom.c
@@ -3,29 +3,23 @@
static GHashTable *atom_hash;
-char *
-atom_lookup(char *name)
-{
- if (!atom_hash)
- return NULL;
- return g_hash_table_lookup(atom_hash,name);
+char *atom_lookup(char *name) {
+ if (!atom_hash)
+ return NULL;
+ return g_hash_table_lookup(atom_hash,name);
}
-char *
-atom(char *name)
-{
- char *id=atom_lookup(name);
- if (id)
- return id;
- if (!atom_hash)
- return NULL;
- id=g_strdup(name);
- g_hash_table_insert(atom_hash, id, id);
- return id;
+char *atom(char *name) {
+ char *id=atom_lookup(name);
+ if (id)
+ return id;
+ if (!atom_hash)
+ return NULL;
+ id=g_strdup(name);
+ g_hash_table_insert(atom_hash, id, id);
+ return id;
}
-void
-atom_init(void)
-{
- atom_hash=g_hash_table_new(g_str_hash, g_str_equal);
+void atom_init(void) {
+ atom_hash=g_hash_table_new(g_str_hash, g_str_equal);
}