Changeset b3105ff6 in mainline for tools/mktmpfs.py


Ignore:
Timestamp:
2008-08-09T20:16:47Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
838e14e2
Parents:
8c25a4a
Message:

support comments in structures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/mktmpfs.py

    r8c25a4a rb3105ff6  
    3636import xstruct
    3737
    38 HEADER = xstruct.convert("little: char[5]")
    39 DENTRY = xstruct.convert("little: uint8_t uint32_t")
    40 SIZE = xstruct.convert("little: uint32_t")
     38HEADER = xstruct.convert("little: "
     39        "char[5]  /* 'TMPFS' */ "
     40)
     41
     42DENTRY = xstruct.convert("little: "
     43        "uint8_t   /* NONE, FILE or DIRECTORY */ "
     44        "uint32_t  /* filename length */ "
     45)
     46
     47SIZE = xstruct.convert("little: "
     48        "uint32_t  /* file size */ "
     49)
    4150
    4251DENTRY_NONE = 0
Note: See TracChangeset for help on using the changeset viewer.