Improved test.
[ocaml-bitstring.git] / cil-tools / ext3.c
1 /* This is an example import file, showing how to import the ext3
2  * superblock automatically from Linux header files.
3  *
4  * Use: bitmatch-import-c ext3.c > ext3.bmpp
5  *
6  * Tip: Add the --debug flag to that command line to see what's going on.
7  * Also use bitmatch-objinfo to examine the bmpp file.
8  */
9
10 /* These are required by Linux in order to get the little/big-endian
11  * notations present in the Linux kernel header files.  Any other
12  * defines needed can go here.
13  */
14 #define __CHECKER__      1
15 #define __CHECK_ENDIAN__ 1
16
17 /* Include files necessary to get the structure(s) and constant(s) we're
18  * interested in.
19  */
20 #include <linux/magic.h>
21 #include <linux/ext2_fs.h>
22
23 /* This tells the importer program what structures and constants to import. */
24 //typedef struct ext3_super_block BITMATCH_IMPORT(ext3_super_block);
25 typedef struct ext2_super_block BITMATCH_IMPORT(ext3_super_block);
26 BITMATCH_CONSTANT_INT32 (ext3_super_magic, EXT3_SUPER_MAGIC);