[C++ PATCH]: fix typos
Nathan Sidwell
nathan@codesourcery.com
Thu Oct 5 01:42:00 GMT 2000
Hi,
I've installed the attached which fixes some typos I discovered in
my wanderings through the source.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
2000-10-05 Nathan Sidwell <nathan@codesourcery.com>
* cp-tree.h (access_kind): Fix comment typo.
* decl2.c (grokfield): Fix diagnostic typo.
* semantics.c (finish_template_type): Fix comment typo.
(finish_qualified_object_call_expr): Likewise.
Index: cp/cp-tree.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/cp-tree.h,v
retrieving revision 1.532
diff -c -3 -p -r1.532 cp-tree.h
*** cp-tree.h 2000/09/21 03:43:14 1.532
--- cp-tree.h 2000/10/05 08:39:52
*************** typedef enum tmpl_spec_kind {
*** 3126,3132 ****
/* The various kinds of access. BINFO_ACCESS depends on these being
two bit quantities. The numerical values are important; they are
! used to initialize RTTI data structures, so chaning them changes
the ABI. */
typedef enum access_kind {
ak_none = 0, /* Inaccessible. */
--- 3126,3132 ----
/* The various kinds of access. BINFO_ACCESS depends on these being
two bit quantities. The numerical values are important; they are
! used to initialize RTTI data structures, so changing them changes
the ABI. */
typedef enum access_kind {
ak_none = 0, /* Inaccessible. */
Index: cp/decl2.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/decl2.c,v
retrieving revision 1.400
diff -c -3 -p -r1.400 decl2.c
*** decl2.c 2000/09/21 21:47:55 1.400
--- decl2.c 2000/10/05 08:39:54
*************** grokfield (declarator, declspecs, init,
*** 1652,1658 ****
Explain that to the user. */
static int explained;
! cp_error ("invalid data member initiailization");
if (!explained)
{
cp_error ("(use `=' to initialize static data members)");
--- 1652,1658 ----
Explain that to the user. */
static int explained;
! cp_error ("invalid data member initialization");
if (!explained)
{
cp_error ("(use `=' to initialize static data members)");
Index: cp/semantics.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/semantics.c,v
retrieving revision 1.175
diff -c -3 -p -r1.175 semantics.c
*** semantics.c 2000/09/17 07:38:21 1.175
--- semantics.c 2000/10/05 08:39:54
*************** finish_object_call_expr (fn, object, arg
*** 1430,1436 ****
}
/* Finish a qualified member function call using OBJECT and ARGS as
! arguments to FN. Returns an expressino for the call. */
tree
finish_qualified_object_call_expr (fn, object, args)
--- 1430,1436 ----
}
/* Finish a qualified member function call using OBJECT and ARGS as
! arguments to FN. Returns an expression for the call. */
tree
finish_qualified_object_call_expr (fn, object, args)
*************** finish_template_decl (parms)
*** 2007,2013 ****
end_specialization ();
}
! /* Finish processing a a template-id (which names a type) of the form
NAME < ARGS >. Return the TYPE_DECL for the type named by the
template-id. If ENTERING_SCOPE is non-zero we are about to enter
the scope of template-id indicated. */
--- 2007,2013 ----
end_specialization ();
}
! /* Finish processing a template-id (which names a type) of the form
NAME < ARGS >. Return the TYPE_DECL for the type named by the
template-id. If ENTERING_SCOPE is non-zero we are about to enter
the scope of template-id indicated. */
More information about the Gcc-patches
mailing list