mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-20 06:15:09 +08:00
2007-08-10 Michael Snyder <msnyder@access-company.com>
* completer.c: Comment/whitespace cleanup.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
2007-08-10 Michael Snyder <msnyder@access-company.com>
|
||||
|
||||
* completer.c: Comment/whitespace cleanup.
|
||||
|
||||
2007-08-10 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* Makefile.in (i386nbsd-nat.o): Add missing dependency.
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "symtab.h"
|
||||
#include "gdbtypes.h"
|
||||
#include "expression.h"
|
||||
#include "filenames.h" /* for DOSish file names */
|
||||
#include "filenames.h" /* For DOSish file names. */
|
||||
#include "language.h"
|
||||
|
||||
#include "cli/cli-decode.h"
|
||||
@ -40,7 +40,7 @@
|
||||
|
||||
#include "completer.h"
|
||||
|
||||
/* Prototypes for local functions */
|
||||
/* Prototypes for local functions. */
|
||||
static
|
||||
char *line_completion_function (const char *text, int matches,
|
||||
char *line_buffer,
|
||||
@ -231,7 +231,7 @@ location_completer (char *text, char *word)
|
||||
if (*p == quote_found)
|
||||
quote_found = 0;
|
||||
else
|
||||
break; /* hit the end of text */
|
||||
break; /* Hit the end of text. */
|
||||
}
|
||||
#if HAVE_DOS_BASED_FILE_SYSTEM
|
||||
/* If we have a DOS-style absolute file name at the beginning of
|
||||
@ -624,10 +624,11 @@ complete_line (const char *text, char *line_buffer, int point)
|
||||
free the string. */
|
||||
|
||||
static char *
|
||||
line_completion_function (const char *text, int matches, char *line_buffer, int point)
|
||||
line_completion_function (const char *text, int matches,
|
||||
char *line_buffer, int point)
|
||||
{
|
||||
static char **list = (char **) NULL; /* Cache of completions */
|
||||
static int index; /* Next cached completion */
|
||||
static char **list = (char **) NULL; /* Cache of completions. */
|
||||
static int index; /* Next cached completion. */
|
||||
char *output = NULL;
|
||||
|
||||
if (matches == 0)
|
||||
@ -696,7 +697,7 @@ skip_quoted_chars (char *str, char *quotechars, char *breakchars)
|
||||
{
|
||||
if (quote_char != '\0')
|
||||
{
|
||||
/* Ignore everything until the matching close quote char */
|
||||
/* Ignore everything until the matching close quote char. */
|
||||
if (*scan == quote_char)
|
||||
{
|
||||
/* Found matching close quote. */
|
||||
|
Reference in New Issue
Block a user