Commit eebc3ee0 by Steven G. Kargl Committed by Steven G. Kargl

* symbol.c: Typos in comments.

From-SVN: r95311
parent 7d651220
2005-02-20 Steven G. Kargl <kargls@comcast.net> 2005-02-20 Steven G. Kargl <kargls@comcast.net>
* symbol.c: Typos in comments.
2005-02-20 Steven G. Kargl <kargls@comcast.net>
* expr.c (gfc_type_convert_binary): Typo in comment. * expr.c (gfc_type_convert_binary): Typo in comment.
2005-02-19 Steven G. Kargl <kargls@comcast.net> 2005-02-19 Steven G. Kargl <kargls@comcast.net>
......
...@@ -179,8 +179,7 @@ gfc_merge_new_implicit (gfc_typespec * ts) ...@@ -179,8 +179,7 @@ gfc_merge_new_implicit (gfc_typespec * ts)
} }
/* Given a symbol, return a pointer to the typespec for it's default /* Given a symbol, return a pointer to the typespec for its default type. */
type. */
gfc_typespec * gfc_typespec *
gfc_get_default_type (gfc_symbol * sym, gfc_namespace * ns) gfc_get_default_type (gfc_symbol * sym, gfc_namespace * ns)
...@@ -483,9 +482,9 @@ check_used (symbol_attribute * attr, const char * name, locus * where) ...@@ -483,9 +482,9 @@ check_used (symbol_attribute * attr, const char * name, locus * where)
/* Used to prevent changing the attributes of a symbol after it has been /* Used to prevent changing the attributes of a symbol after it has been
used. This check is only done from dummy variable as only these can be used. This check is only done for dummy variables as only these can be
used in specification expressions. Applying this to all symbols causes used in specification expressions. Applying this to all symbols causes
error when we reach the body of a contained function. */ an error when we reach the body of a contained function. */
static int static int
check_done (symbol_attribute * attr, locus * where) check_done (symbol_attribute * attr, locus * where)
...@@ -684,7 +683,7 @@ gfc_add_dummy (symbol_attribute * attr, const char *name, locus * where) ...@@ -684,7 +683,7 @@ gfc_add_dummy (symbol_attribute * attr, const char *name, locus * where)
if (check_used (attr, name, where)) if (check_used (attr, name, where))
return FAILURE; return FAILURE;
/* Duplicate dummy arguments are allow due to ENTRY statements. */ /* Duplicate dummy arguments are allowed due to ENTRY statements. */
attr->dummy = 1; attr->dummy = 1;
return check_conflict (attr, name, where); return check_conflict (attr, name, where);
} }
...@@ -836,7 +835,7 @@ gfc_add_generic (symbol_attribute * attr, const char *name, locus * where) ...@@ -836,7 +835,7 @@ gfc_add_generic (symbol_attribute * attr, const char *name, locus * where)
} }
/* Flavors are special because some flavors are not what fortran /* Flavors are special because some flavors are not what Fortran
considers attributes and can be reaffirmed multiple times. */ considers attributes and can be reaffirmed multiple times. */
try try
...@@ -1102,7 +1101,7 @@ gfc_copy_attr (symbol_attribute * dest, symbol_attribute * src, locus * where) ...@@ -1102,7 +1101,7 @@ gfc_copy_attr (symbol_attribute * dest, symbol_attribute * src, locus * where)
goto fail; goto fail;
/* The subroutines that set these bits also cause flavors to be set, /* The subroutines that set these bits also cause flavors to be set,
and that has already happened in the original, so don't let to and that has already happened in the original, so don't let it
happen again. */ happen again. */
if (src->external) if (src->external)
dest->external = 1; dest->external = 1;
...@@ -1147,7 +1146,7 @@ gfc_add_component (gfc_symbol * sym, const char *name, gfc_component ** componen ...@@ -1147,7 +1146,7 @@ gfc_add_component (gfc_symbol * sym, const char *name, gfc_component ** componen
tail = p; tail = p;
} }
/* Allocate new component */ /* Allocate a new component. */
p = gfc_get_component (); p = gfc_get_component ();
if (tail == NULL) if (tail == NULL)
...@@ -1194,7 +1193,7 @@ switch_types (gfc_symtree * st, gfc_symbol * from, gfc_symbol * to) ...@@ -1194,7 +1193,7 @@ switch_types (gfc_symtree * st, gfc_symbol * from, gfc_symbol * to)
have to have a derived type in a parent unit. We find the node in have to have a derived type in a parent unit. We find the node in
the other namespace and point the symtree node in this namespace to the other namespace and point the symtree node in this namespace to
that node. Further reference to this name point to the correct that node. Further reference to this name point to the correct
node. If we can't find the node in a parent namespace, then have node. If we can't find the node in a parent namespace, then we have
an error. an error.
This subroutine takes a pointer to a symbol node and returns a This subroutine takes a pointer to a symbol node and returns a
...@@ -1521,7 +1520,7 @@ done: ...@@ -1521,7 +1520,7 @@ done:
the internal subprograms must be read before we can start the internal subprograms must be read before we can start
generating code for the host. generating code for the host.
Given the tricky nature of the fortran grammar, we must be able to Given the tricky nature of the Fortran grammar, we must be able to
undo changes made to a symbol table if the current interpretation undo changes made to a symbol table if the current interpretation
of a statement is found to be incorrect. Whenever a symbol is of a statement is found to be incorrect. Whenever a symbol is
looked up, we make a copy of it and link to it. All of these looked up, we make a copy of it and link to it. All of these
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment