Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cligen_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ str2fn(const char *name,
*/
static int
cli_expand_cb(cligen_handle h,
char *fn_str,
const char *fn_str,
cvec *cvv,
cvec *argv,
cvec *commands, /* vector of function strings */
Expand Down
12 changes: 6 additions & 6 deletions cligen_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ enum cg_objtype{
1 if did not handle expand
-1 on error.
*/
typedef int (expand_cb)(cligen_handle h, /* handler: cligen or userhandle */
char *name, /* name of this function (in text) */
cvec *cvv, /* vars vector of values in command */
cvec *argv, /* argument vector given to callback */
cvec *commands,/* vector of commands */
cvec *helptexts /* vector of help-texts */
typedef int (expand_cb)(cligen_handle h, /* handler: cligen or userhandle */
const char *name, /* name of this function (in text) */
cvec *cvv, /* vars vector of values in command */
cvec *argv, /* argument vector given to callback */
cvec *commands, /* vector of commands */
cvec *helptexts /* vector of help-texts */
);

#if 1 // XXX backward-compatible
Expand Down
2 changes: 1 addition & 1 deletion cligen_parse.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ int cgy_exit(cligen_yacc *cy);

int cligen_parselex(void *_ya);
int cligen_parseparse(void *);
void cligen_parseerror(void *_ya, char*);
void cligen_parseerror(void *_ya, const char*);
int cligen_parse_debug(int d);

#endif /* _CLIGEN_PARSE_H_ */
2 changes: 1 addition & 1 deletion cligen_parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ cligen_parse_debug(int d)
* @param[in] cy CLIgen yacc parse struct
*/
void cligen_parseerror(void *_cy,
char *s)
const char *s)
{
cligen_yacc *cy = (cligen_yacc *)_cy;

Expand Down
6 changes: 3 additions & 3 deletions cligen_syntax.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ int
clispec_parse_str(cligen_handle h,
const char *str,
const char *name,
char *treename,
const char *treename,
parse_tree *ptp,
cvec *cvv)
{
Expand Down Expand Up @@ -176,8 +176,8 @@ clispec_parse_str(cligen_handle h,
int
clispec_parse_file(cligen_handle h,
FILE *f,
char *name,
char *treename,
const char *name,
const char *treename,
parse_tree *pt,
cvec *cvv)
{
Expand Down
6 changes: 3 additions & 3 deletions cligen_syntax.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ int
clispec_parse_str(cligen_handle h,
const char *str,
const char *name,
char *treename,
const char *treename,
parse_tree *pt,
cvec *globals);
int
clispec_parse_file(cligen_handle h,
FILE *f,
char *name,
char *treename,
const char *name,
const char *treename,
parse_tree *obsolete,
cvec *globals);

Expand Down
2 changes: 1 addition & 1 deletion cligen_tutorial.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ str2fn(const char *name,
*/
int
cli_expand_cb(cligen_handle h,
char *fn_str,
const char *fn_str,
cvec *cvv,
cvec *argv,
cvec *commands, /* vector of function strings */
Expand Down
Loading