From 2f2ad992c29c9c476904225ca18a60a6e145b1d9 Mon Sep 17 00:00:00 2001 From: romenskiy Date: Thu, 3 Jul 2025 18:02:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D1=91=D0=BC=20?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=BE=D0=BF=D1=80=D0=B5=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20bool=20=D1=87=D1=82=D0=BE?= =?UTF-8?q?=D0=B1=D1=8B=20bool=20=D0=B1=D1=8B=D0=BB=20=D0=B1=D0=B5=D0=B7?= =?UTF-8?q?=D0=BD=D0=B0=D0=BA=D0=BE=D0=B2=D1=8B=D0=BC=20=D0=B1=D0=B8=D1=82?= =?UTF-8?q?=D0=BE=D0=BC=20=D0=B0=20=D0=BD=D0=B5=20true=20false?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .file.h.kate-swp | Bin 53 -> 0 bytes main.c | 9 +++++---- 2 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 .file.h.kate-swp diff --git a/.file.h.kate-swp b/.file.h.kate-swp deleted file mode 100644 index 1d91b926e66ba0baa9e9e9fe46e754426e460fda..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 53 zcmZQzU=Z?7EJ;-eE>A2_aLdd|RWQ;sU|?Vn`Ec>Qtc*}v{DZ%{t`&tHWKa{?>lqvh Il)32&0ILZRa{vGU diff --git a/main.c b/main.c index 8c9cd57..200347d 100644 --- a/main.c +++ b/main.c @@ -11,7 +11,7 @@ #include #include "cJSON/cJSON.h" -#define bool unsigned char + #ifdef USE_JEMALLOC const char *je_malloc_conf = "narenas:2,lg_chunk:20,stats_print:false"; @@ -25,7 +25,7 @@ const char *je_malloc_conf = "narenas:2,lg_chunk:20,stats_print:false"; #endif unsigned narenas = 4; - +#define bool unsigned char @@ -413,6 +413,7 @@ cJSON *print_statistik(cJSON *main_Array, struct dir_list_struct* list, char* ou printf("%s\t%li\t%s\n", output, list->file->size, list->file->name); DEBUG_PRINT("%s\t%li\t%s\n", output, list->file->size, list->file->name); if (js_logok){ + DEBUG_PRINT("int_depth: %i\n", int_depth); if (list->file->tipe_dir && (list->file->dir_list != NULL) && (int_depth != i)){ DEBUG_PRINT("Рекурсируем!\n"); DEBUG_PRINT("Каталог вниз: %s!\n", list->file->name); @@ -457,8 +458,8 @@ int main(int argc, char *argv[]){ } else { printf("Флаг -r: нет\n"); } - js_logok = opts.has_j; - int_depth= opts.r_value; + js_logok = opts.has_j; + int_depth = opts.r_value; path = opts.path;