@@ -14,29 +14,29 @@ extern "C" {
14
14
#include <zephyr/kernel.h>
15
15
16
16
struct getopt_state {
17
- int opterr ; /* if error message should be printed */
18
- int optind ; /* index into parent argv vector */
19
- int optopt ; /* character checked for validity */
20
- int optreset ; /* reset getopt */
21
- char * optarg ; /* argument associated with option */
17
+ int opterr ; /* if error message should be printed */
18
+ int optind ; /* index into parent argv vector */
19
+ int optopt ; /* character checked for validity */
20
+ int optreset ; /* reset getopt */
21
+ char * optarg ; /* argument associated with option */
22
22
23
- char * place ; /* option letter processing */
23
+ char * place ; /* option letter processing */
24
24
25
25
#if CONFIG_GETOPT_LONG
26
26
int nonopt_start ;
27
27
int nonopt_end ;
28
28
#endif
29
29
};
30
30
31
- extern int optreset ; /* reset getopt */
31
+ extern int optreset ; /* reset getopt */
32
32
extern char * optarg ;
33
33
extern int opterr ;
34
34
extern int optind ;
35
35
extern int optopt ;
36
36
37
- #define no_argument 0
38
- #define required_argument 1
39
- #define optional_argument 2
37
+ #define no_argument 0
38
+ #define required_argument 1
39
+ #define optional_argument 2
40
40
41
41
struct option {
42
42
/* name of long option */
@@ -79,9 +79,8 @@ struct getopt_state *getopt_state_get(void);
79
79
* @return If an option was successfully found, function returns
80
80
* the option character.
81
81
*/
82
- int getopt_long (int nargc , char * const * nargv ,
83
- const char * options , const struct option * long_options ,
84
- int * idx );
82
+ int getopt_long (int nargc , char * const * nargv , const char * options ,
83
+ const struct option * long_options , int * idx );
85
84
86
85
/**
87
86
* @brief Parses the command-line arguments.
@@ -106,9 +105,8 @@ int getopt_long(int nargc, char *const *nargv,
106
105
* @return If an option was successfully found, function returns
107
106
* the option character.
108
107
*/
109
- int getopt_long_only (int nargc , char * const * nargv ,
110
- const char * options , const struct option * long_options ,
111
- int * idx );
108
+ int getopt_long_only (int nargc , char * const * nargv , const char * options ,
109
+ const struct option * long_options , int * idx );
112
110
113
111
#ifdef __cplusplus
114
112
}
0 commit comments