Перенём переопределение bool чтобы bool был безнаковым битом а не true false

This commit is contained in:
romenskiy 2025-07-03 18:02:11 +03:00
parent 685f1c198d
commit 2f2ad992c2
2 changed files with 5 additions and 4 deletions

Binary file not shown.

9
main.c
View file

@ -11,7 +11,7 @@
#include <pthread.h>
#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;