/usr/share/doc/pretzel/examples/cee/complex-example.c is in pretzel 2.0n-2-0.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | /* complex example of prettyprinted C code (extract from t1nodes.w) */
mlp = NULL; /* init match list pointer */
mp = mlp;
hp = rp->right; /* point |hp| to beginning of round list */
while (hp != NULL) {
if (hp->type == matches) {
if (mp == NULL) { /* take this node as hew head */
mp = new_node(); check_node(mp);
mp->type = matches;
mp->right = hp->right;
mp->left = NULL; /* terminate list */
mlp = mp;
} else { /* add this one to the back */
mp->left = new_node(); check_node(mp->left);
mp = mp->left;
mp->type = matches;
mp->right = hp->right;
mp->left = NULL; /* terminate list */
}
}
hp = hp->left; /* look at next item of the list */
}
|