Commit Graph

  • 7103aaba61 Return index in lookup too Alexander Larsson 2020-01-15 14:52:07 +01:00
  • 05c838a28b structs: Verify bounds Alexander Larsson 2020-01-15 14:27:02 +01:00
  • ee8b6a92fb Add boundary checks to maybes Alexander Larsson 2020-01-15 13:35:07 +01:00
  • 7f4e572cd1 Check boundaries for dict elements Alexander Larsson 2020-01-15 13:20:34 +01:00
  • 867aa3b902 Validate array length and element positions Alexander Larsson 2020-01-15 12:13:23 +01:00
  • 45db667c3b Remove newlines at end of generated file Alexander Larsson 2020-01-15 11:52:30 +01:00
  • 9aed7c4909 Verify fixed size types are correct when creating from data Alexander Larsson 2020-01-15 11:50:11 +01:00
  • 4592372d3e Strip initial newlines in genC() Alexander Larsson 2020-01-15 11:40:28 +01:00
  • dad69d7570 Verify type string in variant get_child() Alexander Larsson 2020-01-15 11:23:58 +01:00
  • d46483f578 Sandbox: Allow share-gpu also if caller has device=all Alexander Larsson 2019-12-27 11:29:31 +01:00
  • aa97d1da8c flatpak.pc: Move ostree-1 from Requires.private to Requires Philip Withnall 2020-01-07 13:14:41 +00:00
  • 2e293c978a Update danish translation scootergrisen 2020-01-09 22:56:34 +01:00
  • 25d33adcec Update danish translation scootergrisen 2020-01-09 22:41:00 +01:00
  • fb079b16b7 Add performance test Alexander Larsson 2020-01-14 13:24:27 +01:00
  • 626d814e15 Better errors for unknown types Alexander Larsson 2020-01-14 12:43:14 +01:00
  • ad874c0ff4 Minor cleanup of generated code Alexander Larsson 2020-01-14 12:04:16 +01:00
  • 1fe7cc9c23 dict: Add binary searching lookup() for sorted keys Alexander Larsson 2020-01-14 11:54:07 +01:00
  • d9c460d70e sample: Test some more corner cases in sorted metadata lookup Alexander Larsson 2020-01-14 11:53:43 +01:00
  • 6f9a7231dd sample: Test autogenerated typenames too Alexander Larsson 2020-01-14 11:37:59 +01:00
  • 0524d64088 sample: Test sorted dict lookups as well as non-sorted Alexander Larsson 2020-01-14 11:35:45 +01:00
  • 297be235f8 Dict: Add sorted attribute Alexander Larsson 2020-01-14 11:35:21 +01:00
  • d0a5901fb2 dicts: Specialize the dict lookup() functions Alexander Larsson 2020-01-14 10:33:00 +01:00
  • 057c7bb370 Fix sample test by enabling deep formating Alexander Larsson 2020-01-14 09:55:22 +01:00
  • 599bbc96f0 Use unique types instead of typedefs to get type safety Alexander Larsson 2020-01-13 16:38:13 +01:00
  • 2f9a961fce Create README.md Alexander Larsson 2020-01-13 16:28:58 +01:00
  • 9e6ac054d9 Renambe to variant-schema-compiler Alexander Larsson 2020-01-13 15:44:23 +01:00
  • 8dac5ebb4b ostree-test also handle dirtree and summary Alexander Larsson 2020-01-13 15:35:23 +01:00
  • b8959d4ff6 Add gitignore Alexander Larsson 2020-01-13 14:45:53 +01:00
  • 1cb3b48a94 Add ostree testing code Alexander Larsson 2020-01-13 14:45:00 +01:00
  • 547b69b665 Default to shallow print Alexander Larsson 2020-01-13 14:43:35 +01:00
  • 353f14d34f Handle empty non-fixed-element array lengths Alexander Larsson 2020-01-13 14:43:14 +01:00
  • e2fe9c0805 Add _from_bytes and _from_data for types Alexander Larsson 2020-01-13 14:42:46 +01:00
  • 0651cb2717 clean up ostree sample Alexander Larsson 2020-01-13 14:20:59 +01:00
  • 693178f67e Fix output coding style Alexander Larsson 2020-01-13 14:20:41 +01:00
  • 347deb4e82 Fix up generated indentation Alexander Larsson 2020-01-13 14:03:34 +01:00
  • 87904050a3 Support endian attributes Alexander Larsson 2020-01-13 13:55:22 +01:00
  • 8b2c465f02 Add peek_as_variant and ref_to_variant for all types Alexander Larsson 2020-01-13 13:27:26 +01:00
  • 646a5296e7 Generate peeking struct accessors for fixed and arrays of fixed Alexander Larsson 2020-01-13 13:21:13 +01:00
  • 2b4a342287 as_variant, not as_gvariant Alexander Larsson 2020-01-13 12:49:00 +01:00
  • 5635fb83a8 Generate fixed structs Alexander Larsson 2020-01-13 12:47:32 +01:00
  • 3a5cb153fb update TODO Alexander Larsson 2020-01-13 12:09:01 +01:00
  • c376930900 Generate entry typedef with other types Alexander Larsson 2020-01-13 12:08:02 +01:00
  • b0a0cfdf9e Use snake_case_ and SNAKE_CASE_ for functions/macros Alexander Larsson 2020-01-13 12:01:43 +01:00
  • 5443c60918 Rename formating keys to make things clearer Alexander Larsson 2020-01-13 11:35:22 +01:00
  • 612a56cc58 Allow multi-element prefix Alexander Larsson 2020-01-13 11:21:36 +01:00
  • dc8427ee51 Use CamelCase for auto-generated field typenames Alexander Larsson 2020-01-13 11:13:29 +01:00
  • e8d8965602 Rename PrefixFoo => PrefixFooRef Alexander Larsson 2020-01-13 11:07:04 +01:00
  • c9235f37c1 Rename VariantRef to Ref Alexander Larsson 2020-01-13 10:27:20 +01:00
  • 6b1a45ccab Fix dict length calculation Alexander Larsson 2020-01-13 10:25:24 +01:00
  • c4356f2793 Update TODO Alexander Larsson 2020-01-13 10:12:56 +01:00
  • 0c45ba386e Add --outfile option Alexander Larsson 2020-01-13 10:05:45 +01:00
  • d9bad51f44 All prints via one function Alexander Larsson 2020-01-13 10:02:23 +01:00
  • 269f6347d6 More output cleanup Alexander Larsson 2020-01-13 09:44:16 +01:00
  • 5263dd6707 More code output cleanup Alexander Larsson 2020-01-13 09:27:19 +01:00
  • c6176d2361 Add parent struct and index to Field Alexander Larsson 2020-01-13 09:26:56 +01:00
  • ad5de84fdb Centralize and standardize code output Alexander Larsson 2020-01-10 20:19:30 +01:00
  • 9ccc1c7fc7 Add TODO file Alexander Larsson 2020-01-10 16:33:52 +01:00
  • d966b53d55 Better typenames for arrays and maybes of types with known names Alexander Larsson 2020-01-10 16:29:45 +01:00
  • a2373cd0c8 More changes to generated names Alexander Larsson 2020-01-10 16:19:23 +01:00
  • e9a0391f8d more variant_chunk => variant_ref Alexander Larsson 2020-01-10 16:10:35 +01:00
  • e0727256cc Foovariant => FooVariant Alexander Larsson 2020-01-10 16:10:02 +01:00
  • aa03d5be68 New array/maybe basic default names Alexander Larsson 2020-01-10 16:06:14 +01:00
  • 6db8a90c47 VariantChunk => VariantRef Alexander Larsson 2020-01-10 16:00:31 +01:00
  • ecd51e54af sample: Use prefix Alexander Larsson 2020-01-10 15:58:34 +01:00
  • a7fb7296c2 Support prefixes Alexander Larsson 2020-01-10 15:57:47 +01:00
  • fe28401d8c Return the GString from xxx_format() Alexander Larsson 2020-01-10 15:15:22 +01:00
  • b518097344 sample: Test more types Alexander Larsson 2020-01-10 14:59:22 +01:00
  • 483daa479c Fix formating of doubles Alexander Larsson 2020-01-10 14:59:07 +01:00
  • 955954c5f2 Fix quotes used when formating objectpath and signature Alexander Larsson 2020-01-10 14:58:51 +01:00
  • bcd16e5d24 sample: Actually test both variants Alexander Larsson 2020-01-10 14:52:47 +01:00
  • 5059c6b6be Fix missing backslash in objectpath format string Alexander Larsson 2020-01-10 14:44:42 +01:00
  • 02fc4bee84 parse: Return failure on parse error Alexander Larsson 2020-01-10 14:44:22 +01:00
  • d789b03c2a Add tests for the named types Alexander Larsson 2020-01-10 14:22:51 +01:00
  • 1eb742b986 Support nameable types Alexander Larsson 2020-01-10 14:20:22 +01:00
  • f3c3ba6403 Fix stray = in generated code Alexander Larsson 2020-01-10 13:26:27 +01:00
  • ca9d5124b7 fixed type annotation formating Alexander Larsson 2020-01-10 13:25:03 +01:00
  • 12845735f5 Add more testing to sample.c Alexander Larsson 2020-01-10 13:23:39 +01:00
  • 4f6aa0d314 Struct: Add indexof for all fields Alexander Larsson 2020-01-10 13:23:25 +01:00
  • 7fcb6fbd14 Arrays: Only ever type annotate first element Alexander Larsson 2020-01-10 13:01:11 +01:00
  • 39645ef942 Fix dict get_value for variable size keys Alexander Larsson 2020-01-10 13:00:12 +01:00
  • 945c378f3d Build sample with debug info Alexander Larsson 2020-01-10 12:59:48 +01:00
  • 50ab5da707 Add a sample with some tests Alexander Larsson 2020-01-10 11:53:15 +01:00
  • 3fd42f99d0 Generate dict lookup function Alexander Larsson 2020-01-10 11:47:18 +01:00
  • b4a51195a7 Update variant formating and helpers Alexander Larsson 2020-01-10 11:46:56 +01:00
  • 0774faadb6 Fix array/dicts with non-fixed elements Alexander Larsson 2020-01-10 10:09:12 +01:00
  • 3a40eb426b Fix function definition coding style in output Alexander Larsson 2020-01-10 10:02:11 +01:00
  • 16828b91e6 Add generate_print() helper Alexander Larsson 2020-01-10 10:01:49 +01:00
  • 268d255c40 Use compound literals when returning structs Alexander Larsson 2020-01-10 09:47:53 +01:00
  • 49ea1821e9 Add macros for frame table access Alexander Larsson 2020-01-10 09:41:34 +01:00
  • 39a8c17d65 Centralize all typedef generation Alexander Larsson 2020-01-10 08:54:54 +01:00
  • 417f5bf35a Initial dict support Alexander Larsson 2020-01-10 08:26:02 +01:00
  • 1b8b3c22fc Support arrays Alexander Larsson 2020-01-09 17:36:18 +01:00
  • 440759b2eb Fixup table_i == -1 handling Alexander Larsson 2020-01-09 16:28:25 +01:00
  • feef19662a Add variant support Alexander Larsson 2020-01-09 16:22:09 +01:00
  • 53d0cfb253 Fix frame_offset_size Alexander Larsson 2020-01-09 16:21:47 +01:00
  • 77a341fd34 Merge pull request #3349 from frandieguez/master Matthias Clasen 2020-01-09 09:46:22 -05:00
  • 11fe1b813c Merge pull request #3358 from yurchor/master Matthias Clasen 2020-01-09 09:46:05 -05:00
  • 6b7305004d Support maybe variants Alexander Larsson 2020-01-09 14:50:12 +01:00
  • 50fa0b1673 Ukrainian translation update Yuri Chornoivan 2020-01-09 14:28:53 +02:00
  • 20c55b4cda Properly calculate struct alignment/offsets Alexander Larsson 2020-01-09 13:18:11 +01:00