diff options
author | Petr Machata <pmachata@redhat.com> | 2012-11-19 23:29:42 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-11-19 23:29:42 +0100 |
commit | 3219c86c7fa6d5464fe4b14ce038002851d0d5cc (patch) | |
tree | 99db1798ce803a2becb4681f6e0e8f0a40ca2e71 /read_config_file.c | |
parent | 8c98e40178c74cf5a4e457ed96cf06c4b12add46 (diff) | |
download | ltrace-3219c86c7fa6d5464fe4b14ce038002851d0d5cc.tar.gz |
Allow typedefs of lenses
This worked for keywords such as enum that are handled specially, because
those behave as types for backward compatibility. It was however not
possible to typedef e.g. hex.
Diffstat (limited to 'read_config_file.c')
-rw-r--r-- | read_config_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/read_config_file.c b/read_config_file.c index 18fc156..58a4a14 100644 --- a/read_config_file.c +++ b/read_config_file.c @@ -445,7 +445,7 @@ parse_typedef(char **str) eat_spaces(str); struct typedef_node_t *this_td = new_typedef(name, NULL, 0); - this_td->info = parse_type(str, NULL, 0, &this_td->own_type, this_td); + this_td->info = parse_lens(str, NULL, 0, &this_td->own_type, this_td); if (this_td->info == NULL) { free(this_td); |