diff options
Diffstat (limited to 'src/builtin.c')
-rw-r--r-- | src/builtin.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/builtin.c b/src/builtin.c index 412a2e7..0a76738 100644 --- a/src/builtin.c +++ b/src/builtin.c @@ -151,3 +151,3 @@ struct builtin_data_storage { - struct obstack stk; + struct txtacc *acc; char **wp; @@ -166,3 +166,3 @@ builtin_lookup (struct dictionary *dict, void *handle, const char *req) size_t count = 0; - struct obstack stk; + struct txtacc *acc; int flags = 0; @@ -178,3 +178,3 @@ builtin_lookup (struct dictionary *dict, void *handle, const char *req) - obstack_init (&stk); + acc = txtacc_create (); @@ -200,3 +200,3 @@ builtin_lookup (struct dictionary *dict, void *handle, const char *req) char *val = dict->parmv[i + j]; - obstack_grow (&stk, val, strlen (val) + 1); + txtacc_grow (acc, val, strlen (val) + 1); } @@ -213,3 +213,3 @@ builtin_lookup (struct dictionary *dict, void *handle, const char *req) { - obstack_free (&stk, NULL); + txtacc_free (acc); bds = NULL; @@ -225,4 +225,4 @@ builtin_lookup (struct dictionary *dict, void *handle, const char *req) bds->wp = xcalloc (count, sizeof (bds->wp[0])); - bds->stk = stk; - p = obstack_finish (&stk); + bds->acc = acc; + p = txtacc_finish (acc); @@ -247,3 +247,3 @@ builtin_free_result (struct dictionary *dict, void *handle) struct builtin_data_storage *bds = dict->storage; - obstack_free (&bds->stk, NULL); + txtacc_free (bds->acc); free (bds->wp); |