2007-08-10 Michael Snyder <msnyder@access-company.com>

* completer.c: Comment/whitespace cleanup.
This commit is contained in:
Michael Snyder
2007-08-10 20:35:09 +00:00
parent adee02064a
commit 9c3f90bd3a
2 changed files with 24 additions and 19 deletions

View File

@ -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.

View File

@ -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. */