tiny-shell 0.2
A mini shell project aiming to gain knowledge about Win32 and Linux API
|
Go to the source code of this file.
Data Structures | |
struct | args |
Result after parsing an arbitrary string. More... | |
Functions | |
bool | args_init_from_str (struct args *obj, const os_char *input) |
Build args from an input string. | |
void | args_destroy (struct args *obj) |
struct args * | args_deep_copy (const struct args *obj) |
Deep copy the object, including arguments string. | |
void | args_deep_copy_init (struct args *obj, const struct args *source) |
Initialize the object by deep copying source | |
bool | is_whitespace (os_char c) |
! | |
Deep copy the object, including arguments string.
Definition at line 145 of file args.c.
References args::argc, args::argv, and args::background.
Initialize the object by deep copying source
Definition at line 163 of file args.c.
References args::argc, args::argv, and args::background.
Referenced by cmd_init_from_str().
void args_destroy | ( | struct args * | obj | ) |
Definition at line 135 of file args.c.
References args::argc, and args::argv.
Referenced by cmd_destroy(), and cmd_init_from_str().
bool args_init_from_str | ( | struct args * | obj, |
const os_char * | input ) |
Build args
from an input string.
true
if initialization succeeded, false
otherwise Definition at line 117 of file args.c.
References args::argc, args::argv, args::background, re_transform_arg(), split_by_whitespaces(), transform_quotes(), and verify_background().
Referenced by cmd_init_from_str().
bool is_whitespace | ( | os_char | c | ) |
!
Helper function
Definition at line 177 of file args.c.
Referenced by split_by_whitespaces(), and transform_quotes().