diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-07-18 18:34:54 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-07-18 18:34:54 +0300 |
commit | f6657a46e2422d903d62565868f77c430a612a42 (patch) | |
tree | b70b4f45003e067de55a8ac425792c98fd06035d /src/wydawca.h | |
parent | 3a16bc5620b4c664248bc5b5c586ddd0103f7050 (diff) | |
download | wydawca-f6657a46e2422d903d62565868f77c430a612a42.tar.gz wydawca-f6657a46e2422d903d62565868f77c430a612a42.tar.bz2 |
Fix unnecessary code duplication
Use grecs_txtacc.
Diffstat (limited to 'src/wydawca.h')
-rw-r--r-- | src/wydawca.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/wydawca.h b/src/wydawca.h index 0239093..b448904 100644 --- a/src/wydawca.h +++ b/src/wydawca.h @@ -165,7 +165,7 @@ struct wy_triplet { here */ char *tmp; /* Temporary storage */ size_t tmpsize; /* Size of memory allocated in tmp */ - struct txtacc *acc; /* Text accumulator for string allocation */ + struct grecs_txtacc *acc; /* Text accumulator for string allocation */ /* Triplets are joined in two doubly-linked lists: 1) a cronological list, with prev pointing to a triplet older than this one, and next pointing to a triplet newer than it: */ @@ -574,17 +574,6 @@ int push_dir(const char *dirname); int pop_dir(void); char *getcwd_alloc(void); -struct txtacc *txtacc_create(void); -void txtacc_free(struct txtacc *acc); -void txtacc_free_string(struct txtacc *acc, char *str); -void txtacc_grow(struct txtacc *acc, const char *buf, size_t size); -#define txtacc_1grow(acc, c) do { \ - char __ch = c; \ - txtacc_grow (acc, &__ch, 1); \ - } while (0) - -char *txtacc_finish(struct txtacc *acc, int steal); - #ifdef WITH_INOTIFY int watcher_init(void); int watcher_run(int); |