Removed outdated macro case Xorriso_fat_local_meM
This commit is contained in:
@ -1541,6 +1541,7 @@ int Xorriso_pacifier_loop(struct XorrisO *xorriso, struct burn_drive *drive,
|
||||
}
|
||||
progress.sector= 0;
|
||||
current_time= Sfile_microtime(0);
|
||||
measured_speed= 0.0;
|
||||
while(1) {
|
||||
last_time= current_time;
|
||||
last_sector= progress.sector;
|
||||
@ -2147,12 +2148,6 @@ int Xorriso_add_tree(struct XorrisO *xorriso, IsoDir *dir,
|
||||
struct stat stbuf, hstbuf;
|
||||
dev_t dir_dev;
|
||||
struct LinkiteM *own_link_stack;
|
||||
|
||||
#ifdef Xorriso_fat_local_meM
|
||||
char sfe[5*SfileadrL], sfe2[5*SfileadrL];
|
||||
char disk_path[2*SfileadrL], img_path[2*SfileadrL], link_target[SfileadrL];
|
||||
#else /* Xorriso_fat_local_meM */
|
||||
|
||||
char *sfe= NULL, *sfe2= NULL;
|
||||
char *disk_path= NULL, *img_path= NULL, *link_target= NULL;
|
||||
|
||||
@ -2167,8 +2162,6 @@ int Xorriso_add_tree(struct XorrisO *xorriso, IsoDir *dir,
|
||||
Xorriso_no_malloc_memory(xorriso, &sfe, 0);
|
||||
{ret= -1; goto ex;}
|
||||
}
|
||||
|
||||
#endif /* ! Xorriso_fat_local_meM */
|
||||
|
||||
own_link_stack= link_stack;
|
||||
|
||||
@ -2384,8 +2377,6 @@ was_problem:;
|
||||
|
||||
ret= 1;
|
||||
ex:
|
||||
|
||||
#ifndef Xorriso_fat_local_meM
|
||||
if(sfe!=NULL)
|
||||
free(sfe);
|
||||
if(sfe2!=NULL)
|
||||
@ -2396,8 +2387,6 @@ ex:
|
||||
free(img_path);
|
||||
if(link_target!=NULL)
|
||||
free(link_target);
|
||||
#endif /* ! Xorriso_fat_local_meM */
|
||||
|
||||
Xorriso_process_msg_queues(xorriso,0);
|
||||
Linkitem_reset_stack(&own_link_stack, link_stack, 0);
|
||||
Dirseq_destroy(&dirseq, 0);
|
||||
@ -4933,10 +4922,6 @@ int Xorriso_rmi(struct XorrisO *xorriso, void *boss_iter, off_t boss_mem,
|
||||
IsoNode **node_array= NULL;
|
||||
int node_count, node_idx;
|
||||
|
||||
#ifdef Xorriso_fat_local_meM
|
||||
char sfe[5*SfileadrL], sub_path[2*SfileadrL];
|
||||
#else
|
||||
|
||||
/* Avoiding large local memory objects in order to save stack space */
|
||||
sfe= malloc(5*SfileadrL);
|
||||
sub_path= malloc(2*SfileadrL);
|
||||
@ -4944,7 +4929,6 @@ int Xorriso_rmi(struct XorrisO *xorriso, void *boss_iter, off_t boss_mem,
|
||||
Xorriso_no_malloc_memory(xorriso, &sfe, 0);
|
||||
{ret= -1; goto ex;}
|
||||
}
|
||||
#endif /* ! Xorriso_fat_local_meM */
|
||||
|
||||
#ifndef Libisofs_iso_dir_iter_sufficienT
|
||||
/* Ticket 127: A80301 - A80302
|
||||
@ -5146,14 +5130,10 @@ dir_not_removed:;
|
||||
xorriso->volset_change_pending= 1;
|
||||
ret= 1+!!is_dir;
|
||||
ex:;
|
||||
|
||||
#ifndef Xorriso_fat_local_meM
|
||||
if(sfe!=NULL)
|
||||
free(sfe);
|
||||
if(sub_path!=NULL)
|
||||
free(sub_path);
|
||||
#endif /* ! Xorriso_fat_local_meM */
|
||||
|
||||
Xorriso_findi_iter(xorriso, (IsoDir *) victim_node, &mem, &iter,
|
||||
&node_array, &node_count, &node_idx, &node, (1<<31));
|
||||
return(ret);
|
||||
@ -5236,10 +5216,6 @@ int Xorriso_show_du_subs(struct XorrisO *xorriso, IsoDir *dir_node,
|
||||
IsoNode *node, **node_array= NULL;
|
||||
char *name;
|
||||
off_t sub_size, report_size, mem= 0;
|
||||
|
||||
#ifdef Xorriso_fat_local_meM
|
||||
char path[SfileadrL], show_path[SfileadrL], sfe[5*SfileadrL];
|
||||
#else /* Xorriso_fat_local_meM */
|
||||
char *path= NULL, *show_path= NULL, *sfe= NULL;
|
||||
|
||||
sfe= malloc(5*SfileadrL);
|
||||
@ -5250,8 +5226,6 @@ int Xorriso_show_du_subs(struct XorrisO *xorriso, IsoDir *dir_node,
|
||||
{ret= -1; goto ex;}
|
||||
}
|
||||
|
||||
#endif /* ! Xorriso_fat_local_meM */
|
||||
|
||||
*size= 0;
|
||||
ret= iso_dir_get_children(dir_node, &iter);
|
||||
if(ret<0) {
|
||||
@ -5359,16 +5333,12 @@ much_too_long:;
|
||||
}
|
||||
ret= 1;
|
||||
ex:;
|
||||
|
||||
#ifndef Xorriso_fat_local_meM
|
||||
if(sfe!=NULL)
|
||||
free(sfe);
|
||||
if(path!=NULL)
|
||||
free(path);
|
||||
if(show_path!=NULL)
|
||||
free(show_path);
|
||||
#endif /* ! Xorriso_fat_local_meM */
|
||||
|
||||
if(iter!=NULL)
|
||||
iso_dir_iter_free(iter);
|
||||
if(node_array!=NULL)
|
||||
@ -5894,10 +5864,6 @@ int Xorriso_obtain_pattern_files_i(
|
||||
IsoDirIter *iter= NULL;
|
||||
IsoNode *node;
|
||||
char *name;
|
||||
|
||||
#ifdef Xorriso_fat_local_meM
|
||||
char adr[SfileadrL];
|
||||
#else /* Xorriso_fat_local_meM */
|
||||
char *adr= NULL;
|
||||
|
||||
adr= malloc(SfileadrL);
|
||||
@ -5905,8 +5871,6 @@ int Xorriso_obtain_pattern_files_i(
|
||||
Xorriso_no_malloc_memory(xorriso, &adr, 0);
|
||||
{ret= -1; goto ex;}
|
||||
}
|
||||
#endif /* ! Xorriso_fat_local_meM */
|
||||
|
||||
|
||||
if(!(flag&2))
|
||||
*dive_count= 0;
|
||||
@ -5953,12 +5917,8 @@ int Xorriso_obtain_pattern_files_i(
|
||||
}
|
||||
ret= 1;
|
||||
ex:;
|
||||
|
||||
#ifndef Xorriso_fat_local_meM
|
||||
if(adr!=NULL)
|
||||
free(adr);
|
||||
#endif /* ! Xorriso_fat_local_meM */
|
||||
|
||||
if(flag&2)
|
||||
(*dive_count)--;
|
||||
return(ret);
|
||||
@ -6512,9 +6472,6 @@ int Xorriso_findi(struct XorrisO *xorriso, struct FindjoB *job,
|
||||
off_t mem;
|
||||
IsoNode **node_array= NULL;
|
||||
int node_count, node_idx;
|
||||
#ifdef Xorriso_fat_local_meM
|
||||
char path[SfileadrL], abs_path[SfileadrL];
|
||||
#else /* Xorriso_fat_local_meM */
|
||||
char *path= NULL, *abs_path= NULL;
|
||||
|
||||
path= malloc(SfileadrL);
|
||||
@ -6523,7 +6480,6 @@ int Xorriso_findi(struct XorrisO *xorriso, struct FindjoB *job,
|
||||
Xorriso_no_malloc_memory(xorriso, &path, 0);
|
||||
{ret= -1; goto ex;}
|
||||
}
|
||||
#endif /* ! Xorriso_fat_local_meM */
|
||||
|
||||
action= Findjob_get_action(job, 0);
|
||||
if(action<0)
|
||||
@ -6677,14 +6633,10 @@ int Xorriso_findi(struct XorrisO *xorriso, struct FindjoB *job,
|
||||
|
||||
ret= 1;
|
||||
ex:;
|
||||
|
||||
#ifndef Xorriso_fat_local_meM
|
||||
if(path!=NULL)
|
||||
free(path);
|
||||
if(abs_path!=NULL)
|
||||
free(abs_path);
|
||||
#endif /* ! Xorriso_fat_local_meM */
|
||||
|
||||
Xorriso_process_msg_queues(xorriso,0);
|
||||
|
||||
Xorriso_findi_iter(xorriso, dir_node, &mem, &iter, &node_array, &node_count,
|
||||
|
Reference in New Issue
Block a user