From 938399ba5870dde9f78e8edf7586986ad4de9736 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 27 Sep 2018 17:25:47 +0300 Subject: compiler: make endianess a filter endianess is just a bunch of bitflips anyways syntax for this is harmful as sometimes the files describe endianess itself thus filter is more flexible. Also, make it possible to filter non variable declarations as well. --- spec/flac.fspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/flac.fspec') diff --git a/spec/flac.fspec b/spec/flac.fspec index 9acd9dc..b4f0dab 100644 --- a/spec/flac.fspec +++ b/spec/flac.fspec @@ -61,7 +61,7 @@ struct flac { u32 user_comment_list_length; struct utf8_string user_comment[user_comment_list_length]; u1 framing_bit | matches(true); - } vorbis_comment le; + } vorbis_comment | endianess('le'); CUESHEET) struct { u8 catalog[128] | encoding('ascii') str; @@ -169,4 +169,4 @@ struct flac { } subframe; u16 crc_16 hex; } frame[until (false)]; -} be; +} | endianess('be'); -- cgit v1.2.3-70-g09d2