aboutsummaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-01 21:13:32 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-03 21:23:16 +0300
commit24ec67c9f6375d34d88e79981ed8abbe15a78169 (patch)
tree6e68b1b409b10b48581422df05cfac9caedb0af2 /src/text.c
parentda56e338d346e358de864d18ca42f574305d8dfc (diff)
downloadgrecs-24ec67c9f6375d34d88e79981ed8abbe15a78169.tar.gz
grecs-24ec67c9f6375d34d88e79981ed8abbe15a78169.tar.bz2
Reindent all, except wordsplit, which is shared with MU.
Diffstat (limited to 'src/text.c')
-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.