|
version 1.18.2.2, 2022/12/05 22:19:33
|
version 1.19.4.2, 2024/10/29 01:00:09
|
|
Line 12 terms:
|
Line 12 terms:
|
| All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
| Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
| |
|
| Copyright 2004 - 2022 | Copyright 2004 - 2024 |
| by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
| |
|
| Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
|
Line 425 bufComp(int idx, void * __restrict cli_buffer)
|
Line 425 bufComp(int idx, void * __restrict cli_buffer)
|
| str_Trim(s); |
str_Trim(s); |
| } |
} |
| |
|
| i = j = 0; | j = 0; |
| c = NULL; |
c = NULL; |
| memset(szLine, 0, STRSIZ); |
memset(szLine, 0, STRSIZ); |
| if (*s) { |
if (*s) { |
|
Line 1499 int
|
Line 1499 int
|
| cliRun(linebuffer_t * __restrict cli_buffer, char *psInput, int prompt) |
cliRun(linebuffer_t * __restrict cli_buffer, char *psInput, int prompt) |
| { |
{ |
| char *line, *s, *t, **app, *items[MAX_PROMPT_ITEMS]; |
char *line, *s, *t, **app, *items[MAX_PROMPT_ITEMS]; |
| register int i; |
|
| int ret = RETCODE_OK; |
int ret = RETCODE_OK; |
| struct tagCommand *cmd; |
struct tagCommand *cmd; |
| |
|
|
Line 1521 cliRun(linebuffer_t * __restrict cli_buffer, char *psI
|
Line 1520 cliRun(linebuffer_t * __restrict cli_buffer, char *psI
|
| (*app = strsep(&s, " \t")); *app ? app++ : app); |
(*app = strsep(&s, " \t")); *app ? app++ : app); |
| |
|
| // exec_cmd ... |
// exec_cmd ... |
| i = 0; |
|
| SLIST_FOREACH(cmd, &cli_buffer->line_cmds, cmd_next) { |
SLIST_FOREACH(cmd, &cli_buffer->line_cmds, cmd_next) { |
| if (!(cmd->cmd_level & (1 << cli_buffer->line_level))) |
if (!(cmd->cmd_level & (1 << cli_buffer->line_level))) |
| continue; |
continue; |
| if (*items[0] && !strncmp(cmd->cmd_name, items[0], strlen(items[0]))) |
if (*items[0] && !strncmp(cmd->cmd_name, items[0], strlen(items[0]))) |
| break; |
break; |
| else |
|
| i++; |
|
| } |
} |
| |
|
| if (!cmd) { |
if (!cmd) { |