diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-05-13 06:27:44 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-05-13 06:27:44 +0000 |
commit | 1638ed6202b77b521214128189dc4aacdb5fe098 (patch) | |
tree | 2e82fd4a16bef6f4d29bf11b4b4b62e7fa9de28f /src/var.c | |
parent | 4785154fda6411a384a4ead5abb18c22bb77a8f0 (diff) | |
download | gdbm-1638ed6202b77b521214128189dc4aacdb5fe098.tar.gz gdbm-1638ed6202b77b521214128189dc4aacdb5fe098.tar.bz2 |
Handle structured key and content data in gdbmtool.
* src/datconv.c: New file.
* src/Makefile.am (gdbmtool_SOURCES): Add datconv.c.
* src/gdbmtool.h (slist, kvpair): New structures.
(gdbmarg): Keep various types of data depending on the
value of the type member.
(slist_new, slist_free)
(kvpair_string, kvpair_list): New protos.
(gdbmarg_new): Remove.
(gdbmarg_string, gdbmarg_datum)
(gdbmarg_kvpair, gdbmarg_free)
(gdbmarg_destroy): New protos.
(xd_expand, xd_store, datadef_locate): New protos.
(field, dsegm): New structs.
(dsegm_new, dsegm_new_field, dsegm_free_list): New protos.
* src/gdbmtool.c: Rewrite.
* src/gram.y: Change grammar to allow for defining key and
content structure and for supplying structured data as arguments
to fetch, store and similar functions.
* src/lex.l: Handle new token types.
* tests/dtload.c (main): Fix parser.
* tests/gtload.c: Likewise.
Diffstat (limited to 'src/var.c')
0 files changed, 0 insertions, 0 deletions