Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions scripts/gen-uuid-reg.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def emit_uuid_rec(uu, sym):
uuidinit = "{ " + ", ".join(wrecs) + ", { " + ", ".join(byts) + " } }"
out_recs.append(f"#define _UUIDREG_{sym} {uuidinit}")

uuidstr = uu[:23] + '-' + uu[23:]
out_recs.append(f'#define UUIDREG_STR_{sym.upper()} "{uuidstr}"')
Comment thread
softwarecki marked this conversation as resolved.

def main():
with open(sys.argv[1]) as f:
for line in f.readlines():
Expand Down