diff options
Diffstat (limited to 'box-templates')
-rw-r--r-- | box-templates/box_1-23.c | 11 | ||||
-rw-r--r-- | box-templates/box_1.c | 4 | ||||
-rw-r--r-- | box-templates/box_2.c (renamed from box-templates/box_45-49.c) | 2 | ||||
-rw-r--r-- | box-templates/box_3.c (renamed from box-templates/box_70-73.c) | 5 | ||||
-rw-r--r-- | box-templates/box_4.c (renamed from box-templates/box_94-96.c) | 2 |
5 files changed, 7 insertions, 17 deletions
diff --git a/box-templates/box_1-23.c b/box-templates/box_1-23.c deleted file mode 100644 index 0331ed6..0000000 --- a/box-templates/box_1-23.c +++ /dev/null @@ -1,11 +0,0 @@ -/* SPDX-License-Identifier: GPL-3.0-or-later */ -/* - * Copyright (C) 2022, 2023 Ferass El Hafidi <vitali64pmemail@protonmail.com> - */ -/* START */ - -#include <string.h> -#include <unistd.h> -#include <libgen.h> -#include <stdio.h> -/* END */ diff --git a/box-templates/box_1.c b/box-templates/box_1.c new file mode 100644 index 0000000..bf3b4ed --- /dev/null +++ b/box-templates/box_1.c @@ -0,0 +1,4 @@ +#include <string.h> +#include <unistd.h> +#include <libgen.h> +#include <stdio.h> diff --git a/box-templates/box_45-49.c b/box-templates/box_2.c index 42bd0e4..56886d8 100644 --- a/box-templates/box_45-49.c +++ b/box-templates/box_2.c @@ -1,7 +1,5 @@ -/* START */ int main(int argc, char *argv[]) { if (!strcmp(basename(argv[0]),"box") && argc > 1) { argc--; argv++; } if(0); -/* END */ diff --git a/box-templates/box_70-73.c b/box-templates/box_3.c index 3124fa3..c32f473 100644 --- a/box-templates/box_70-73.c +++ b/box-templates/box_3.c @@ -1,5 +1,6 @@ -/* START */ +#ifdef FASESBOX_INCLUDES_test + else if (!strcmp(basename(argv[0]), "[")) return test_main(argc, argv); +#endif else if (!strcmp(basename(argv[0]), "box") && argc == 1) { printf("fases box.\n"); printf("Usage: box command [args] ...\n"); -/* END */ diff --git a/box-templates/box_94-96.c b/box-templates/box_4.c index ac381af..892de34 100644 --- a/box-templates/box_94-96.c +++ b/box-templates/box_4.c @@ -1,4 +1,3 @@ -/* START */ printf("\n"); } else { @@ -6,4 +5,3 @@ } return 0; } -/* END */ |