summaryrefslogtreecommitdiffabout
path: root/src/text.c
Side-by-side diff
Diffstat (limited to 'src/text.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/text.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/text.c b/src/text.c
index 6b8b905..ecb694b 100644
--- a/src/text.c
+++ b/src/text.c
@@ -24,28 +24,28 @@ static struct grecs_symtab *text_table;
/* Lookup a text. If it does not exist, create it. */
char *
-grecs_install_text (const char *str)
+grecs_install_text(const char *str)
{
- struct grecs_syment key;
- struct grecs_syment *ent;
- int install = 1;
-
- if (!text_table)
- {
- text_table = grecs_symtab_create_default(sizeof(struct grecs_syment));
- if (!text_table)
- grecs_alloc_die ();
- }
+ struct grecs_syment key;
+ struct grecs_syment *ent;
+ int install = 1;
+
+ if (!text_table) {
+ text_table = grecs_symtab_create_default(
+ sizeof(struct grecs_syment));
+ if (!text_table)
+ grecs_alloc_die();
+ }
- key.name = (char*) str;
- ent = grecs_symtab_lookup_or_install (text_table, &key, &install);
- if (!ent)
- grecs_alloc_die ();
- return ent->name;
+ key.name = (char*) str;
+ ent = grecs_symtab_lookup_or_install(text_table, &key, &install);
+ if (!ent)
+ grecs_alloc_die();
+ return ent->name;
}
void
-grecs_destroy_text ()
+grecs_destroy_text()
{
- grecs_symtab_free (text_table);
+ grecs_symtab_free(text_table);
}

Return to:

Send suggestions and report system problems to the System administrator.