%option prefix="perf_pmu_" %{ #include #include #include "pmu.h" #include "pmu-bison.h" static int value(int base) { long num; errno = 0; num = strtoul(perf_pmu_text, NULL, base); if (errno) return PP_ERROR; perf_pmu_lval.num = num; return PP_VALUE; } %} num_dec [0-9]+ %% {num_dec} { return value(10); } config { return PP_CONFIG; } config1 { return PP_CONFIG1; } config2 { return PP_CONFIG2; } - { return '-'; } : { return ':'; } , { return ','; } . { ; } \n { ; } %% int perf_pmu_wrap(void) { return 1; } t repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-12-11 11:17:54 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-11 11:17:54 -0800
commit69973b830859bc6529a7a0468ba0d80ee5117826 (patch)
tree5f11fe15ed9d9a3ab9c92242030e54b73ecdce45 /sound/usb/format.h
parent2e4333c14de06a333783d6812cf3c4998f78b0c8 (diff)
Linux 4.9
Diffstat (limited to 'sound/usb/format.h')