/
solidbase
/
C2_SimpleBashUtils
Обзор
Документация
Войти
/
solidbase
/
C2_SimpleBashUtils
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
src/grep/options.h
32 строки
617 B
Dmitrii Isaev
style: reformat files with clang-format
29 ноя 2025, 07:41
29 ноя 2025, 07:41
a48c279
Код
Авторство
О чём код?
#ifndef S21_GREP_OPTIONS_H_ #define S21_GREP_OPTIONS_H_ #include <stdbool.h> #define MAX_PATTERNS 256 #define MAX_PATTERN_FILES 32 typedef struct { bool flag_e; bool flag_i; bool flag_v; bool flag_c; bool flag_l; bool flag_n; bool flag_h; bool flag_s; bool flag_f; bool flag_o; char* patterns[MAX_PATTERNS]; int pattern_count; char* pattern_files[MAX_PATTERN_FILES]; int pattern_file_count; } Options; void init_options(Options* opts); void free_options(Options* opts); int parse_options(int argc, char* argv[], Options* opts, int* file_start_index); #endif // S21_GREP_OPTIONS_H_