4 ms·
The source code looks a little extreme... Is it auto-generated? https://github.com/ruanhuabin/pbzip2/blob/master/pbzip2.cpp#L3367 https://github.com/ruanhuabin
by Yajirobe 6y ago
The source code looks a little extreme... Is it auto-generated?
https://github.com/ruanhuabin/pbzip2/blob/master/pbzip2.cpp#L3367 https://github.com/ruanhuabin/pbzip2/blob/master/pbzip2.cpp#...
- simcop2387 6y agoI doubt it, it does look uglier than modern C but it looks like it's written to work in ANSI-C/C89 entirely without any language extensions since then. That's going to shape things quite a bit (in particular the dense bit of variable declarations at the top of every function) simply because a lot of the things like being able to declare variables later on in the source code just wasn't a thing in that version of the language.
- trav4225 6y agoSeems pretty standard to me. (Although I also typically only write C in C89, so modern C might be a lot prettier.)