X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=cil-tools%2Fext3.c;h=c2267e475d8c84ec132593ecdf5c54c840ca4eb5;hb=64bcd448dc8787b82828a49edb709436ec2de93d;hp=89ca20d807b7ba84efdc3f7f4ef2d958b0a212cd;hpb=c4206b0394401252481d028c25b0b877edce2128;p=ocaml-bitstring.git diff --git a/cil-tools/ext3.c b/cil-tools/ext3.c index 89ca20d..c2267e4 100644 --- a/cil-tools/ext3.c +++ b/cil-tools/ext3.c @@ -1,9 +1,10 @@ /* This is an example import file, showing how to import the ext3 * superblock automatically from Linux header files. * - * Use: bitmatch-import-c ext3.c > ext3_stubs.ml + * Use: bitstring-import-c ext3.c > ext3.bmpp * * Tip: Add the --debug flag to that command line to see what's going on. + * Also use bitstring-objinfo to examine the bmpp file. */ /* These are required by Linux in order to get the little/big-endian @@ -17,8 +18,9 @@ * interested in. */ #include -#include +#include /* This tells the importer program what structures and constants to import. */ -typedef struct ext3_super_block BITMATCH_IMPORT(ext3_super_block); -BITMATCH_CONSTANT_INT32 (ext3_super_magic, EXT3_SUPER_MAGIC); +//typedef struct ext3_super_block BITSTRING_IMPORT(ext3_super_block); +typedef struct ext2_super_block BITSTRING_IMPORT(ext3_super_block); +BITSTRING_CONSTANT_INT32 (ext3_super_magic, EXT3_SUPER_MAGIC);