libxkbcommon/test
Ran Benita 40f109af56 ast-build: make sure InterpDef is freeable
With the following two rules:

    InterpretDecl   :       INTERPRET InterpretMatch OBRACE
                                VarDeclList
                            CBRACE SEMI
                            { $2->def = $4; $$ = $2; }
                    ;

    InterpretMatch  :       KeySym PLUS Expr
                            { $$ = InterpCreate($1, $3); }
                    |       KeySym
                            { $$ = InterpCreate($1, NULL); }
                    ;

And the fact that InterpCreate doesn't initialize ->def, if the
VarDeclList fails, the %destructor tries to recursively free the
uninitialized ->def VarDef. So always initialize it.

That was the only problematic code in the parser for %destructor (I'm
pretty sure).

Signed-off-by: Ran Benita <ran234@gmail.com>
2014-07-27 14:32:18 +03:00
..
data ast-build: make sure InterpDef is freeable 2014-07-27 14:32:18 +03:00
.gitignore Add utf8.{c,h} for common UTF-8 util functions 2014-03-22 02:10:28 +02:00
atom.c Fix sign-compare warnings 2014-02-08 00:54:53 +02:00
bench-key-proc.c test: Add flags argument to test_get_context() 2013-03-19 10:28:23 +00:00
buffercomp.c keymap: add xkb_keymap_new_from_buffer() 2013-04-01 18:04:06 +01:00
common.c state: fix consumed modifier calculation 2014-03-27 19:38:30 +02:00
context.c atom: really work with non-NUL-terminated strings 2013-07-22 11:02:20 +03:00
filecomp.c ast-build: make sure InterpDef is freeable 2014-07-27 14:32:18 +03:00
interactive-evdev.c Remove unnecessary !!(expressions) 2014-06-01 15:24:10 +03:00
interactive-x11.c interactive-x11: beef up select_events a bit 2014-02-28 15:30:49 +02:00
keyseq.c test/keyseq: add de(neo) Level{6,7,8} tests 2013-07-25 13:21:33 +03:00
keysym.c keysym: add xkb_keysym_to_{lower,upper} 2013-08-15 09:58:50 +03:00
log.c test: Use test_get_context() in log.c 2013-03-19 10:34:28 +00:00
print-compiled-keymap.c test: Add flags argument to test_get_context() 2013-03-19 10:28:23 +00:00
rmlvo-to-kccgst.c test/rmlvo-to-kccgst: use default RMLVO values in translation 2014-02-10 13:15:58 +02:00
rules-file.c test: Add flags argument to test_get_context() 2013-03-19 10:28:23 +00:00
rulescomp.c rulescomp: increase BENCHMARK_ITERATIONS from 1000 to 2500 2013-10-10 22:02:30 +03:00
state.c state: fix consumed modifier calculation 2014-03-27 19:38:30 +02:00
stringcomp.c xkbcomp: escape the section names before storing them in the keymap 2013-07-18 14:50:21 +03:00
test.h x11: add a couple of tests 2014-02-02 11:16:40 +02:00
utf8.c Add utf8.{c,h} for common UTF-8 util functions 2014-03-22 02:10:28 +02:00
x11.c api: deprecate XKB_MAP_COMPILE_PLACEHOLDER, and use KEYMAP instead of MAP 2014-02-08 16:40:20 +02:00