gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
authorBasile Starynkevitch <basile@starynkevitch.net>
Tue, 9 Nov 2010 07:36:26 +0000 (07:36 +0000)
committerBasile Starynkevitch <bstarynk@gcc.gnu.org>
Tue, 9 Nov 2010 07:36:26 +0000 (07:36 +0000)
commit14c4815ece54b1e79459dad10d726fb755973761
tree227ea04b374b375a8cc883b466664412b5110881
parent3a5b7298d28035d8b64d1d37317cc73933e8b357
gengtype.c (get_output_file_name): Declaration moved to gengtype.h.

2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
    Jeremie Salvucci  <jeremie.salvucci@free.fr>

* gengtype.c (get_output_file_name): Declaration moved to
gengtype.h.
(plugin_files, get_file_basename, get_file_realbasename)
(get_file_langdir, error_at_line, gt_files, this_file)
(system_h_file, read_input_list, create_field_all)
(get_file_srcdir_relative_path, get_file_basename)
(get_file_langdir, get_file_gtfilename)
(get_output_file_with_visibility, get_output_file_name)
(struct flist, put_mangled_filename, walk_type)
(put_mangled_filename, finish_root_table, write_roots): Use
input_file-s.
(lang_dir_names, num_lang_dirs): Remove static.
(get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
(main): Use input_file-s.

* gengtype.h:
(struct input_file_st, input_file): New type.
(struct fileloc): Use it.
(gt_files, num_gt_files, this_file, system_h_file)
(input_file_by_name, get_file_srcdir_relative_path): Use
input_file.
(get_input_file_name): New function.
(get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
        use input_file.
(lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
(get_output_file_name): Ditto.

* gengtype-lex.l (yybegin): Use input_file.

* gengtype-parse.c (parse_error): Use input_file.

Co-Authored-By: Jeremie Salvucci <jeremie.salvucci@free.fr>
From-SVN: r166473
gcc/ChangeLog
gcc/gengtype-lex.l
gcc/gengtype-parse.c
gcc/gengtype.c
gcc/gengtype.h