diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-11-11 14:05:59 -0500 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-11-11 14:05:59 -0500 |
| commit | 75c8828d804f45cf8f44af73bfe87e0f3eaf9a9e (patch) | |
| tree | 2fdf51906d2517bbe8c928fc52f95bb2e0dda4f9 /source/config.c | |
| parent | 7b9204a8680539bc4795a14f3d9a34e47981d0c3 (diff) | |
run a task test
Diffstat (limited to 'source/config.c')
| -rw-r--r-- | source/config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/config.c b/source/config.c index 6e213cb..a3f895d 100644 --- a/source/config.c +++ b/source/config.c @@ -17,7 +17,7 @@ typedef struct { #define KPL_CONFIG_MATCH(CHAR) (CHAR - 'a') static kpl_exit_code kpl_config_option_parse_eval(kpl_env *env, int32_t arg_index, char *argv[]) { - env->kpl_entry = argv[arg_index]; + env->kpl_c_string_entry = argv[arg_index]; env->flags |= KPL_ENV_FLAG_RUN_EVAL; return KPL_EXIT_CODE_SUCCESS; } @@ -132,7 +132,7 @@ kpl_exit_code kpl_env_config(kpl_env *env, int32_t argc, char *argv[]) { int32_t arg_index = 1, exit_code = KPL_EXIT_CODE_SUCCESS; while (arg_index < argc) { if (argv[arg_index][0] != '-') { - env->kpl_entry = argv[arg_index]; + env->kpl_c_string_entry = argv[arg_index]; return KPL_EXIT_CODE_SUCCESS; } if (argv[arg_index][1] && argv[arg_index][2]) { @@ -145,7 +145,7 @@ kpl_exit_code kpl_env_config(kpl_env *env, int32_t argc, char *argv[]) { printf(KPL_COLOR2(BOLD, LIGHT_RED) "Invalid, no arguments after --\n" KPL_COLOR(RESET)); return KPL_EXIT_CODE_ERROR; } - env->kpl_entry = argv[arg_index]; + env->kpl_c_string_entry = argv[arg_index]; return KPL_EXIT_CODE_SUCCESS; } const kpl_config_option *option = &config_options[KPL_CONFIG_MATCH(argv[arg_index][1])]; |
