diff options
author | Tom Tromey <tom@tromey.com> | 2019-04-21 20:10:51 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-05-04 14:13:27 -0600 |
commit | 7f008c9e6a3cbb248f5b6e8638af4b9d5225981b (patch) | |
tree | 9e1338068fed7ca0c4d1b05d056f6c94f615fccc /gdb/cli | |
parent | b6484282f85bf7f11451b2441599c241d302ad9d (diff) | |
download | gdb-7f008c9e6a3cbb248f5b6e8638af4b9d5225981b.zip gdb-7f008c9e6a3cbb248f5b6e8638af4b9d5225981b.tar.gz gdb-7f008c9e6a3cbb248f5b6e8638af4b9d5225981b.tar.bz2 |
Change valid_user_defined_cmd_name_p to return bool
This changes valid_user_defined_cmd_name_p to return bool.
gdb/ChangeLog
2019-05-04 Tom Tromey <tom@tromey.com>
* cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
* command.h (valid_user_defined_cmd_name_p): Channge return type.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-decode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 5043095..72e2a97 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -1328,13 +1328,13 @@ find_command_name_length (const char *text) This is a stricter subset of all gdb commands, see find_command_name_length. */ -int +bool valid_user_defined_cmd_name_p (const char *name) { const char *p; if (*name == '\0') - return FALSE; + return false; /* Alas "42" is a legitimate user-defined command. In the interests of not breaking anything we preserve that. */ @@ -1346,10 +1346,10 @@ valid_user_defined_cmd_name_p (const char *name) || *p == '_') ; /* Ok. */ else - return FALSE; + return false; } - return TRUE; + return true; } /* This routine takes a line of TEXT and a CLIST in which to start the |