first draft of the new allocator with transactions support

This commit is contained in:
Krasimir Angelov committed 2022-05-20 13:55:45 +02:00
1 parent 546dc01b5d
commit 5594679a83
24 files changed
+1582 -2372

No files matched your search

+4 -6
View File
@@ -2,14 +2,11 @@
#define PHRASETABLE_H
struct PgfSequence;
struct PgfSequenceBackrefs;
struct PgfSequenceBackref;
struct PGF_INTERNAL_DECL PgfPhrasetableEntry {
ref<PgfSequence> seq;
ref<PgfSequenceBackrefs> backrefs;
void add_ref();
void release_ref();
ref<Vector<PgfSequenceBackref>> backrefs;
};
class PgfSequenceItor;
@@ -52,9 +49,10 @@ private:
PGF_INTERNAL_DECL
PgfPhrasetable phrasetable_internalize(PgfPhrasetable table,
ref<PgfSequence> seq,
object container,
size_t seq_index,
ref<PgfSequence> *seq);
ref<PgfPhrasetableEntry> *pentry);
PGF_INTERNAL_DECL
ref<PgfSequence> phrasetable_relink(PgfPhrasetable table,