/* File bundle entry */
typedef struct filebundle_entry
{
- enum filebundle_type type;
- const char *name;
+ enum filebundle_type type;
+ const char *name;
+ struct filebundle_entry *next;
union {
struct {
size_t count;
ssize_t orig;
} f;
};
- struct filebundle_entry *next;
} filebundle_entry_t;
/* File bundle directory entry */
print >>outf, ' .type = FB_FILE,'
print >>outf, ' .name = "%s",' % name
print >>outf, ' .next = %s,' % n
- print >>outf, ' .f.size = %d,' % len(d)
- print >>outf, ' .f.orig = %d,' % o
- print >>outf, ' .f.data = filebundle_data_%06d,' % idx
+ print >>outf, ' {'
+ print >>outf, ' .f.size = %d,' % len(d)
+ print >>outf, ' .f.orig = %d,' % o
+ print >>outf, ' .f.data = filebundle_data_%06d' % idx
+ print >>outf, ' },'
print >>outf, '};'
print >>outf, ''
print >>outf, ' .type = FB_DIR,'
print >>outf, ' .name = "%s",' % name
print >>outf, ' .next = %s,' % n
- print >>outf, ' .d.count = %d,' % count
- print >>outf, ' .d.child = &filebundle_entry_%06d,' % child
+ print >>outf, ' {'
+ print >>outf, ' .d.count = %d,' % count
+ print >>outf, ' .d.child = &filebundle_entry_%06d' % child
+ print >>outf, ' },'
print >>outf, '};'
print >>outf, ''