alsa-lib/test/lsb
Jaroslav Kysela bf528b9066 conf: add possibility to evaluate simple integer math expressions
It is useful to use the math expressions for the values in configuration.
This patch adds a simple expression evaluation routines (integer only).
The syntax is simplified unix shell (bash) style.

Examples:

	$[1 + 1]
	$[$[2 + 2] / $var1]
	$[0xa0 | 0x05]

As a bonus, the variable substitutions were more abstracted.
The function snd_config_expand_custom() was introduced to be used
for example in the topology pre-precessor.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-11-30 11:33:35 +01:00
..
config.c conf: add possibility to evaluate simple integer math expressions 2021-11-30 11:33:35 +01:00
Makefile.am add config tests 2009-08-03 13:35:01 +02:00
midi_event.c test/lsb/midi_event.c: check for buffer size check 2009-07-08 08:50:54 +02:00
test.h add midi event tests 2009-07-06 12:00:04 +02:00