Skip to content

Commit

Permalink
compilation flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kostyamospan committed Dec 9, 2020
1 parent b158cec commit 49ed6b9
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ OBJ = obj

INC = inc

FLAGS = -std=c11 #-Wall -Wextra -Werror -Wpedantic
FLAGS = -std=c11 -Wall -Wextra -Werror -Wpedantic

all: uninstall install

Expand Down
1 change: 0 additions & 1 deletion inc/uls.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ int mx_search_hiden_files(t_dir_info *dir_info);
int mx_search_string(const char **arr, int arr_size, const char *str);
t_time *mx_parse_time_str(const char *str);
void mx_swap(void **a, void **b);
int mx_strlen_space(char *str);
int mx_montstr_to_num(const char *str);
char *mx_strconcant_new(const char *str1, const char *str2);

Expand Down
1 change: 0 additions & 1 deletion src/files_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ t_dir_info *mx_get_files_from_dir(char *dir_path)

t_dir_info *mx_process_files_flag(t_dir_info *dir_info, char *flags)
{
char cur_flag;
int i;

if (!dir_info->is_single_files)
Expand Down
2 changes: 1 addition & 1 deletion src/flag_funcionality.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void mx_rflag_func(t_dir_info *dir_info)

for (int i = 0; i <= j; i++, j--)
{
mx_swap(&(dir_info->files[i]), &(dir_info->files[j]));
mx_swap((void**)&(dir_info->files[i]), (void**)&(dir_info->files[j]));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char **args)
if (dir_and_files_count >= 1)
{
mx_sort_str_arr(&dir_and_files, dir_and_files_count, ".", mx_sort_asc);
bool was_error = false;
// bool was_error = false;
int files_count = 0, dirs_count = 0;
char **files;

Expand Down
2 changes: 1 addition & 1 deletion src/mx_monthstr_to_num.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ int mx_montstr_to_num(const char *str)
return 12;
else
return -1;
}
}
11 changes: 0 additions & 11 deletions src/mx_strlen_space.c

This file was deleted.

2 changes: 1 addition & 1 deletion src/print_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ void mx_print_column(t_dir_info *dir_info)
mx_printstr(dir_info->files[i]);
mx_printstr("\n");
}
}
}
4 changes: 2 additions & 2 deletions src/sort_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void mx_sort_str_arr(char ***arr, int size, char *dir_name, bool (*f)(char *, ch
char *a_path = mx_strconcant_new(tmp, (*arr)[j + 1]);

if (!f(a_path, b_path))
mx_swap(&((*arr)[j]), &((*arr)[j + 1]));
mx_swap((void**)(&((*arr)[j])), (void**)(&((*arr)[j + 1])));

free(tmp);
free(b_path);
Expand All @@ -27,7 +27,7 @@ bool mx_sort_asc(char *a, char *b)

bool mx_sort_rev(char *a, char *b)
{
return false;
return a > b ? false : false;
}

bool mx_sortf_modt(char *a, char *b)
Expand Down
2 changes: 1 addition & 1 deletion src/sys_objects_determation.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ bool mx_is_folder(const char *path)
// // #define __S_IFREG 0100000 /* Regular file. */
// // #define __S_IFIFO 0010000 /* FIFO. */
// // #define __S_IFLNK 0120000 /* Symbolic link. */
// // #define __S_IFSOCK 0140000 /* Socket. */
// // #define __S_IFSOCK 0140000 /* Socket. */
Binary file modified uls
Binary file not shown.

0 comments on commit 49ed6b9

Please sign in to comment.