Commit 8627f5f5 by Janne Blomqvist

Make a few helper functions static.

2011-12-01  Janne Blomqvist  <jb@gcc.gnu.org>

	* module.c (dt_lower_string): Make static.
	(dt_upper_string): Likewise.

From-SVN: r181881
parent 6ebbd277
2011-12-01 Janne Blomqvist <jb@gcc.gnu.org> 2011-12-01 Janne Blomqvist <jb@gcc.gnu.org>
* module.c (dt_lower_string): Make static.
(dt_upper_string): Likewise.
2011-12-01 Janne Blomqvist <jb@gcc.gnu.org>
PR fortran/25708 PR fortran/25708
* module.c (parse_string): Read string into resizable array * module.c (parse_string): Read string into resizable array
instead of parsing twice and seeking. instead of parsing twice and seeking.
......
...@@ -435,7 +435,7 @@ resolve_fixups (fixup_t *f, void *gp) ...@@ -435,7 +435,7 @@ resolve_fixups (fixup_t *f, void *gp)
to convert the symtree name of a derived-type to the symbol name or to to convert the symtree name of a derived-type to the symbol name or to
the name of the associated generic function. */ the name of the associated generic function. */
const char * static const char *
dt_lower_string (const char *name) dt_lower_string (const char *name)
{ {
if (name[0] != (char) TOLOWER ((unsigned char) name[0])) if (name[0] != (char) TOLOWER ((unsigned char) name[0]))
...@@ -450,7 +450,7 @@ dt_lower_string (const char *name) ...@@ -450,7 +450,7 @@ dt_lower_string (const char *name)
symtree/symbol name of the associated generic function start with a lower- symtree/symbol name of the associated generic function start with a lower-
case character. */ case character. */
const char * static const char *
dt_upper_string (const char *name) dt_upper_string (const char *name)
{ {
if (name[0] != (char) TOUPPER ((unsigned char) name[0])) if (name[0] != (char) TOUPPER ((unsigned char) name[0]))
......
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