diff options
| author | EuAndreh <eu@euandre.org> | 2023-04-22 16:05:09 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2023-04-22 16:06:05 -0300 |
| commit | 59396c99089ab67a748465f67c62280e50e791b4 (patch) | |
| tree | 54f2acd6c9e12100aaa645fb95a82808cf204935 /opt/resources | |
| parent | etc/sh/rc: Also exclude vendor/ from tree(1) by default (diff) | |
| download | dotfiles-59396c99089ab67a748465f67c62280e50e791b4.tar.gz dotfiles-59396c99089ab67a748465f67c62280e50e791b4.tar.xz | |
bin/uninclude: Add new utility, with simple tests
Diffstat (limited to 'opt/resources')
| -rw-r--r-- | opt/resources/can-remove-stdbool.c | 12 | ||||
| -rw-r--r-- | opt/resources/can-remove-stdbool.c.expected | 9 | ||||
| -rw-r--r-- | opt/resources/nothing-can-be-removed.c | 7 | ||||
| -rw-r--r-- | opt/resources/nothing-can-be-removed.c.expected | 7 |
4 files changed, 35 insertions, 0 deletions
diff --git a/opt/resources/can-remove-stdbool.c b/opt/resources/can-remove-stdbool.c new file mode 100644 index 0000000..98338de --- /dev/null +++ b/opt/resources/can-remove-stdbool.c @@ -0,0 +1,12 @@ +#include <stdbool.h> + +#include <stdio.h> +#include <stdbool.h> + +#include <stdio.h> + +int +main(void) { + printf("Nothing to be removed.\n"); + return 0; +} diff --git a/opt/resources/can-remove-stdbool.c.expected b/opt/resources/can-remove-stdbool.c.expected new file mode 100644 index 0000000..f3da0d3 --- /dev/null +++ b/opt/resources/can-remove-stdbool.c.expected @@ -0,0 +1,9 @@ + + +#include <stdio.h> + +int +main(void) { + printf("Nothing to be removed.\n"); + return 0; +} diff --git a/opt/resources/nothing-can-be-removed.c b/opt/resources/nothing-can-be-removed.c new file mode 100644 index 0000000..773852f --- /dev/null +++ b/opt/resources/nothing-can-be-removed.c @@ -0,0 +1,7 @@ +#include <stdio.h> + +int +main(void) { + printf("Nothing to be removed.\n"); + return 0; +} diff --git a/opt/resources/nothing-can-be-removed.c.expected b/opt/resources/nothing-can-be-removed.c.expected new file mode 100644 index 0000000..773852f --- /dev/null +++ b/opt/resources/nothing-can-be-removed.c.expected @@ -0,0 +1,7 @@ +#include <stdio.h> + +int +main(void) { + printf("Nothing to be removed.\n"); + return 0; +} |
