Commit graph

250 commits

Author SHA1 Message Date
David Tolnay
0a488e3b4b
Resolve unused_mut lints 2022-07-06 19:05:43 -07:00
David Tolnay
ae901c9bce
Resolve unreachable_code lint 2022-07-06 19:03:44 -07:00
David Tolnay
90a8a9231a
Unallow lints which are no longer triggered 2022-07-06 19:02:43 -07:00
David Tolnay
f4864a57f7
Convert __assert_fail to __assert 2022-07-06 19:01:09 -07:00
David Tolnay
ffd9f2ab1d
Remove file and line from assert_fail calls 2022-07-06 18:38:21 -07:00
David Tolnay
18d7210166
Convert __assert_fail to macro 2022-07-06 18:29:43 -07:00
David Tolnay
5110ab43d9
Fix UB on out of bounds pointer offset 2022-07-06 18:21:03 -07:00
David Tolnay
6cccf5d91f
Fix UB on offset_from on deallocated pointers 2022-07-06 18:08:50 -07:00
David Tolnay
5cf27a24f6
Replace fopen/fgets/fclose with std::fs 2022-07-06 17:34:45 -07:00
David Tolnay
7759d75c3b
Reimplement a basic strchr to replace extern 2022-07-06 16:40:29 -07:00
David Tolnay
07dab93581
Replace printf with Rust standard write 2022-07-06 16:40:29 -07:00
David Tolnay
5d8cb6a469
Replace fprintf with Rust standard write 2022-07-06 16:40:29 -07:00
David Tolnay
d0342cd486
Factor out common part of parse error print 2022-07-06 16:10:55 -07:00
David Tolnay
466afb66ad
Rust standard abort 2022-07-06 16:01:34 -07:00
David Tolnay
1e0b7fafb3
Use MaybeUninit for uninitialized structs in bins 2022-07-06 15:58:25 -07:00
David Tolnay
2468c99634
Change '0 as ptr' to ptr::null in bins 2022-07-06 15:51:46 -07:00
David Tolnay
c57a6757e6
Format with rustfmt 1.5.1 2022-07-06 15:45:09 -07:00
David Tolnay
832ce9eecc
Use imports instead of extern declaration 2022-07-03 21:24:22 -07:00
David Tolnay
025ca4a078
Replace C standard library functions with rust 2022-07-03 21:24:21 -07:00
David Tolnay
64531de7a9
Replace sprintf with rust fmt 2022-07-03 21:24:21 -07:00
David Tolnay
f0110f61b4
Remove I/O support from lib 2022-07-03 21:24:21 -07:00
David Tolnay
43b507a405
Convert test bins to rust std I/O 2022-07-03 20:41:04 -07:00
David Tolnay
41a587f8a3
Inline argument processing into translated main 2022-07-03 20:41:04 -07:00
David Tolnay
74adb8c5e0
Delete unneeded flag parsing from test bins 2022-07-03 20:41:04 -07:00
David Tolnay
256b6db012
Move all commonality from yaml.h and yaml_private.h to module 2022-07-03 20:41:03 -07:00
David Tolnay
ea5a88ba44
Automatically name unnamed types 2022-07-03 15:24:03 -07:00
David Tolnay
f5e99520bf
Delete unneeded bins 2022-07-03 14:37:20 -07:00
David Tolnay
250a60ffec
Replace __assert_fail 2022-07-03 14:17:39 -07:00
David Tolnay
47958607e0
Sort macro-generated tests 2022-07-03 13:54:32 -07:00
David Tolnay
56e2024c8e
Hyphen in bin names like in upstream libyaml 2022-07-03 13:43:46 -07:00
David Tolnay
1e8cabe9d3
Move libyaml test bins out of tests dir 2022-07-03 13:40:24 -07:00
David Tolnay
0d545fea4b
Wire up yaml-test-suite 2022-07-03 13:37:06 -07:00
David Tolnay
aebf6a7924
C2RustUnnamed -> Unnamed 2022-07-03 09:19:20 -07:00
David Tolnay
488bc751a7
Make libyaml tests run without rust test harness 2022-07-03 08:54:25 -07:00
David Tolnay
0c5a4d7cf4
Move run_*.rs to bin 2022-07-03 08:49:16 -07:00
David Tolnay
442da50871
Move example_*.rs to examples 2022-07-03 08:48:34 -07:00
David Tolnay
ee195857e2
Exclude generated code from rustfmt 2022-07-03 08:43:55 -07:00
David Tolnay
eca6015d0b
Drop libc dependency 2022-07-03 08:33:54 -07:00
David Tolnay
1b65c140cf
Touch up generated Cargo.toml 2022-07-03 08:30:08 -07:00
David Tolnay
f0650a8f8b
Test suite attributes 2022-07-03 08:27:59 -07:00
David Tolnay
aab056d6fb
Suppress all currently triggered lints in source 2022-07-03 08:23:22 -07:00
David Tolnay
c72e7ff3bc
Remove unused label_break_value feature 2022-07-03 08:23:22 -07:00
David Tolnay
928f57a55b
Move generated lib.rs into src dir 2022-07-03 08:23:21 -07:00
David Tolnay
8b2643c35e
Remove extern crate unnecessary in 2018 edition 2022-07-03 08:23:20 -07:00
David Tolnay
68e80f6ace
Remove register_tool from generated lib.rs 2022-07-03 08:23:20 -07:00
David Tolnay
64dc37e646
Move sources out of doubly nested src dir 2022-07-03 08:23:19 -07:00
David Tolnay
51652a386b
Move tests out of src dir 2022-07-03 08:23:06 -07:00
David Tolnay
afdfd608df
c2rust 0.16.0 libyaml 0.2.5
Generated by:

    c2rust transpile --emit-build-files --fail-on-error --output-dir . ../libyaml/compile_commands.json

Compile commands generated by bear 3.0.18:

    ./bootstrap
    ./configure
    bear -- make
2022-07-03 08:21:50 -07:00
David Tolnay
7135bc16f3
Add gitignore in preparation for c2rust generated code 2022-07-03 07:59:59 -07:00
David Tolnay
390b04967f
MIT license 2022-07-03 07:58:18 -07:00