public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] archer-keiths-expr-cumulative: some comment formatting fixes/updates
@ 2009-09-18 16:18 kseitz
0 siblings, 0 replies; only message in thread
From: kseitz @ 2009-09-18 16:18 UTC (permalink / raw)
To: archer-commits
The branch, archer-keiths-expr-cumulative has been updated
via 42df8ed1bb1fb2e056b6fc0277d5b333f8a5c8b6 (commit)
from 5c991e082db9920030e1f3d51f1a75b289552600 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 42df8ed1bb1fb2e056b6fc0277d5b333f8a5c8b6
Author: keiths <keiths@redhat.com>
Date: Fri Sep 18 09:15:49 2009 -0700
some comment formatting fixes/updates
-----------------------------------------------------------------------
Summary of changes:
gdb/cp-support.c | 13 +++++--------
gdb/linespec.c | 6 +++---
2 files changed, 8 insertions(+), 11 deletions(-)
First 500 lines of diff:
diff --git a/gdb/cp-support.c b/gdb/cp-support.c
index ca10007..b5ba990 100644
--- a/gdb/cp-support.c
+++ b/gdb/cp-support.c
@@ -70,10 +70,7 @@ struct cmd_list_element *maint_cplus_cmd_list = NULL;
static void maint_cplus_command (char *arg, int from_tty);
static void first_component_command (char *arg, int from_tty);
-/* Operator validation. This is used by cp_validate_opeartor,
- which is in turn used by both the expression parser (clex)
- and decode_line (decode_compound, actually).
-
+/* Operator validation.
NOTE: Multi-byte operators (usually the assignment variety operator)
must appear before the single byte version, i.e., "+=" before "+". */
static const char *operator_tokens[] =
@@ -943,7 +940,7 @@ cp_validate_operator (const char *input)
int valid = 0;
/* Most callers appear to do this already, but since this is not
- really time-critical code, it is double-checked here. */
+ really time-critical code, it is double-checked here. */
if (strncmp (p, "operator", 8) == 0)
{
p += 8;
@@ -954,7 +951,7 @@ cp_validate_operator (const char *input)
{
int length = strlen (operator_tokens[i]);
/* By using strncmp here, we MUST have operator_tokens ordered!
- See additional notes where operator_tokens is defined above. */
+ See additional notes where operator_tokens is defined above. */
if (strncmp (p, operator_tokens[i], length) == 0)
{
const char *op = p;
@@ -965,8 +962,8 @@ cp_validate_operator (const char *input)
|| strncmp (op, "delete", 6) == 0)
{
- /* Special case: new[] and delete[]. We must be careful
- to swallow whitespace before/in "[]".*/
+ /* Special case: new[] and delete[]. We must be careful
+ to swallow whitespace before/in "[]". */
SKIP_SPACE (p);
if (*p == '[')
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 3b8956c..8801538 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -1358,14 +1358,14 @@ decode_compound (char **argptr, int funfirstline, char ***canonical,
while (*p && *p != ' ' && *p != '\t' && *p != ',' && *p != ':')
p++;
/* At this point p->"". String ended. */
- /* Nope. C++ operators could have spaces in them
+ /* Nope, C++ operators could have spaces in them
("foo::operator <" or "foo::operator delete []").
- I apologize, this is a bit hacky... */
+ I apologize, this is a bit hacky... */
if (current_language->la_language == language_cplus
&& *p == ' ' && p - 8 - *argptr + 1 > 0
&& strncmp (p - 8, "operator", 8) == 0)
{
- /* The above loop has already swallowed "operator" */
+ /* The above loop has already swallowed "operator". */
p += cp_validate_operator (p - 8) - 8;
}
}
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-18 16:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-18 16:18 [SCM] archer-keiths-expr-cumulative: some comment formatting fixes/updates kseitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).