-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathargument_parser.h
53 lines (42 loc) · 1.4 KB
/
argument_parser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 - 2020, 2022 TheVice
*
*/
#ifndef _ARGUMENT_PARSER_H_
#define _ARGUMENT_PARSER_H_
#if defined(_WIN32)
#include <wchar.h>
#endif
#include <stddef.h>
#include <stdint.h>
struct range;
uint8_t argument_parser_char(int i, int argc, char** argv);
#if defined(_WIN32)
uint8_t argument_parser_wchar_t(int i, int argc, wchar_t** argv);
#endif
uint8_t argument_append_arguments(
const uint8_t* input_start, const uint8_t* input_finish, void* output);
uint8_t argument_create_arguments(void* output, int* argc, char*** argv);
uint8_t argument_from_char(
const char* input_start, const char* input_finish,
void* output, int* argc, char*** argv);
uint8_t argument_parser_init();
uint8_t argument_parser_get_debug();
uint8_t argument_parser_get_indent();
uint8_t argument_parser_get_module_priority();
uint8_t argument_parser_get_no_logo();
uint8_t argument_parser_get_pause();
uint8_t argument_parser_get_program_help();
uint8_t argument_parser_get_project_help();
uint8_t argument_parser_get_quiet();
uint8_t argument_parser_get_verbose();
uint16_t argument_parser_get_encoding();
const void* argument_parser_get_properties();
const uint8_t* argument_parser_get_build_file(int index);
const uint8_t* argument_parser_get_log_file();
const uint8_t* argument_parser_get_target(int index);
const uint8_t* argument_parser_get_listener();
void argument_parser_release();
#endif