82 bool recurse_on_subfolders_amanda_s_smart_ape,
enum amanda__mode amanda_mode,
88 struct oi_amanda *oi_amanda_ptr_inicial = oi_amanda_ptr;
90 struct oi_amanda *to_call_free______amanda_s_smart_ape;
92 WIN32_FIND_DATAW ffd = {0};
99 static __time64_t s_arp_3;
117 strcpy(lpcszFolder, initial_path_amanda_s_smart_ape);
123 if (strlen(lpcszFolder))
125 if (
'\\' == lpcszFolder[strlen(lpcszFolder) - 1])
127 lpcszFolder[strlen(lpcszFolder) - 1] = 0;
132 strcpy(szDir, lpcszFolder);
133 strcat(szDir,
"\\*");
139loop_again_amanda_s_smart_ape:;
143 goto loop_again_amanda_s_smart_ape;
152 WCHAR *ar_temp = (
void *)malloc(r_temp);
153 WCHAR *ar_temp2 = (
void *)malloc(r_temp);
164 if (oi_amanda_ptr == oi_amanda_ptr_inicial)
166 pedro_dprintf(-1,
"free forçado final on %x\n", oi_amanda_ptr);
168 oi_amanda_ptr =
NULL;
172 goto keep_running_amanda_s_smart_ape;
181 goto exit_me_forced_amanda_s_smart_ape;
236 if (recurse_on_subfolders_amanda_s_smart_ape)
259 strcpy(szDir, lpcszFolder);
275 oi_amanda_ptr->
whole_entry_i = calloc(1, strlen(szDir) + strlen(
"\\*") + 3);
280 oi_amanda_ptr->
whole_entry_i = calloc(1, strlen(szDir) + strlen(
"\\*") + 3);
299 strcat(szDir,
"\\*");
308 if (recurse_on_subfolders_amanda_s_smart_ape)
348 snprintf(temp_ar,
AMANDA__SIZE - 3,
"Skipping folder %s because the path is too large for windows", szDir);
387 if (recurse_on_subfolders_amanda_s_smart_ape)
394 if (recurse_on_subfolders_amanda_s_smart_ape)
396 goto loop_again_amanda_s_smart_ape;
443 strcpy(szDir_i, lpcszFolder);
444 strcat(szDir_i,
"\\");
458 oi_amanda_ptr->
whole_entry_i = calloc(1, strlen(szDir_i) + 1);
463 oi_amanda_ptr->
whole_entry_i = calloc(1, strlen(szDir_i) + 1);
496 bool achei_o_match =
false;
498 char *token, *
str, *tofree;
499 tofree =
str = strdup(my_str_literal);
504 achei_o_match =
strmatch(my_copy_of_filename_ar, token,
505 strlen(my_copy_of_filename_ar), strlen(token));
518 achei_o_match =
false;
522 achei_o_match =
true;
562 WCHAR *ar_temp = (
void *)malloc(r_temp);
563 WCHAR *ar_temp2 = (
void *)malloc(r_temp);
599#define THE_SIZE_I (1 << 17)
606 WCHAR *ar_temp = (
void *)malloc(r_temp);
607 WCHAR *ar_temp2 = (
void *)malloc(r_temp);
628 while ((len_i = fread(buf_i, 1,
THE_SIZE_I, the_file_i)))
681 snprintf(temp_ar, 600,
"Skipping folder %s because the path is too large for windows", szDir);
704 bool achei_o_match =
false;
706 char *token, *
str, *tofree;
708 tofree =
str = strdup(my_str_literal);
713 achei_o_match =
strmatch(my_copy_of_filename_ar, token,
714 strlen(my_copy_of_filename_ar), strlen(token));
728 achei_o_match =
false;
732 achei_o_match =
true;
742 if (strlen(file_or_folder_to_process___))
744 if (
'\\' != file_or_folder_to_process___[strlen(file_or_folder_to_process___) - 1])
746 strcat(file_or_folder_to_process___,
"\\");
768 bool achei_o_match =
false;
770 char *token, *
str, *tofree;
771 tofree =
str = strdup(my_str_literal);
776 achei_o_match =
strmatch(my_copy_of_filename_ar, token,
777 strlen(my_copy_of_filename_ar), strlen(token));
791 achei_o_match =
false;
795 achei_o_match =
true;
837 entrada_again_smart_ape_from_amanda:;
841 goto entrada_again_smart_ape_from_amanda;
846exit_me_forced_amanda_s_smart_ape:;
854keep_running_amanda_s_smart_ape:;
856 if (oi_amanda_ptr_inicial != oi_amanda_ptr)
866 to_call_free______amanda_s_smart_ape = oi_amanda_ptr;
872 free(to_call_free______amanda_s_smart_ape->
entry______i);
888 free(to_call_free______amanda_s_smart_ape);
892 goto entrada_again_smart_ape_from_amanda;
#define __attribute__(unused_ric_since_2004)
Definition main_cr.c:84