[cdiff] Simplify pattern matching
commitb5fc48a7896db9371b7600e2780f3df8cbc9eecc
authorMichal Nazarewicz <mina86@mina86.com>
Fri, 10 Aug 2018 23:35:28 +0000 (11 00:35 +0100)
committerMichal Nazarewicz <mina86@mina86.com>
Fri, 10 Aug 2018 23:35:28 +0000 (11 00:35 +0100)
tree940e175af176897aac4476c24bed315c1e670e26
parenta011ff4ea2518f533b3ac5bccfcb126b3d8f1167
[cdiff] Simplify pattern matching

Remove character groups and instead use ‘0’ as meta-character matching
all digits and rearrange paterns to accomodate other uses of groups.

While at it, use bool and designated initializers – C99 can now vote,
so no reason not to use it.
cdiff.c