Advertisement
Guest User

Untitled

a guest
Sep 14th, 2012
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.84 KB | None | 0 0
  1. diff --git a/src/filebundle.h b/src/filebundle.h
  2. index d25ca83..0063234 100644
  3. --- a/src/filebundle.h
  4. +++ b/src/filebundle.h
  5. @@ -42,8 +42,9 @@ enum filebundle_type
  6.  /* File bundle entry */
  7.  typedef struct filebundle_entry
  8.  {
  9. -  enum filebundle_type type;
  10. -  const char          *name;
  11. +  enum filebundle_type     type;
  12. +  const char              *name;
  13. +  struct filebundle_entry *next;
  14.    union {
  15.      struct {
  16.        size_t count;
  17. @@ -55,7 +56,6 @@ typedef struct filebundle_entry
  18.        ssize_t orig;
  19.      } f;
  20.    };
  21. -  struct filebundle_entry *next;
  22.  } filebundle_entry_t;
  23.  
  24.  /* File bundle directory entry */
  25. diff --git a/support/mkbundle b/support/mkbundle
  26. index 6874100..9bc114d 100755
  27. --- a/support/mkbundle
  28. +++ b/support/mkbundle
  29. @@ -90,9 +90,11 @@ def output_file ( path, name, idx, next = -1 ):
  30.    print >>outf, '  .type    = FB_FILE,'
  31.    print >>outf, '  .name    = "%s",'  % name
  32.    print >>outf, '  .next    = %s,' % n
  33. -  print >>outf, '  .f.size  = %d,' % len(d)
  34. -  print >>outf, '  .f.orig  = %d,' % o
  35. -  print >>outf, '  .f.data  = filebundle_data_%06d,' % idx
  36. +  print >>outf, '  {'
  37. +  print >>outf, '    .f.size  = %d,' % len(d)
  38. +  print >>outf, '    .f.orig  = %d,' % o
  39. +  print >>outf, '    .f.data  = filebundle_data_%06d' % idx
  40. +  print >>outf, '  },'
  41.    print >>outf, '};'
  42.    print >>outf, ''
  43.  
  44. @@ -106,8 +108,10 @@ def output_dir ( path, name, idx, child, count, next = -1 ):
  45.    print >>outf, '  .type    = FB_DIR,'
  46.    print >>outf, '  .name    = "%s",'  % name
  47.    print >>outf, '  .next    = %s,' % n
  48. -  print >>outf, '  .d.count = %d,' % count
  49. -  print >>outf, '  .d.child = &filebundle_entry_%06d,' % child
  50. +  print >>outf, '  {'
  51. +  print >>outf, '    .d.count = %d,' % count
  52. +  print >>outf, '    .d.child = &filebundle_entry_%06d' % child
  53. +  print >>outf, '  },'
  54.    print >>outf, '};'
  55.    print >>outf, ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement